@whoz-oss/coday-client 3.15.0 → 3.16.0

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 (78) hide show
  1. package/browser/{chunk-CysW_ro-.js → chunk-0OiZWE88.js} +1 -1
  2. package/browser/{chunk-BhfpLr7-.js → chunk-6gdeYlLc.js} +1 -1
  3. package/browser/{chunk-B5_o_qhk.js → chunk-7jUQT_3F.js} +1 -1
  4. package/browser/{chunk-K-fhwl_z.js → chunk-B0vRsgnD.js} +1 -1
  5. package/browser/{chunk-RxHlNJ_t.js → chunk-BEKR4Un_.js} +1 -1
  6. package/browser/chunk-BEUXx3TO.js +1 -0
  7. package/browser/{chunk-Bnic_hdt.js → chunk-BHZY3TvC.js} +5 -5
  8. package/browser/{chunk-C6RPhP4t.js → chunk-BJYyjaQ6.js} +1 -1
  9. package/browser/chunk-BJeLQooO.js +1 -0
  10. package/browser/{chunk-BIMT-HvS.js → chunk-BNS6Fgaw.js} +1 -1
  11. package/browser/{chunk-BVCQOGLR.js → chunk-BSSDDOqW.js} +2 -2
  12. package/browser/{chunk-Dd2dq7xg.js → chunk-BTS5TBK0.js} +1 -1
  13. package/browser/{chunk-B11WEBEl.js → chunk-BUJoEGsf.js} +1 -1
  14. package/browser/chunk-BY7uKZAo.js +9 -0
  15. package/browser/{chunk-5t7zJzqM.js → chunk-B_9LxHBv.js} +1 -1
  16. package/browser/{chunk-DTZ7N3wC.js → chunk-BdApeECy.js} +1 -1
  17. package/browser/{chunk-BhM0bmJW.js → chunk-BdpJ2ZCM.js} +1 -1
  18. package/browser/{chunk-CyUmCedx.js → chunk-Be1LOFvg.js} +1 -1
  19. package/browser/{chunk-CYMQSJz6.js → chunk-Bhq5earA.js} +1 -1
  20. package/browser/{chunk-C5wr-vqf.js → chunk-Bib1Seeu.js} +1 -1
  21. package/browser/{chunk-C7MXO6BQ.js → chunk-Bn3R3VC2.js} +5 -5
  22. package/browser/{chunk-DxxECdrg.js → chunk-C-aF2_1R.js} +2 -2
  23. package/browser/{chunk-Jv7RGmnK.js → chunk-CBNhmZDS.js} +1 -1
  24. package/browser/{chunk-DzicJow4.js → chunk-CFZbDe5T.js} +3 -3
  25. package/browser/{chunk-mHtuxvLs.js → chunk-CGMAzvSo.js} +1 -1
  26. package/browser/chunk-CPBcDx4G.js +1 -0
  27. package/browser/{chunk-DYUMiAN8.js → chunk-CTuHnJP4.js} +1 -1
  28. package/browser/{chunk-n1eKIk8H.js → chunk-CXLytVC3.js} +1 -1
  29. package/browser/{chunk-5LRyprMF.js → chunk-CYulIMKp.js} +1 -1
  30. package/browser/{chunk-CyxhAtE7.js → chunk-C_s4Z3Dk.js} +1 -1
  31. package/browser/{chunk-D_vvo2qx.js → chunk-CbK5Lcu9.js} +1 -1
  32. package/browser/{chunk-9CSRlx74.js → chunk-CgqDTJ5-.js} +1 -1
  33. package/browser/{chunk-Dg6QAZUw.js → chunk-Ci1jk71f.js} +2 -2
  34. package/browser/{chunk-Bh1p6jDj.js → chunk-CiWu4t_i.js} +1 -1
  35. package/browser/{chunk-CUmS2-ak.js → chunk-CjrWXBiR.js} +1 -1
  36. package/browser/{chunk-BqKdrvcS.js → chunk-Co81dkbz.js} +1 -1
  37. package/browser/{chunk-Ce03Ba0V.js → chunk-CtWMrBfw.js} +1 -1
  38. package/browser/{chunk-l0HLnBLv.js → chunk-CtkiOUdU.js} +6 -6
  39. package/browser/{chunk-BlWlE-Cq.js → chunk-CwaAd8kk.js} +1 -1
  40. package/browser/{chunk-Bgy3uCgK.js → chunk-DDnWPYAA.js} +1 -1
  41. package/browser/{chunk-CHrmSvQM.js → chunk-DOq0u21j.js} +1 -1
  42. package/browser/{chunk-DX2ZzvT5.js → chunk-DQLU3kYb.js} +1 -1
  43. package/browser/{chunk-fP29MqaN.js → chunk-Dcftf7UY.js} +1 -1
  44. package/browser/{chunk-BZMAEe_X.js → chunk-Dfujxxcr.js} +1 -1
  45. package/browser/chunk-DgrvmqY2.js +2 -0
  46. package/browser/{chunk-CebS4RAf.js → chunk-DoKoAMs6.js} +1 -1
  47. package/browser/{chunk-CNIfOUla.js → chunk-Dtu-PLbq.js} +1 -1
  48. package/browser/{chunk-C4U0w8cP.js → chunk-DzlrRiVM.js} +1 -1
  49. package/browser/{chunk-BfD1F12k.js → chunk-HjD5Rk4C.js} +3 -3
  50. package/browser/{chunk-CcLheUaL.js → chunk-IUvEtpfr.js} +1 -1
  51. package/browser/{chunk-DTIhOEG_.js → chunk-S8F5_Te_.js} +6 -6
  52. package/browser/{chunk-HSc9fwVS.js → chunk-SbH2L3h2.js} +1 -1
  53. package/browser/{chunk-BKlwFrFB.js → chunk-UzUd84Qf.js} +1 -1
  54. package/browser/chunk-YS-vAhPY.js +190 -0
  55. package/browser/{chunk-BUEM7g7F.js → chunk-YfG457Nc.js} +3 -3
  56. package/browser/{chunk-DG2FCeMu.js → chunk-axGY7UtD.js} +1 -1
  57. package/browser/chunk-fYErSEXN.js +1 -0
  58. package/browser/{chunk-BgHTiTG2.js → chunk-fhFxOLYS.js} +1 -1
  59. package/browser/{chunk-qARg6ese.js → chunk-gmPqDrDS.js} +1 -1
  60. package/browser/{chunk-DvzNS1Bs.js → chunk-iNIQR015.js} +1 -1
  61. package/browser/{chunk-Dj9y_5pr.js → chunk-izARvh_2.js} +1 -1
  62. package/browser/{chunk-Cf3l2UgA.js → chunk-jv0lz5Ah.js} +1 -1
  63. package/browser/{chunk-nWqZHM4o.js → chunk-kvCfAm7Z.js} +1 -1
  64. package/browser/{chunk-ZvcyZV3G.js → chunk-pH1k_bet.js} +1 -1
  65. package/browser/{chunk-DYE131qf.js → chunk-rwEyLSEP.js} +1 -1
  66. package/browser/{chunk-XgEfnfT0.js → chunk-swj7IkJA.js} +1 -1
  67. package/browser/chunk-tTmeIHGS.js +37 -0
  68. package/browser/index.html +1 -1
  69. package/browser/{main-6K2UFGD2.js → main-5PAOSHSM.js} +19 -19
  70. package/package.json +1 -1
  71. package/browser/chunk-BC0acSZF.js +0 -1
  72. package/browser/chunk-BLa2Gx7h.js +0 -190
  73. package/browser/chunk-B_2kLXvG.js +0 -1
  74. package/browser/chunk-C9tuHQmZ.js +0 -37
  75. package/browser/chunk-CnnGSYzi.js +0 -2
  76. package/browser/chunk-DEsz0fzs.js +0 -1
  77. package/browser/chunk-DXDohTwX.js +0 -1
  78. package/browser/chunk-uPxETzZs.js +0 -9
@@ -1,9 +1,9 @@
1
- var py=Object.defineProperty,hy=Object.defineProperties;var gy=Object.getOwnPropertyDescriptors;var Po$1=Object.getOwnPropertySymbols;var Xl=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable;var Kl=(e,t,n)=>t in e?py(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,P$2=(e,t)=>{for(var n in t||={})Xl.call(t,n)&&Kl(e,n,t[n]);if(Po$1)for(var n of Po$1(t))Jl.call(t,n)&&Kl(e,n,t[n]);return e},z$4=(e,t)=>hy(e,gy(t));var ed=(e,t)=>{var n={};for(var r in e)Xl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Po$1)for(var r of Po$1(e))t.indexOf(r)<0&&Jl.call(e,r)&&(n[r]=e[r]);return n};var dt$2=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c));}catch(u){o(u);}},s=c=>{try{a(n.throw(c));}catch(u){o(u);}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next());});function M$2(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 Lo$1=Rt$3(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
1
+ var hy=Object.defineProperty,gy=Object.defineProperties;var my=Object.getOwnPropertyDescriptors;var Po$1=Object.getOwnPropertySymbols;var Jl=Object.prototype.hasOwnProperty,ed=Object.prototype.propertyIsEnumerable;var Xl=(e,t,n)=>t in e?hy(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,P$2=(e,t)=>{for(var n in t||={})Jl.call(t,n)&&Xl(e,n,t[n]);if(Po$1)for(var n of Po$1(t))ed.call(t,n)&&Xl(e,n,t[n]);return e},z$4=(e,t)=>gy(e,my(t));var td=(e,t)=>{var n={};for(var r in e)Jl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Po$1)for(var r of Po$1(e))t.indexOf(r)<0&&ed.call(e,r)&&(n[r]=e[r]);return n};var dt$2=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c));}catch(u){o(u);}},s=c=>{try{a(n.throw(c));}catch(u){o(u);}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next());});function M$2(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 Lo$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 en$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var X$4=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$2(r))try{r();}catch(i){t=i instanceof Lo$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{td(i);}catch(s){t=t??[],s instanceof Lo$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Lo$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)td(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)&&en$2(n,t);}remove(t){let{_finalizers:n}=this;n&&en$2(n,t),t instanceof e&&t._removeParent(this);}};X$4.EMPTY=(()=>{let e=new X$4;return e.closed=true,e})();var ua=X$4.EMPTY;function jo$1(e){return e instanceof X$4||e&&"closed"in e&&M$2(e.remove)&&M$2(e.add)&&M$2(e.unsubscribe)}function td(e){M$2(e)?e():e.unsubscribe();}var Le$4={Promise:void 0};var Ln$3={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function Bo$1(e){Ln$3.setTimeout(()=>{throw e});}function tn$2(){}function jn$3(e){e();}var rn$2=class rn extends X$4{constructor(t){super(),this.isStopped=false,t?(this.destination=t,jo$1(t)&&t.add(this)):this.destination=vy;}static create(t,n,r){return new je$4(t,n,r)}next(t){this.isStopped?fa():this._next(t);}error(t){this.isStopped?fa():(this.isStopped=true,this._error(t));}complete(){this.isStopped?fa():(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 pa=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){Vo$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){Vo$1(r);}else Vo$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){Vo$1(n);}}},je$4=class je extends rn$2{constructor(t,n,r){super();let o;if(M$2(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new pa(o);}};function Vo$1(e){Bo$1(e);}function yy(e){throw e}function fa(e,t){}var vy={closed:true,next:tn$2,error:yy,complete:tn$2};var Bn$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function De$2(e){return e}function Dy(...e){return ha(e)}function ha(e){return e.length===0?De$2:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var A$1=(()=>{class e{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Iy(n)?n:new je$4(n,r,o);return jn$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=sd(r),new r((o,i)=>{let s=new je$4({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)}[Bn$3](){return this}pipe(...n){return ha(n)(this)}toPromise(n){return n=sd(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 sd(e){var t;return (t=e??Le$4.Promise)!==null&&t!==void 0?t:Promise}function Ey(e){return e&&M$2(e.next)&&M$2(e.error)&&M$2(e.complete)}function Iy(e){return e&&e instanceof rn$2||Ey(e)&&jo$1(e)}var ad=Rt$3(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ce$4=(()=>{class e extends A$1{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new Ho$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ad}next(n){jn$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){jn$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(){jn$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?ua:(this.currentObservers=null,i.push(n),new X$4(()=>{this.currentObservers=null,en$2(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new A$1;return n.source=this,n}}return e.create=(t,n)=>new Ho$1(t,n),e})(),Ho$1=class Ho extends ce$4{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:ua}};var Tr=class extends ce$4{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};function Uo$1(e){return e&&M$2(e.schedule)}function ga(e){return e[e.length-1]}function $o$1(e){return M$2(ga(e))?e.pop():void 0}function Qe$4(e){return Uo$1(ga(e))?e.pop():void 0}function cd(e,t){return typeof ga(e)=="number"?e.pop():t}function ld(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 ud(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 on$2(e){return this instanceof on$2?(this.v=e,this):new on$2(e)}function dd(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 on$2?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 fd(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 ud=="function"?ud(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 zo$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function Go$1(e){return M$2(e?.then)}function Wo$1(e){return M$2(e[Bn$3])}function qo$1(e){return Symbol.asyncIterator&&M$2(e?.[Symbol.asyncIterator])}function Zo$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 wy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yo=wy();function Qo$1(e){return M$2(e?.[Yo])}function Ko$1(e){return dd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield on$2(n.read());if(o)return yield on$2(void 0);yield yield on$2(r);}}finally{n.releaseLock();}})}function Xo$1(e){return M$2(e?.getReader)}function O$4(e){if(e instanceof A$1)return e;if(e!=null){if(Wo$1(e))return Cy(e);if(zo$1(e))return Ty(e);if(Go$1(e))return by(e);if(qo$1(e))return pd(e);if(Qo$1(e))return Sy(e);if(Xo$1(e))return _y(e)}throw Zo$1(e)}function Cy(e){return new A$1(t=>{let n=e[Bn$3]();if(M$2(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ty(e){return new A$1(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function by(e){return new A$1(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,Bo$1);})}function Sy(e){return new A$1(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function pd(e){return new A$1(t=>{My(e,t).catch(n=>t.error(n));})}function _y(e){return pd(Ko$1(e))}function My(e,t){var n,r,o,i;return ld(this,void 0,void 0,function*(){try{for(n=fd(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 ne$3(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 Ny(e){return M$2(e?.lift)}function b$1(e){return t=>{if(Ny(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 S$3(e,t,n,r,o){return new ma(e,t,n,r,o)}var ma=class extends rn$2{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){t.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){t.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){t.error(a);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function Jo$1(e,t=0){return b$1((n,r)=>{n.subscribe(S$3(r,o=>ne$3(r,e,()=>r.next(o),t),()=>ne$3(r,e,()=>r.complete(),t),o=>ne$3(r,e,()=>r.error(o),t)));})}function ei$1(e,t=0){return b$1((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function hd(e,t){return O$4(e).pipe(ei$1(t),Jo$1(t))}function gd(e,t){return O$4(e).pipe(ei$1(t),Jo$1(t))}function md(e,t){return new A$1(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function yd(e,t){return new A$1(n=>{let r;return ne$3(n,t,()=>{r=e[Yo](),ne$3(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$2(r?.return)&&r.return()})}function ti$1(e,t){if(!e)throw new Error("Iterable cannot be null");return new A$1(n=>{ne$3(n,t,()=>{let r=e[Symbol.asyncIterator]();ne$3(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function vd(e,t){return ti$1(Ko$1(e),t)}function Dd(e,t){if(e!=null){if(Wo$1(e))return hd(e,t);if(zo$1(e))return md(e,t);if(Go$1(e))return gd(e,t);if(qo$1(e))return ti$1(e,t);if(Qo$1(e))return yd(e,t);if(Xo$1(e))return vd(e,t)}throw Zo$1(e)}function Ke$2(e,t){return t?Dd(e,t):O$4(e)}function br$1(...e){let t=Qe$4(e);return Ke$2(e,t)}function ue$3(e,t){return b$1((n,r)=>{let o=0;n.subscribe(S$3(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:xy}=Array,{getPrototypeOf:Ay,prototype:Ry,keys:Oy}=Object;function ni$2(e){if(e.length===1){let t=e[0];if(xy(t))return {args:t,keys:null};if(ky(t)){let n=Oy(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function ky(e){return e&&typeof e=="object"&&Ay(e)===Ry}var{isArray:Fy}=Array;function Py(e,t){return Fy(t)?e(...t):e(t)}function ri$1(e){return ue$3(t=>Py(e,t))}function oi$2(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ly(...e){let t=Qe$4(e),n=$o$1(e),{args:r,keys:o}=ni$2(e);if(r.length===0)return Ke$2([],t);let i=new A$1(jy(r,t,o?s=>oi$2(o,s):De$2));return n?i.pipe(ri$1(n)):i}function jy(e,t,n=De$2){return r=>{Ed(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Ed(t,()=>{let u=Ke$2(e[c],t),l=false;u.subscribe(S$3(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function Ed(e,t,n){e?ne$3(n,e,t):t();}function By(...e){let t=$o$1(e),{args:n,keys:r}=ni$2(e),o=new A$1(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=false;O$4(n[l]).subscribe(S$3(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?oi$2(r,a):a),i.complete());}));}});return t?o.pipe(ri$1(t)):o}function Ot$3(e,t){return b$1((n,r)=>{let o=0;n.subscribe(S$3(r,i=>e.call(t,i,o++)&&r.next(i)));})}function ya(e){return b$1((t,n)=>{let r=null,o=!1,i;r=t.subscribe(S$3(n,void 0,void 0,s=>{i=O$4(e(s,ya(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var ii$2=class ii extends X$4{constructor(t,n){super();}schedule(t,n=0){return this}};var Sr$1={setInterval(e,t,...n){let{delegate:r}=Sr$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var si$2=class si extends ii$2{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 Sr$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&&Sr$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,en$2(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var _r={now(){return (_r.delegate||Date).now()},delegate:void 0};var Vn$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)}};Vn$3.now=_r.now;var ai$1=class ai extends Vn$3{constructor(t,n=Vn$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 ft$3=new ai$1(si$2),Id=ft$3;function wd(e,t=ft$3){return b$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(S$3(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function Cd(e){return Ot$3((t,n)=>e<=n)}function Td(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=>{u++;let D=false;O$4(n(y,l++)).subscribe(S$3(t,_=>{t.next(_);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let _=c.shift();s?ne$3(t,s,()=>h(_)):h(_);}p();}catch(_){t.error(_);}}));};return e.subscribe(S$3(t,f,()=>{d=true,p();})),()=>{}}function pt$4(e,t,n=1/0){return M$2(t)?pt$4((r,o)=>ue$3((i,s)=>t(r,i,o,s))(O$4(e(r,o))),n):(typeof t=="number"&&(n=t),b$1((r,o)=>Td(r,o,e,n)))}function Mr(e=1/0){return pt$4(De$2,e)}function bd(){return Mr(1)}function kt$1(...e){return bd()(Ke$2(e,Qe$4(e)))}function Sd(...e){let t=Qe$4(e);return b$1((n,r)=>{(t?kt$1(e,n,t):kt$1(e,n)).subscribe(r);})}function va(e,t){return b$1((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(S$3(r,c=>{o?.unsubscribe();let u=0,l=i++;O$4(e(c,l)).subscribe(o=S$3(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Vy(e){return b$1((t,n)=>{O$4(e).subscribe(S$3(n,()=>n.complete(),tn$2)),!n.closed&&t.subscribe(n);})}var Nr=class extends ce$4{constructor(t=1/0,n=1/0,r=_r){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};var sn$2=new A$1(e=>e.complete());function Hy(e,t){let n=M$2(e)?e:()=>e,r=o=>o.error(n());return new A$1(r)}function Uy(e){return !!e&&(e instanceof A$1||M$2(e.lift)&&M$2(e.subscribe))}var ht$3=Rt$3(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function $y(e,t){return new Promise((r,o)=>{let i=false,s;e.subscribe({next:a=>{s=a,i=true;},error:o,complete:()=>{i?r(s):o(new ht$3);}});})}function zy(e,t){return new Promise((r,o)=>{let i=new je$4({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{o(new ht$3);}});e.subscribe(i);})}function ci$1(e){return e instanceof Date&&!isNaN(e)}var Gy=Rt$3(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function Wy(e,t){let{first:n,each:r,with:o=qy,scheduler:i=ft$3,meta:s=null}=ci$1(e)?{first:e}:{each:e};if(n==null&&r==null)throw new TypeError("No timeout provided.");return b$1((a,c)=>{let u,l,d=null,p=0,f=h=>{l=ne$3(c,i,()=>{try{u.unsubscribe(),O$4(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(y){c.error(y);}},h);};u=a.subscribe(S$3(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 qy(e){throw new Gy(e)}function Zy(e){return new A$1(t=>{O$4(e()).subscribe(t);})}function ui$2(e=0,t,n=Id){let r=-1;return t!=null&&(Uo$1(t)?n=t:r=t),new A$1(o=>{let i=ci$1(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function Yy(...e){let t=Qe$4(e),n=cd(e,1/0),r=e;return r.length?r.length===1?O$4(r[0]):Mr(n)(Ke$2(r,t)):sn$2}function _d(e){return b$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(S$3(n,u=>{r=!0,o=u,i||O$4(e(u)).subscribe(i=S$3(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Qy(e,t=ft$3){return _d(()=>ui$2(e,t))}function li$1(e,t){return M$2(t)?pt$4(e,t,1):pt$4(e,1)}function Md(e){return b$1((t,n)=>{let r=!1;t.subscribe(S$3(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function an$2(e){return e<=0?()=>sn$2:b$1((t,n)=>{let r=0;t.subscribe(S$3(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function Da(){return b$1((e,t)=>{e.subscribe(S$3(t,tn$2));})}function Ea(e){return ue$3(()=>e)}function Ia(e,t){return t?n=>kt$1(t.pipe(an$2(1),Da()),n.pipe(Ia(e))):pt$4((n,r)=>O$4(e(n,r)).pipe(an$2(1),Ea(n)))}function Ky(e,t=ft$3){let n=ui$2(e,t);return Ia(()=>n)}function Nd(e,t=De$2){return e=e??Xy,b$1((n,r)=>{let o,i=!0;n.subscribe(S$3(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Xy(e,t){return e===t}function xd(e=Jy){return b$1((t,n)=>{let r=!1;t.subscribe(S$3(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function Jy(){return new ht$3}function ev(...e){return t=>kt$1(t,br$1(...e))}function di$2(e){return b$1((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function Ad(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot$3((o,i)=>e(o,i,r)):De$2,an$2(1),n?Md(t):xd(()=>new ht$3))}function tv(e){return e<=0?()=>sn$2:b$1((t,n)=>{let r=[];t.subscribe(S$3(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function nv(){return b$1((e,t)=>{let n,r=!1;e.subscribe(S$3(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0;}));})}function Ca(e={}){let{connector:t=()=>new ce$4,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 b$1((y,D)=>{u++,!d&&!l&&p();let _=c=c??t();D.add(()=>{u--,u===0&&!d&&!l&&(a=wa(h,o));}),_.subscribe(D),!s&&u>0&&(s=new je$4({next:$=>_.next($),error:$=>{d=!0,p(),a=wa(f,n,$),_.error($);},complete:()=>{l=!0,p(),a=wa(f,r),_.complete();}}),O$4(y).subscribe(s));})(i)}}function wa(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new je$4({next:()=>{r.unsubscribe(),e();}});return O$4(t(...n)).subscribe(r)}function Rd(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,Ca({connector:()=>new Nr(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function rv(e,t=false){return b$1((n,r)=>{let o=0;n.subscribe(S$3(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}function Od(e,t,n){let r=M$2(e)||t||n?{next:e,error:t,complete:n}:e;return r?b$1((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(S$3(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c);},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete();},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c);},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r);}));}):De$2}var le$5=null,fi$3=false,cn$2=1,q$3=Symbol("SIGNAL");function I$2(e){let t=le$5;return le$5=e,t}function pi$3(){return le$5}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$4(e){if(fi$3)throw new Error("");if(le$5===null)return;le$5.consumerOnSignalRead(e);let t=le$5.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=le$5.recomputing;if(r&&(n=t!==void 0?t.nextProducer:le$5.producers,n!==void 0&&n.producer===e)){le$5.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=cn$2;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===le$5&&(!r||o.knownValidAtEpoch===cn$2))return;let i=$n$3(le$5),s={producer:e,consumer:le$5,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:cn$2,lastReadVersion:e.version,nextConsumer:void 0};le$5.producersTail=s,t!==void 0?t.nextProducer=s:le$5.producers=s,i&&Ld(e,s);}function kd(){cn$2++;}function dn$2(e){if(!($n$3(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===cn$2)){if(!e.producerMustRecompute(e)&&!Un$3(e)){Hn$3(e);return}e.producerRecomputeValue(e),Hn$3(e);}}function Ta(e){if(e.consumers===void 0)return;let t=fi$3;fi$3=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||iv(r);}}finally{fi$3=t;}}function ba(){return le$5?.consumerAllowSignalWrites!==false}function iv(e){e.dirty=true,Ta(e),e.consumerMarkedDirty?.(e);}function Hn$3(e){e.dirty=false,e.lastCleanEpoch=cn$2;}function mt$3(e){return e&&Fd(e),I$2(e)}function Fd(e){if(e.producersTail?.knownValidAtEpoch===cn$2){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Pt$4(e,t){I$2(t),e&&Pd(e);}function Pd(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if($n$3(e))do n=Sa(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Un$3(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(dn$2(n),r!==n.version))return true}return false}function Lt$1(e){if($n$3(e)){let t=e.producers;for(;t!==void 0;)t=Sa(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Ld(e,t){let n=e.consumersTail,r=$n$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)Ld(o.producer,o);}function Sa(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,!$n$3(t)){let i=t.producers;for(;i!==void 0;)i=Sa(i);}return n}function $n$3(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ar$1(e,t){return Object.is(e,t)}function Rr$1(e,t){let n=Object.create(sv);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(dn$2(n),gt$4(n),n.value===Xe$1)throw n.error;return n.value};return r[q$3]=n,r}var un$2=Symbol("UNSET"),ln$1=Symbol("COMPUTING"),Xe$1=Symbol("ERRORED"),sv=z$4(P$2({},Ft$1),{value:un$2,dirty:true,error:null,equal:Ar$1,kind:"computed",producerMustRecompute(e){return e.value===un$2||e.value===ln$1},producerRecomputeValue(e){if(e.value===ln$1)throw new Error("");let t=e.value;e.value=ln$1;let n=mt$3(e),r,o=false;try{r=e.computation(),I$2(null),o=t!==un$2&&t!==Xe$1&&r!==Xe$1&&e.equal(t,r);}catch(i){r=Xe$1,e.error=i;}finally{Pt$4(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function av(){throw new Error}var jd=av;function Bd(e){jd(e);}function _a(e){jd=e;}function Ma(e,t){let n=Object.create(Or);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Vd(n);return r[q$3]=n,[r,s=>jt$3(n,s),s=>hi$2(n,s)]}function Vd(e){return gt$4(e),e.value}function jt$3(e,t){ba()||Bd(e),e.equal(e.value,t)||(e.value=t,uv(e));}function hi$2(e,t){ba()||Bd(e),jt$3(e,t(e.value));}var Or=z$4(P$2({},Ft$1),{equal:Ar$1,value:void 0,kind:"signal"});function uv(e){e.version++,kd(),Ta(e);}var Na=z$4(P$2({},Ft$1),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function xa(e){if(e.dirty=false,e.version>0&&!Un$3(e))return;e.version++;let t=mt$3(e);try{e.cleanup(),e.fn();}finally{Pt$4(e,t);}}var Aa;function gi$2(){return Aa}function Je$2(e){let t=Aa;return Aa=e,t}var Hd=Symbol("NotFound");function zn$3(e){return e===Hd||e?.name==="\u0275NotFound"}function Ra(e,t,n){let r=Object.create(lv);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(dn$2(r),gt$4(r),r.value===Xe$1)throw r.error;return r.value};return i[q$3]=r,i}function Ud(e,t){dn$2(e),jt$3(e,t),Hn$3(e);}function $d(e,t){if(dn$2(e),e.value===Xe$1)throw e.error;hi$2(e,t),Hn$3(e);}var lv=z$4(P$2({},Ft$1),{value:un$2,dirty:true,error:null,equal:Ar$1,kind:"linkedSignal",producerMustRecompute(e){return e.value===un$2||e.value===ln$1},producerRecomputeValue(e){if(e.value===ln$1)throw new Error("");let t=e.value;e.value=ln$1;let n=mt$3(e),r,o=false;try{let i=e.source(),s=t!==un$2&&t!==Xe$1,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,I$2(null),o=s&&r!==Xe$1&&e.equal(t,r);}catch(i){r=Xe$1,e.error=i;}finally{Pt$4(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function zd(e){let t=I$2(null);try{return e()}finally{I$2(t);}}var wi$2="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m$4=class m extends Error{code;constructor(t,n){super(et$3(t,n)),this.code=t;}};function dv(e){return `NG0${Math.abs(e)}`}function et$3(e,t){return `${dv(e)}${t?": "+t:""}`}function k$3(e){for(let t in e)if(e[t]===k$3)return t;throw Error("")}function Yd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function Br(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(Br).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 Ci$2(e,t){return e?t?`${e} ${t}`:e:t||""}var fv=k$3({__forward_ref__:k$3});function Ti$2(e){return e.__forward_ref__=Ti$2,e}function J$5(e){return Ga(e)?e():e}function Ga(e){return typeof e=="function"&&e.hasOwnProperty(fv)&&e.__forward_ref__===Ti$2}function x(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function qn$3(e){return {providers:e.providers||[],imports:e.imports||[]}}function Vr(e){return hv(e,bi$2)}function pv(e){return Vr(e)!==null}function hv(e,t){return e.hasOwnProperty(t)&&e[t]||null}function gv(e){let t=e?.[bi$2]??null;return t||null}function ka(e){return e&&e.hasOwnProperty(yi$2)?e[yi$2]:null}var bi$2=k$3({\u0275prov:k$3}),yi$2=k$3({\u0275inj:k$3}),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({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function Wa(e){return e&&!!e.\u0275providers}var qa=k$3({\u0275cmp:k$3}),Za=k$3({\u0275dir:k$3}),Ya=k$3({\u0275pipe:k$3}),Qa=k$3({\u0275mod:k$3}),Fr=k$3({\u0275fac:k$3}),mn$3=k$3({__NG_ELEMENT_ID__:k$3}),Gd=k$3({__NG_ENV_ID__:k$3});function Qd(e){return _i$2(e),e[Qa]||null}function Et$4(e){return _i$2(e),e[qa]||null}function Si$1(e){return _i$2(e),e[Za]||null}function Kd(e){return _i$2(e),e[Ya]||null}function _i$2(e,t){if(e==null)throw new m$4(-919,false)}function oe$2(e){return typeof e=="string"?e:e==null?"":String(e)}var Xd=k$3({ngErrorCode:k$3}),mv=k$3({ngErrorMessage:k$3});k$3({ngTokenPath:k$3});function Ka(e,t){return Jd("",-200)}function Mi$2(e,t){throw new m$4(-201,false)}function Jd(e,t,n){let r=new m$4(t,e);return r[Xd]=t,r[mv]=e,r}function vv(e){return e[Xd]}var Fa;function ef(){return Fa}function de$3(e){let t=Fa;return Fa=e,t}function Xa(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;Mi$2();}var _e$2=globalThis;var Dv={},fn$3=Dv,Ev="__NG_DI_FLAG__",Pa=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=pn$3(n)||0;try{return this.injector.get(t,r&8?null:fn$3,r)}catch(o){if(zn$3(o))return o;throw o}}};function Iv(e,t=0){let n=gi$2();if(n===void 0)throw new m$4(-203,false);if(n===null)return Xa(e,void 0,t);{let r=wv(t),o=n.retrieve(e,r);if(zn$3(o)){if(r.optional)return null;throw o}return o}}function C$1(e,t=0){return (ef()||Iv)(J$5(e),t)}function g$3(e,t){return C$1(e,pn$3(t))}function pn$3(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wv(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function La(e){let t=[];for(let n=0;n<e.length;n++){let r=J$5(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$4(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Cv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(C$1(o,i));}else t.push(C$1(r));}return t}function Cv(e){return e[Ev]}function Bt$2(e,t){let n=e.hasOwnProperty(Fr);return n?e[Fr]:null}function tf(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 nf(e){return e.flat(Number.POSITIVE_INFINITY)}function Ni$2(e,t){e.forEach(n=>Array.isArray(n)?Ni$2(n,t):t(n));}function Ja(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 rf(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function of(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 xi$2(e,t,n){let r=Zn$3(e,t);return r>=0?e[r|1]=n:(r=~r,of(e,r,t,n)),r}function Ai$2(e,t){let n=Zn$3(e,t);if(n>=0)return e[n|1]}function Zn$3(e,t){return Tv(e,t,1)}function Tv(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$2={},re$3=[],It$1=new w(""),Ur=new w("",-1),ec=new w(""),Wn$3=class Wn{get(t,n=fn$3){if(n===fn$3){let o=Jd("",-201);throw o.name="\u0275NotFound",o}return n}};function wt$5(e){return {\u0275providers:e}}function sf(e){return wt$5([{provide:It$1,multi:true,useValue:e}])}function af(...e){return {\u0275providers:tc(true,e),\u0275fromNgModule:true}}function tc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return Ni$2(t,s=>{let a=s;vi$4(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&cf(o,i),n}function cf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];nc(o,i=>{t(i,r);});}}function vi$4(e,t,n,r){if(e=J$5(e),!e)return false;let o=null,i=ka(e),s=!i&&Et$4(e);if(!i&&!s){let c=e.ngModule;if(i=ka(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)vi$4(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Ni$2(i.imports,l=>{vi$4(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&cf(u,t);}if(!a){let u=Bt$2(o)||(()=>new o);t({provide:o,useFactory:u,deps:re$3},o),t({provide:ec,useValue:o,multi:true},o),t({provide:It$1,useValue:()=>C$1(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;nc(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function nc(e,t){for(let n of e)Wa(n)&&(n=n.\u0275providers),Array.isArray(n)?nc(n,t):t(n);}var bv=k$3({provide:String,useValue:k$3});function uf(e){return e!==null&&typeof e=="object"&&bv in e}function Sv(e){return !!(e&&e.useExisting)}function _v(e){return !!(e&&e.useFactory)}function hn$2(e){return typeof e=="function"}function lf(e){return !!e.useClass}var $r=new w(""),mi$2={},Wd={},Oa;function Yn$3(){return Oa===void 0&&(Oa=new Wn$3),Oa}var fe$4=class fe{},gn$3=class gn 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,Ba(t,s=>this.processProvider(s)),this.records.set(Ur,Gn$3(void 0,this)),o.has("environment")&&this.records.set(fe$4,Gn$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(ec,re$3,{self:true}));}retrieve(t,n){let r=pn$3(n)||0;try{return this.get(t,fn$3,r)}catch(o){if(zn$3(o))return o;throw o}}destroy(){kr(this),this._destroyed=true;let t=I$2(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),I$2(t);}}onDestroy(t){return kr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){kr(this);let n=Je$2(this),r=de$3(void 0);try{return t()}finally{Je$2(n),de$3(r);}}get(t,n=fn$3,r){if(kr(this),t.hasOwnProperty(Gd))return t[Gd](this);let o=pn$3(r),s=Je$2(this),a=de$3(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Rv(t)&&Vr(t);l&&this.injectableDefInScope(l)?u=Gn$3(ja(t),mi$2):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Yn$3():this.parent;return n=o&8&&n===fn$3?null:n,c.get(t,n)}catch(c){let u=vv(c);throw u===-200||u===-201?new m$4(u,null):c}finally{de$3(a),Je$2(s);}}resolveInjectorInitializers(){let t=I$2(null),n=Je$2(this),r=de$3(void 0);try{let i=this.get(It$1,re$3,{self:!0});for(let s of i)s();}finally{Je$2(n),de$3(r),I$2(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=J$5(t);let n=hn$2(t)?t:J$5(t&&t.provide),r=Nv(t);if(!hn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Gn$3(void 0,mi$2,true),o.factory=()=>La(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$2(null);try{if(n.value===Wd)throw Ka("");return n.value===mi$2&&(n.value=Wd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Av(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I$2(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=J$5(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 ja(e){let t=Vr(e),n=t!==null?t.factory:Bt$2(e);if(n!==null)return n;if(e instanceof w)throw new m$4(-204,false);if(e instanceof Function)return Mv(e);throw new m$4(-204,false)}function Mv(e){if(e.length>0)throw new m$4(-204,false);let n=gv(e);return n!==null?()=>n.factory(e):()=>new e}function Nv(e){if(uf(e))return Gn$3(void 0,e.useValue);{let t=rc(e);return Gn$3(t,mi$2)}}function rc(e,t,n){let r;if(hn$2(e)){let o=J$5(e);return Bt$2(o)||ja(o)}else if(uf(e))r=()=>J$5(e.useValue);else if(_v(e))r=()=>e.useFactory(...La(e.deps||[]));else if(Sv(e))r=(o,i)=>C$1(J$5(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=J$5(e&&(e.useClass||e.provide));if(xv(e))r=()=>new o(...La(e.deps));else return Bt$2(o)||ja(o)}return r}function kr(e){if(e.destroyed)throw new m$4(-205,false)}function Gn$3(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function xv(e){return !!e.deps}function Av(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Rv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Ba(e,t){for(let n of e)Array.isArray(n)?Ba(n,t):n&&Wa(n)?Ba(n.\u0275providers,t):t(n);}function Qn$3(e,t){let n;e instanceof gn$3?(kr(e),n=e):n=new Pa(e);let o=Je$2(n),i=de$3(void 0);try{return t()}finally{Je$2(o),de$3(i);}}function df(){return ef()!==void 0||gi$2()!=null}var Ve$4=0,E$1=1,T$3=2,ee$4=3,Me$3=4,ie$3=5,yn$3=6,Kn$3=7,Z$1=8,tt$3=9,He$4=10,L$2=11,Xn$3=12,oc=13,Ut$3=14,se$2=15,$t$1=16,vn$3=17,nt$3=18,rt$2=19,ic=20,vt$5=21,Ri$2=22,Vt$2=23,Ee$2=24,Dn$3=25,ot$3=26,V$5=27,ff=1,sc=6,zt$2=7,zr=8,En$3=9,W$4=10;function Ct$4(e){return Array.isArray(e)&&typeof e[ff]=="object"}function Ne$4(e){return Array.isArray(e)&&e[ff]===true}function ac(e){return (e.flags&4)!==0}function Tt$2(e){return e.componentOffset>-1}function Jn$3(e){return (e.flags&1)===1}function Ue$3(e){return !!e.template}function er$1(e){return (e[T$3]&512)!==0}function In$3(e){return (e[T$3]&256)===256}var cc="svg",pf="math";function xe$2(e){for(;Array.isArray(e);)e=e[Ve$4];return e}function uc(e,t){return xe$2(t[e])}function Ae$3(e,t){return xe$2(t[e.index])}function Oi$3(e,t){return e.data[t]}function Gr(e,t){return e[t]}function lc(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$4(n)?n:n[Ve$4]}function hf(e){return (e[T$3]&4)===4}function ki$2(e){return (e[T$3]&128)===128}function gf(e){return Ne$4(e[ee$4])}function Ie$4(e,t){return t==null?null:e[t]}function dc(e){e[vn$3]=0;}function fc(e){e[T$3]&1024||(e[T$3]|=1024,ki$2(e)&&wn$3(e));}function mf(e,t){for(;e>0;)t=t[Ut$3],e--;return t}function Wr(e){return !!(e[T$3]&9216||e[Ee$2]?.dirty)}function Fi$2(e){e[He$4].changeDetectionScheduler?.notify(8),e[T$3]&64&&(e[T$3]|=1024),Wr(e)&&wn$3(e);}function wn$3(e){e[He$4].changeDetectionScheduler?.notify(0);let t=Dt$1(e);for(;t!==null&&!(t[T$3]&8192||(t[T$3]|=8192,!ki$2(t)));)t=Dt$1(t);}function Pi$2(e,t){if(In$3(e))throw new m$4(911,false);e[vt$5]===null&&(e[vt$5]=[]),e[vt$5].push(t);}function yf(e,t){if(e[vt$5]===null)return;let n=e[vt$5].indexOf(t);n!==-1&&e[vt$5].splice(n,1);}function Dt$1(e){let t=e[ee$4];return Ne$4(t)?t[ee$4]:t}function pc(e){return e[Kn$3]??=[]}function hc(e){return e.cleanup??=[]}function vf(e,t,n,r){let o=pc(t);o.push(n),e.firstCreatePass&&hc(e).push(r,o.length-1);}var N$3={lFrame:Af(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Va=false;function Df(){return N$3.lFrame.elementDepthCount}function Ef(){N$3.lFrame.elementDepthCount++;}function gc(){N$3.lFrame.elementDepthCount--;}function Li$2(){return N$3.bindingsEnabled}function mc(){return N$3.skipHydrationRootTNode!==null}function yc(e){return N$3.skipHydrationRootTNode===e}function vc(){N$3.skipHydrationRootTNode=null;}function v$1(){return N$3.lFrame.lView}function j$3(){return N$3.lFrame.tView}function If(e){return N$3.lFrame.contextLView=e,e[Z$1]}function wf(e){return N$3.lFrame.contextLView=null,e}function Q$1(){let e=Dc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Dc(){return N$3.lFrame.currentTNode}function Cf(){let e=N$3.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function tr$1(e,t){let n=N$3.lFrame;n.currentTNode=e,n.isParent=t;}function Ec(){return N$3.lFrame.isParent}function Ic(){N$3.lFrame.isParent=false;}function Tf(){return N$3.lFrame.contextLView}function wc(){return Va}function Pr(e){let t=Va;return Va=e,t}function Cn$3(){let e=N$3.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ji$2(){return N$3.lFrame.bindingIndex}function bf(e){return N$3.lFrame.bindingIndex=e}function Gt$2(){return N$3.lFrame.bindingIndex++}function nr$1(e){let t=N$3.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Sf(){return N$3.lFrame.inI18n}function _f(e,t){let n=N$3.lFrame;n.bindingIndex=n.bindingRootIndex=e,Bi$2(t);}function Mf(){return N$3.lFrame.currentDirectiveIndex}function Bi$2(e){N$3.lFrame.currentDirectiveIndex=e;}function Nf(e){let t=N$3.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Vi$2(){return N$3.lFrame.currentQueryIndex}function qr(e){N$3.lFrame.currentQueryIndex=e;}function Ov(e){let t=e[E$1];return t.type===2?t.declTNode:t.type===1?e[ie$3]:null}function Cc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Ov(i),o===null||(i=i[Ut$3],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=N$3.lFrame=xf();return r.currentTNode=t,r.lView=e,true}function Hi$2(e){let t=xf(),n=e[E$1];N$3.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function xf(){let e=N$3.lFrame,t=e===null?null:e.child;return t===null?Af(e):t}function Af(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 Rf(){let e=N$3.lFrame;return N$3.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Tc=Rf;function Ui$2(){let e=Rf();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 Of(e){return (N$3.lFrame.contextLView=mf(e,N$3.lFrame.contextLView))[Z$1]}function Oe$3(){return N$3.lFrame.selectedIndex}function Wt$1(e){N$3.lFrame.selectedIndex=e;}function rr$1(){let e=N$3.lFrame;return Oi$3(e.tView,e.selectedIndex)}function kf(){N$3.lFrame.currentNamespace=cc;}function Ff(){kv();}function kv(){N$3.lFrame.currentNamespace=null;}function bc(){return N$3.lFrame.currentNamespace}var Pf=true;function $i$2(){return Pf}function Zr(e){Pf=e;}function Ha(e,t=null,n=null,r){let o=Sc(e,t,n);return o.resolveInjectorInitializers(),o}function Sc(e,t=null,n=null,r,o=new Set){let i=[n||re$3,af(e)];return new gn$3(i,t||Yn$3(),null,o)}var pe$3=class e{static THROW_IF_NOT_FOUND=fn$3;static NULL=new Wn$3;static create(t,n){if(Array.isArray(t))return Ha({name:""},n,t);{let r=t.name??"";return Ha({name:r},t.parent,t.providers)}}static \u0275prov=x({token:e,providedIn:"any",factory:()=>C$1(Ur)});static __NG_ELEMENT_ID__=-1},U$6=new w(""),we$1=(()=>{class e{static __NG_ELEMENT_ID__=Fv;static __NG_ENV_ID__=n=>n}return e})(),Di$2=class Di extends we$1{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return In$3(this._lView)}onDestroy(t){let n=this._lView;return Pi$2(n,t),()=>yf(n,t)}};function Fv(){return new Di$2(v$1())}var _c=false,Lf=new w(""),qt$1=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Tr(false);debugTaskTracker=g$3(Lf,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new A$1(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ua=class extends ce$4{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,df()&&(this.destroyRef=g$3(we$1,{optional:true})??void 0,this.pendingTasks=g$3(qt$1,{optional:true})??void 0);}emit(t){let n=I$2(null);try{super.next(t);}finally{I$2(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c);}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof X$4&&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$5=Ua;function Ei$2(...e){}function Mc(e){let t,n;function r(){e=Ei$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 jf(e){return queueMicrotask(()=>e()),()=>{e=Ei$2;}}var Nc="isAngularZone",Lr=Nc+"_ID",Pv=0,G$2=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new yt$5(false);onMicrotaskEmpty=new yt$5(false);onStable=new yt$5(false);onError=new yt$5(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=_c}=t;if(typeof Zone>"u")throw new m$4(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(Nc)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m$4(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m$4(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,Lv,Ei$2,Ei$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)}},Lv={};function xc(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 jv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Mc(()=>{e.callbackScheduled=false,$a$1(e),e.isCheckStableRunning=true,xc(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),$a$1(e);}function Bv(e){let t=()=>{jv(e);},n=Pv++;e._inner=e._inner.fork({name:"angular",properties:{[Nc]:true,[Lr]:n,[Lr+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(Vv(c))return r.invokeTask(i,s,a,c);try{return qd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Zd(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return qd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Hv(c)&&t(),Zd(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,$a$1(e),xc(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 $a$1(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function qd(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Zd(e){e._nesting--,xc(e);}var jr=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new yt$5;onMicrotaskEmpty=new yt$5;onStable=new yt$5;onError=new yt$5;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 Vv(e){return Bf(e,"__ignore_ng_zone__")}function Hv(e){return Bf(e,"__scheduler_tick__")}function Bf(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Se$3=class Se{_console=console;handleError(t){this._console.error("ERROR",t);}},$e$4=new w("",{factory:()=>{let e=g$3(G$2),t=g$3(fe$4),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Se$3),n.handleError(r));});}}}),Vf={provide:It$1,useValue:()=>{g$3(Se$3,{optional:true});},multi:true},Uv=new w("",{factory:()=>{let e=g$3(U$6).defaultView;if(!e)return;let t=g$3($e$4),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$3(we$1).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function $v(){return wt$5([sf(()=>{g$3(Uv);})])}function zi$2(e,t){let [n,r,o]=Ma(e,t?.equal),i=n;i[q$3];return i.set=r,i.update=o,i.asReadonly=Yr.bind(i),i}function Yr(){let e=this[q$3];if(e.readonlyFn===void 0){let t=()=>this();t[q$3]=e,e.readonlyFn=t;}return e.readonlyFn}var Qr=new w("",{factory:()=>zv}),zv="ng";var Gi$2=new w(""),Kr=new w("",{providedIn:"platform",factory:()=>"unknown"}),Gv=new w(""),Xr=new w("",{factory:()=>g$3(U$6).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var or$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Wv}return e})();function Wv(){return new or$1(v$1(),Q$1())}var Be$4=class Be{},ir$1=new w("",{factory:()=>true});var Wi$2=new w(""),qi$2=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new za})}return e})(),za=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}},Ii$2=class Ii{[q$3];constructor(t){this[q$3]=t;}destroy(){this[q$3].destroy();}};function Hf(e,t){let n=t?.injector??g$3(pe$3),r=t?.manualCleanup!==true?n.get(we$1):null,o,i=n.get(or$1,null,{optional:true}),s=n.get(Be$4);return i!==null?(o=Yv(i.view,s,e),r instanceof Di$2&&r._lView===i.view&&(r=null)):o=Qv(e,n.get(qi$2),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ii$2(o)}var Uf=z$4(P$2({},Na),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Pr(false);try{xa(this);}finally{Pr(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=I$2(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],I$2(e);}}}),qv=z$4(P$2({},Uf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Lt$1(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),Zv=z$4(P$2({},Uf),{consumerMarkedDirty(){this.view[T$3]|=8192,wn$3(this.view),this.notifier.notify(13);},destroy(){if(Lt$1(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Vt$2]?.delete(this);}});function Yv(e,t,n){let r=Object.create(Zv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=$f(r,n),e[Vt$2]??=new Set,e[Vt$2].add(r),r.consumerMarkedDirty(r),r}function Qv(e,t,n){let r=Object.create(qv);return r.fn=$f(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 $f(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function Jr(e){return typeof e=="function"&&e[q$3]!==void 0}function Zi$1(e){return Jr(e)&&typeof e.set=="function"}var eo$1=(()=>{class e{internalPendingTasks=g$3(qt$1);scheduler=g$3(Be$4);errorHandler=g$3($e$4);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({token:e,providedIn:"root",factory:()=>new e})}return e})();function po$2(e){return {toString:e}.toString()}var R$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})(R$3||{}),rs$1=class rs{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function Ap(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var Rp=null,Tu=(()=>{Rp=zf;let e=()=>zf;return e.ngInherit=true,e})();function aD(){return Rp}function zf(e){return e.type.prototype.ngOnChanges&&(e.setInput=uD),cD}function cD(){let e=Op(this),t=e?.current;if(t){let n=e.previous;if(n===Ht$2)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function uD(e,t,n,r,o){let i=this.declaredInputs[r],s=Op(e)||lD(e,{previous:Ht$2,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new rs$1(u&&u.currentValue,n,c===Ht$2),Ap(e,t,o,n);}var Uc="__ngSimpleChanges__";function Op(e){return Object.hasOwn(e,Uc)&&e[Uc]||null}function lD(e,t){return e[Uc]=t}var Gf=[];var F$6=function(e,t=null,n){for(let r=0;r<Gf.length;r++){let o=Gf[r];o(e,t,n);}};function dD(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=aD()(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 kp(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 Ji$2(e,t,n){Fp(e,t,3,n);}function es$1(e,t,n,r){(e[T$3]&3)===n&&Fp(e,t,n,r);}function Ac(e,t){let n=e[T$3];(n&3)===t&&(n&=16383,n+=1,e[T$3]=n);}function Fp(e,t,n,r){let o=r!==void 0?e[vn$3]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[vn$3]+=65536),(a<i||i==-1)&&(fD(e,n,t,c),e[vn$3]=(e[vn$3]&4294901760)+c+2),c++;}function Wf(e,t){F$6(R$3.LifecycleHookStart,e,t);let n=I$2(null);try{t.call(e);}finally{I$2(n),F$6(R$3.LifecycleHookEnd,e,t);}}function fD(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[T$3]>>14<e[vn$3]>>16&&(e[T$3]&3)===t&&(e[T$3]+=16384,Wf(a,i)):Wf(a,i);}var ar$1=-1,bn$3=class bn{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 pD(e){return (e.flags&8)!==0}function hD(e){return (e.flags&16)!==0}function gD(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];mD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Pp(e){return e===3||e===4||e===6}function mD(e){return e.charCodeAt(0)===64}function cr$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?qf(e,n,o,null,t[++r]):qf(e,n,o,null,null));}}return e}function qf(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 Lp(e){return e!==ar$1}function os$1(e){return e&32767}function yD(e){return e>>16}function is$1(e,t){let n=yD(e),r=t;for(;n>0;)r=r[Ut$3],n--;return r}var $c=true;function ss$1(e){let t=$c;return $c=e,t}var vD=256,jp=vD-1,Bp=5,DD=0,it$2={};function ED(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(mn$3)&&(r=n[mn$3]),r==null&&(r=n[mn$3]=DD++);let o=r&jp,i=1<<o;t.data[e+(o>>Bp)]|=i;}function as$1(e,t){let n=Vp(e,t);if(n!==-1)return n;let r=t[E$1];r.firstCreatePass&&(e.injectorIndex=t.length,Rc(r.data,e),Rc(t,null),Rc(r.blueprint,null));let o=bu(e,t),i=e.injectorIndex;if(Lp(o)){let s=os$1(o),a=is$1(o,t),c=a[E$1].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Rc(e,t){e.push(0,0,0,0,0,0,0,0,t);}function Vp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function bu(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=Wp(o),r===null)return ar$1;if(n++,o=o[Ut$3],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ar$1}function zc(e,t,n){ED(e,t,n);}function ID(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(Pp(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 Hp(e,t,n){if(n&8||e!==void 0)return e;Mi$2();}function Up(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[tt$3],i=de$3(void 0);try{return o?o.get(t,r,n&8):Xa(t,r,n&8)}finally{de$3(i);}}return Hp(r,t,n)}function $p(e,t,n,r=0,o){if(e!==null){if(t[T$3]&2048&&!(r&2)){let s=bD(e,t,n,r,it$2);if(s!==it$2)return s}let i=zp(e,t,n,r,it$2);if(i!==it$2)return i}return Up(t,n,r,o)}function zp(e,t,n,r,o){let i=CD(n);if(typeof i=="function"){if(!Cc(t,e,r))return r&1?Hp(o,n,r):Up(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Mi$2(n);else return s}finally{Tc();}}else if(typeof i=="number"){let s=null,a=Vp(e,t),c=ar$1,u=r&1?t[se$2][ie$3]:null;for((a===-1||r&4)&&(c=a===-1?bu(e,t):t[a+8],c===ar$1||!Yf(r,false)?a=-1:(s=t[E$1],a=os$1(c),t=is$1(c,t)));a!==-1;){let l=t[E$1];if(Zf(i,a,l.data)){let d=wD(a,t,n,s,r,u);if(d!==it$2)return d}c=t[a+8],c!==ar$1&&Yf(r,t[E$1].data[a+8]===u)&&Zf(i,a,t)?(s=l,a=os$1(c),t=is$1(c,t)):a=-1;}}return o}function wD(e,t,n,r,o,i){let s=t[E$1],a=s.data[e+8],c=r==null?Tt$2(a)&&$c:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=ts$1(a,s,n,c,u);return l!==null?io$1(t,s,l,a,o):it$2}function ts$1(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&&Ue$3(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 bn$3){let a=i;if(a.resolving)throw Ka();let c=ss$1(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?de$3(a.injectImpl):null;Cc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&dD(n,s[n],t);}finally{d!==null&&de$3(d),ss$1(c),a.resolving=false,Tc();}}return i}function CD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(mn$3)?e[mn$3]:void 0;return typeof t=="number"?t>=0?t&jp:TD:t}function Zf(e,t,n){let r=1<<e;return !!(n[t+(e>>Bp)]&r)}function Yf(e,t){return !(e&2)&&!(e&1&&t)}var Zt$3=class Zt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return $p(this._tNode,this._lView,t,pn$3(r),n)}};function TD(){return new Zt$3(Q$1(),v$1())}function Gp(e){return po$2(()=>{let t=e.prototype.constructor,n=t[Fr]||Gc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Fr]||Gc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function Gc(e){return Ga(e)?()=>{let t=Gc(J$5(e));return t&&t()}:Bt$2(e)}function bD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[T$3]&2048&&!er$1(s);){let a=zp(i,s,n,r|2,it$2);if(a!==it$2)return a;let c=i.parent;if(!c){let u=s[ic];if(u){let l=u.get(n,it$2,r&-5);if(l!==it$2)return l}c=Wp(s),s=s[Ut$3];}i=c;}return o}function Wp(e){let t=e[E$1],n=t.type;return n===2?t.declTNode:n===1?e[ie$3]:null}function Su(e){return ID(Q$1(),e)}function Ce$4(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function SD(){return hr$2(Q$1(),v$1())}function hr$2(e,t){return new Kt$2(Ae$3(e,t))}var Kt$2=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=SD}return e})();function qp(e){return e instanceof Kt$2?e.nativeElement:e}function _D(){return this._results[Symbol.iterator]()}var cs=class{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ce$4}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=nf(t);(this._changesDetected=!tf(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]=_D};function Zp(e){return (e.flags&128)===128}var _u=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(_u||{}),Yp=new Map,MD=0;function ND(){return MD++}function xD(e){Yp.set(e[rt$2],e);}function Wc(e){Yp.delete(e[rt$2]);}var Qf="__ngContext__";function ur$1(e,t){Ct$4(t)?(e[Qf]=t[rt$2],xD(t)):e[Qf]=t;}function Qp(e){return Xp(e[Xn$3])}function Kp(e){return Xp(e[Me$3])}function Xp(e){for(;e!==null&&!Ne$4(e);)e=e[Me$3];return e}var qc;function Mu(e){qc=e;}function Nu(){if(qc!==void 0)return qc;if(typeof document<"u")return document;throw new m$4(210,false)}var Jp="r";var eh="di";var AD=new w(""),th=false,nh=new w("",{factory:()=>th});var rh=new w("");var Kf=new WeakMap;function RD(e,t){if(e==null||typeof e!="object")return;let n=Kf.get(e);n||(n=new WeakSet,Kf.set(e,n)),n.add(t);}function Cs(e){return (e.flags&32)===32}var FD=()=>null;function oh(e,t,n=false){return FD()}function ih(e,t){let n=e.contentQueries;if(n!==null){let r=I$2(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];qr(i),a.contentQueries(2,t[s],s);}}}finally{I$2(r);}}}function Zc(e,t,n){qr(0);let r=I$2(null);try{t(e,n);}finally{I$2(r);}}function xu(e,t,n){if(ac(t)){let r=I$2(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{I$2(r);}}}var We$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})(We$3||{});var Yi$2;function PD(){if(Yi$2===void 0&&(Yi$2=null,_e$2.trustedTypes))try{Yi$2=_e$2.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Yi$2}function Ts(e){return PD()?.createHTML(e)||e}var Qi$2;function sh(){if(Qi$2===void 0&&(Qi$2=null,_e$2.trustedTypes))try{Qi$2=_e$2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Qi$2}function Xf(e){return sh()?.createHTML(e)||e}function Jf(e){return sh()?.createScriptURL(e)||e}var bt$4=class bt{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${wi$2})`}},Yc=class extends bt$4{getTypeName(){return "HTML"}},Qc=class extends bt$4{getTypeName(){return "Style"}},Kc=class extends bt$4{getTypeName(){return "Script"}},Xc=class extends bt$4{getTypeName(){return "URL"}},Jc=class extends bt$4{getTypeName(){return "ResourceURL"}};function Te$2(e){return e instanceof bt$4?e.changingThisBreaksApplicationSecurity:e}function at$3(e,t){let n=ah(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${wi$2})`)}return n===t}function ah(e){return e instanceof bt$4&&e.getTypeName()||null}function Au(e){return new Yc(e)}function Ru(e){return new Qc(e)}function Ou(e){return new Kc(e)}function ku(e){return new Xc(e)}function Fu(e){return new Jc(e)}function LD(e){let t=new tu(e);return jD()?new eu(t):t}var eu=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Ts(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},tu=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=Ts(t),n}};function jD(){try{return !!new window.DOMParser().parseFromString(Ts(""),"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$5(e){let t={};for(let n of e.split(","))t[n]=true;return t}function go$1(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var ch=St$5("area,br,col,hr,img,wbr"),uh=St$5("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),lh=St$5("rp,rt"),VD=go$1(lh,uh),HD=go$1(uh,St$5("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")),UD=go$1(lh,St$5("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")),ep=go$1(ch,HD,UD,VD),dh=St$5("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),$D=St$5("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"),zD=St$5("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"),GD=go$1(dh,$D,zD),WD=St$5("script,style,template"),nu=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=YD(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=ZD(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=tp(t).toLowerCase();if(!ep.hasOwnProperty(n))return this.sanitizedSomething=true,!WD.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(!GD.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;dh[a]&&(c=ho$1(c)),this.buf.push(" ",s,'="',np(c),'"');}return this.buf.push(">"),true}endElement(t){let n=tp(t).toLowerCase();ep.hasOwnProperty(n)&&!ch.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(np(t));}};function qD(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function ZD(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw fh(t);return t}function YD(e){let t=e.firstChild;if(t&&qD(e,t))throw fh(t);return t}function tp(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function fh(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var QD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,KD=/([^\#-~ |!])/g;function np(e){return e.replace(/&/g,"&amp;").replace(QD,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(KD,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Ki$2;function bs(e,t){let n=null;try{Ki$2=Ki$2||LD(e);let r=t?String(t):"";n=Ki$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=Ki$2.getInertBodyElement(r);}while(r!==i);let a=new nu().sanitizeChildren(rp(n)||n);return Ts(a)}finally{if(n){let r=rp(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function rp(e){return "content"in e&&XD(e)?e.content:null}function XD(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var JD=/^>|^->|<!--|-->|--!>|<!-$/g,eE=/(<|>)/g,tE="\u200B$1\u200B";function nE(e){return e.replace(JD,t=>t.replace(eE,tE))}function rE(e,t){return e.createText(t)}function oE(e,t,n){e.setValue(t,n);}function iE(e,t){return e.createComment(nE(t))}function ph(e,t,n){return e.createElement(t,n)}function us$1(e,t,n,r,o){e.insertBefore(t,n,r,o);}function hh(e,t,n){e.appendChild(t,n);}function op(e,t,n,r,o){r!==null?us$1(e,t,n,r,o):hh(e,t,n);}function gh(e,t,n,r){e.removeChild(null,t,n,r);}function sE(e,t,n){e.setAttribute(t,"style",n);}function aE(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function mh(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&gD(e,t,r),o!==null&&aE(e,t,o),i!==null&&sE(e,t,i);}var ke$3=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(ke$3||{});function cE(e){let t=Pu();return t?Xf(t.sanitize(ke$3.HTML,e)||""):at$3(e,"HTML")?Xf(Te$2(e)):bs(Nu(),oe$2(e))}function yh(e){let t=Pu();return t?t.sanitize(ke$3.URL,e)||"":at$3(e,"URL")?Te$2(e):ho$1(oe$2(e))}function vh(e){let t=Pu();if(t)return Jf(t.sanitize(ke$3.RESOURCE_URL,e)||"");if(at$3(e,"ResourceURL"))return Jf(Te$2(e));throw new m$4(904,false)}var uE={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function lE(e,t){return uE[e.toLowerCase()]?.[t.toLowerCase()]===true?vh:yh}function dE(e,t,n){return lE(t,n)(e)}function Pu(){let e=v$1();return e&&e[He$4].sanitizer}function fE(e){return e.ownerDocument}function pE(e){return e instanceof Function?e():e}function hE(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 Dh="ng-template";function gE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&hE(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Lu(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 Lu(e){return e.type===4&&e.value!==Dh}function mE(e,t,n){let r=e.type===4&&!n?Dh:e.value;return t===r}function yE(e,t,n){let r=4,o=e.attrs,i=o!==null?EE(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!ze$4(r)&&!ze$4(c))return false;if(s&&ze$4(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!mE(e,c,n)||c===""&&t.length===1){if(ze$4(r))return false;s=true;}}else if(r&8){if(o===null||!gE(e,o,c,n)){if(ze$4(r))return false;s=true;}}else {let u=t[++a],l=vE(c,o,Lu(e),n);if(l===-1){if(ze$4(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ze$4(r))return false;s=true;}}}}return ze$4(r)||s}function ze$4(e){return (e&1)===0}function vE(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 IE(t,e)}function Eh(e,t,n=false){for(let r=0;r<t.length;r++)if(yE(e,t[r],n))return true;return false}function DE(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function EE(e){for(let t=0;t<e.length;t++){let n=e[t];if(Pp(n))return t}return e.length}function IE(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 wE(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 ip(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!==""&&!ze$4(s)&&(t+=ip(i,o),o=""),r=s,i=i||!ze$4(r);n++;}return o!==""&&(t+=ip(i,o)),t}function TE(e){return e.map(CE).join(",")}function bE(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(!ze$4(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var te$4={},st$3=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(st$3||{}),SE;function ju(e,t){return SE(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var ru=new WeakMap;function Ih(e){return e?e[Ut$3]??e:null}var no$1=new WeakSet;function _E(e,t,n){let r=ru.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=Ih(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 ME(e,t,n){let r=Ih(n),o=ru.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):ru.set(e,[{el:t,declarationView:r}]);}var Yt$2=new Set,Ss=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Ss||{}),ct$2=new w(""),sp=new Set;function ut$3(e){sp.has(e)||(sp.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var _s=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),Bu=[0,1,2,3],Vu=(()=>{class e{ngZone=g$3(G$2);scheduler=g$3(Be$4);errorHandler=g$3(Se$3,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g$3(ct$2,{optional:true});}execute(){let n=this.sequences.size>0;n&&F$6(R$3.AfterRenderHooksStart),this.executing=true;for(let r of Bu)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$6(R$3.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[Dn$3]??=[]).push(n),wn$3(r),r[T$3]|=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(Ss.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x({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?.[Dn$3];t&&(this.view[Dn$3]=t.filter(n=>n!==this));}};function NE(e,t){let n=t?.injector??g$3(pe$3);return ut$3("NgAfterNextRender"),AE(e,n,t,true)}function xE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function AE(e,t,n,r){let o=t.get(_s);o.impl??=t.get(Vu);let i=t.get(ct$2,null,{optional:true}),s=n?.manualCleanup!==true?t.get(we$1):null,a=t.get(or$1,null,{optional:true}),c=new so$1(o.impl,xE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Hu=new w("",{factory:()=>{let e=g$3(fe$4),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function wh(e,t,n){let r=e.get(Hu);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 RE(e,t){let n=e.get(Hu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function OE(e,t){let n=e.get(Hu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function kE(e,t){for(let[n,r]of t)wh(e,r.animateFns);}function ap(e,t,n,r){let o=e?.[ot$3]?.enter;t!==null&&o&&o.has(n.index)&&kE(r,o);}function cp(e,t,n,r){try{n.get(Ur);}catch(s){return r(false)}let o=e?.[ot$3];o?.enter?.has(t.index)&&RE(n,o.enter.get(t.index).animateFns);let i=FE(e,t,o);if(i.size===0){let s=false;if(e){let a=[];Ms(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Yt$2.add(e[rt$2]),wh(n,()=>PE(e,t,o||void 0,i,r),o||void 0);}function FE(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E$1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function PE(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&&Ms(e,t,i),i.length>0){let s=n||e?.[ot$3];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),jE(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Yt$2.delete(e[rt$2]),o(true);});}else e&&Yt$2.delete(e[rt$2]),o(false);}function Ms(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$1].type===2&&LE(s,n);}}let r=t.child;for(;r;)Ms(e,r,n),r=r.next;}function LE(e,t){let n=e[ot$3];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[E$1].firstChild;for(;r;)Ms(e,r,t),r=r.next;}function jE(e,t,n){t.then(()=>{e[ot$3]?.running===t&&(e[ot$3].running=void 0,Yt$2.delete(e[rt$2])),n(true);});}function sr$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Ne$4(o)?c=o:Ct$4(o)&&(u=true,o=o[Ve$4]);let l=xe$2(o);e===0&&r!==null?(ap(a,r,i,n),s==null?hh(t,r,l):us$1(t,r,l,s||null,true)):e===1&&r!==null?(ap(a,r,i,n),us$1(t,r,l,s||null,true),_E(i,l,a)):e===2?(a?.[ot$3]?.leave?.has(i.index)&&ME(i,l,a),no$1.delete(l),cp(a,i,n,d=>{if(no$1.has(l)){no$1.delete(l);return}gh(t,l,u,d);})):e===3&&(no$1.delete(l),cp(a,i,n,()=>{t.destroyNode(l);})),c!=null&&ZE(t,e,n,c,i,r,s);}}function BE(e,t){Ch(e,t),t[Ve$4]=null,t[ie$3]=null;}function VE(e,t,n,r,o,i){r[Ve$4]=o,r[ie$3]=t,xs(e,r,n,1,o,i);}function Ch(e,t){t[He$4].changeDetectionScheduler?.notify(9),xs(e,t,t[L$2],2,null,null);}function HE(e){let t=e[Xn$3];if(!t)return Oc(e[E$1],e);for(;t;){let n=null;if(Ct$4(t))n=t[Xn$3];else {let r=t[W$4];r&&(n=r);}if(!n){for(;t&&!t[Me$3]&&t!==e;)Ct$4(t)&&Oc(t[E$1],t),t=t[ee$4];t===null&&(t=e),Ct$4(t)&&Oc(t[E$1],t),n=t&&t[Me$3];}t=n;}}function Uu(e,t){let n=e[En$3],r=n.indexOf(t);n.splice(r,1);}function Ns(e,t){if(In$3(t))return;let n=t[L$2];n.destroyNode&&xs(e,t,n,3,null,null),HE(t);}function Oc(e,t){if(In$3(t))return;let n=I$2(null);try{t[T$3]&=-129,t[T$3]|=256,t[Ee$2]&&Lt$1(t[Ee$2]),$E(e,t),UE(e,t),t[E$1].type===1&&t[L$2].destroy();let r=t[$t$1];if(r!==null&&Ne$4(t[ee$4])){r!==t[ee$4]&&Uu(r,t);let o=t[nt$3];o!==null&&o.detachView(e);}Wc(t);}finally{I$2(n);}}function UE(e,t){let n=e.cleanup,r=t[Kn$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[Kn$3]=null);let o=t[vt$5];if(o!==null){t[vt$5]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Vt$2];if(i!==null){t[Vt$2]=null;for(let s of i)s.destroy();}}function $E(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 bn$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$6(R$3.LifecycleHookStart,a,c);try{c.call(a);}finally{F$6(R$3.LifecycleHookEnd,a,c);}}else {F$6(R$3.LifecycleHookStart,o,i);try{i.call(o);}finally{F$6(R$3.LifecycleHookEnd,o,i);}}}}}function Th(e,t,n){return zE(e,t.parent,n)}function zE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ve$4];if(Tt$2(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===We$3.None||o===We$3.Emulated)return null}return Ae$3(r,n)}function bh(e,t,n){return WE(e,t,n)}function GE(e,t,n){return e.type&40?Ae$3(e,n):null}var WE=GE;function $u(e,t,n,r){let o=Th(e,r,t),i=t[L$2],s=r.parent||t[ie$3],a=bh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)op(i,o,n[c],a,false);else op(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 ou(-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)?ou(-1,o):xe$2(o)}}else {if(n&128)return ro$1(e,t.next);if(n&32)return ju(t,e)()||xe$2(e[t.index]);{let r=Sh(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Dt$1(e[se$2]);return ro$1(o,r)}else return ro$1(e,t.next)}}}return null}function Sh(e,t){if(t!==null){let r=e[se$2][ie$3],o=t.projection;return r.projection[o]}return null}function ou(e,t){let n=W$4+e+1;if(n<t.length){let r=t[n],o=r[E$1].firstChild;if(o!==null)return ro$1(r,o)}return t[zt$2]}function zu(e,t,n,r,o,i,s){for(;n!=null;){let a=r[tt$3];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&ur$1(xe$2(c),r),n.flags|=2),!Cs(n))if(u&8)zu(e,t,n.child,r,o,i,false),sr$1(t,e,a,o,c,n,i,r);else if(u&32){let l=ju(n,r),d;for(;d=l();)sr$1(t,e,a,o,d,n,i,r);sr$1(t,e,a,o,c,n,i,r);}else u&16?_h(e,t,r,n,o,i):sr$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function xs(e,t,n,r,o,i){zu(n,r,e.firstChild,t,o,i,false);}function qE(e,t,n){let r=t[L$2],o=Th(e,n,t),i=n.parent||t[ie$3],s=bh(i,n,t);_h(r,0,t,n,o,s);}function _h(e,t,n,r,o,i){let s=n[se$2],c=s[ie$3].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];sr$1(t,e,n[tt$3],o,l,r,i,n);}else {let u=c,l=s[ee$4];Zp(r)&&(u.flags|=128),zu(e,t,u,l,o,i,true);}}function ZE(e,t,n,r,o,i,s){let a=r[zt$2],c=xe$2(r);a!==c&&sr$1(t,e,n,i,a,o,s);for(let u=W$4;u<r.length;u++){let l=r[u];xs(l[E$1],l,e,t,i,a);}}function YE(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$3.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=st$3.Important),e.setStyle(n,r,o,i));}}function Gu(e,t,n,r,o,i,s,a,c,u,l){let d=V$5+r,p=d+o,f=QE(d,p),h=typeof u=="function"?u():u;return f[E$1]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:false,ssrId:l}}function QE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:te$4);return n}function KE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Gu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Wu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ve$4]=o,d[T$3]=r|4|128|8|64|1024,(u!==null||e&&e[T$3]&2048)&&(d[T$3]|=2048),dc(d),d[ee$4]=d[Ut$3]=e,d[Z$1]=n,d[He$4]=s||e&&e[He$4],d[L$2]=a||e&&e[L$2],d[tt$3]=c||e&&e[tt$3]||null,d[ie$3]=i,d[rt$2]=ND(),d[yn$3]=l,d[ic]=u,d[se$2]=t.type==2?e[se$2]:d,d}function XE(e,t,n){let r=Ae$3(t,e),o=KE(n),i=e[He$4].rendererFactory,s=qu(e,Wu(e,o,null,Mh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Mh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Nh(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 qu(e,t){return e[Xn$3]?e[oc][Me$3]=t:e[Xn$3]=t,e[oc]=t,t}function JE(e=1){xh(j$3(),v$1(),Oe$3()+e);}function xh(e,t,n,r){if((t[T$3]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ji$2(t,i,n);}else {let i=e.preOrderHooks;i!==null&&es$1(t,i,0,n);}Wt$1(n);}var As=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(As||{});function Sn$3(e,t,n,r){let o=I$2(null);try{let[i,s,a]=e.inputs[n],c=null;(s&As.SignalBased)!==0&&(c=t[i][q$3]),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):Ap(t,c,i,r);}finally{I$2(o);}}function Ah(e,t,n,r,o){let i=Oe$3(),s=r&2;try{Wt$1(-1),s&&t.length>V$5&&xh(e,t,V$5,!1);let a=s?R$3.TemplateUpdateStart:R$3.TemplateCreateStart;F$6(a,o,n),n(r,o);}finally{Wt$1(i);let a=s?R$3.TemplateUpdateEnd:R$3.TemplateCreateEnd;F$6(a,o,n);}}function Rs(e,t,n){iI(e,t,n),(n.flags&64)===64&&sI(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 eI(e,t,n,r){let i=r.get(nh,th)||n===We$3.ShadowDom||n===We$3.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function rI(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Rh(e,t,n,r,o,i){let s=t[E$1];if(Ku(e,s,t,n,r)){Tt$2(e)&&oI(t,e.index);return}e.type&3&&(n=rI(n)),Oh(e,t,n,r,o,i);}function Oh(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 oI(e,t){let n=Re$4(t,e);n[T$3]&16||(n[T$3]|=64);}function iI(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Tt$2(n)&&XE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||as$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(ur$1(c,t),i!==null&&lI(t,s-r,c,a,n,i),Ue$3(a)){let u=Re$4(n.index,t);u[Z$1]=io$1(t,e,s,n);}}}function sI(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Mf();try{Wt$1(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Bi$2(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&aI(c,u);}}finally{Wt$1(-1),Bi$2(s);}}function aI(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function Zu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Eh(t,i.selectors,false)&&(r??=[],Ue$3(i)?r.unshift(i):r.push(i));}return r}function cI(e,t,n,r,o,i){let s=Ae$3(e,t);uI(t[L$2],s,i,e.value,n,r,o);}function uI(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?oe$2(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function lI(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Sn$3(r,n,c,u);}}function Yu(e,t,n,r,o){let i=V$5+n,s=t[E$1],a=o(s,t,e,r,n);t[i]=a,tr$1(e,true);let c=e.type===2;return c?(mh(t[L$2],a,e),(Df()===0||Jn$3(e))&&ur$1(a,t),Ef()):ur$1(a,t),$i$2()&&(!c||!Cs(e))&&$u(s,t,a,e),e}function Qu(e){let t=e;return Ec()?Ic():(t=t.parent,tr$1(t,false)),t}function dI(e,t){let n=e[tt$3];if(!n)return;let r;try{r=n.get($e$4,null);}catch(o){r=null;}r?.(t);}function Ku(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];Sn$3(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Sn$3(l,u,r,o),a=true;}return a}function fI(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=t.data[f],y=d[p+1];Sn$3(h,n[f],y,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(Sn$3(r,n[s],o,i),u=true),u}function pI(e,t){let n=Re$4(t,e),r=n[E$1];hI(r,n);let o=n[Ve$4];o!==null&&n[yn$3]===null&&(n[yn$3]=oh(o,n[tt$3])),F$6(R$3.ComponentStart);try{Xu(r,n,n[Z$1]);}finally{F$6(R$3.ComponentEnd,n[Z$1]);}}function hI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function Xu(e,t,n){Hi$2(t);try{let r=e.viewQuery;r!==null&&Zc(1,r,n);let o=e.template;o!==null&&Ah(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[nt$3]?.finishViewCreation(e),e.staticContentQueries&&ih(e,t),e.staticViewQueries&&Zc(2,e.viewQuery,n);let i=e.components;i!==null&&gI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[T$3]&=-5,Ui$2();}}function gI(e,t){for(let n=0;n<t.length;n++)pI(e,t[n]);}function yo$1(e,t,n,r){let o=I$2(null);try{let i=t.tView,a=e[T$3]&4096?4096:16,c=Wu(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[nt$3];return l!==null&&(c[nt$3]=l.createEmbeddedView(i)),Xu(i,c,n),c}finally{I$2(o);}}function lr$1(e,t){return !t||t.firstChild===null||Zp(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$2(i)),Ne$4(i)&&kh(i,r);let s=n.type;if(s&8)ao$1(e,t,n.child,r);else if(s&32){let a=ju(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=Sh(t,n);if(Array.isArray(a))r.push(...a);else {let c=Dt$1(t[se$2]);ao$1(c[E$1],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function kh(e,t){for(let n=W$4;n<e.length;n++){let r=e[n],o=r[E$1].firstChild;o!==null&&ao$1(r[E$1],r,o,t);}e[zt$2]!==e[Ve$4]&&t.push(e[zt$2]);}function Fh(e){if(e[Dn$3]!==null){for(let t of e[Dn$3])t.impl.addSequence(t);e[Dn$3].length=0;}}var Ph=[];function mI(e){return e[Ee$2]??yI(e)}function yI(e){let t=Ph.pop()??Object.create(DI);return t.lView=e,t}function vI(e){e.lView[Ee$2]!==e&&(e.lView=null,Ph.push(e));}var DI=z$4(P$2({},Ft$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{wn$3(e.lView);},consumerOnSignalRead(){this.lView[Ee$2]=this;}});function EI(e){let t=e[Ee$2]??Object.create(II);return t.lView=e,t}var II=z$4(P$2({},Ft$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Dt$1(e.lView);for(;t&&!Lh(t[E$1]);)t=Dt$1(t);t&&fc(t);},consumerOnSignalRead(){this.lView[Ee$2]=this;}});function Lh(e){return e.type!==2}function jh(e){if(e[Vt$2]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Vt$2])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[T$3]&8192);}}var wI=100;function Bh(e,t=0){let r=e[He$4].rendererFactory;r.begin?.();try{CI(e,t);}finally{r.end?.();}}function CI(e,t){let n=wc();try{Pr(!0),iu(e,t);let r=0;for(;Wr(e);){if(r===wI)throw new m$4(103,!1);r++,iu(e,1);}}finally{Pr(n);}}function TI(e,t,n,r){if(In$3(t))return;let o=t[T$3],i=false,s=false;Hi$2(t);let a=true,c=null,u=null;(Lh(e)?(u=mI(t),c=mt$3(u)):pi$3()===null?(a=false,u=EI(t),c=mt$3(u)):t[Ee$2]&&(Lt$1(t[Ee$2]),t[Ee$2]=null));try{dc(t),bf(e.bindingStartIndex),n!==null&&Ah(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Ji$2(t,f,null);}else {let f=e.preOrderHooks;f!==null&&es$1(t,f,0,null),Ac(t,0);}if(s||bI(t),jh(t),Vh(t,0),e.contentQueries!==null&&ih(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Ji$2(t,f);}else {let f=e.contentHooks;f!==null&&es$1(t,f,1),Ac(t,1);}_I(e,t);let d=e.components;d!==null&&Uh(t,d,0);let p=e.viewQuery;if(p!==null&&Zc(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Ji$2(t,f);}else {let f=e.viewHooks;f!==null&&es$1(t,f,2),Ac(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ri$2]){for(let f of t[Ri$2])f();t[Ri$2]=null;}i||(Fh(t),t[T$3]&=-73);}catch(l){throw wn$3(t),l}finally{u!==null&&(Pt$4(u,c),a&&vI(u)),Ui$2();}}function Vh(e,t){for(let n=Qp(e);n!==null;n=Kp(n))for(let r=W$4;r<n.length;r++){let o=n[r];Hh(o,t);}}function bI(e){for(let t=Qp(e);t!==null;t=Kp(t)){if(!(t[T$3]&2))continue;let n=t[En$3];for(let r=0;r<n.length;r++){let o=n[r];fc(o);}}}function SI(e,t,n){F$6(R$3.ComponentStart);let r=Re$4(t,e);try{Hh(r,n);}finally{F$6(R$3.ComponentEnd,r[Z$1]);}}function Hh(e,t){ki$2(e)&&iu(e,t);}function iu(e,t){let r=e[E$1],o=e[T$3],i=e[Ee$2],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Un$3(i)),s||=false,i&&(i.dirty=false),e[T$3]&=-9217,s)TI(r,e,r.template,e[Z$1]);else if(o&8192){let a=I$2(null);try{jh(e),Vh(e,1);let c=r.components;c!==null&&Uh(e,c,1),Fh(e);}finally{I$2(a);}}}function Uh(e,t,n){for(let r=0;r<t.length;r++)SI(e,t[r],n);}function _I(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];_f(s,i);let c=t[i];F$6(R$3.HostBindingsUpdateStart,c);try{a(2,c);}finally{F$6(R$3.HostBindingsUpdateEnd,c);}}}}finally{Wt$1(-1);}}function Ju(e,t){let n=wc()?64:1088;for(e[He$4].changeDetectionScheduler?.notify(t);e;){e[T$3]|=n;let r=Dt$1(e);if(er$1(e)&&!r)return e;e=r;}return null}function $h(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function zh(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$1];if(MI(o,t,e,n),r){let s=ou(n,e),a=t[L$2],c=a.parentNode(e[zt$2]);c!==null&&VE(o,e[ie$3],a,t,c,s);}let i=t[yn$3];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function Gh(e,t){let n=co$1(e,t);return n!==void 0&&Ns(n[E$1],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&&Uu(o,r),t>0&&(e[n-1][Me$3]=r[Me$3]);let i=Hr(e,W$4+t);BE(r[E$1],r);let s=i[nt$3];s!==null&&s.detachView(i[E$1]),r[ee$4]=null,r[Me$3]=null,r[T$3]&=-129;}return r}function MI(e,t,n,r){let o=W$4+r,i=n.length;r>0&&(n[o-1][Me$3]=t),r<i-W$4?(t[Me$3]=n[o],Ja(n,W$4+r,t)):(n.push(t),t[Me$3]=null),t[ee$4]=n;let s=t[$t$1];s!==null&&n!==s&&Wh(s,t);let a=t[nt$3];a!==null&&a.insertView(e),Fi$2(t),t[T$3]|=128;}function Wh(e,t){let n=e[En$3],r=t[ee$4];if(Ct$4(r))e[T$3]|=2;else {let o=r[ee$4][se$2];t[se$2]!==o&&(e[T$3]|=2);}n===null?e[En$3]=[t]:n.push(t);}var Qt$1=class Qt{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E$1];return ao$1(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[Z$1]}set context(t){this._lView[Z$1]=t;}get destroyed(){return In$3(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ee$4];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;}Ns(this._lView[E$1],this._lView);}onDestroy(t){Pi$2(this._lView,t);}markForCheck(){Ju(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[T$3]&=-129;}reattach(){Fi$2(this._lView),this._lView[T$3]|=128;}detectChanges(){this._lView[T$3]|=1024,Bh(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m$4(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=er$1(this._lView),n=this._lView[$t$1];n!==null&&!t&&Uu(n,this._lView),Ch(this._lView[E$1],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m$4(902,false);this._appRef=t;let n=er$1(this._lView),r=this._lView[$t$1];r!==null&&!n&&Wh(r,this._lView),Fi$2(this._lView);}};var dr$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=NI;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$1(i)}}return e})();function NI(){return Os(Q$1(),v$1())}function Os(e,t){return e.type&4?new dr$1(t,e,hr$2(e,t)):null}function gr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=xI(e,t,n,r,o),Sf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Cf();i.injectorIndex=s===null?-1:s.injectorIndex;}return tr$1(i,true),i}function xI(e,t,n,r,o){let i=Dc(),s=Ec(),a=s?i:i&&i.parent,c=e.data[t]=RI(e,a,n,t,r,o);return AI(e,c,i,s),c}function AI(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n));}function RI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return mc()&&(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:bc(),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 OI(e){let t=e[sc]??[],r=e[ee$4][L$2],o=[];for(let i of t)i.data[eh]!==void 0?o.push(i):kI(i,r);e[sc]=o;}function kI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Jp];for(;n<o;){let i=r.nextSibling;gh(t,r,false),r=i,n++;}}}var FI=()=>null,PI=()=>null;function ls$1(e,t){return FI()}function qh(e,t,n){return PI()}var Zh=class{},_n$3=class _n{},ks=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>LI()}return e})();function LI(){let e=v$1(),t=Q$1(),n=Re$4(t.index,e);return (Ct$4(n)?n:e)[L$2]}var Yh=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();function Qh(e){return e.debugInfo?.className||e.type.name||null}var ns$1={},ds$1=class ds{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,ns$1,r);return o!==ns$1||n===ns$1?o:this.parentInjector.get(t,n,r)}};function Fs(e,t,n){return e[t]=n}function jI(e,t){return e[t]}function he$3(e,t,n){if(n===te$4)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=he$3(e,t,n);return he$3(e,t+1,r)||o}function BI(e,t,n,r,o){let i=uo$1(e,t,n,r);return he$3(e,t+2,o)||i}function Kh(e,t,n,r,o,i){let s=uo$1(e,t,n,r);return uo$1(e,t+2,o,i)||s}function Tn$3(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&RD(o,i);let s=Tt$2(e)?Re$4(e.index,t):t;Ju(s,5);let a=t[Z$1],c=lp(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=lp(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function lp(e,t,n,r){let o=I$2(null);try{return F$6(R$3.OutputStart,t,n),n(r)!==!1}catch(i){return dI(e,i),false}finally{F$6(R$3.OutputEnd,t,n),I$2(o);}}function el(e,t,n,r,o,i,s,a){let c=Jn$3(e),u=false,l=null;if(!r&&c&&(l=HI(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(!VI(i)){let h=r?y=>r(xe$2(y[e.index])):e.index;Xh(h,t,n,i,a,f,false);}}return u}function VI(e){return e.startsWith("animation")||e.startsWith("transition")}function HI(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[Kn$3],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function Xh(e,t,n,r,o,i,s){let a=t.firstCreatePass?hc(t):null,c=pc(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function dp(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,fs$1(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,fs$1(e,t,i,r,r,o)),c}function fs$1(e,t,n,r,o,i){let s=t[n],a=t[E$1],u=a.data[n].outputs[r],d=s[u].subscribe(i);Xh(e.index,a,t,o,i,d,true);}function UI(){$I();}function $I(){let e=v$1(),t=j$3(),n=Q$1();if(t.firstCreatePass&&WI(t,n),n.controlDirectiveIndex===-1)return;ut$3("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new ps$1(e,t,n));}function zI(){GI();}function GI(){let e=v$1(),t=j$3(),n=rr$1();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new ps$1(e,t,n));}var ps$1=class ps{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];dp(this.tNode,this.lView,r,t,Tn$3(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];dp(this.tNode,this.lView,r,n,Tn$3(this.tNode,this.lView,t));}listenToDom(t,n){el(this.tNode,this.tView,this.lView,void 0,this.lView[L$2],t,n,Tn$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];Sn$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];Sn$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";fI(this.tNode,this.tView,this.lView,n,r,t);}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return false;let n=this.tView.data[this.tNode.customControlIndex];return (n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===true}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=true;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=true;let i=fp(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=fp(i.directive);s!==null&&r.push(...s);}}}return n}};function fp(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function WI(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}qI(e,t);}function qI(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(pp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(pp(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 pp(e,t){return ZI(e,t)&&YI(e,t+"Change")}function ZI(e,t){return t in e.inputs}function YI(e,t){return t in e.outputs}var su=Symbol("BINDING");var An$3=new w("");function hs$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=Ci$2(o,a);else if(i==2){let c=a,u=t[++s];r=Ci$2(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function ge$4(e,t=0){let n=v$1();if(n===null)return C$1(e,t);let r=Q$1();return $p(r,n,J$5(e),t)}function QI(){let e="invalid";throw new Error(e)}function Jh(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}JI(e,t,n,a,i,c,u);}i!==null&&r!==null&&KI(n,r,i);}function KI(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new m$4(-301,false);r.push(t[o],i);}}function XI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function JI(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&&Ue$3(f)&&(c=f,XI(e,n,p)),zc(as$1(n,t),e,f.type);}iw(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=Nh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=cr$1(n.mergedAttrs,f.hostAttrs),tw(e,n,t,d,f),ow(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++;}ew(e,n,i);}function ew(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))hp(0,t,o,r),hp(1,t,o,r),mp(t,r,false);else {let i=n.get(o);gp(0,t,i,r),gp(1,t,i,r),mp(t,r,true);}}}function hp(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),eg(t,i);}}function gp(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),eg(t,s);}}function eg(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function mp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Lu(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 tw(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Bt$2(o.type)),s=new bn$3(i,Ue$3(o),ge$4,null);e.blueprint[r]=s,n[r]=s,nw(e,t,r,Nh(e,n,o.hostVars,te$4),o);}function nw(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;rw(s)!=a&&s.push(a),s.push(n,r,i);}}function rw(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function ow(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ue$3(t)&&(n[""]=e);}}function iw(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function tl(e,t,n,r,o,i,s,a){let c=t[E$1],u=c.consts,l=Ie$4(u,s),d=gr$1(c,e,n,r,l);return Jh(c,t,d,Ie$4(u,a),o),d.mergedAttrs=cr$1(d.mergedAttrs,d.attrs),d.attrs!==null&&hs$1(d,d.attrs,false),d.mergedAttrs!==null&&hs$1(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function nl(e,t){kp(e,t),ac(t)&&e.queries.elementEnd(t);}function sw(e,t,n,r,o,i){let s=t.consts,a=Ie$4(s,o),c=gr$1(t,e,n,r,a);if(c.mergedAttrs=cr$1(c.mergedAttrs,c.attrs),i!=null){let u=Ie$4(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&hs$1(c,c.attrs,false),c.mergedAttrs!==null&&hs$1(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var tg=typeof ShadowRoot<"u",aw=typeof Document<"u";function cw(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&As.SignalBased)!==0};return o&&(i.transform=o),i})}function uw(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function lw(e,t,n){let r=t instanceof fe$4?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ds$1(n,r):n}function dw(e){let t=e.get(_n$3,null);if(t===null)throw new m$4(407,false);let n=e.get(Yh,null),r=e.get(Be$4,null),o=e.get(ct$2,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function fw(e,t){let n=ng(e);return ph(t,n,n==="svg"?cc:n==="math"?pf:null)}function pw(e){if(e?.toLowerCase()==="script")throw new m$4(905,false)}function ng(e){return (e.selectors[0][0]||"div").toLowerCase()}var Mn$3=class Mn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=cw(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=uw(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=TE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){F$6(R$3.DynamicComponentStart);let a=I$2(null);try{let c=this.componentDef,u=lw(c,o||this.ngModule,t),l=dw(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Qh(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{I$2(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=hw(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?eI(u,o,a.encapsulation,n):fw(a,u);pw(l?.tagName);let d=n.get(An$3,null),p=gw(l,()=>n.get(U$6,null)??Nu());d&&d.addHost(p);let f=s?.some(yp)||i?.some(D=>typeof D!="function"&&D.bindings.some(yp)),h=Wu(null,c,null,512|Mh(a),null,null,t,u,n,null,oh(l,n,true));d&&tg&&p instanceof ShadowRoot&&Pi$2(h,()=>{d.removeHost(p);}),h[V$5]=l,Hi$2(h);let y=null;try{let D=tl(V$5,h,2,"#host",()=>c.directiveRegistry,!0,0);mh(u,l,D),ur$1(l,h),Rs(c,h,D),xu(c,D,h),nl(c,D),r!==void 0&&yw(D,this.ngContentSelectors,r),y=Re$4(D.index,h),h[Z$1]=y[Z$1],Xu(c,h,null);}catch(D){throw y!==null&&Wc(y),Wc(h),D}finally{F$6(R$3.DynamicComponentEnd),Ui$2();}return new gs$1(this.componentType,h,!!f)}};function hw(e,t,n,r){let o=e?["ng-version","22.0.8"]:bE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[su].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[su].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=Si$1(d);c.push(p);}return Gu(0,null,mw(i,s),1,a,c,null,null,null,[o],null)}function gw(e,t){let n=e.getRootNode?.();return aw&&n instanceof Document?n.head:n&&tg&&n instanceof ShadowRoot?n:t().head}function mw(e,t){return !e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update();}}function yp(e){let t=e[su].kind;return t==="input"||t==="twoWay"}var gs$1=class gs extends Zh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Oi$3(n[E$1],V$5),this.location=hr$2(this._tNode,n),this.instance=Re$4(this._tNode.index,n)[Z$1],this.hostView=this.changeDetectorRef=new Qt$1(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;Ku(r,o[E$1],o,t,n);this.previousInputValues.set(t,n);let s=Re$4(r.index,o);Ju(s,1);}get injector(){return new Zt$3(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function yw(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 mr$1=(()=>{class e{static __NG_ELEMENT_ID__=vw}return e})();function vw(){let e=Q$1();return rg(e,v$1())}var au=class e extends mr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return hr$2(this._hostTNode,this._hostLView)}get injector(){return new Zt$3(this._hostTNode,this._hostLView)}get parentInjector(){let t=bu(this._hostTNode,this._hostLView);if(Lp(t)){let n=is$1(t,this._hostLView),r=os$1(t),o=n[E$1].data[r+8];return new Zt$3(o,n)}else return new Zt$3(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=vp(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=ls$1(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,lr$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 Mn$3(Et$4(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let _=this.parentInjector.get(fe$4,null);_&&(i=_);}let p=Et$4(l.componentType??{}),f=ls$1(this._lContainer,p?.id??null),h=null,y=l.create(d,o,h,i,s,a);return this.insertImpl(y.hostView,c,lr$1(this._hostTNode,f)),y}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(gf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[ee$4],u=new e(c,c[ie$3],c[ee$4]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return vo$1(s,o,i,r),t.attachToViewContainerRef(),Ja(kc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=vp(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(kc(this._lContainer),n),Ns(r[E$1],r));}detach(t){let n=this._adjustIndex(t,-1),r=co$1(this._lContainer,n);return r&&Hr(kc(this._lContainer),n)!=null?new Qt$1(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function vp(e){return e[zr]}function kc(e){return e[zr]||(e[zr]=[])}function rg(e,t){let n,r=t[e.index];return Ne$4(r)?n=r:(n=$h(r,t,null,e),t[e.index]=n,qu(t,n)),Ew(n,t,e,r),new au(n,e,t)}function Dw(e,t){let n=e[L$2],r=n.createComment(""),o=Ae$3(t,e),i=n.parentNode(o);return us$1(n,i,r,n.nextSibling(o),false),r}var Ew=Cw;function Cw(e,t,n,r){if(e[zt$2])return;let o;n.type&8?o=xe$2(r):o=Dw(t,n),e[zt$2]=o;}var cu=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},uu=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++)ol(t,n).matches!==null&&this.queries[n].setDirty();}},ms$1=class ms{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Mw(t):this.predicate=t;}},lu=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);}},du=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,Tw(n,i)),this.matchTNodeWithReadOption(t,n,ts$1(n,t,i,false,false));}else r===dr$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ts$1(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Kt$2||o===mr$1||o===dr$1&&n.type&4)this.addMatch(n.index,-2);else {let i=ts$1(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 Tw(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 bw(e,t){return e.type&11?hr$2(e,t):e.type&4?Os(e,t):null}function Sw(e,t,n,r){return n===-1?bw(t,e):n===-2?_w(e,t,r):io$1(e,e[E$1],n,t)}function _w(e,t,n){if(n===Kt$2)return hr$2(t,e);if(n===dr$1)return Os(t,e);if(n===mr$1)return rg(t,e)}function og(e,t,n,r){let o=t[nt$3].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(Sw(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function fu(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=og(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[ee$4]&&fu(p[E$1],p,u,r);}if(l[En$3]!==null){let d=l[En$3];for(let p=0;p<d.length;p++){let f=d[p];fu(f[E$1],f,u,r);}}}}}return r}function rl(e,t){return e[nt$3].queries[t].queryList}function ig(e,t,n){let r=new cs((n&4)===4);return vf(e,t,r,r.destroy),(t[nt$3]??=new uu).queries.push(new cu(r))-1}function sg(e,t,n){let r=j$3();return r.firstCreatePass&&(cg(r,new ms$1(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),ig(r,v$1(),t)}function ag(e,t,n,r){let o=j$3();if(o.firstCreatePass){let i=Q$1();cg(o,new ms$1(t,n,r),i.index),Nw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return ig(o,v$1(),n)}function Mw(e){return e.split(",").map(t=>t.trim())}function cg(e,t,n){e.queries===null&&(e.queries=new lu),e.queries.track(new du(t,n));}function Nw(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 ol(e,t){return e.queries.getByIndex(t)}function ug(e,t){let n=e[E$1],r=ol(n,t);return r.crossesNgTemplate?fu(n,e,t,[]):og(n,e,r,t)}function il(e,t,n){let r,o=Rr$1(()=>{r._dirtyCounter();let i=xw(r,e);if(t&&i===void 0)throw new m$4(-951,false);return i});return r=o[q$3],r._dirtyCounter=zi$2(0),r._flatValue=void 0,o}function sl(e){return il(true,false)}function al(e){return il(true,true)}function lg(e){return il(false,false)}function dg(e,t){let n=e[q$3];n._lView=v$1(),n._queryIndex=t,n._queryList=rl(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function xw(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[T$3]&4)return t?void 0:re$3;let o=rl(n,r),i=ug(n,r);return o.reset(i,qp),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Do$1(e){return !!e&&typeof e.then=="function"}function Ps(e){return !!e&&typeof e.subscribe=="function"}var Nn$3=class Nn{},fg=class{};var ys=class extends Nn$3{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Qd(t);this._bootstrapComponents=pE(i.bootstrap),this._r3Injector=Sc(t,n,[{provide:Nn$3,useValue:this},...r],Br(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);}},vs=class extends fg{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new ys(this.moduleType,t,[])}};var lo$1=class lo extends Nn$3{injector;instance=null;constructor(t){super();let n=new gn$3([...t.providers,{provide:Nn$3,useValue:this}],t.parent||Yn$3(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function pg(e,t,n=null){return new lo$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var Aw=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n;}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=tc(false,n.type),o=r.length>0?pg([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({token:e,providedIn:"environment",factory:()=>new e(C$1(fe$4))})}return e})();function Rw(e){return po$2(()=>{let t=hg(e),n=z$4(P$2({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==_u.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Aw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||We$3.Emulated,styles:e.styles||re$3,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ut$3("NgStandalone"),gg(n);let r=e.dependencies;return n.directiveDefs=Dp(r,Ow),n.pipeDefs=Dp(r,Kd),n.id=Pw(n),n})}function Ow(e){return Et$4(e)||Si$1(e)}function Eo$1(e){return po$2(()=>({type:e.type,bootstrap:e.bootstrap||re$3,declarations:e.declarations||re$3,imports:e.imports||re$3,exports:e.exports||re$3,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function kw(e,t){if(e==null)return Ht$2;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=As.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function Fw(e){if(e==null)return Ht$2;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ls(e){return po$2(()=>{let t=hg(e);return gg(t),t})}function Rn$3(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 hg(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$2,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||re$3,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:kw(e.inputs,t),outputs:Fw(e.outputs),debugInfo:null}}function gg(e){e.features?.forEach(t=>t(e));}function Dp(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 Pw(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 Lw(e){return wt$5([{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$3(cl,{optional:true})??[];injector=g$3(pe$3);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Qn$3(this.injector,o);if(Do$1(i))n.push(i);else if(Ps(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$4({token:e,factory:e.\u0275fac})}return e})();function jw(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function Bw(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=Vw,n.hostDirectives=r?e.map(pu):[e]):r?n.hostDirectives.unshift(...e.map(pu)):n.hostDirectives.unshift(e);};return t.ngInherit=true,t}function Vw(e){let t=[],n=false,r=null,o=null;for(let i=0;i<e.length;i++){let s=e[i];if(s.hostDirectives!==null){let a=t.length;r??=new Map,o??=new Map,mg(s,t,r,e),o.set(s,[a,t.length-1]);}i===0&&Ue$3(s)&&(n=true,t.push(s));}for(let i=n?1:0;i<e.length;i++)t.push(e[i]);return r!==null&&r.forEach((i,s)=>{Hw(s.declaredInputs,i.inputs);}),[t,r,o]}function mg(e,t,n,r){if(e.hostDirectives!==null)for(let o of e.hostDirectives)if(typeof o=="function"){let i=o();for(let s of i)Ep(pu(s),t,n,r);}else Ep(o,t,n,r);}function Ep(e,t,n,r){let o=Si$1(e.directive);if(mg(o,t,n,r),n.has(o)){let i=n.get(o);Ip(i,e.inputs,"input"),Ip(i,e.outputs,"output");}else r.includes(o)||(n.set(o,e),t.push(o));}function Ip(e,t,n){let r=n==="input"?e.inputs:e.outputs;Object.keys(t).forEach(o=>{let i=t[o];(!r.hasOwnProperty(o)||r[o]===i)&&(r[o]=i);});}function pu(e){return typeof e=="function"?{directive:J$5(e),inputs:{},outputs:{}}:{directive:J$5(e.directive),inputs:wp(e.inputs),outputs:wp(e.outputs)}}function wp(e){let t={};if(e!==void 0&&e.length>0)for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function Hw(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];e[r]=o;}}function Uw(e){return Object.getPrototypeOf(e.prototype).constructor}function yg(e){let t=Uw(e.type),n=true,r=[e];for(;t;){let o;if(Ue$3(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new m$4(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=Fc(e.inputs),s.declaredInputs=Fc(e.declaredInputs),s.outputs=Fc(e.outputs);let a=o.hostBindings;a&&qw(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Gw(e,c),u&&Ww(e,u),$w(e,o),Yd(e.outputs,o.outputs),Ue$3(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation);}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===yg&&(n=false);}}t=Object.getPrototypeOf(t);}zw(r);}function $w(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 zw(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=cr$1(o.hostAttrs,n=cr$1(n,o.hostAttrs));}}function Fc(e){return e===Ht$2?{}:e===re$3?[]:e}function Gw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function Ww(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function qw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function vg(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=cr$1(e.mergedAttrs,e.attrs);let l=e.tView=Gu(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),tr$1(e,false);let c=Yw(n,t);$i$2()&&$u(n,t,c,e),ur$1(c,t);let u=$h(c,t,c,e);t[r+V$5]=u,qu(t,u);}function Zw(e,t,n,r,o,i,s,a,c,u,l){let d=n+V$5,p;return t.firstCreatePass?(p=gr$1(t,d,4,s||null,a||null),Jh(t,e,p,Ie$4(t.consts,u),Zu),kp(t,p)):p=t.data[d],vg(p,e,t,n,r,o,i,c),Jn$3(p)&&Rs(t,e,p),u!=null&&mo$1(e,p,l),p}function fr$2(e,t,n,r,o,i,s,a,c,u,l){let d=n+V$5,p;if(t.firstCreatePass){if(p=gr$1(t,d,4,s||null,a||null),u!=null){let f=Ie$4(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 vg(p,e,t,n,r,o,i,c),u!=null&&mo$1(e,p,l),p}function Dg(e,t,n,r,o,i,s,a){let c=v$1(),u=j$3(),l=Ie$4(u.consts,i);return Zw(c,u,e,t,n,r,o,l,void 0,s,a),Dg}function Eg(e,t,n,r,o,i,s,a){let c=v$1(),u=j$3(),l=Ie$4(u.consts,i);return fr$2(c,u,e,t,n,r,o,l,void 0,s,a),Eg}var Yw=Qw;function Qw(e,t,n,r){return Zr(true),t[L$2].createComment("")}var Ig=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var ll=new w("");var dl=new w("");function wg(){_a(()=>{let e="";throw new m$4(600,e)});}var Kw=10;var yr$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g$3($e$4);afterRenderManager=g$3(_s);zonelessEnabled=g$3(ir$1);rootEffectScheduler=g$3(qi$2);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ce$4;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g$3(qt$1);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ue$3(n=>!n))}constructor(){g$3(ct$2,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g$3(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$2).run(()=>{if(F$6(R$3.BootstrapComponentStart),!this._injector.get(ul).done){let _="";throw new m$4(405,_)}let a=Et$4(n),c=this._injector.get(Nn$3),u=new Mn$3(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=Xw(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$6(R$3.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){F$6(R$3.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ss.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw F$6(R$3.ChangeDetectionEnd),new m$4(101,false);let n=I$2(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I$2(n),this.afterTick.next(),F$6(R$3.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(_n$3,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<Kw;){F$6(R$3.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{F$6(R$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&&!Wr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Bh(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})=>Wr(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$4(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$4({token:e,factory:e.\u0275fac})}return e})();function Xw(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$2();if(he$3(o,i,t)){j$3();let a=rr$1();cI(a,o,e,t,n,r);}return Cg}function Jw(){return v$1()[se$2][Z$1]}var hu=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 Pc(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function eC(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){I$2(r);let u=t.length-1;for(I$2(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Pc(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=Pc(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 Ds,i??=Tp(e,s,a,n),gu(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;)Cp(e,o,n,s,t[s]),s++;}else if(t!=null){I$2(r);let u=t[Symbol.iterator]();I$2(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Pc(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new Ds,i??=Tp(e,s,a,n);let h=n(s,p);if(gu(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;)Cp(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 gu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function Cp(e,t,n,r,o){if(gu(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function Tp(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 Ds=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function tC(e,t,n,r,o,i,s,a){ut$3("NgControlFlow");let c=v$1(),u=j$3(),l=Ie$4(u.consts,i);return fr$2(c,u,e,t,n,r,o,l,256,s,a),fl}function fl(e,t,n,r,o,i,s,a){ut$3("NgControlFlow");let c=v$1(),u=j$3(),l=Ie$4(u.consts,i);return fr$2(c,u,e,t,n,r,o,l,512,s,a),fl}function nC(e,t){ut$3("NgControlFlow");let n=v$1(),r=Gt$2(),o=n[r]!==te$4?n[r]:-1,i=o!==-1?Es(n,V$5+o):void 0,s=0;if(he$3(n,r,e)){let a=I$2(null);try{if(i!==void 0&&Gh(i,s),e!==-1){let c=V$5+e,u=Es(n,c),l=Du(n[E$1],c),d=qh(u,l,n),p=yo$1(n,l,t,{dehydratedView:d});vo$1(u,p,s,lr$1(l,d));}}finally{I$2(a);}}else if(i!==void 0){let a=zh(i,s);a!==void 0&&(a[Z$1]=t);}}var mu=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 rC(e){return e}function oC(e,t){return t}var yu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function iC(e,t,n,r,o,i,s,a,c,u,l,d,p){ut$3("NgControlFlow");let f=v$1(),h=j$3(),y=c!==void 0,D=v$1(),_=a?s.bind(D[se$2][Z$1]):s,$=new yu(y,_);D[V$5+e]=$,fr$2(f,h,e+1,t,n,r,o,Ie$4(h.consts,i),256);}var vu=class extends hu{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)[Z$1].$implicit}attach(t,n){let r=n[yn$3];this.needsIndexUpdate||=t!==this.length,vo$1(this.lContainer,n,t,lr$1(this.templateTNode,r)),aC(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,cC(this.lContainer,t),uC(this.lContainer,t)}create(t,n){let r=ls$1(this.lContainer,this.templateTNode.tView.ssrId);return yo$1(this.hostLView,this.templateTNode,new mu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Ns(t[E$1],t);}updateValue(t,n){this.getLView(t)[Z$1].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Z$1].$index=t;}getLView(t){return lC(this.lContainer,t)}};function sC(e){let t=I$2(null),n=Oe$3();try{let r=v$1(),o=r[E$1],i=r[n],s=n+1,a=Es(r,s);if(i.liveCollection===void 0){let u=Du(o,s);i.liveCollection=new vu(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(eC(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Gt$2(),l=c.length===0;if(he$3(r,u,l)){let d=n+2,p=Es(r,d);if(l){let f=Du(o,d),h=qh(p,f,r),y=yo$1(r,f,void 0,{dehydratedView:h});vo$1(p,y,0,lr$1(f,h));}else o.firstUpdatePass&&OI(p),Gh(p,0);}}}finally{I$2(t);}}function Es(e,t){return e[t]}function aC(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[ot$3]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[tt$3];OE(i,o),Yt$2.delete(r[rt$2]),o.detachedLeaveAnimationFns=void 0;}}function cC(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[ot$3]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function uC(e,t){return co$1(e,t)}function lC(e,t){return zh(e,t)}function Du(e,t){return Oi$3(e,t)}function Tg(e,t,n){let r=v$1(),o=Gt$2();if(he$3(r,o,t)){j$3();let s=rr$1();Rh(s,r,e,t,r[L$2],n);}return Tg}function Eu(e,t,n,r,o){Ku(t,e,n,o?"class":"style",r);}function Is(e,t,n,r){let o=v$1(),i=o[E$1],s=e+V$5,a=i.firstCreatePass?tl(s,o,2,t,Zu,Li$2(),n,r):i.data[s];if(Tt$2(a)){let c=o[He$4].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Qh(u),()=>(bp(e,t,o,a,r),Is))}}return bp(e,t,o,a,r),Is}function bp(e,t,n,r,o){if(Yu(r,n,e,t,_g),Jn$3(r)){let i=n[E$1];Rs(i,n,r),xu(i,r,n);}o!=null&&mo$1(n,r);}function pl(){let e=j$3(),t=Q$1(),n=Qu(t);return e.firstCreatePass&&nl(e,n),yc(n)&&vc(),gc(),n.classesWithoutHost!=null&&pD(n)&&Eu(e,n,v$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&hD(n)&&Eu(e,n,v$1(),n.stylesWithoutHost,false),pl}function bg(e,t,n,r){return Is(e,t,n,r),pl(),bg}function hl(e,t,n,r){let o=v$1(),i=o[E$1],s=e+V$5,a=i.firstCreatePass?sw(s,i,2,t,n,r):i.data[s];return Yu(a,o,e,t,_g),r!=null&&mo$1(o,a),hl}function gl(){let e=Q$1(),t=Qu(e);return yc(t)&&vc(),gc(),gl}function Sg(e,t,n,r){return hl(e,t,n,r),gl(),Sg}var _g=(e,t,n,r,o)=>(Zr(true),ph(t[L$2],r,bc()));function ml(e,t,n){let r=v$1(),o=r[E$1],i=e+V$5,s=o.firstCreatePass?tl(i,r,8,"ng-container",Zu,Li$2(),t,n):o.data[i];if(Yu(s,r,e,"ng-container",dC),Jn$3(s)){let a=r[E$1];Rs(a,r,s),xu(a,s,r);}return n!=null&&mo$1(r,s),ml}function yl(){let e=j$3(),t=Q$1(),n=Qu(t);return e.firstCreatePass&&nl(e,n),yl}function Mg(e,t,n){return ml(e,t,n),yl(),Mg}var dC=(e,t,n,r,o)=>(Zr(true),iE(t[L$2],""));function fC(){return v$1()}function Ng(e,t,n){let r=v$1(),o=Gt$2();if(he$3(r,o,t)){j$3();let s=rr$1();Oh(s,r,e,t,r[L$2],n);}return Ng}var to$2=void 0;function pC(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var hC=["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$2,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],to$2,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",to$2,to$2,to$2],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",pC],Lc=Object.create(null);function me$3(e){let t=gC(e),n=Sp(t);if(n)return n;let r=t.split("-")[0];if(n=Sp(r),n)return n;if(r==="en")return hC;throw new m$4(701,false)}function Sp(e){if(!(e in Lc)){let t=_e$2.ng&&_e$2.ng.common&&_e$2.ng.common.locales&&_e$2.ng.common.locales[e];return t!==void 0&&(Lc[e]=t),t}return Lc[e]}var Y$2={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,ExtraData:21};function gC(e){return e.toLowerCase().replace(/_/g,"-")}var Io$1="en-US";function xg(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function Ag(e,t,n){let r=v$1(),o=j$3(),i=Q$1();return Og(o,r,r[L$2],i,e,t,n),Ag}function Rg(e,t,n){let r=v$1(),o=j$3(),i=Q$1();return (i.type&3||n)&&el(i,o,r,n,r[L$2],e,t,Tn$3(i,r,t)),Rg}function Og(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=Tn$3(r,t,i),el(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??=Tn$3(r,t,i),fs$1(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=Tn$3(r,t,i),fs$1(r,t,d,o,o,c);}}function yC(e=1){return Of(e)}function vC(e,t){let n=null,r=DE(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Eh(e,i,true):wE(r,i))return o}return n}function DC(e){let t=v$1()[se$2][ie$3];if(!t.projection){let n=e?e.length:1,r=t.projection=rf(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?vC(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function EC(e,t=0,n,r,o,i){let s=v$1(),a=j$3(),c=null;let u=gr$1(a,V$5+e,16,null,null);u.projection===null&&(u.projection=t),Ic();let d=!s[yn$3]||mc();s[se$2][ie$3].projection[u.projection]===null&&c!==null?IC(s,a,c):d&&!Cs(u)&&qE(a,s,u);}function IC(e,t,n){let r=V$5+n,o=t.data[r],i=e[r],s=ls$1(i,o.tView.ssrId),a=yo$1(e,o,void 0,{dehydratedView:s});vo$1(i,a,0,lr$1(o,s));}function kg(e,t,n,r){return ag(e,t,n,r),kg}function Fg(e,t,n){return sg(e,t,n),Fg}function wC(e){let t=v$1(),n=j$3(),r=Vi$2();qr(r+1);let o=ol(n,r);if(e.dirty&&hf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=ug(t,r);e.reset(i,qp),e.notifyOnChanges();}return true}return false}function CC(){return rl(v$1(),Vi$2())}function Pg(e,t,n,r,o){return dg(t,ag(e,n,r,o)),Pg}function Lg(e,t,n,r){return dg(e,sg(t,n,r)),Lg}function TC(e=1){qr(Vi$2()+e);}function bC(e){let t=Tf();return Gr(t,V$5+e)}function Xi$2(e,t){return e<<17|t<<2}function xn$3(e){return e>>17&32767}function SC(e){return (e&2)==2}function _C(e,t){return e&131071|t<<17}function Iu(e){return e|2}function pr$2(e){return (e&131068)>>2}function jc(e,t){return e&-131069|t<<2}function MC(e){return (e&1)===1}function wu(e){return e|1}function NC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=xn$3(s),c=pr$2(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Zn$3(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=xn$3(e[a+1]);e[r+1]=Xi$2(p,a),p!==0&&(e[p+1]=jc(e[p+1],r)),e[a+1]=_C(e[a+1],r);}else e[r+1]=Xi$2(a,0),a!==0&&(e[a+1]=jc(e[a+1],r)),a=r;else e[r+1]=Xi$2(c,0),a===0?a=r:e[c+1]=jc(e[c+1],r),c=r;u&&(e[r+1]=Iu(e[r+1])),_p(e,l,r,true),_p(e,l,r,false),xC(t,l,e,r,i),s=Xi$2(a,c),i?t.classBindings=s:t.styleBindings=s;}function xC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Zn$3(i,t)>=0&&(n[r+1]=wu(n[r+1]));}function _p(e,t,n,r){let o=e[n+1],i=t===null,s=r?xn$3(o):pr$2(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];AC(c,t)&&(a=true,e[s+1]=r?wu(u):Iu(u)),s=r?xn$3(u):pr$2(u);}a&&(e[n+1]=r?Iu(o):wu(o));}function AC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Zn$3(e,t)>=0:false}var Ge$4={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function RC(e){return e.substring(Ge$4.key,Ge$4.keyEnd)}function OC(e){return kC(e),jg(e,Bg(e,0,Ge$4.textEnd))}function jg(e,t){let n=Ge$4.textEnd;return n===t?-1:(t=Ge$4.keyEnd=FC(e,Ge$4.key=t,n),Bg(e,t,n))}function kC(e){Ge$4.key=0,Ge$4.keyEnd=0,Ge$4.value=0,Ge$4.valueEnd=0,Ge$4.textEnd=e.length;}function Bg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function FC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Vg(e,t,n){return Ug(e,t,n,false),Vg}function Hg(e,t){return Ug(e,t,null,true),Hg}function PC(e){jC(zC,LC,e,true);}function LC(e,t){for(let n=OC(t);n>=0;n=jg(t,n))xi$2(e,RC(t),true);}function Ug(e,t,n,r){let o=v$1(),i=j$3(),s=nr$1(2);if(i.firstUpdatePass&&zg(i,e,s,r),t!==te$4&&he$3(o,s,t)){let a=i.data[Oe$3()];Gg(i,a,o,o[L$2],e,o[s+1]=WC(t,n),r,s);}}function jC(e,t,n,r){let o=j$3(),i=nr$1(2);o.firstUpdatePass&&zg(o,null,i,r);let s=v$1();if(n!==te$4&&he$3(s,i,n)){let a=o.data[Oe$3()];if(Wg(a,r)&&!$g(o,i)){let c=a.classesWithoutHost;c!==null&&(n=Ci$2(c,n||"")),Eu(o,a,s,n,r);}else GC(o,a,s,s[L$2],s[i+1],s[i+1]=$C(e,t,n),r,i);}}function $g(e,t){return t>=e.expandoStartIndex}function zg(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Oe$3()],s=$g(e,n);Wg(i,r)&&t===null&&!s&&(t=false),t=BC(o,i,t,r),NC(o,i,t,n,s,r);}}function BC(e,t,n,r){let o=Nf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Bc(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=Bc(o,e,t,n,r),i===null){let c=VC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Bc(null,e,t,c[1],r),c=fo$1(c,t.attrs,r),HC(e,t,r,c));}else i=UC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function VC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(pr$2(r)!==0)return e[xn$3(r)]}function HC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[xn$3(o)]=r;}function UC(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 Bc(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]),xi$2(e,s,n?true:t[++i]));}return e===void 0?null:e}function $C(e,t,n){if(n==null||n==="")return re$3;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 zC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&xi$2(e,r,n);}function GC(e,t,n,r,o,i,s,a){o===te$4&&(o=re$3);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let 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&&Gg(e,t,n,r,h,y,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Gg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=MC(u)?Mp(c,t,n,o,pr$2(u),s):void 0;if(!ws(l)){ws(i)||SC(u)&&(i=Mp(c,null,n,o,a,s));let d=uc(Oe$3(),n);YE(r,s,d,o,i);}}function Mp(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===te$4&&(p=d?re$3:void 0);let f=d?Ai$2(p,r):l===r?p:void 0;if(u&&!ws(f)&&(f=Ai$2(c,r)),ws(f)&&(a=f,s))return a;let h=e[o+1];o=s?xn$3(h):pr$2(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ai$2(c,r));}return a}function ws(e){return e!==void 0}function WC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Br(Te$2(e)))),e}function Wg(e,t){return (e.flags&(t?8:16))!==0}function qC(e,t=""){let n=v$1(),r=j$3(),o=e+V$5,i=r.firstCreatePass?gr$1(r,o,1,t,null):r.data[o],s=ZC(r,n,i,t);n[o]=s,$i$2()&&$u(r,n,s,i),tr$1(i,false);}var ZC=(e,t,n,r)=>(Zr(true),rE(t[L$2],r));function qg(e,t,n,r=""){return he$3(e,Gt$2(),n)?t+oe$2(n)+r:te$4}function YC(e,t,n,r,o,i=""){let s=ji$2(),a=uo$1(e,s,n,o);return nr$1(2),a?t+oe$2(n)+r+oe$2(o)+i:te$4}function QC(e,t,n,r,o,i,s,a,c,u=""){let l=ji$2(),d=Kh(e,l,n,o,s,c);return nr$1(4),d?t+oe$2(n)+r+oe$2(o)+i+oe$2(s)+a+oe$2(c)+u:te$4}function KC(e,t,n,r,o,i,s,a,c,u,l,d=""){let p=ji$2(),f=Kh(e,p,n,o,s,c);return f=he$3(e,p+4,l)||f,nr$1(5),f?t+oe$2(n)+r+oe$2(o)+i+oe$2(s)+a+oe$2(c)+u+oe$2(l)+d:te$4}function Zg(e){return vl("",e),Zg}function vl(e,t,n){let r=v$1(),o=qg(r,e,t,n);return o!==te$4&&js(r,Oe$3(),o),vl}function Yg(e,t,n,r,o){let i=v$1(),s=YC(i,e,t,n,r,o);return s!==te$4&&js(i,Oe$3(),s),Yg}function Qg(e,t,n,r,o,i,s,a,c){let u=v$1(),l=QC(u,e,t,n,r,o,i,s,a,c);return l!==te$4&&js(u,Oe$3(),l),Qg}function Kg(e,t,n,r,o,i,s,a,c,u,l){let d=v$1(),p=KC(d,e,t,n,r,o,i,s,a,c,u,l);return p!==te$4&&js(d,Oe$3(),p),Kg}function js(e,t,n){let r=uc(t,e);oE(e[L$2],r,n);}function Xg(e,t,n){Zi$1(t)&&(t=t());let r=v$1(),o=Gt$2();if(he$3(r,o,t)){j$3();let s=rr$1();Rh(s,r,e,t,r[L$2],n);}return Xg}function XC(e,t){let n=Zi$1(e);return n&&e.set(t),n}function Jg(e,t){let n=v$1(),r=j$3(),o=Q$1();return Og(r,n,n[L$2],o,e,t),Jg}function JC(e,t,n=""){return qg(v$1(),e,t,n)}function Np(e,t,n){let r=j$3();r.firstCreatePass&&em(t,r.data,r.blueprint,Ue$3(e),n);}function em(e,t,n,r,o){if(e=J$5(e),Array.isArray(e))for(let i=0;i<e.length;i++)em(e[i],t,n,r,o);else {let i=j$3(),s=v$1(),a=Q$1(),c=hn$2(e)?e:J$5(e.provide),u=rc(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(hn$2(e)||!e.multi){let f=new bn$3(u,o,ge$4,null),h=Hc(c,t,l+p,d);h===-1?(zc(as$1(a,s),i,c),Vc(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=Hc(c,t,l+p,d),h=Hc(c,t,l,l+p),y=f>=0&&n[f],D=h>=0&&n[h];if(!y){zc(as$1(a,s),i,c);let _=nT(eT,n.length,o,r,u);D&&(n[h].providerFactory=_),Vc(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(_),s.push(_);}else {let _=tm(n[f],u,r);Vc(i,e,f>-1?f:h,_);}r&&D&&n[h].componentProviders++;}}}function Vc(e,t,n,r){let o=hn$2(t),i=lf(t);if(o||i){let c=(i?J$5(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 tm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function eT(e,t,n,r,o){return Cu(this.multi,[])}function Cu(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function nT(e,t,n,r,o,i){let s=new bn$3(e,n,ge$4,null);return s.multi=[],s.index=t,s.componentProviders=0,tm(s,o,r&&!n),s}function rT(e,t){return n=>{n.providersResolver=(r,o)=>Np(r,o?o(e):e,false);}}function oT(e,t){let n=Cn$3()+e,r=v$1();return r[n]===te$4?Fs(r,n,t()):jI(r,n)}function iT(e,t,n){return nm(v$1(),Cn$3(),e,t,n)}function sT(e,t,n,r){return rm(v$1(),Cn$3(),e,t,n,r)}function Dl(e,t){let n=e[t];return n===te$4?void 0:n}function nm(e,t,n,r,o,i){let s=t+n;return he$3(e,s,o)?Fs(e,s+1,i?r.call(i,o):r(o)):Dl(e,s+1)}function rm(e,t,n,r,o,i,s){let a=t+n;return uo$1(e,a,o,i)?Fs(e,a+2,s?r.call(s,o,i):r(o,i)):Dl(e,a+2)}function aT(e,t,n,r,o,i,s,a){let c=t+n;return BI(e,c,o,i,s)?Fs(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):Dl(e,c+3)}function cT(e,t){let n=j$3(),r,o=e+V$5;n.firstCreatePass?(r=uT(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$2(r.type)),a=de$3(ge$4);try{let c=ss$1(!1),u=i();return ss$1(c),lc(n,v$1(),o,u),u}finally{de$3(a);}}function uT(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function lT(e,t,n){let r=e+V$5,o=v$1(),i=Gr(o,r);return El(o,r)?nm(o,Cn$3(),t,i.transform,n,i):i.transform(n)}function dT(e,t,n,r){let o=e+V$5,i=v$1(),s=Gr(i,o);return El(i,o)?rm(i,Cn$3(),t,s.transform,n,r,s):s.transform(n,r)}function fT(e,t,n,r,o){let i=e+V$5,s=v$1(),a=Gr(s,i);return El(s,i)?aT(s,Cn$3(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function El(e,t){return e[E$1].data[t].pure}function pT(e,t){return Os(e,t)}var om=(()=>{class e{applicationErrorHandler=g$3($e$4);appRef=g$3(yr$1);taskService=g$3(qt$1);ngZone=g$3(G$2);zonelessEnabled=g$3(ir$1);tracing=g$3(ct$2,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new X$4;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Lr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g$3(Wi$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?jf:Mc;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(Lr+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$4({token:e,factory:e.\u0275fac})}return e})();function im(){return [{provide:Be$4,useExisting:om},{provide:G$2,useClass:jr},{provide:ir$1,useValue:true}]}var hT=(()=>{class e{compileModuleSync(n){return new vs(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$4({token:e,factory:e.\u0275fac})}return e})();function gT(){return typeof $localize<"u"&&$localize.locale||Io$1}var vr$1=new w("",{factory:()=>g$3(vr$1,{optional:true,skipSelf:true})||gT()});var wo$1=class wo{destroyed=false;listeners=null;errorHandler=g$3(Se$3,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=g$3(we$1);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new m$4(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(et$3(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=I$2(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&mT(this.listeners)),I$2(n),this.isEmitting=false;}}};function mT(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function yT(e,t){return Rr$1(e,t?.equal)}function On$3(e){return zd(e)}var vT=e=>e;function DT(e,t){if(typeof e=="function"){let n=Ra(e,vT,t?.equal);return sm(n)}else {let n=Ra(e.source,e.computation,e.equal);return sm(n,e.debugName)}}function sm(e,t){let n=e[q$3],r=e;return r.set=o=>Ud(n,o),r.update=o=>$d(n,o),r.asReadonly=Yr.bind(e),r}var Vs=Symbol("InputSignalNode#UNSET"),gm=z$4(P$2({},Or),{transformFn:void 0,applyValueToInputSignal(e,t){jt$3(e,t);}});function mm(e,t){let n=Object.create(gm);n.value=e,n.transformFn=t?.transform;function r(){if(gt$4(n),n.value===Vs){let o=null;throw new m$4(-950,o)}return n.value}return r[q$3]=n,r}var am=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>Su(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function wB(e){return AT(e)?e.default:e}function AT(e){return e&&typeof e=="object"&&"default"in e}function CB(e){return new wo$1}function cm(e,t){return mm(e,t)}function RT(e){return mm(Vs,e)}var TB=(cm.required=RT,cm);function ym(e,t){let n=Object.create(gm),r=new wo$1;n.value=e;function o(){return gt$4(n),um(n.value),n.value}return o[q$3]=n,o.asReadonly=Yr.bind(o),o.set=i=>{n.equal(n.value,i)||(jt$3(n,i),r.emit(i));},o.update=i=>{um(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function um(e){if(e===Vs)throw new m$4(952,false)}function lm(e,t){return ym(e)}function OT(e){return ym(Vs)}var bB=(lm.required=OT,lm);function dm(e,t){return sl()}function kT(e,t){return al()}var SB=(dm.required=kT,dm);function _B(e,t){return lg()}function fm(e,t){return sl()}function FT(e,t){return al()}var MB=(fm.required=FT,fm);var Tl=(()=>{class e{static __NG_ELEMENT_ID__=LT}return e})();function LT(e){return jT(Q$1(),v$1(),(e&16)===16)}function jT(e,t,n){if(Tt$2(e)&&!n){let r=Re$4(e.index,t);return new Qt$1(r,r)}else if(e.type&175){let r=t[se$2];return new Qt$1(r,t)}return null}var BT=(()=>{class e{zone=g$3(G$2);changeDetectionScheduler=g$3(Be$4);applicationRef=g$3(yr$1);applicationErrorHandler=g$3($e$4);_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$4({token:e,factory:e.\u0275fac})}return e})(),VT=new w("",{factory:()=>false});function HT({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new G$2(z$4(P$2({},vm()),{scheduleInRootZone:t})),[{provide:ir$1,useValue:false},{provide:G$2,useFactory:e},{provide:It$1,multi:true,useFactory:()=>{let n=g$3(BT,{optional:true});return ()=>n.initialize()}},{provide:It$1,multi:true,useFactory:()=>{let n=g$3(UT);return ()=>{n.initialize();}}},{provide:Wi$2,useValue:t??_c}]}function xB(e){let t=e?.scheduleInRootZone,n=HT({ngZoneFactory:()=>{let r=vm(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&ut$3("NgZone_CoalesceEvent"),new G$2(r)},scheduleInRootZone:t});return wt$5([{provide:VT,useValue:true},n])}function vm(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var UT=(()=>{class e{subscription=new X$4;initialized=false;zone=g$3(G$2);pendingTasks=g$3(qt$1);initialize(){if(this.initialized)return;this.initialized=true;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{G$2.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G$2.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var wl=new w(""),$T=new w("");function Co$1(e){return !e.moduleRef}function zT(e){let t=Co$1(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G$2);return n.run(()=>{Co$1(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get($e$4),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),Co$1(e)){let i=()=>t.destroy(),s=e.platformInjector.get(wl);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(wl);s.add(i),e.moduleRef.onDestroy(()=>{oo$1(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return WT(r,n,()=>{let i=t.get(qt$1),s=i.add(),a=t.get(ul);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(vr$1,Io$1);if(xg(c||Io$1),!t.get($T,!0))return Co$1(e)?t.get(yr$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Co$1(e)){let l=t.get(yr$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return GT?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var GT;function WT(e,t,n){try{let r=n();return Do$1(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Bs=null;function qT(e=[],t){return pe$3.create({name:t,providers:[{provide:$r,useValue:"platform"},{provide:wl,useValue:new Set([()=>Bs=null])},...e]})}function ZT(e=[]){if(Bs)return Bs;let t=qT(e);return Bs=t,wg(),YT(t),t}function YT(e){let t=e.get(Gi$2,null);Qn$3(e,()=>{t?.forEach(n=>n());});}function Dm(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;F$6(R$3.BootstrapApplicationStart);try{let i=o?.injector??ZT(r),s=[im(),Vf,...n||[]],a=new lo$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return zT({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{F$6(R$3.BootstrapApplicationEnd);}}function QT(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function KT(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Il=Symbol("NOT_SET"),Em=new Set,XT=z$4(P$2({},Or),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Il,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!==Il&&!Un$3(this))return this.signal;try{for(let o of this.cleanup??Em)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$4(this,n);}return (this.value===Il||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Cl=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(we$1),s),this.scheduler=o;for(let a of Bu){let c=n[a];if(c===void 0)continue;let u=Object.create(XT);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(gt$4(u),u.value),u.signal[q$3]=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??Em)n();}finally{Lt$1(t);}}};function AB(e,t){let n=g$3(pe$3),r=n.get(Be$4),o=n.get(_s),i=n.get(ct$2,null,{optional:true});o.impl??=n.get(Vu);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(or$1,null,{optional:true}),c=new Cl(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function RB(e,t){let n=Et$4(e),r=t.elementInjector||Yn$3();return new Mn$3(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function OB(e){let t=Et$4(e);if(!t)return null;let n=new Mn$3(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 Im=null;function _t$4(){return Im}function bl(e){Im??=e;}var To$1=class To{},Xt$3=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>g$3(wm),providedIn:"platform"})}return e})(),JT=new w(""),wm=(()=>{class e extends Xt$3{_location;_history;_doc=g$3(U$6);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return _t$4().getBaseHref(this._doc)}onPopState(n){let r=_t$4().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=_t$4().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({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Hs(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Cm(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function qe$4(e){return e&&e[0]!=="?"?`?${e}`:e}var Dr=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>g$3(bm),providedIn:"root"})}return e})(),Us=new w(""),bm=(()=>{class e extends Dr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g$3(U$6).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 Hs(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+qe$4(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+qe$4(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+qe$4(i));this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(C$1(Xt$3),C$1(Us,8))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Sm=(()=>{class e{_subject=new ce$4;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=nb(Cm(Tm(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+qe$4(r))}normalize(n){return e.stripTrailingSlash(tb(this._basePath,Tm(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+qe$4(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+qe$4(r)),o);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(n=0){this._locationStrategy.historyGo?.(n);}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state);}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r));}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=qe$4;static joinWithSlash=Hs;static stripTrailingSlash=Cm;static \u0275fac=function(r){return new(r||e)(C$1(Dr))};static \u0275prov=x({token:e,factory:()=>eb(),providedIn:"root"})}return e})();function eb(){return new Sm(C$1(Dr))}function tb(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Tm(e){return e.replace(/\/index\.html$/,"")}function nb(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var rb=(()=>{class e extends Dr{_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=Hs(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+qe$4(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+qe$4(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)(C$1(Xt$3),C$1(Us,8))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();var kl=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(kl||{});var ae$2=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ae$2||{}),B$5=(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$5||{}),ye$2=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(ye$2||{}),ve$2={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function xm(e){return me$3(e)[Y$2.LocaleId]}function Am(e,t,n){let r=me$3(e),o=[r[Y$2.DayPeriodsFormat],r[Y$2.DayPeriodsStandalone]],i=Fe$4(o,t);return Fe$4(i,n)}function Rm(e,t,n){let r=me$3(e),o=[r[Y$2.DaysFormat],r[Y$2.DaysStandalone]],i=Fe$4(o,t);return Fe$4(i,n)}function Om(e,t,n){let r=me$3(e),o=[r[Y$2.MonthsFormat],r[Y$2.MonthsStandalone]],i=Fe$4(o,t);return Fe$4(i,n)}function km(e,t){let r=me$3(e)[Y$2.Eras];return Fe$4(r,t)}function bo$1(e,t){let n=me$3(e);return Fe$4(n[Y$2.DateFormat],t)}function So$1(e,t){let n=me$3(e);return Fe$4(n[Y$2.TimeFormat],t)}function _o$1(e,t){let r=me$3(e)[Y$2.DateTimeFormat];return Fe$4(r,t)}function lt$3(e,t){let n=me$3(e),r=n[Y$2.NumberSymbols][t];if(typeof r>"u"){if(t===ve$2.CurrencyDecimal)return n[Y$2.NumberSymbols][ve$2.Decimal];if(t===ve$2.CurrencyGroup)return n[Y$2.NumberSymbols][ve$2.Group]}return r}function Fm(e,t){return me$3(e)[Y$2.NumberFormats][t]}function Pm(e){if(!e[Y$2.ExtraData])throw new m$4(2303,false)}function Lm(e){let t=me$3(e);return Pm(t),(t[Y$2.ExtraData][2]||[]).map(r=>typeof r=="string"?Sl(r):[Sl(r[0]),Sl(r[1])])}function jm(e,t,n){let r=me$3(e);Pm(r);let o=[r[Y$2.ExtraData][0],r[Y$2.ExtraData][1]],i=Fe$4(o,t)||[];return Fe$4(i,n)||[]}function Fe$4(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new m$4(2304,false)}function Sl(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var ob=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,$s=Object.create(null),ib=/((?:[^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]*)/,sb=256;function Bm(e,t,n,r){let o=mb(e);ab(t),t=Mt$2(n,t)||t;let s=[],a;for(;t;)if(a=ib.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=Hm(r,c),o=gb(o,r));let u="";return s.forEach(l=>{let d=pb(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function ab(e){if(e.length>sb)throw new m$4(2300,false)}function Zs(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Mt$2(e,t){let n=xm(e);if($s[n]??=Object.create(null),$s[n][t])return $s[n][t];let r="";switch(t){case "shortDate":r=bo$1(e,ye$2.Short);break;case "mediumDate":r=bo$1(e,ye$2.Medium);break;case "longDate":r=bo$1(e,ye$2.Long);break;case "fullDate":r=bo$1(e,ye$2.Full);break;case "shortTime":r=So$1(e,ye$2.Short);break;case "mediumTime":r=So$1(e,ye$2.Medium);break;case "longTime":r=So$1(e,ye$2.Long);break;case "fullTime":r=So$1(e,ye$2.Full);break;case "short":let o=Mt$2(e,"shortTime"),i=Mt$2(e,"shortDate");r=zs(_o$1(e,ye$2.Short),[o,i]);break;case "medium":let s=Mt$2(e,"mediumTime"),a=Mt$2(e,"mediumDate");r=zs(_o$1(e,ye$2.Medium),[s,a]);break;case "long":let c=Mt$2(e,"longTime"),u=Mt$2(e,"longDate");r=zs(_o$1(e,ye$2.Long),[c,u]);break;case "full":let l=Mt$2(e,"fullTime"),d=Mt$2(e,"fullDate");r=zs(_o$1(e,ye$2.Full),[l,d]);break}return r&&($s[n][t]=r),r}function zs(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function Ze$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 cb(e,t){return Ze$3(e,3).substring(0,t)}function K$5(e,t,n=0,r=false,o=false){return function(i,s){let a=ub(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return cb(a,t);let c=lt$3(s,ve$2.MinusSign);return Ze$3(a,t,c,r,o)}}function ub(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$4(2301,false)}}function H$4(e,t,n=ae$2.Format,r=false){return function(o,i){return lb(o,i,e,t,n,r)}}function lb(e,t,n,r,o,i){switch(n){case 2:return Om(t,o,r)[e.getMonth()];case 1:return Rm(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Lm(t),l=jm(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 Am(t,o,r)[s<12?0:1];case 3:return km(t,r)[e.getFullYear()<=0?0:1];default:throw new m$4(2302,false)}}function Gs(e){return function(t,n,r){let o=-1*r,i=lt$3(n,ve$2.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+Ze$3(s,2,i)+Ze$3(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+Ze$3(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+Ze$3(s,2,i)+":"+Ze$3(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Ze$3(s,2,i)+":"+Ze$3(Math.abs(o%60),2,i);default:throw new m$4(2310,false)}}}var db=0,qs=4;function fb(e){let t=Zs(e,db,1).getDay();return Zs(e,0,1+(t<=qs?qs:qs+7)-t)}function Vm(e){let t=e.getDay(),n=t===0?-3:qs-t;return Zs(e.getFullYear(),e.getMonth(),e.getDate()+n)}function _l(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=Vm(n),s=fb(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return Ze$3(o,e,lt$3(r,ve$2.MinusSign))}}function Ws(e,t=false){return function(n,r){let i=Vm(n).getFullYear();return Ze$3(i,e,lt$3(r,ve$2.MinusSign),t)}}var Ml=Object.create(null);function pb(e){if(Ml[e])return Ml[e];let t;switch(e){case "G":case "GG":case "GGG":t=H$4(3,B$5.Abbreviated);break;case "GGGG":t=H$4(3,B$5.Wide);break;case "GGGGG":t=H$4(3,B$5.Narrow);break;case "y":t=K$5(0,1,0,false,true);break;case "yy":t=K$5(0,2,0,true,true);break;case "yyy":t=K$5(0,3,0,false,true);break;case "yyyy":t=K$5(0,4,0,false,true);break;case "Y":t=Ws(1);break;case "YY":t=Ws(2,true);break;case "YYY":t=Ws(3);break;case "YYYY":t=Ws(4);break;case "M":case "L":t=K$5(1,1,1);break;case "MM":case "LL":t=K$5(1,2,1);break;case "MMM":t=H$4(2,B$5.Abbreviated);break;case "MMMM":t=H$4(2,B$5.Wide);break;case "MMMMM":t=H$4(2,B$5.Narrow);break;case "LLL":t=H$4(2,B$5.Abbreviated,ae$2.Standalone);break;case "LLLL":t=H$4(2,B$5.Wide,ae$2.Standalone);break;case "LLLLL":t=H$4(2,B$5.Narrow,ae$2.Standalone);break;case "w":t=_l(1);break;case "ww":t=_l(2);break;case "W":t=_l(1,true);break;case "d":t=K$5(2,1);break;case "dd":t=K$5(2,2);break;case "c":case "cc":t=K$5(7,1);break;case "ccc":t=H$4(1,B$5.Abbreviated,ae$2.Standalone);break;case "cccc":t=H$4(1,B$5.Wide,ae$2.Standalone);break;case "ccccc":t=H$4(1,B$5.Narrow,ae$2.Standalone);break;case "cccccc":t=H$4(1,B$5.Short,ae$2.Standalone);break;case "E":case "EE":case "EEE":t=H$4(1,B$5.Abbreviated);break;case "EEEE":t=H$4(1,B$5.Wide);break;case "EEEEE":t=H$4(1,B$5.Narrow);break;case "EEEEEE":t=H$4(1,B$5.Short);break;case "a":case "aa":case "aaa":t=H$4(0,B$5.Abbreviated);break;case "aaaa":t=H$4(0,B$5.Wide);break;case "aaaaa":t=H$4(0,B$5.Narrow);break;case "b":case "bb":case "bbb":t=H$4(0,B$5.Abbreviated,ae$2.Standalone,true);break;case "bbbb":t=H$4(0,B$5.Wide,ae$2.Standalone,true);break;case "bbbbb":t=H$4(0,B$5.Narrow,ae$2.Standalone,true);break;case "B":case "BB":case "BBB":t=H$4(0,B$5.Abbreviated,ae$2.Format,true);break;case "BBBB":t=H$4(0,B$5.Wide,ae$2.Format,true);break;case "BBBBB":t=H$4(0,B$5.Narrow,ae$2.Format,true);break;case "h":t=K$5(3,1,-12);break;case "hh":t=K$5(3,2,-12);break;case "H":t=K$5(3,1);break;case "HH":t=K$5(3,2);break;case "m":t=K$5(4,1);break;case "mm":t=K$5(4,2);break;case "s":t=K$5(5,1);break;case "ss":t=K$5(5,2);break;case "S":t=K$5(6,1);break;case "SS":t=K$5(6,2);break;case "SSS":t=K$5(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Gs(0);break;case "ZZZZZ":t=Gs(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Gs(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Gs(2);break;default:return null}return Ml[e]=t,t}function Hm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function hb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function gb(e,t,n){let o=e.getTimezoneOffset(),i=Hm(t,o);return hb(e,-1*(i-o))}function mb(e){if(_m(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 Zs(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(ob))return yb(r)}let t=new Date(e);if(!_m(t))throw new m$4(2311,false);return t}function yb(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 _m(e){return e instanceof Date&&!isNaN(e.valueOf())}var vb=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Mm=22,Ys=".",Mo$1="0",Db=";",Eb=",",Nl="#";function Ib(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=lt$3(n,ve$2.Infinity);else {let u=Tb(e);s&&(u=Cb(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let $=i.match(vb);if($===null)throw new m$4(2306,false);let be=$[1],Ye=$[3],At=$[5];be!=null&&(l=xl(be)),Ye!=null&&(d=xl(Ye)),At!=null?p=xl(At):Ye!=null&&d>p&&(p=d);let Pe=100;if(l>Pe||d>Pe||p>Pe)throw new m$4(2306,false)}bb(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,ve$2.Exponential)+"+"+y);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function Um(e,t,n){let r=Fm(t,kl.Decimal),o=wb(r,lt$3(t,ve$2.MinusSign));return Ib(e,o,t,ve$2.Group,ve$2.Decimal,n)}function wb(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(Db),o=r[0],i=r[1],s=o.indexOf(Ys)!==-1?o.split(Ys):[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(Nl));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Mo$1?n.minFrac=n.maxFrac=l+1:d===Nl?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(Eb);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(Nl);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 Cb(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 Tb(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Ys))>-1&&(t=t.replace(Ys,"")),(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>Mm&&(r=r.splice(0,Mm-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function bb(e,t,n){if(t>n)throw new m$4(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 xl(e){let t=parseInt(e);if(isNaN(t))throw new m$4(2305,false);return t}var Al=/\s+/,Nm=[],Sb=(()=>{class e{_ngEl;_renderer;initialClasses=Nm;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r;}set klass(n){this.initialClasses=n!=null?n.trim().split(Al):Nm;}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Al):n;}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,true);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,true);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff();}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=true,o.enabled=r),o.touched=true):this.stateMap.set(n,{enabled:r,changed:true,touched:true});}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=false):o.touched||(o.enabled&&this._toggleClass(r,false),this.stateMap.delete(r)),o.touched=false;}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Al).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o);});}static \u0275fac=function(r){return new(r||e)(ge$4(Kt$2),ge$4(ks))};static \u0275dir=Ls({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var _b=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g$3(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)(ge$4(mr$1))};static \u0275dir=Ls({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Tu]})}return e})();function Qs(e,t){return new m$4(2100,false)}var Rl=class{createSubscription(t,n,r){return On$3(()=>t.subscribe({next:n,error:r}))}dispose(t){On$3(()=>t.unsubscribe());}},Ol=class{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null;}}}dispose(t){t.unsubscribe();}},Mb=new Ol,Nb=new Rl,xb=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=true;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=g$3($e$4);constructor(n){this._ref=n;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n);}finally{this.markForCheckOnValueUpdate=true;}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r),r=>this.applicationErrorHandler(r));}_selectStrategy(n){if(Do$1(n))return Mb;if(Ps(n))return Nb;throw Qs()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static \u0275fac=function(r){return new(r||e)(ge$4(Tl,16))};static \u0275pipe=Rn$3({name:"async",type:e,pure:false})}return e})(),Ab=(()=>{class e{transform(n){return n==null?null:(Rb(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Rn$3({name:"lowercase",type:e,pure:true})}return e})();function Rb(e,t){if(typeof t!="string")throw Qs()}var Ob="mediumDate",$m=new w(""),zm=new w(""),kb=(()=>{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??Ob,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Bm(n,s,i||this.locale,a)}catch(s){throw Qs(e,s.message)}}static \u0275fac=function(r){return new(r||e)(ge$4(vr$1,16),ge$4($m,24),ge$4(zm,24))};static \u0275pipe=Rn$3({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=Rn$3({name:"json",type:e,pure:false})}return e})();var Pb=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!Lb(n))return null;o||=this._locale;try{let i=jb(n);return Um(i,o,r)}catch(i){throw Qs(e,i.message)}}static \u0275fac=function(r){return new(r||e)(ge$4(vr$1,16))};static \u0275pipe=Rn$3({name:"number",type:e,pure:true})}return e})();function Lb(e){return !(e==null||e===""||e!==e)}function jb(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new m$4(2309,false);return e}var Gm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({})}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 Pl="browser";function t2(e){return e===Pl}var n2=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new Fl(g$3(U$6),window)})}return e})(),Fl=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(z$4(P$2({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=Hb(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(et$3(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(z$4(P$2({},n),{left:o-s[0],top:i-s[1]}));}};function Hb(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},Ks=(()=>{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)(C$1(U$6))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),ea$1=new w(""),Vl=(()=>{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 Ks));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Ks);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$4(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(C$1(ea$1),C$1(G$2))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Ll="ng-app-id";function Wm(e){for(let t of e)t.remove();}function qm(e,t){let n=t.createElement("style");return n.textContent=e,n}function Ub(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Ll}="${t}"],link[${Ll}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Ll),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 Bl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Hl=(()=>{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,Ub(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,qm);r?.forEach(o=>this.addUsage(o,this.external,Bl));}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&&(Wm(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])Wm(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,qm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Bl(r,this.doc)));}}removeHost(n){this.hosts.delete(n);for(let r of [...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o;}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(C$1(U$6),C$1(Qr),C$1(Xr,8),C$1(Kr))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),jl={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"},Ul=/%COMP%/g;var Ym="%COMP%",$b=`_nghost-${Ym}`,zb=`_ngcontent-${Ym}`,Gb=true,Wb=new w("",{factory:()=>Gb});function qb(e){return zb.replace(Ul,e)}function Zb(e){return $b.replace(Ul,e)}function Qm(e,t){return t.map(n=>n.replace(Ul,e))}var $l=(()=>{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 Js?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 We$3.Emulated:i=new Js(c,u,r,this.appId,l,s,a,d);break;case We$3.ShadowDom:return new Xs(c,n,r,s,a,this.nonce,d,u);case We$3.ExperimentalIsolatedShadowDom:return new Xs(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)(C$1(Vl),C$1(An$3),C$1(Qr),C$1(Wb),C$1(U$6),C$1(G$2),C$1(Xr),C$1(ct$2,8))};static \u0275prov=x({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(jl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Zm(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(Zm(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$4(-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=jl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=jl[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$3.DashCase|st$3.Important)?t.style.setProperty(n,r,o&st$3.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&st$3.DashCase?t.style.removeProperty(n):t.style[n]="";}setProperty(t,n,r){t!=null&&(t[n]=r);}setValue(t,n){t.nodeValue=n;}listen(t,n,r,o){if(typeof t=="string"&&(t=_t$4().getGlobalEventTarget(this.doc,t),!t))throw new m$4(-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 Zm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Xs=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=Qm(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=Bl(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?Qm(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Yt$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Js=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=qb(u),this.hostAttr=Zb(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 ta$1=class e extends To$1{supportsDOMEvents=true;static makeCurrent(){bl(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=Yb();return n==null?null:Qb(n)}resetBaseElement(){Oo$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return No$1(document.cookie,t)}},Oo$1=null;function Yb(){return Oo$1=Oo$1||document.head.querySelector("base"),Oo$1?Oo$1.getAttribute("href"):null}function Qb(e){return new URL(e,document.baseURI).pathname}var Km=["alt","control","meta","shift"],Kb={"\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},Xm=(()=>{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$4().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."),Km.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=Kb[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"),Km.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)(C$1(U$6))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Jb(e,t,n){return dt$2(this,null,function*(){let r=P$2({rootComponent:e},eS(t,n));return Dm(r)})}function eS(e,t){return {platformRef:t?.platformRef,appProviders:[...iS,...e?.providers??[]],platformProviders:oS}}function tS(){ta$1.makeCurrent();}function nS(){return new Se$3}function rS(){return Mu(document),document}var oS=[{provide:Kr,useValue:Pl},{provide:Gi$2,useValue:tS,multi:true},{provide:U$6,useFactory:rS}];var iS=[{provide:$r,useValue:"root"},{provide:Se$3,useFactory:nS},{provide:ea$1,useClass:Ks,multi:true},{provide:ea$1,useClass:Xm,multi:true},$l,{provide:An$3,useClass:Hl},{provide:Hl,useExisting:An$3},Vl,{provide:_n$3,useExisting:$l},[]];var xt$3=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
- `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n);})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r);});}:this.headers=new Map;}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t);}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null));}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n));});}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case "a":case "s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case "d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else {let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s);}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n]);}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o);}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)));}};var ra$1=class ra{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()}},oa$1=class oa{encodeKey(t){return Jm(t)}encodeValue(t){return Jm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function sS(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 aS=/%(\d[a-f0-9])/gi,cS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Jm(e){return encodeURIComponent(e).replace(aS,(t,n)=>cS[n]??t)}function na$1(e){return `${e}`}var Nt$3=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new oa$1,t.fromString){if(t.fromObject)throw new m$4(2805,false);this.map=sS(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(na$1):[na$1(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(na$1(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(na$1(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 uS(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function ey(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function ty(e){return typeof Blob<"u"&&e instanceof Blob}function ny(e){return typeof FormData<"u"&&e instanceof FormData}function lS(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var zl="Content-Type",ry="Accept",iy="text/plain",sy="application/json",dS=`${sy}, ${iy}, */*`,Er=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(uS(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$4(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$3,this.context??=new ra$1,!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"||ey(this.body)||ty(this.body)||ny(this.body)||lS(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||ny(this.body)?null:ty(this.body)?this.body.type||null:ey(this.body)?null:typeof this.body=="string"?iy: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"?sy: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,Ye=t.reportDownloadProgress??this.reportDownloadProgress,At=t.headers||this.headers,Pe=t.params||this.params,Fo=t.context??this.context;return t.setHeaders!==void 0&&(At=Object.keys(t.setHeaders).reduce((Pn,Jt)=>Pn.set(Jt,t.setHeaders[Jt]),At)),t.setParams&&(Pe=Object.keys(t.setParams).reduce((Pn,Jt)=>Pn.set(Jt,t.setParams[Jt]),Pe)),new e(n,r,D,{params:Pe,headers:At,context:Fo,reportProgress:$,reportUploadProgress:be,reportDownloadProgress:Ye,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})}},Ir$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})(Ir$1||{}),wr$1=class wr{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new xt$3,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},ia$1=class e extends wr$1{constructor(t={}){super(t);}type=Ir$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 wr$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Ir$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})}},Fn$3=class Fn extends wr$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;}},fS=200;var pS=/^\)\]\}',?\n/,ay=new w("",{factory:()=>null}),sa=(()=>{class e{fetchImpl=g$3(Wl,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g$3(G$2);destroyRef=g$3(we$1);maxResponseSize=g$3(ay);handle(n){return new A$1(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(ql,s=>r.error(new Fn$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 dt$2(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,P$2({signal:r},i)));hS(D),o.next({type:Ir$1.Sent}),s=yield D;}catch(D){o.error(new Fn$3({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new xt$3(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new ia$1({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&&oy(this.maxResponseSize);let $=[],be=s.body.getReader(),Ye=0,At,Pe,Fo=typeof Zone<"u"&&Zone.current,Pn=false;if(yield this.ngZone.runOutsideAngular(()=>dt$2(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield be.cancel(),Pn=true;break}let{done:Cr,value:ca}=yield be.read();if(Cr)break;if($.push(ca),Ye+=ca.length,this.maxResponseSize!==null&&Ye>this.maxResponseSize&&(yield be.cancel(),oy(this.maxResponseSize)),p){Pe=n.responseType==="text"?(Pe??"")+(At??=new TextDecoder).decode(ca,{stream:true}):void 0;let Ql=()=>o.next({type:Ir$1.DownloadProgress,total:Number.isFinite(_)?_:void 0,loaded:Ye,partialText:Pe});Fo?Fo.run(Ql):Ql();}}})),Pn){o.complete();return}let Jt=this.concatChunks($,Ye);try{let Cr=s.headers.get(zl)??"";d=this.parseBody(n,Jt,Cr,l);}catch(Cr){o.error(new Fn$3({error:Cr,headers:new xt$3(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?fS: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 Fn$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(pS,"");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$4(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(ry)||(r[ry]=dS),!n.headers.has(zl)){let i=n.detectContentTypeHeader();i!==null&&(r[zl]=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$4({token:e,factory:e.\u0275fac})}return e})(),Wl=class{};function ql(){}function hS(e){e.then(ql,ql);}function oy(e){throw new m$4(-2825,false)}function gS(e,t){return t(e)}function mS(e,t,n){return (r,o)=>Qn$3(n,()=>t(r,i=>e(i,o)))}var cy=new w("",{factory:()=>[]}),uy=new w(""),ly=new w("",{factory:()=>true});var Zl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(sa),o},providedIn:"root"})}return e})();var aa=(()=>{class e{backend;injector;chain=null;pendingTasks=g$3(eo$1);contributeToStability=g$3(ly);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(cy),...this.injector.get(uy,[])]));this.chain=o.reduceRight((i,s)=>mS(i,s,this.injector),gS);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return On$3(()=>r(n,i=>this.backend.handle(i))).pipe(di$2(o))}else return On$3(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(C$1(Zl),C$1(fe$4))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Yl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(aa),o},providedIn:"root"})}return e})();function Gl(e,t){return P$2({body:t},e)}var dy=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof Er)i=n;else {let c;o.headers instanceof xt$3?c=o.headers:c=new xt$3(o.headers);let u;o.params&&(o.params instanceof Nt$3?u=o.params:u=new Nt$3({fromObject:o.params})),i=new Er(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=br$1(i).pipe(li$1(c=>this.handler.handle(c)));if(n instanceof Er||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(ue$3(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new m$4(2806,false);return c.body}));case "blob":return a.pipe(ue$3(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m$4(2807,false);return c.body}));case "text":return a.pipe(ue$3(c=>{if(c.body!==null&&typeof c.body!="string")throw new m$4(2808,false);return c.body}));default:return a.pipe(ue$3(c=>c.body))}case "response":return a;default:throw new m$4(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,Gl(o,r))}post(n,r,o={}){return this.request("POST",n,Gl(o,r))}put(n,r,o={}){return this.request("PUT",n,Gl(o,r))}static \u0275fac=function(r){return new(r||e)(C$1(Yl))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var yS=new w("",{factory:()=>true}),vS="XSRF-TOKEN",DS=new w("",{factory:()=>vS}),ES="X-XSRF-TOKEN",IS=new w("",{factory:()=>ES}),wS=(()=>{class e{cookieName=g$3(DS);doc=g$3(U$6);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$4({token:e,factory:e.\u0275fac})}return e})(),fy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(wS),o},providedIn:"root"})}return e})();function CS(e,t){if(!g$3(yS)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g$3(Xt$3).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$3(fy).getToken(),r=g$3(IS);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function TS(...e){let t=[dy,sa,aa,{provide:Yl,useExisting:aa},{provide:Zl,useFactory:()=>g$3(sa)},{provide:cy,useValue:CS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return wt$5(t)}var NH=(()=>{class e{_doc;constructor(n){this._doc=n;}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||"";}static \u0275fac=function(r){return new(r||e)(C$1(U$6))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var bS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=C$1(SS),o},providedIn:"root"})}return e})(),SS=(()=>{class e extends bS{_doc=g$3(U$6);sanitize(n,r){if(r==null)return null;switch(n){case ke$3.NONE:return r;case ke$3.HTML:return at$3(r,"HTML")?Te$2(r):bs(this._doc,String(r)).toString();case ke$3.STYLE:return at$3(r,"Style")?Te$2(r):r;case ke$3.SCRIPT:if(at$3(r,"Script"))return Te$2(r);throw new m$4(5200,false);case ke$3.URL:return at$3(r,"URL")?Te$2(r):ho$1(String(r));case ke$3.RESOURCE_URL:if(at$3(r,"ResourceURL"))return Te$2(r);throw new m$4(-5201,false);default:throw new m$4(5202,false)}}bypassSecurityTrustHtml(n){return Au(n)}bypassSecurityTrustStyle(n){return Ru(n)}bypassSecurityTrustScript(n){return Ou(n)}bypassSecurityTrustUrl(n){return ku(n)}bypassSecurityTrustResourceUrl(n){return Fu(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var y$2=class y{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:a,credentials:l,encodeParam:o,encoder:t,password:e,username:i,withCredentials:c}={}){n&&(this.apiKeys=n),i!==void 0&&(this.username=i),e!==void 0&&(this.password=e),x!==void 0&&(this.accessToken=x),a!==void 0&&(this.basePath=a),c!==void 0&&(this.withCredentials=c),t&&(this.encoder=t),this.encodeParam=o??(r=>this.defaultEncodeParam(r)),this.credentials=l??{};}selectHeaderContentType(x){if(x.length===0)return;let n=x.find(a=>this.isJsonMime(a));return n===void 0?x[0]:n}selectHeaderAccept(x){if(x.length===0)return;let n=x.find(a=>this.isJsonMime(a));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,a,l){let o=this.lookupCredential(x);return o?a.set(n,(l??"")+o):a}addCredentialToQuery(x,n,a){let l=this.lookupCredential(x);return l?a.set(n,l):a}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P$1=new w("basePath");var S$2=class S{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$2=class j{basePath="http://localhost:18124";defaultHeaders=new xt$3;configuration;encoder;constructor(x,n){if(this.configuration=n||new y$2,typeof this.configuration.basePath!="string"){let a=Array.isArray(x)?x[0]:void 0;a!=null&&(x=a),typeof x!="string"&&(x=this.basePath),this.configuration.basePath=x;}this.encoder=this.configuration.encoder||new S$2;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,a,l=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,l?a:void 0,l):this.addToHttpParamsRecursive(x,n,a)}addToHttpParamsRecursive(x,n,a,l=false){if(n==null)return x;if(typeof n=="object"){if(a!=null)return l?Object.keys(n).reduce((o,t)=>o.append(`${a}[${t}]`,n[t]),x):x.append(a,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>x=this.addToHttpParamsRecursive(x,o,a));else if(n instanceof Date)if(a!=null)x=x.append(a,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=a?`${a}.${o}`:o;x=this.addToHttpParamsRecursive(x,n[o],t);});return x}else if(a!=null)return x.append(a,n);throw Error("key may not be null if value is not object or array")}};var B$4=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createAgentConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/agent-configs",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteAgentConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}disableAgentConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}enableAgentConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}exportAgentConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdAgentConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsAgentConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/agent-configs/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getDefinitionAgentConfig(n,a,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let i=new Nt$3({encoder:this.encoder});i=this.addToHttpParams(i,a,"withUserOverlay"),i=this.addToHttpParams(i,l,"namespaceId");let c=this.defaultHeaders,r=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);r!==void 0&&(c=c.set("Accept",r));let d=e?.context??new ra$1,s=e?.transferCache??true,p="json";r&&(r.startsWith("text")?p="text":this.configuration.isJsonMime(r)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:d,params:i,responseType:p},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:s,reportProgress:t}))}listByParentAgentConfig(n,a,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,a,"withDisabled");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p=`/api/agent-configs/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,a="body",l=false,o){let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"withDisabled");let e=this.defaultHeaders,i=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=o?.context??new ra$1,r=o?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s="/api/agent-configs/platform",{basePath:p,withCredentials:g}=this.configuration;return this.httpClient.request("get",`${p}${s}`,z$4(P$2({context:c,params:t,responseType:d},g?{withCredentials:g}:{}),{headers:e,observe:a,transferCache:r,reportProgress:l}))}searchAgentConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/agent-configs/search",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}updateAgentConfig(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAgentConfig.");if(a==null)throw new Error("Required parameter agentConfig was null or undefined when calling updateAgentConfig.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var M$1=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createAiModel(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/ai-models",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteAiModel(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdAiModel(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsAiModel(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/ai-models/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listByNamespaceIdAiModel(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listByParentAiModel(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listPlatformLevelAiModel(n="body",a=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 ra$1,i=l?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let r="/api/ai-models/platform",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:c},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}updateAiModel(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(a==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var $$2=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createAiProvider(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/ai-providers",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteAiProvider(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdAiProvider(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsAiProvider(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/ai-providers/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listAiProvider(n,a,l="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,a,"userId");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p="/api/ai-providers",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}updateAiProvider(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(a==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var U$5=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createIntegrationConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/integration-configs",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteIntegrationConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}exportIntegrationConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdIntegrationConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsIntegrationConfig(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/integration-configs/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listIntegrationConfig(n,a,l="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,a,"userId");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p="/api/integration-configs",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(a==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$5=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;getTypeIntegrationType(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listTypesIntegrationType(n="body",a=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 ra$1,i=l?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let r="/api/integration-types",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:c},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var N$2=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createNamespace(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/namespaces",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteNamespace(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deployAgentsNamespace(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deployAgentsNamespace.");if(a==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling deployAgentsNamespace.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}getByIdNamespace(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsNamespace(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/namespaces/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listAllNamespace(n="body",a=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 ra$1,i=l?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let r="/api/namespaces",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:c},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}listByExternalIdsNamespace(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/namespaces/by-external-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}undeployAgentsNamespace(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling undeployAgentsNamespace.");if(a==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling undeployAgentsNamespace.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}updateNamespace(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(a==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var k$2=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}removeAssociationNamespaceGit(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}setAssociationNamespaceGit(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling setAssociationNamespaceGit.");if(a==null)throw new Error("Required parameter namespaceGitRequest was null or undefined when calling setAssociationNamespaceGit.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ge$3=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(ge$3||{});var G$1=class C{http=g$3(dy);config=g$3(y$2);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({token:C,factory:C.\u0275fac,providedIn:"root"})};var W$3=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(W$3||{});var D$1=(a=>(a.NEVER="NEVER",a.ON_DATE="ON_DATE",a.OCCURRENCES="OCCURRENCES",a))(D$1||{});var Ce$3=W$3,He$3=D$1;var xe$1={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},me$2={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var J$4=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createAuthSetting(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/auth-settings",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteAuthSetting(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdAuthSetting(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsAuthSetting(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/auth-settings/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listAuthSetting(n,a,l="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,a,"userId");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p="/api/auth-settings",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}updateAuthSetting(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAuthSetting.");if(a==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling updateAuthSetting.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$3=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;addMessageCase(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(a==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}countUnreadCase(n,a="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,i=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=o?.context??new ra$1,r=o?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s="/api/cases/unread-count",{basePath:p,withCredentials:g}=this.configuration;return this.httpClient.request("get",`${p}${s}`,z$4(P$2({context:c,params:t,responseType:d},g?{withCredentials:g}:{}),{headers:e,observe:a,transferCache:r,reportProgress:l}))}createCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/cases",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/cases/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}interruptCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}killCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listByParentCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listByUserCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listByUserExternalIdCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listByUserInNamespaceCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/cases/by-user/in-namespace",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listMineByParentCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}markCaseRead(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/read`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}starCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("put",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}unstarCase(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}updateCase(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(a==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsCaseEventRest(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/case-events/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listByCaseCaseEventRest(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var K$4=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;getMembersCaseMembership(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}updateMembersCaseMembership(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersCaseMembership.");if(a==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersCaseMembership.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y$1=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;deleteCaseFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling deleteCaseFileExchange.");if(a==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,a,"path");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deleteNamespaceFileExchange.");if(a==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,a,"path");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling downloadCaseFileExchange.");if(a==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,a,"path");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling downloadNamespaceFileExchange.");if(a==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,a,"path");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFileContentExchange.");if(a==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,a,"path");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getNamespaceFileContentExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFileContentExchange.");if(a==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,a,"path");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}uploadCaseFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling uploadCaseFileExchange.");if(a==null)throw new Error("Required parameter file was null or undefined when calling uploadCaseFileExchange.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["multipart/form-data"],s=this.canConsumeForm(d),p,g=false;g=s,g?p=new FormData:p=new Nt$3({encoder:this.encoder}),a!==void 0&&(p=p.append("file",a)||p);let m="json";i&&(i.startsWith("text")?m="text":this.configuration.isJsonMime(i)?m="json":m="blob");let O=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:q,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${q}${O}`,z$4(P$2({context:c,body:p,responseType:m},E?{withCredentials:E}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}uploadNamespaceFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling uploadNamespaceFileExchange.");if(a==null)throw new Error("Required parameter file was null or undefined when calling uploadNamespaceFileExchange.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["multipart/form-data"],s=this.canConsumeForm(d),p,g=false;g=s,g?p=new FormData:p=new Nt$3({encoder:this.encoder}),a!==void 0&&(p=p.append("file",a)||p);let m="json";i&&(i.startsWith("text")?m="text":this.configuration.isJsonMime(i)?m="json":m="blob");let O=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:q,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${q}${O}`,z$4(P$2({context:c,body:p,responseType:m},E?{withCredentials:E}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createFeedback(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/feedbacks",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listByCaseEventFeedback(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listByCaseFeedback(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var z$3=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}updateMembersNamespaceMembership(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersNamespaceMembership.");if(a==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersNamespaceMembership.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;grantAdmin(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantAdmin.");if(a==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantAdmin.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s=`/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:a,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:p,withCredentials:g}=this.configuration;return this.httpClient.request("put",`${p}${s}`,z$4(P$2({context:c,responseType:d},g?{withCredentials:g}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}grantMember(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantMember.");if(a==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantMember.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s=`/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:a,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:p,withCredentials:g}=this.configuration;return this.httpClient.request("put",`${p}${s}`,z$4(P$2({context:c,responseType:d},g?{withCredentials:g}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}revokeAdmin(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeAdmin.");if(a==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeAdmin.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s=`/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:a,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:p,withCredentials:g}=this.configuration;return this.httpClient.request("delete",`${p}${s}`,z$4(P$2({context:c,responseType:d},g?{withCredentials:g}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}revokeMember(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeMember.");if(a==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeMember.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s=`/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:a,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:p,withCredentials:g}=this.configuration;return this.httpClient.request("delete",`${p}${s}`,z$4(P$2({context:c,responseType:d},g?{withCredentials:g}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}updateRolesByExternalId(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/namespaces/update-roles-by-external-id",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/oauth/callback",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ee$3=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;debugAllPlugins(n="body",a=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 ra$1,i=l?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let r="/api/plugins/debug",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:c},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}debugPlugin(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getAllPlugins(n="body",a=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 ra$1,i=l?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let r="/api/plugins",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:c},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}getPlugin(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}reloadAllAgentsPlugin(n="body",a=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 ra$1,i=l?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let r="/api/plugins/reload-agents",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("post",`${d}${r}`,z$4(P$2({context:e,responseType:c},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}reloadPlugin(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}startPlugin(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}stopPlugin(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}unloadPlugin(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}uploadPlugin(n="body",a=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 ra$1,i=l?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let r="/api/plugins/upload",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("post",`${d}${r}`,z$4(P$2({context:e,responseType:c},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var te$3=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/prompts",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deletePrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}exportPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/prompts/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}resolveEffectivePrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/prompts/effective",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}searchPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/prompts/search",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}translatePrompt(n,a,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling translatePrompt.");if(a==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 i=this.defaultHeaders,c=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(i=i.set("Accept",c));let r=e?.context??new ra$1,d=e?.transferCache??true,s=["application/json"],p=this.configuration.selectHeaderContentType(s);p!==void 0&&(i=i.set("Content-Type",p));let g="json";c&&(c.startsWith("text")?g="text":this.configuration.isJsonMime(c)?g="json":g="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:a,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:m,withCredentials:O}=this.configuration;return this.httpClient.request("post",`${m}${b}`,z$4(P$2({context:r,body:l,responseType:g},O?{withCredentials:O}:{}),{headers:i,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updatePrompt.");if(a==null)throw new Error("Required parameter prompt was null or undefined when calling updatePrompt.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne$2=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createScheduledPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/scheduled-prompts",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteScheduledPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}disableScheduledPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("patch",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}enableScheduledPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("patch",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdScheduledPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsScheduledPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/scheduled-prompts/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}resolveEffectiveScheduledPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/scheduled-prompts/effective",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}searchScheduledPrompt(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/scheduled-prompts/search",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}updateScheduledPrompt(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateScheduledPrompt.");if(a==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling updateScheduledPrompt.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createSkill(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/skills",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteSkill(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdSkill(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsSkill(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/skills/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listByParentSkill(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}listPlatformSkill(n="body",a=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 ra$1,i=l?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let r="/api/skills/platform",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:c},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}updateSkill(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateSkill.");if(a==null)throw new Error("Required parameter skill was null or undefined when calling updateSkill.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;streamEventsCaseEventSse(n,a,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,a,"includePreviousEvents");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,a,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByAgentUsageRecord.");if(a==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 i=new Nt$3({encoder:this.encoder});i=this.addToHttpParams(i,n,"namespaceId"),i=this.addToHttpParams(i,a,"from"),i=this.addToHttpParams(i,l,"to");let c=this.defaultHeaders,r=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);r!==void 0&&(c=c.set("Accept",r));let d=e?.context??new ra$1,s=e?.transferCache??true,p="json";r&&(r.startsWith("text")?p="text":this.configuration.isJsonMime(r)?p="json":p="blob");let g="/api/usage-records/aggregate/by-agent",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${g}`,z$4(P$2({context:d,params:i,responseType:p},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:s,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}aggregateByCaseTreeUsageRecord(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}aggregateByModelUsageRecord(n,a,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByModelUsageRecord.");if(a==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 i=new Nt$3({encoder:this.encoder});i=this.addToHttpParams(i,n,"namespaceId"),i=this.addToHttpParams(i,a,"from"),i=this.addToHttpParams(i,l,"to");let c=this.defaultHeaders,r=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);r!==void 0&&(c=c.set("Accept",r));let d=e?.context??new ra$1,s=e?.transferCache??true,p="json";r&&(r.startsWith("text")?p="text":this.configuration.isJsonMime(r)?p="json":p="blob");let g="/api/usage-records/aggregate/by-model",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${g}`,z$4(P$2({context:d,params:i,responseType:p},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:s,reportProgress:t}))}aggregateByUserUsageRecord(n,a,l,o,t="body",e=false,i){if(n==null)throw new Error("Required parameter userId was null or undefined when calling aggregateByUserUsageRecord.");if(a==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 c=new Nt$3({encoder:this.encoder});c=this.addToHttpParams(c,n,"userId"),c=this.addToHttpParams(c,a,"namespaceId"),c=this.addToHttpParams(c,l,"from"),c=this.addToHttpParams(c,o,"to");let r=this.defaultHeaders,d=i?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(r=r.set("Accept",d));let s=i?.context??new ra$1,p=i?.transferCache??true,g="json";d&&(d.startsWith("text")?g="text":this.configuration.isJsonMime(d)?g="json":g="blob");let b="/api/usage-records/aggregate/by-user",{basePath:m,withCredentials:O}=this.configuration;return this.httpClient.request("get",`${m}${b}`,z$4(P$2({context:s,params:c,responseType:g},O?{withCredentials:O}:{}),{headers:r,observe:t,transferCache:p,reportProgress:e}))}listByCaseIdUsageRecord(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var se$1=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createUser(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/users",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteUser(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdUser(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getByIdsUser(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/users/by-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getGroupsByExternalIdsUser(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/users/groups-by-external-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getMeUser(n="body",a=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 ra$1,i=l?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let r="/api/users/me",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:c},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}listAllUser(n="body",a=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 ra$1,i=l?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let r="/api/users",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:c},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}listByExternalIdsUser(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/users/by-external-ids",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}revokeNamespaceAccessByExternalIdUser(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");if(a==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,a,"namespaceId");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p=`/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:g,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling revokeNamespaceAccessUser.");if(a==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,a,"namespaceId");let i=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(i=i.set("Accept",c));let r=t?.context??new ra$1,d=t?.transferCache??true,s="json";c&&(c.startsWith("text")?s="text":this.configuration.isJsonMime(c)?s="json":s="blob");let p=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/access`,{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${g}${p}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}updateUser(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(a==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ie$2=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createUserGroup(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let p="/api/user-groups",{basePath:g,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${g}${p}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}deleteUserGroup(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}findByNamespaceIdUserGroup(n,a="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,i=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=o?.context??new ra$1,r=o?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s="/api/user-groups",{basePath:p,withCredentials:g}=this.configuration;return this.httpClient.request("get",`${p}${s}`,z$4(P$2({context:c,params:t,responseType:d},g?{withCredentials:g}:{}),{headers:e,observe:a,transferCache:r,reportProgress:l}))}getByIdUserGroup(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}getMembersUserGroup(n,a="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 i=o?.context??new ra$1,c=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:c,reportProgress:l}))}updateUserGroup(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling updateUserGroup.");if(a==null)throw new Error("Required parameter userGroupUpdateRequest was null or undefined when calling updateUserGroup.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let c=t?.context??new ra$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let p="json";i&&(i.startsWith("text")?p="text":this.configuration.isJsonMime(i)?p="json":p="blob");let g=`/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}${g}`,z$4(P$2({context:c,body:a,responseType:p},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(C$1(dy),C$1(P$1,8),C$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ye$1=(o=>(o.PENDING="PENDING",o.RUNNING="RUNNING",o.IDLE="IDLE",o.KILLED="KILLED",o.ERROR="ERROR",o))(ye$1||{});var Ae$2=(o=>(o.PENDING="PENDING",o.RUNNING="RUNNING",o.IDLE="IDLE",o.KILLED="KILLED",o.ERROR="ERROR",o))(Ae$2||{});var ve$1=(l=>(l.FREE_TEXT="FREE_TEXT",l.SINGLE_CHOICE="SINGLE_CHOICE",l.OPEN_CHOICE="OPEN_CHOICE",l.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",l))(ve$1||{});function vi$3(C){return wt$5([typeof C=="string"?{provide:P$1,useValue:C}:{provide:y$2,useValue:new y$2(P$2({},C))}])}(class C{config=g$3(y$2);zone=g$3(G$2);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new A$1(a=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n)),o=t=>{try{let e=JSON.parse(t.data);this.zone.run(()=>a.next(e));}catch(e){this.zone.run(()=>a.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({token:C,factory:C.\u0275fac,providedIn:"root"})});var ce$3=class C{http=g$3(dy);config=g$3(y$2);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({token:C,factory:C.\u0275fac,providedIn:"root"})};var le$4=class C{http=g$3(dy);config=g$3(y$2);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({token:C,factory:C.\u0275fac,providedIn:"root"})};
6
- var r=(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})(r||{}),_$2="*";function a(s,t){return {type:r.Trigger,name:s,definitions:t,options:{}}}function c$1(s,t=null){return {type:r.Animate,styles:t,timings:s}}function y$1(s,t=null){return {type:r.Sequence,steps:s,options:t}}function F$4(s){return {type:r.Style,styles:s,offset:null}}function S$1(s,t,e=null){return {type:r.Transition,expr:s,animation:t,options:e}}var l=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(t=0,e=0){this.totalTime=t+e;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]);}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t);}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t);}onDestroy(t){this._onDestroyFns.push(t);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(t){this._position=this.totalTime?t*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0;}},u$1=class u{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let e=0,n=0,o=0,h=this.players.length;h==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++e==h&&this._onFinish();}),i.onDestroy(()=>{++n==h&&this._onDestroy();}),i.onStart(()=>{++o==h&&this._onStart();});}),this.totalTime=this.players.reduce((i,f)=>Math.max(i,f.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]);}init(){this.players.forEach(t=>t.init());}onStart(t){this._onStartFns.push(t);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(t=>t()),this._onStartFns=[]);}onDone(t){this._onDoneFns.push(t);}onDestroy(t){this._onDestroyFns.push(t);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play());}pause(){this.players.forEach(t=>t.pause());}restart(){this.players.forEach(t=>t.restart());}finish(){this._onFinish(),this.players.forEach(t=>t.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[]);}reset(){this.players.forEach(t=>t.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(t){let e=t*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o);});}getPosition(){let t=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy();});}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0;}},g$2="!";var c=class s{baseUrl="/api/projects";http=g$3(dy);listProjects(){return this.http.get(this.baseUrl)}getProject(e){return this.http.get(`${this.baseUrl}/${e}`)}getProjectConfig(e){return this.http.get(`${this.baseUrl}/${e}/config`)}updateProjectConfig(e,t){return this.http.put(`${this.baseUrl}/${e}/config`,t)}createProject(e,t){return this.http.post(this.baseUrl,{name:e,path:t})}getGitBranches(e){return this.http.get(`${this.baseUrl}/${e}/git/branches`)}createTask(e,t,r,f,v,m,S){return this.http.post(`${this.baseUrl}/${e}/missions`,{agentName:t,task:r,mode:f,branch:v,issueNumber:m,branchType:S})}closeTask(e,t){return this.http.delete(`${this.baseUrl}/${e}/missions/${t}`)}markThreadDone(e,t){return this.http.post(`${this.baseUrl}/${e}/threads/${t}/done`,{})}markThreadActive(e,t){return this.http.delete(`${this.baseUrl}/${e}/threads/${t}/done`)}markThreadsBatchDone(e,t){return this.http.post(`${this.baseUrl}/${e}/threads/batch-done`,{threadIds:t})}deleteProject(e,t){let r={};return t&&(r.removeGitWorktree="true"),this.http.delete(`${this.baseUrl}/${encodeURIComponent(e)}`,{params:r})}getPreviewEntries(e){return this.http.get(`${this.baseUrl}/${e}/preview/entries`)}startPreview(e,t){return this.http.post(`${this.baseUrl}/${e}/preview/${t}/start`,{})}stopPreview(e,t){return this.http.post(`${this.baseUrl}/${e}/preview/${t}/stop`,{})}getPreviewStatus(e,t){return this.http.get(`${this.baseUrl}/${e}/preview/${t}/status`)}getPreviewLogs(e,t){return this.http.get(`${this.baseUrl}/${e}/preview/${t}/logs`)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=x({token:s,factory:s.\u0275fac,providedIn:"root"})};var P=class s{selectedProjectIdSubject=new Tr(null);isLoadingSubject=new Tr(false);refreshTriggerSubject=new Tr(void 0);hasInitialized=false;isLoading$=this.isLoadingSubject.asObservable();projectApi=g$3(c);projectListCall=this.refreshTriggerSubject.pipe(va(()=>this.projectApi.listProjects()),Rd({bufferSize:1,refCount:true}));projectList$=this.projectListCall.pipe(ue$3(e=>e.projects));forcedProject$=this.projectListCall.pipe(ue$3(e=>e.forcedProject));selectedProject$=Ly([this.selectedProjectIdSubject,this.forcedProject$]).pipe(va(([e,t])=>{let r=t??e;return r?this.projectApi.getProject(r):br$1(null)}),Od(e=>{e&&e.name!==this.selectedProjectIdSubject.value&&(console.log("[PROJECT-STATE] Backend returned different project name:",e.name),this.selectedProjectIdSubject.next(e.name));}),Rd({bufferSize:1,refCount:true}));selectProject(e){console.log("[PROJECT-STATE] Explicit project selection:",e),this.forcedProject$.pipe(an$2(1)).subscribe(t=>this.selectedProjectIdSubject.next(t??e));}getSelectedProjectId(){return this.selectedProjectIdSubject.value}getSelectedProjectIdOrThrow(){let e=this.selectedProjectIdSubject.value;if(!e)throw new Error("[PROJECT_STATE] No project selected");return e}clearSelection(){console.log("[PROJECT-STATE] Clearing project selection"),this.selectedProjectIdSubject.next(null);}initializeDefaultProject(){return dt$2(this,null,function*(){if(this.hasInitialized){console.log("[PROJECT-STATE] Already initialized, skipping");return}this.hasInitialized=true;let e=yield this.projectApi.listProjects().pipe(an$2(1)).toPromise();if(!e){console.log("[PROJECT-STATE] No response from project API");return}let{defaultProject:t,forcedProject:r}=e;t&&!r?(console.log("[PROJECT-STATE] Initializing with default project:",t),this.selectedProjectIdSubject.next(t)):r?(console.log("[PROJECT-STATE] Initializing with forced project:",r),this.selectedProjectIdSubject.next(r)):console.log("[PROJECT-STATE] No default project, staying on selection page");})}createProject(e,t){return this.isLoadingSubject.next(true),this.projectApi.createProject(e,t).pipe(Od(()=>{this.isLoadingSubject.next(false),this.refreshTriggerSubject.next();}))}deleteProject(e,t){return this.isLoadingSubject.next(true),this.projectApi.deleteProject(e,t).pipe(Od(()=>{this.isLoadingSubject.next(false),this.refreshTriggerSubject.next(),this.selectedProjectIdSubject.value===e&&this.clearSelection();}))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=x({token:s,factory:s.\u0275fac,providedIn:"root"})};var N$1=class n{http=g$3(dy);projectState=g$3(P);getBaseUrl(){return `/api/projects/${this.projectState.getSelectedProjectIdOrThrow()}/threads`}listThreads(){return this.http.get(this.getBaseUrl())}listAllThreads(){return this.http.get("/api/threads")}getThread(e){return this.http.get(`${this.getBaseUrl()}/${e}`)}createThread(e){let t=e?{name:e}:{};return this.http.post(this.getBaseUrl(),t)}updateThread(e,t){return this.http.put(`${this.getBaseUrl()}/${e}`,{name:t})}updateThreadUsers(e,t){return this.http.put(`${this.getBaseUrl()}/${e}`,{users:t})}starThread(e){return this.http.post(`${this.getBaseUrl()}/${e}/star`,{})}unstarThread(e){return this.http.delete(`${this.getBaseUrl()}/${e}/star`)}deleteThread(e){return this.http.delete(`${this.getBaseUrl()}/${e}`)}stopThread(e){return this.http.post(`${this.getBaseUrl()}/${e}/stop`,{})}getThreadMessages(e){return this.http.get(`${this.getBaseUrl()}/${e}/messages`)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var U$4=class n{selectedThreadIdSubject=new Tr(null);isLoadingSubject=new Tr(false);isLoadingThreadListSubject=new Tr(false);refreshThreadListSubject=new ce$4;threadListSubject=new Tr([]);hasLoadedOncePerProject=new Map;currentProjectName=null;isLoading$=this.isLoadingSubject.asObservable();isLoadingThreadList$=this.isLoadingThreadListSubject.asObservable();threadApi=g$3(N$1);projectStateService=g$3(P);projectApi=g$3(c);projectName$=this.projectStateService.selectedProject$.pipe(ue$3(e=>e?.name),Nd());constructor(){Ly([this.projectName$,this.refreshThreadListSubject.asObservable().pipe(Sd(void 0))]).pipe(Od(([e])=>{e!==this.currentProjectName&&(console.log("[THREAD_STATE] Project changed, clearing thread list"),this.threadListSubject.next([]),this.currentProjectName=e),e?this.hasLoadedOncePerProject.get(e)?console.log("[THREAD_STATE] Refreshing thread list for project",e,"(no spinner)"):(console.log("[THREAD_STATE] Initial load for project",e,"- showing spinner"),this.isLoadingThreadListSubject.next(true)):(console.log("[THREAD_STATE] No project selected, hiding spinner"),this.isLoadingThreadListSubject.next(false));}),va(([e])=>e?(console.log("[THREAD_STATE] Fetching threads for project:",e),this.threadApi.listThreads().pipe(ue$3(t=>({threads:t,projectName:e})),ya(t=>(console.error("[THREAD_STATE] Error loading thread list:",t),br$1({threads:[],projectName:e}))))):(console.log("[THREAD_STATE] No project selected, returning empty list"),br$1({threads:[],projectName:null}))),Od(({threads:e,projectName:t})=>{console.log("[THREAD_STATE] Thread list loaded:",e.length,"threads for project",t),t&&this.hasLoadedOncePerProject.set(t,true),this.isLoadingThreadListSubject.next(false),this.threadListSubject.next(e);})).subscribe();}threadList$=this.threadListSubject.asObservable();refreshSelectedThreadSubject=new ce$4;selectedThread$=Ly([this.projectName$,this.selectedThreadIdSubject.pipe(Nd()),this.refreshSelectedThreadSubject.pipe(Sd(void 0))]).pipe(va(([e,t])=>!e||!t?br$1(null):(this.isLoadingSubject.next(true),this.threadApi.getThread(t).pipe(Rd({bufferSize:1,refCount:true})))),Od(()=>{this.isLoadingSubject.next(false);}));selectThread(e){this.selectedThreadIdSubject.next(e);}getSelectedThreadId(){return this.selectedThreadIdSubject.value}getSelectedThreadIdOrThrow(){let e=this.selectedThreadIdSubject.value;if(!e)throw new Error("[THREAD_STATE] No thread selected");return e}clearSelection(){this.selectedThreadIdSubject.next(null);}stop(){let e=this.selectedThreadIdSubject.value;if(!e){console.error("[THREAD_STATE] Cannot stop: no thread selected");return}console.log("[THREAD_STATE] Stopping thread:",e),this.threadApi.stopThread(e).subscribe({next:t=>console.log("[THREAD_STATE] Stop signal sent:",t.message),error:t=>console.error("[THREAD_STATE] Error stopping thread:",t)});}refreshThreadList(){console.log("[THREAD_STATE] Manually refreshing thread list"),this.refreshThreadListSubject.next();}updateStarLocal(e,t,s){let P=this.threadListSubject.value.map(l=>{if(l.id!==e)return l;let p=l.starring||[];return t&&!p.includes(s)?z$4(P$2({},l),{starring:[...p,s]}):!t&&p.includes(s)?z$4(P$2({},l),{starring:p.filter(I=>I!==s)}):l});this.threadListSubject.next(P);}refreshSelectedThread(){this.refreshSelectedThreadSubject.next();}updateThreadUsers(e,t){return this.threadApi.updateThreadUsers(e,t).pipe(Od(()=>{this.refreshThreadList();}),ya(s=>(console.error("[THREAD_STATE] Error updating thread users:",s),Hy(()=>s))))}markDone(e){let t=this.projectStateService.getSelectedProjectId();if(!t){console.error("[THREAD_STATE] Cannot mark done: no project selected");return}this.projectApi.markThreadDone(t,e).subscribe({next:()=>this.refreshThreadList(),error:s=>console.error("[THREAD_STATE] Failed to mark thread as done:",s)});}markActive(e){let t=this.projectStateService.getSelectedProjectId();if(!t){console.error("[THREAD_STATE] Cannot mark active: no project selected");return}this.projectApi.markThreadActive(t,e).subscribe({next:()=>this.refreshThreadList(),error:s=>console.error("[THREAD_STATE] Failed to mark thread as active:",s)});}renameThread(e,t){let s=t.trim();return !s||s.length===0?(console.error("[THREAD_STATE] Cannot rename thread: name is empty after trimming"),Hy(()=>new Error("Thread name cannot be empty"))):(console.log("[THREAD_STATE] Renaming thread:",e,"to:",s),this.threadApi.updateThread(e,s).pipe(Od(i=>{console.log("[THREAD_STATE] Thread renamed successfully:",i),this.refreshThreadList();}),ya(i=>(console.error("[THREAD_STATE] Error renaming thread:",i),Hy(()=>i)))))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var pe$2=class n{http=g$3(dy);usernameSubject=new Tr(null);authEnabledSubject=new Tr(false);username$=this.usernameSubject.asObservable();authEnabled$=this.authEnabledSubject.asObservable();fetchCurrentUser(){return this.http.get("/api/user/me").pipe(Od(e=>{this.usernameSubject.next(e.username),this.authEnabledSubject.next(e.authEnabled);}))}getUsername(){return this.usernameSubject.value}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var L$1=class n{STORAGE_KEY="coday-preferences";isDesktopApp=false;electronStorage=null;voiceLanguageSubject=new Tr("en-US");voiceLanguage$=this.voiceLanguageSubject.asObservable();voiceInputModeSubject=new Tr("browser");voiceInputMode$=this.voiceInputModeSubject.asObservable();enterToSendSubject=new Tr(true);enterToSend$=this.enterToSendSubject.asObservable();voiceAnnounceEnabledSubject=new Tr(false);voiceAnnounceEnabled$=this.voiceAnnounceEnabledSubject.asObservable();voiceModeSubject=new Tr("speech");voiceMode$=this.voiceModeSubject.asObservable();voiceReadFullTextSubject=new Tr(false);voiceReadFullText$=this.voiceReadFullTextSubject.asObservable();voiceVolumeSubject=new Tr(.8);voiceVolume$=this.voiceVolumeSubject.asObservable();voiceRateSubject=new Tr(1.2);voiceRate$=this.voiceRateSubject.asObservable();selectedVoiceSubject=new Tr(null);selectedVoice$=this.selectedVoiceSubject.asObservable();printTechnicalMessagesSubject=new Tr(false);printTechnicalMessages$=this.printTechnicalMessagesSubject.asObservable();hideTechnicalMessagesSubject=new Tr(true);hideTechnicalMessages$=this.hideTechnicalMessagesSubject.asObservable();hideWarningMessagesSubject=new Tr(false);hideWarningMessages$=this.hideWarningMessagesSubject.asObservable();agentNotificationEnabledSubject=new Tr(false);agentNotificationEnabled$=this.agentNotificationEnabledSubject.asObservable();notificationSoundEnabledSubject=new Tr(false);notificationSoundEnabled$=this.notificationSoundEnabledSubject.asObservable();browserNotificationEnabledSubject=new Tr(false);browserNotificationEnabled$=this.browserNotificationEnabledSubject.asObservable();themeSubject=new Tr("light");theme$=this.themeSubject.asObservable();missionPreviewEnabledSubject=new Tr(false);missionPreviewEnabled$=this.missionPreviewEnabledSubject.asObservable();constructor(){console.log("[PREFERENCES] Initializing preferences service"),typeof window<"u"&&window.codayDesktop?.storage&&(this.isDesktopApp=true,this.electronStorage=window.codayDesktop.storage,console.log("[PREFERENCES] Running in desktop app mode with persistent storage")),this.initializePreferences();}initializePreferences(){this.isDesktopApp?this.loadPreferencesAsync():this.loadPreferencesSync();}loadPreferencesSync(){let e=this.getPreferenceSync("voiceLanguage","en-US")??"en-US";this.voiceLanguageSubject.next(e),console.log("[PREFERENCES] Voice language initialized to:",e);let t=this.getPreferenceSync("useEnterToSend",true)??true;this.enterToSendSubject.next(t),console.log("[PREFERENCES] Enter to send initialized to:",t);let s=this.getPreferenceSync("voiceAnnounceEnabled",false)??false;this.voiceAnnounceEnabledSubject.next(s);let i=this.getPreferenceSync("voiceMode","speech")??"speech";this.voiceModeSubject.next(i);let P=this.getPreferenceSync("voiceReadFullText",false)??false;this.voiceReadFullTextSubject.next(P);let l=this.getPreferenceSync("voiceVolume",.8)??.8;this.voiceVolumeSubject.next(l);let p=this.getPreferenceSync("voiceRate",1.2)??1.2;this.voiceRateSubject.next(p);let I=this.getPreferenceSync("selectedVoice",null)??null;this.selectedVoiceSubject.next(I);let G=this.getPreferenceSync("printTechnicalMessages",false)??false;this.printTechnicalMessagesSubject.next(G);let Q=this.getPreferenceSync("hideTechnicalMessages",true)??true;this.hideTechnicalMessagesSubject.next(Q);let J=this.getPreferenceSync("hideWarningMessages",false)??false;this.hideWarningMessagesSubject.next(J);let Y=this.getPreferenceSync("agentNotificationEnabled",false)??false;this.agentNotificationEnabledSubject.next(Y);let X=this.getPreferenceSync("notificationSoundEnabled",true)??true;this.notificationSoundEnabledSubject.next(X);let Z=this.getPreferenceSync("browserNotificationEnabled",false)??false;this.browserNotificationEnabledSubject.next(Z);let ee=this.getPreferenceSync("theme","light")??"light";this.themeSubject.next(ee);let te=this.getPreferenceSync("missionPreviewEnabled",false)??false;this.missionPreviewEnabledSubject.next(te);let ne=this.getPreferenceSync("voiceInputMode","browser")??"browser";this.voiceInputModeSubject.next(ne),console.log("[PREFERENCES] All preferences initialized successfully");}loadPreferencesAsync(){return dt$2(this,null,function*(){let e=(yield this.getPreferenceAsync("voiceLanguage","en-US"))??"en-US";this.voiceLanguageSubject.next(e),console.log("[PREFERENCES] Voice language initialized to:",e);let t=(yield this.getPreferenceAsync("useEnterToSend",true))??true;this.enterToSendSubject.next(t),console.log("[PREFERENCES] Enter to send initialized to:",t);let s=(yield this.getPreferenceAsync("voiceAnnounceEnabled",false))??false;this.voiceAnnounceEnabledSubject.next(s);let i=(yield this.getPreferenceAsync("voiceMode","speech"))??"speech";this.voiceModeSubject.next(i);let P=(yield this.getPreferenceAsync("voiceReadFullText",false))??false;this.voiceReadFullTextSubject.next(P);let l=(yield this.getPreferenceAsync("voiceVolume",.8))??.8;this.voiceVolumeSubject.next(l);let p=(yield this.getPreferenceAsync("voiceRate",1.2))??1.2;this.voiceRateSubject.next(p);let I=(yield this.getPreferenceAsync("selectedVoice",null))??null;this.selectedVoiceSubject.next(I);let G=(yield this.getPreferenceAsync("printTechnicalMessages",false))??false;this.printTechnicalMessagesSubject.next(G);let Q=(yield this.getPreferenceAsync("hideTechnicalMessages",true))??true;this.hideTechnicalMessagesSubject.next(Q);let J=(yield this.getPreferenceAsync("hideWarningMessages",false))??false;this.hideWarningMessagesSubject.next(J);let Y=(yield this.getPreferenceAsync("agentNotificationEnabled",false))??false;this.agentNotificationEnabledSubject.next(Y);let X=(yield this.getPreferenceAsync("notificationSoundEnabled",true))??true;this.notificationSoundEnabledSubject.next(X);let Z=(yield this.getPreferenceAsync("browserNotificationEnabled",false))??false;this.browserNotificationEnabledSubject.next(Z);let ee=(yield this.getPreferenceAsync("theme","light"))??"light";this.themeSubject.next(ee);let te=(yield this.getPreferenceAsync("missionPreviewEnabled",false))??false;this.missionPreviewEnabledSubject.next(te);let ne=(yield this.getPreferenceAsync("voiceInputMode","browser"))??"browser";this.voiceInputModeSubject.next(ne),console.log("[PREFERENCES] All preferences initialized successfully (async)");})}getPreference(e,t){return this.getPreferenceSync(e,t)}getPreferenceSync(e,t){try{let s=localStorage.getItem(this.STORAGE_KEY);if(!s)return t;let i=JSON.parse(s);return i[e]!==void 0?i[e]:t}catch(s){return t}}getPreferenceAsync(e,t){return dt$2(this,null,function*(){if(!this.electronStorage)return this.getPreferenceSync(e,t);try{let s=yield this.electronStorage.get(this.STORAGE_KEY);if(!s)return t;let i=JSON.parse(s);return i[e]!==void 0?i[e]:t}catch(s){return t}})}setPreference(e,t){this.isDesktopApp?this.setPreferenceAsync(e,t):this.setPreferenceSync(e,t);}setPreferenceSync(e,t){try{let s=localStorage.getItem(this.STORAGE_KEY),i=s?JSON.parse(s):{};i[e]=t,localStorage.setItem(this.STORAGE_KEY,JSON.stringify(i)),this.updateSubject(e,t);}catch(s){console.error("Failed to set preference:",s);}}setPreferenceAsync(e,t){return dt$2(this,null,function*(){if(!this.electronStorage){this.setPreferenceSync(e,t);return}try{let s=yield this.electronStorage.get(this.STORAGE_KEY),i=s?JSON.parse(s):{};i[e]=t,yield this.electronStorage.set(this.STORAGE_KEY,JSON.stringify(i)),this.updateSubject(e,t);}catch(s){console.error("Failed to set preference:",s);}})}updateSubject(e,t){e==="voiceLanguage"&&this.voiceLanguageSubject.next(t),e==="useEnterToSend"&&this.enterToSendSubject.next(t),e==="voiceAnnounceEnabled"&&this.voiceAnnounceEnabledSubject.next(t),e==="voiceMode"&&this.voiceModeSubject.next(t),e==="voiceReadFullText"&&this.voiceReadFullTextSubject.next(t),e==="voiceVolume"&&this.voiceVolumeSubject.next(t),e==="voiceRate"&&this.voiceRateSubject.next(t),e==="selectedVoice"&&this.selectedVoiceSubject.next(t),e==="printTechnicalMessages"&&this.printTechnicalMessagesSubject.next(t),e==="hideTechnicalMessages"&&this.hideTechnicalMessagesSubject.next(t),e==="hideWarningMessages"&&this.hideWarningMessagesSubject.next(t),e==="agentNotificationEnabled"&&this.agentNotificationEnabledSubject.next(t),e==="notificationSoundEnabled"&&this.notificationSoundEnabledSubject.next(t),e==="browserNotificationEnabled"&&this.browserNotificationEnabledSubject.next(t),e==="theme"&&this.themeSubject.next(t),e==="voiceInputMode"&&this.voiceInputModeSubject.next(t),e==="missionPreviewEnabled"&&this.missionPreviewEnabledSubject.next(t);}setVoiceLanguage(e){console.log("[PREFERENCES] Setting voice language to:",e),this.setPreference("voiceLanguage",e);}getVoiceLanguage(){return this.getPreference("voiceLanguage","en-US")??"en-US"}setVoiceInputMode(e){console.log("[PREFERENCES] Setting voice input mode to:",e),this.setPreference("voiceInputMode",e);}getVoiceInputMode(){return this.getPreference("voiceInputMode","browser")??"browser"}setEnterToSend(e){console.log("[PREFERENCES] Setting Enter to send to:",e),this.setPreference("useEnterToSend",e);}getEnterToSend(){return this.getPreference("useEnterToSend",false)??false}setVoiceAnnounceEnabled(e){console.log("[PREFERENCES] Setting voice announce enabled to:",e),this.setPreference("voiceAnnounceEnabled",e);}getVoiceAnnounceEnabled(){return this.getPreference("voiceAnnounceEnabled",false)??false}setVoiceMode(e){console.log("[PREFERENCES] Setting voice mode to:",e),this.setPreference("voiceMode",e);}getVoiceMode(){return this.getPreference("voiceMode","speech")??"speech"}setVoiceReadFullText(e){console.log("[PREFERENCES] Setting voice read full text to:",e),this.setPreference("voiceReadFullText",e);}getVoiceReadFullText(){return this.getPreference("voiceReadFullText",false)??false}setVoiceVolume(e){let t=Math.max(0,Math.min(1,e));console.log("[PREFERENCES] Setting voice volume to:",t),this.setPreference("voiceVolume",t);}getVoiceVolume(){return this.getPreference("voiceVolume",.8)??.8}setVoiceRate(e){let t=Math.max(.5,Math.min(2,e));console.log("[PREFERENCES] Setting voice rate to:",t),this.setPreference("voiceRate",t);}getVoiceRate(){return this.getPreference("voiceRate",1.2)??1.2}setSelectedVoice(e){console.log("[PREFERENCES] Setting selected voice to:",e),this.setPreference("selectedVoice",e);}getSelectedVoice(){return this.getPreference("selectedVoice",null)??null}setPrintTechnicalMessages(e){console.log("[PREFERENCES] Setting print technical messages to:",e),this.setPreference("printTechnicalMessages",e);}getPrintTechnicalMessages(){return this.getPreference("printTechnicalMessages",false)??false}setHideTechnicalMessages(e){console.log("[PREFERENCES] Setting hide technical messages to:",e),this.setPreference("hideTechnicalMessages",e);}getHideTechnicalMessages(){return this.getPreference("hideTechnicalMessages",true)??true}setHideWarningMessages(e){console.log("[PREFERENCES] Setting hide warning messages to:",e),this.setPreference("hideWarningMessages",e);}getHideWarningMessages(){return this.getPreference("hideWarningMessages",false)??false}setAgentNotificationEnabled(e){console.log("[PREFERENCES] Setting agent notification enabled to:",e),this.setPreference("agentNotificationEnabled",e);}getAgentNotificationEnabled(){return this.getPreference("agentNotificationEnabled",false)??false}setNotificationSoundEnabled(e){console.log("[PREFERENCES] Setting notification sound enabled to:",e),this.setPreference("notificationSoundEnabled",e);}getNotificationSoundEnabled(){return this.getPreference("notificationSoundEnabled",true)??true}setBrowserNotificationEnabled(e){console.log("[PREFERENCES] Setting browser notification enabled to:",e),this.setPreference("browserNotificationEnabled",e);}getBrowserNotificationEnabled(){return this.getPreference("browserNotificationEnabled",false)??false}setMissionPreviewEnabled(e){this.setPreference("missionPreviewEnabled",e);}getMissionPreviewEnabled(){return this.getPreference("missionPreviewEnabled",false)??false}getMissionPreviewPanelWidth(){return this.getPreference("missionPreviewPanelWidth",33)??33}setMissionPreviewPanelWidth(e){this.setPreference("missionPreviewPanelWidth",e);}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};function ce$2(n,e=80){if(n.length<=e)return n;try{if(n.trim().startsWith("{")||n.trim().startsWith("[")){let t=JSON.parse(n),s=JSON.stringify(t);return s.length<=e?s:s.substring(0,e)+`...(${s.length} chars)`}}catch(t){}return n.substring(0,e)+"..."}var o=class{constructor(e,t){this.type=t;if(e.timestamp)this.timestamp=e.timestamp;else {let s=Math.random().toString(36).substring(2,7);this.timestamp=`${new Date().toISOString()}-${s}`;}this.parentKey=e.parentKey,this.threadId=e.threadId,this.length=0;}type;timestamp;parentKey;static type;length;threadId;get date(){let e=this.timestamp.lastIndexOf("-");if(e>0){let t=this.timestamp.substring(e+1);if(t.length===5&&/^[a-z0-9]+$/.test(t))return new Date(this.timestamp.substring(0,e))}return new Date(this.timestamp)}},q$2=class q extends o{invite;constructor(e,t){super(e,t),this.invite=e.invite;}buildAnswer(e){return new u({answer:e,parentKey:this.timestamp,invite:this.invite})}},F$3=class n extends o{static type="heartbeat";constructor(e){super(e,n.type);}},f$1=class n extends q$2{defaultValue;static type="invite";constructor(e){super(e,n.type),this.defaultValue=e.defaultValue;}},_e$1="InviteEventDefault",u=class n extends o{answer;invite;name;silent;static type="answer";constructor(e){super(e,n.type),this.answer=e.answer??"No answer",this.invite=e.invite,this.name=e.name,this.silent=e.silent;}},A=class n extends o{speaker;text;static type="text";constructor(e){super(e,n.type),this.speaker=e.speaker,this.text=e.text;}},B$3=class n extends o{chunk;static type="text_chunk";constructor(e){super(e,n.type),this.chunk=e.chunk,this.length=this.chunk.length;}},M=class n extends o{warning;static type="warn";constructor(e){super(e,n.type),this.warning=e.warning;}},h$1=class n extends o{error;static type="error";constructor(e){super(e,n.type),this.error=e.error;}},b=class n extends q$2{options;optionalQuestion;allowFreeText;static type="choice";constructor(e){super(e,n.type),this.options=Array.isArray(e.options)?e.options:[],this.optionalQuestion=e.optionalQuestion,this.allowFreeText=e.allowFreeText??false;}},v=class n extends o{toolRequestId;name;args;static type="tool_request";constructor(e){super(e,n.type),this.toolRequestId=e.toolRequestId??this.timestamp,this.name=e.name,this.args=e.args,this.length=this.args.length+this.name.length+this.toolRequestId.length+20;}buildResponse(e){return new m$3({output:e,toolRequestId:this.toolRequestId,parentKey:this.timestamp})}toSingleLineString(e=50){let t=ce$2(this.args,e);return `\u{1F527} ${this.name}(${t})`}},m$3=class n extends o{toolRequestId;output;static type="tool_response";constructor(e){if(super(e,n.type),this.toolRequestId=e.toolRequestId||this.timestamp||new Date().toISOString(),this.output=e.output,typeof this.output=="string")this.length=this.output.length+this.toolRequestId.length+20;else if(this.output.type==="text")this.length=this.output.content.length+this.toolRequestId.length+20;else if(this.output.type==="image"){let t=(this.output.width??0)*(this.output.height??0)/750;this.length=(t?t*3.5:this.output.content.length)+this.toolRequestId.length+20;}else this.length=this.toolRequestId.length+20;}getTextOutput(){return typeof this.output=="string"?this.output:this.output.type==="text"?this.output.content:this.output.type==="image"?`[Image: ${this.output.mimeType}]`:""}toSingleLineString(e=50){let t=this.getTextOutput(),s=ce$2(t,e),i=typeof this.output!="string"&&this.output.type==="image"?" [image]":"";return `\u2B91 ${s}${i}`}},O$3=class n extends o{static type="thinking";static debounce=5e3;constructor(e){super(e,n.type);}},y=class n extends o{summary;static type="summary";constructor(e){super(e,n.type),this.summary=e.summary,this.length=this.summary.length;}toSingleLineString(e=80){return `\u{1F4CB} Summary: ${ce$2(this.summary,e)}`}},T$2=class n extends o{role;name;content;static type="message";constructor(e){super(e,n.type),this.role=e.role,this.name=e.name;let t=e.content;Array.isArray(t)?this.content=t.map(s=>typeof s=="string"?{type:"text",content:s}:s):typeof t=="string"?this.content=[{type:"text",content:t}]:t&&typeof t=="object"&&"type"in t?this.content=[t]:this.content=[],this.length=this.content.map(s=>{if(s.type==="text")return s.content.length;if(s.type==="image"){let i=(s.width||0)*(s.height||0)/750;return i?i*3.5:s.content.length}return s.type==="audio"?s.transcription?.length??100:0}).reduce((s,i)=>s+i,0);}getTextContent(){return this.content.filter(e=>e.type==="text").map(e=>e.content).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n;});function en$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var X$4=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$2(r))try{r();}catch(i){t=i instanceof Lo$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{nd(i);}catch(s){t=t??[],s instanceof Lo$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Lo$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)nd(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)&&en$2(n,t);}remove(t){let{_finalizers:n}=this;n&&en$2(n,t),t instanceof e&&t._removeParent(this);}};X$4.EMPTY=(()=>{let e=new X$4;return e.closed=true,e})();var la=X$4.EMPTY;function jo$1(e){return e instanceof X$4||e&&"closed"in e&&M$2(e.remove)&&M$2(e.add)&&M$2(e.unsubscribe)}function nd(e){M$2(e)?e():e.unsubscribe();}var Le$4={Promise:void 0};var Ln$3={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function Bo$1(e){Ln$3.setTimeout(()=>{throw e});}function tn$2(){}function jn$3(e){e();}var rn$2=class rn extends X$4{constructor(t){super(),this.isStopped=false,t?(this.destination=t,jo$1(t)&&t.add(this)):this.destination=Dy;}static create(t,n,r){return new je$4(t,n,r)}next(t){this.isStopped?pa():this._next(t);}error(t){this.isStopped?pa():(this.isStopped=true,this._error(t));}complete(){this.isStopped?pa():(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 ha=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){Vo$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){Vo$1(r);}else Vo$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){Vo$1(n);}}},je$4=class je extends rn$2{constructor(t,n,r){super();let o;if(M$2(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new ha(o);}};function Vo$1(e){Bo$1(e);}function vy(e){throw e}function pa(e,t){}var Dy={closed:true,next:tn$2,error:vy,complete:tn$2};var Bn$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function De$2(e){return e}function Ey(...e){return ga(e)}function ga(e){return e.length===0?De$2:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var A$1=(()=>{class e{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=wy(n)?n:new je$4(n,r,o);return jn$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=ad(r),new r((o,i)=>{let s=new je$4({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)}[Bn$3](){return this}pipe(...n){return ga(n)(this)}toPromise(n){return n=ad(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 ad(e){var t;return (t=e??Le$4.Promise)!==null&&t!==void 0?t:Promise}function Iy(e){return e&&M$2(e.next)&&M$2(e.error)&&M$2(e.complete)}function wy(e){return e&&e instanceof rn$2||Iy(e)&&jo$1(e)}var cd=Rt$3(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ce$3=(()=>{class e extends A$1{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new Ho$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new cd}next(n){jn$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){jn$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(){jn$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?la:(this.currentObservers=null,i.push(n),new X$4(()=>{this.currentObservers=null,en$2(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new A$1;return n.source=this,n}}return e.create=(t,n)=>new Ho$1(t,n),e})(),Ho$1=class Ho extends ce$3{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:la}};var Tr=class extends ce$3{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};function Uo$1(e){return e&&M$2(e.schedule)}function ma(e){return e[e.length-1]}function $o$1(e){return M$2(ma(e))?e.pop():void 0}function Qe$4(e){return Uo$1(ma(e))?e.pop():void 0}function ud(e,t){return typeof ma(e)=="number"?e.pop():t}function dd(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 ld(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 on$2(e){return this instanceof on$2?(this.v=e,this):new on$2(e)}function fd(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 on$2?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 pd(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 ld=="function"?ld(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 zo$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function Go$1(e){return M$2(e?.then)}function Wo$1(e){return M$2(e[Bn$3])}function qo$1(e){return Symbol.asyncIterator&&M$2(e?.[Symbol.asyncIterator])}function Zo$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 Cy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Yo=Cy();function Qo$1(e){return M$2(e?.[Yo])}function Ko$1(e){return fd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield on$2(n.read());if(o)return yield on$2(void 0);yield yield on$2(r);}}finally{n.releaseLock();}})}function Xo$1(e){return M$2(e?.getReader)}function O$4(e){if(e instanceof A$1)return e;if(e!=null){if(Wo$1(e))return Ty(e);if(zo$1(e))return by(e);if(Go$1(e))return Sy(e);if(qo$1(e))return hd(e);if(Qo$1(e))return _y(e);if(Xo$1(e))return My(e)}throw Zo$1(e)}function Ty(e){return new A$1(t=>{let n=e[Bn$3]();if(M$2(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function by(e){return new A$1(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function Sy(e){return new A$1(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,Bo$1);})}function _y(e){return new A$1(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function hd(e){return new A$1(t=>{Ny(e,t).catch(n=>t.error(n));})}function My(e){return hd(Ko$1(e))}function Ny(e,t){var n,r,o,i;return dd(this,void 0,void 0,function*(){try{for(n=pd(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 ne$3(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 xy(e){return M$2(e?.lift)}function C$1(e){return t=>{if(xy(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r);}});throw new TypeError("Unable to lift unknown Observable type")}}function T$3(e,t,n,r,o){return new ya(e,t,n,r,o)}var ya=class extends rn$2{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){t.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){t.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){t.error(a);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function Jo$1(e,t=0){return C$1((n,r)=>{n.subscribe(T$3(r,o=>ne$3(r,e,()=>r.next(o),t),()=>ne$3(r,e,()=>r.complete(),t),o=>ne$3(r,e,()=>r.error(o),t)));})}function ei$1(e,t=0){return C$1((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function gd(e,t){return O$4(e).pipe(ei$1(t),Jo$1(t))}function md(e,t){return O$4(e).pipe(ei$1(t),Jo$1(t))}function yd(e,t){return new A$1(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function vd(e,t){return new A$1(n=>{let r;return ne$3(n,t,()=>{r=e[Yo](),ne$3(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$2(r?.return)&&r.return()})}function ti$1(e,t){if(!e)throw new Error("Iterable cannot be null");return new A$1(n=>{ne$3(n,t,()=>{let r=e[Symbol.asyncIterator]();ne$3(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function Dd(e,t){return ti$1(Ko$1(e),t)}function Ed(e,t){if(e!=null){if(Wo$1(e))return gd(e,t);if(zo$1(e))return yd(e,t);if(Go$1(e))return md(e,t);if(qo$1(e))return ti$1(e,t);if(Qo$1(e))return vd(e,t);if(Xo$1(e))return Dd(e,t)}throw Zo$1(e)}function Ke$2(e,t){return t?Ed(e,t):O$4(e)}function br$1(...e){let t=Qe$4(e);return Ke$2(e,t)}function ue$3(e,t){return C$1((n,r)=>{let o=0;n.subscribe(T$3(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:Ay}=Array,{getPrototypeOf:Ry,prototype:Oy,keys:ky}=Object;function ni$2(e){if(e.length===1){let t=e[0];if(Ay(t))return {args:t,keys:null};if(Fy(t)){let n=ky(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Fy(e){return e&&typeof e=="object"&&Ry(e)===Oy}var{isArray:Py}=Array;function Ly(e,t){return Py(t)?e(...t):e(t)}function ri$1(e){return ue$3(t=>Ly(e,t))}function oi$2(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function jy(...e){let t=Qe$4(e),n=$o$1(e),{args:r,keys:o}=ni$2(e);if(r.length===0)return Ke$2([],t);let i=new A$1(By(r,t,o?s=>oi$2(o,s):De$2));return n?i.pipe(ri$1(n)):i}function By(e,t,n=De$2){return r=>{Id(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Id(t,()=>{let u=Ke$2(e[c],t),l=false;u.subscribe(T$3(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function Id(e,t,n){e?ne$3(n,e,t):t();}function Vy(...e){let t=$o$1(e),{args:n,keys:r}=ni$2(e),o=new A$1(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=false;O$4(n[l]).subscribe(T$3(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?oi$2(r,a):a),i.complete());}));}});return t?o.pipe(ri$1(t)):o}function Ot$3(e,t){return C$1((n,r)=>{let o=0;n.subscribe(T$3(r,i=>e.call(t,i,o++)&&r.next(i)));})}function va(e){return C$1((t,n)=>{let r=null,o=!1,i;r=t.subscribe(T$3(n,void 0,void 0,s=>{i=O$4(e(s,va(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var ii$2=class ii extends X$4{constructor(t,n){super();}schedule(t,n=0){return this}};var Sr$1={setInterval(e,t,...n){let{delegate:r}=Sr$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var si$2=class si extends ii$2{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 Sr$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&&Sr$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,en$2(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var _r={now(){return (_r.delegate||Date).now()},delegate:void 0};var Vn$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)}};Vn$3.now=_r.now;var ai$1=class ai extends Vn$3{constructor(t,n=Vn$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 ft$3=new ai$1(si$2),wd=ft$3;function Cd(e,t=ft$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$3(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function Td(e){return Ot$3((t,n)=>e<=n)}function ci$1(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;O$4(n(y,l++)).subscribe(T$3(t,_=>{i?f(_):t.next(_);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let _=c.shift();s?ne$3(t,s,()=>h(_)):h(_);}p();}catch(_){t.error(_);}}));};return e.subscribe(T$3(t,f,()=>{d=true,p();})),()=>{}}function pt$4(e,t,n=1/0){return M$2(t)?pt$4((r,o)=>ue$3((i,s)=>t(r,i,o,s))(O$4(e(r,o))),n):(typeof t=="number"&&(n=t),C$1((r,o)=>ci$1(r,o,e,n)))}function Mr(e=1/0){return pt$4(De$2,e)}function bd(){return Mr(1)}function kt$1(...e){return bd()(Ke$2(e,Qe$4(e)))}function Sd(...e){let t=Qe$4(e);return C$1((n,r)=>{(t?kt$1(e,n,t):kt$1(e,n)).subscribe(r);})}function Da(e,t){return C$1((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(T$3(r,c=>{o?.unsubscribe();let u=0,l=i++;O$4(e(c,l)).subscribe(o=T$3(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Hy(e){return C$1((t,n)=>{O$4(e).subscribe(T$3(n,()=>n.complete(),tn$2)),!n.closed&&t.subscribe(n);})}var Nr=class extends ce$3{constructor(t=1/0,n=1/0,r=_r){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};var sn$2=new A$1(e=>e.complete());function Uy(e,t){let n=M$2(e)?e:()=>e,r=o=>o.error(n());return new A$1(r)}function $y(e){return !!e&&(e instanceof A$1||M$2(e.lift)&&M$2(e.subscribe))}var ht$3=Rt$3(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function zy(e,t){return new Promise((r,o)=>{let i=false,s;e.subscribe({next:a=>{s=a,i=true;},error:o,complete:()=>{i?r(s):o(new ht$3);}});})}function Gy(e,t){return new Promise((r,o)=>{let i=new je$4({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{o(new ht$3);}});e.subscribe(i);})}function ui$2(e){return e instanceof Date&&!isNaN(e)}var Wy=Rt$3(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function qy(e,t){let{first:n,each:r,with:o=Zy,scheduler:i=ft$3,meta:s=null}=ui$2(e)?{first:e}:{each: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=ne$3(c,i,()=>{try{u.unsubscribe(),O$4(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(y){c.error(y);}},h);};u=a.subscribe(T$3(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 Zy(e){throw new Wy(e)}function Yy(e){return new A$1(t=>{O$4(e()).subscribe(t);})}function li$1(e=0,t,n=wd){let r=-1;return t!=null&&(Uo$1(t)?n=t:r=t),new A$1(o=>{let i=ui$2(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 Qy(...e){let t=Qe$4(e),n=ud(e,1/0),r=e;return r.length?r.length===1?O$4(r[0]):Mr(n)(Ke$2(r,t)):sn$2}function _d(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$3(n,u=>{r=!0,o=u,i||O$4(e(u)).subscribe(i=T$3(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Ky(e,t=ft$3){return _d(()=>li$1(e,t))}function Md(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(T$3(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function di$2(e,t){return M$2(t)?pt$4(e,t,1):pt$4(e,1)}function Nd(e){return C$1((t,n)=>{let r=!1;t.subscribe(T$3(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function an$2(e){return e<=0?()=>sn$2:C$1((t,n)=>{let r=0;t.subscribe(T$3(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function Ea(){return C$1((e,t)=>{e.subscribe(T$3(t,tn$2));})}function Ia(e){return ue$3(()=>e)}function wa(e,t){return t?n=>kt$1(t.pipe(an$2(1),Ea()),n.pipe(wa(e))):pt$4((n,r)=>O$4(e(n,r)).pipe(an$2(1),Ia(n)))}function Xy(e,t=ft$3){let n=li$1(e,t);return wa(()=>n)}function xd(e,t=De$2){return e=e??Jy,C$1((n,r)=>{let o,i=!0;n.subscribe(T$3(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Jy(e,t){return e===t}function Ad(e=ev){return C$1((t,n)=>{let r=!1;t.subscribe(T$3(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function ev(){return new ht$3}function tv(...e){return t=>kt$1(t,br$1(...e))}function nv(e,t=1/0,n){return t=(t||0)<1?1/0:t,C$1((r,o)=>ci$1(r,o,e,t,void 0,!0,n))}function fi$3(e){return C$1((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function Rd(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot$3((o,i)=>e(o,i,r)):De$2,an$2(1),n?Nd(t):Ad(()=>new ht$3))}function rv(e){return e<=0?()=>sn$2:C$1((t,n)=>{let r=[];t.subscribe(T$3(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function ov(){return C$1((e,t)=>{let n,r=!1;e.subscribe(T$3(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0;}));})}function iv(e,t){return C$1(Md(e,t,arguments.length>=2,!0))}function Ta(e={}){let{connector:t=()=>new ce$3,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=Ca(h,o));}),_.subscribe(D),!s&&u>0&&(s=new je$4({next:$=>_.next($),error:$=>{d=!0,p(),a=Ca(f,n,$),_.error($);},complete:()=>{l=!0,p(),a=Ca(f,r),_.complete();}}),O$4(y).subscribe(s));})(i)}}function Ca(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new je$4({next:()=>{r.unsubscribe(),e();}});return O$4(t(...n)).subscribe(r)}function Od(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,Ta({connector:()=>new Nr(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function sv(e,t=false){return C$1((n,r)=>{let o=0;n.subscribe(T$3(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}function kd(e,t,n){let r=M$2(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$3(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c);},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete();},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c);},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r);}));}):De$2}var le$5=null,pi$3=false,cn$2=1,q$3=Symbol("SIGNAL");function I$2(e){let t=le$5;return le$5=e,t}function hi$2(){return le$5}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$4(e){if(pi$3)throw new Error("");if(le$5===null)return;le$5.consumerOnSignalRead(e);let t=le$5.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=le$5.recomputing;if(r&&(n=t!==void 0?t.nextProducer:le$5.producers,n!==void 0&&n.producer===e)){le$5.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=cn$2;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===le$5&&(!r||o.knownValidAtEpoch===cn$2))return;let i=$n$3(le$5),s={producer:e,consumer:le$5,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:cn$2,lastReadVersion:e.version,nextConsumer:void 0};le$5.producersTail=s,t!==void 0?t.nextProducer=s:le$5.producers=s,i&&jd(e,s);}function Fd(){cn$2++;}function dn$2(e){if(!($n$3(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===cn$2)){if(!e.producerMustRecompute(e)&&!Un$3(e)){Hn$3(e);return}e.producerRecomputeValue(e),Hn$3(e);}}function ba(e){if(e.consumers===void 0)return;let t=pi$3;pi$3=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||cv(r);}}finally{pi$3=t;}}function Sa(){return le$5?.consumerAllowSignalWrites!==false}function cv(e){e.dirty=true,ba(e),e.consumerMarkedDirty?.(e);}function Hn$3(e){e.dirty=false,e.lastCleanEpoch=cn$2;}function mt$3(e){return e&&Pd(e),I$2(e)}function Pd(e){if(e.producersTail?.knownValidAtEpoch===cn$2){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Pt$4(e,t){I$2(t),e&&Ld(e);}function Ld(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if($n$3(e))do n=_a(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Un$3(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(dn$2(n),r!==n.version))return true}return false}function Lt$1(e){if($n$3(e)){let t=e.producers;for(;t!==void 0;)t=_a(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function jd(e,t){let n=e.consumersTail,r=$n$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)jd(o.producer,o);}function _a(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,!$n$3(t)){let i=t.producers;for(;i!==void 0;)i=_a(i);}return n}function $n$3(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ar$1(e,t){return Object.is(e,t)}function Rr$1(e,t){let n=Object.create(uv);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(dn$2(n),gt$4(n),n.value===Xe$1)throw n.error;return n.value};return r[q$3]=n,r}var un$2=Symbol("UNSET"),ln$1=Symbol("COMPUTING"),Xe$1=Symbol("ERRORED"),uv=z$4(P$2({},Ft$1),{value:un$2,dirty:true,error:null,equal:Ar$1,kind:"computed",producerMustRecompute(e){return e.value===un$2||e.value===ln$1},producerRecomputeValue(e){if(e.value===ln$1)throw new Error("");let t=e.value;e.value=ln$1;let n=mt$3(e),r,o=false;try{r=e.computation(),I$2(null),o=t!==un$2&&t!==Xe$1&&r!==Xe$1&&e.equal(t,r);}catch(i){r=Xe$1,e.error=i;}finally{Pt$4(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function lv(){throw new Error}var Bd=lv;function Vd(e){Bd(e);}function Ma(e){Bd=e;}function Na(e,t){let n=Object.create(Or);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Hd(n);return r[q$3]=n,[r,s=>jt$3(n,s),s=>gi$2(n,s)]}function Hd(e){return gt$4(e),e.value}function jt$3(e,t){Sa()||Vd(e),e.equal(e.value,t)||(e.value=t,fv(e));}function gi$2(e,t){Sa()||Vd(e),jt$3(e,t(e.value));}var Or=z$4(P$2({},Ft$1),{equal:Ar$1,value:void 0,kind:"signal"});function fv(e){e.version++,Fd(),ba(e);}var xa=z$4(P$2({},Ft$1),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function Aa(e){if(e.dirty=false,e.version>0&&!Un$3(e))return;e.version++;let t=mt$3(e);try{e.cleanup(),e.fn();}finally{Pt$4(e,t);}}var Ra;function mi$2(){return Ra}function Je$2(e){let t=Ra;return Ra=e,t}var Ud=Symbol("NotFound");function zn$3(e){return e===Ud||e?.name==="\u0275NotFound"}function Oa(e,t,n){let r=Object.create(pv);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(dn$2(r),gt$4(r),r.value===Xe$1)throw r.error;return r.value};return i[q$3]=r,i}function $d(e,t){dn$2(e),jt$3(e,t),Hn$3(e);}function zd(e,t){if(dn$2(e),e.value===Xe$1)throw e.error;gi$2(e,t),Hn$3(e);}var pv=z$4(P$2({},Ft$1),{value:un$2,dirty:true,error:null,equal:Ar$1,kind:"linkedSignal",producerMustRecompute(e){return e.value===un$2||e.value===ln$1},producerRecomputeValue(e){if(e.value===ln$1)throw new Error("");let t=e.value;e.value=ln$1;let n=mt$3(e),r,o=false;try{let i=e.source(),s=t!==un$2&&t!==Xe$1,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,I$2(null),o=s&&r!==Xe$1&&e.equal(t,r);}catch(i){r=Xe$1,e.error=i;}finally{Pt$4(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Gd(e){let t=I$2(null);try{return e()}finally{I$2(t);}}var Ci$2="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m$4=class m extends Error{code;constructor(t,n){super(et$3(t,n)),this.code=t;}};function hv(e){return `NG0${Math.abs(e)}`}function et$3(e,t){return `${hv(e)}${t?": "+t:""}`}function k$3(e){for(let t in e)if(e[t]===k$3)return t;throw Error("")}function Qd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function Br(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(Br).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 Ti$2(e,t){return e?t?`${e} ${t}`:e:t||""}var gv=k$3({__forward_ref__:k$3});function bi$2(e){return e.__forward_ref__=bi$2,e}function J$5(e){return Wa(e)?e():e}function Wa(e){return typeof e=="function"&&e.hasOwnProperty(gv)&&e.__forward_ref__===bi$2}function x(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function qn$3(e){return {providers:e.providers||[],imports:e.imports||[]}}function Vr(e){return yv(e,Si$1)}function mv(e){return Vr(e)!==null}function yv(e,t){return e.hasOwnProperty(t)&&e[t]||null}function vv(e){let t=e?.[Si$1]??null;return t||null}function Fa(e){return e&&e.hasOwnProperty(vi$3)?e[vi$3]:null}var Si$1=k$3({\u0275prov:k$3}),vi$3=k$3({\u0275inj:k$3}),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({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function qa(e){return e&&!!e.\u0275providers}var Za=k$3({\u0275cmp:k$3}),Ya=k$3({\u0275dir:k$3}),Qa=k$3({\u0275pipe:k$3}),Ka=k$3({\u0275mod:k$3}),Fr=k$3({\u0275fac:k$3}),mn$3=k$3({__NG_ELEMENT_ID__:k$3}),Wd=k$3({__NG_ENV_ID__:k$3});function Kd(e){return Mi$2(e),e[Ka]||null}function Et$4(e){return Mi$2(e),e[Za]||null}function _i$2(e){return Mi$2(e),e[Ya]||null}function Xd(e){return Mi$2(e),e[Qa]||null}function Mi$2(e,t){if(e==null)throw new m$4(-919,false)}function oe$2(e){return typeof e=="string"?e:e==null?"":String(e)}var Jd=k$3({ngErrorCode:k$3}),Dv=k$3({ngErrorMessage:k$3});k$3({ngTokenPath:k$3});function Xa(e,t){return ef("",-200)}function Ni$2(e,t){throw new m$4(-201,false)}function ef(e,t,n){let r=new m$4(t,e);return r[Jd]=t,r[Dv]=e,r}function Iv(e){return e[Jd]}var Pa;function tf(){return Pa}function de$3(e){let t=Pa;return Pa=e,t}function Ja(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;Ni$2();}var _e$2=globalThis;var wv={},fn$3=wv,Cv="__NG_DI_FLAG__",La=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=pn$3(n)||0;try{return this.injector.get(t,r&8?null:fn$3,r)}catch(o){if(zn$3(o))return o;throw o}}};function Tv(e,t=0){let n=mi$2();if(n===void 0)throw new m$4(-203,false);if(n===null)return Ja(e,void 0,t);{let r=bv(t),o=n.retrieve(e,r);if(zn$3(o)){if(r.optional)return null;throw o}return o}}function b$1(e,t=0){return (tf()||Tv)(J$5(e),t)}function g$3(e,t){return b$1(e,pn$3(t))}function pn$3(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function bv(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ja(e){let t=[];for(let n=0;n<e.length;n++){let r=J$5(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$4(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Sv(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 Sv(e){return e[Cv]}function Bt$2(e,t){let n=e.hasOwnProperty(Fr);return n?e[Fr]:null}function nf(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 rf(e){return e.flat(Number.POSITIVE_INFINITY)}function xi$2(e,t){e.forEach(n=>Array.isArray(n)?xi$2(n,t):t(n));}function ec(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 of(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function sf(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 Ai$2(e,t,n){let r=Zn$3(e,t);return r>=0?e[r|1]=n:(r=~r,sf(e,r,t,n)),r}function Ri$2(e,t){let n=Zn$3(e,t);if(n>=0)return e[n|1]}function Zn$3(e,t){return _v(e,t,1)}function _v(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$2={},re$3=[],It$1=new w(""),Ur=new w("",-1),tc=new w(""),Wn$3=class Wn{get(t,n=fn$3){if(n===fn$3){let o=ef("",-201);throw o.name="\u0275NotFound",o}return n}};function wt$5(e){return {\u0275providers:e}}function af(e){return wt$5([{provide:It$1,multi:true,useValue:e}])}function cf(...e){return {\u0275providers:nc(true,e),\u0275fromNgModule:true}}function nc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return xi$2(t,s=>{let a=s;Di$2(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&uf(o,i),n}function uf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];rc(o,i=>{t(i,r);});}}function Di$2(e,t,n,r){if(e=J$5(e),!e)return false;let o=null,i=Fa(e),s=!i&&Et$4(e);if(!i&&!s){let c=e.ngModule;if(i=Fa(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)Di$2(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;xi$2(i.imports,l=>{Di$2(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&uf(u,t);}if(!a){let u=Bt$2(o)||(()=>new o);t({provide:o,useFactory:u,deps:re$3},o),t({provide:tc,useValue:o,multi:true},o),t({provide:It$1,useValue:()=>b$1(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;rc(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function rc(e,t){for(let n of e)qa(n)&&(n=n.\u0275providers),Array.isArray(n)?rc(n,t):t(n);}var Mv=k$3({provide:String,useValue:k$3});function lf(e){return e!==null&&typeof e=="object"&&Mv in e}function Nv(e){return !!(e&&e.useExisting)}function xv(e){return !!(e&&e.useFactory)}function hn$2(e){return typeof e=="function"}function df(e){return !!e.useClass}var $r=new w(""),yi$2={},qd={},ka;function Yn$3(){return ka===void 0&&(ka=new Wn$3),ka}var fe$4=class fe{},gn$3=class gn 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,Va(t,s=>this.processProvider(s)),this.records.set(Ur,Gn$3(void 0,this)),o.has("environment")&&this.records.set(fe$4,Gn$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(tc,re$3,{self:true}));}retrieve(t,n){let r=pn$3(n)||0;try{return this.get(t,fn$3,r)}catch(o){if(zn$3(o))return o;throw o}}destroy(){kr(this),this._destroyed=true;let t=I$2(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),I$2(t);}}onDestroy(t){return kr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){kr(this);let n=Je$2(this),r=de$3(void 0);try{return t()}finally{Je$2(n),de$3(r);}}get(t,n=fn$3,r){if(kr(this),t.hasOwnProperty(Wd))return t[Wd](this);let o=pn$3(r),s=Je$2(this),a=de$3(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Fv(t)&&Vr(t);l&&this.injectableDefInScope(l)?u=Gn$3(Ba(t),yi$2):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Yn$3():this.parent;return n=o&8&&n===fn$3?null:n,c.get(t,n)}catch(c){let u=Iv(c);throw u===-200||u===-201?new m$4(u,null):c}finally{de$3(a),Je$2(s);}}resolveInjectorInitializers(){let t=I$2(null),n=Je$2(this),r=de$3(void 0);try{let i=this.get(It$1,re$3,{self:!0});for(let s of i)s();}finally{Je$2(n),de$3(r),I$2(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=J$5(t);let n=hn$2(t)?t:J$5(t&&t.provide),r=Rv(t);if(!hn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Gn$3(void 0,yi$2,true),o.factory=()=>ja(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$2(null);try{if(n.value===qd)throw Xa("");return n.value===yi$2&&(n.value=qd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&kv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I$2(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=J$5(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 Ba(e){let t=Vr(e),n=t!==null?t.factory:Bt$2(e);if(n!==null)return n;if(e instanceof w)throw new m$4(-204,false);if(e instanceof Function)return Av(e);throw new m$4(-204,false)}function Av(e){if(e.length>0)throw new m$4(-204,false);let n=vv(e);return n!==null?()=>n.factory(e):()=>new e}function Rv(e){if(lf(e))return Gn$3(void 0,e.useValue);{let t=oc(e);return Gn$3(t,yi$2)}}function oc(e,t,n){let r;if(hn$2(e)){let o=J$5(e);return Bt$2(o)||Ba(o)}else if(lf(e))r=()=>J$5(e.useValue);else if(xv(e))r=()=>e.useFactory(...ja(e.deps||[]));else if(Nv(e))r=(o,i)=>b$1(J$5(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=J$5(e&&(e.useClass||e.provide));if(Ov(e))r=()=>new o(...ja(e.deps));else return Bt$2(o)||Ba(o)}return r}function kr(e){if(e.destroyed)throw new m$4(-205,false)}function Gn$3(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function Ov(e){return !!e.deps}function kv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Fv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Va(e,t){for(let n of e)Array.isArray(n)?Va(n,t):n&&qa(n)?Va(n.\u0275providers,t):t(n);}function Qn$3(e,t){let n;e instanceof gn$3?(kr(e),n=e):n=new La(e);let o=Je$2(n),i=de$3(void 0);try{return t()}finally{Je$2(o),de$3(i);}}function ff(){return tf()!==void 0||mi$2()!=null}var Ve$4=0,E$1=1,S$3=2,ee$4=3,Me$3=4,ie$3=5,yn$3=6,Kn$3=7,Z$1=8,tt$3=9,He$4=10,L$2=11,Xn$3=12,ic=13,Ut$3=14,se$2=15,$t$1=16,vn$3=17,nt$3=18,rt$2=19,sc=20,vt$5=21,Oi$3=22,Vt$2=23,Ee$2=24,Dn$3=25,ot$3=26,V$5=27,pf=1,ac=6,zt$2=7,zr=8,En$3=9,W$4=10;function Ct$4(e){return Array.isArray(e)&&typeof e[pf]=="object"}function Ne$4(e){return Array.isArray(e)&&e[pf]===true}function cc(e){return (e.flags&4)!==0}function Tt$2(e){return e.componentOffset>-1}function Jn$3(e){return (e.flags&1)===1}function Ue$3(e){return !!e.template}function er$1(e){return (e[S$3]&512)!==0}function In$3(e){return (e[S$3]&256)===256}var uc="svg",hf="math";function xe$2(e){for(;Array.isArray(e);)e=e[Ve$4];return e}function lc(e,t){return xe$2(t[e])}function Ae$3(e,t){return xe$2(t[e.index])}function ki$2(e,t){return e.data[t]}function Gr(e,t){return e[t]}function dc(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$4(n)?n:n[Ve$4]}function gf(e){return (e[S$3]&4)===4}function Fi$2(e){return (e[S$3]&128)===128}function mf(e){return Ne$4(e[ee$4])}function Ie$4(e,t){return t==null?null:e[t]}function fc(e){e[vn$3]=0;}function pc(e){e[S$3]&1024||(e[S$3]|=1024,Fi$2(e)&&wn$3(e));}function yf(e,t){for(;e>0;)t=t[Ut$3],e--;return t}function Wr(e){return !!(e[S$3]&9216||e[Ee$2]?.dirty)}function Pi$2(e){e[He$4].changeDetectionScheduler?.notify(8),e[S$3]&64&&(e[S$3]|=1024),Wr(e)&&wn$3(e);}function wn$3(e){e[He$4].changeDetectionScheduler?.notify(0);let t=Dt$1(e);for(;t!==null&&!(t[S$3]&8192||(t[S$3]|=8192,!Fi$2(t)));)t=Dt$1(t);}function Li$2(e,t){if(In$3(e))throw new m$4(911,false);e[vt$5]===null&&(e[vt$5]=[]),e[vt$5].push(t);}function vf(e,t){if(e[vt$5]===null)return;let n=e[vt$5].indexOf(t);n!==-1&&e[vt$5].splice(n,1);}function Dt$1(e){let t=e[ee$4];return Ne$4(t)?t[ee$4]:t}function hc(e){return e[Kn$3]??=[]}function gc(e){return e.cleanup??=[]}function Df(e,t,n,r){let o=hc(t);o.push(n),e.firstCreatePass&&gc(e).push(r,o.length-1);}var N$3={lFrame:Rf(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Ha=false;function Ef(){return N$3.lFrame.elementDepthCount}function If(){N$3.lFrame.elementDepthCount++;}function mc(){N$3.lFrame.elementDepthCount--;}function ji$2(){return N$3.bindingsEnabled}function yc(){return N$3.skipHydrationRootTNode!==null}function vc(e){return N$3.skipHydrationRootTNode===e}function Dc(){N$3.skipHydrationRootTNode=null;}function v$1(){return N$3.lFrame.lView}function j$3(){return N$3.lFrame.tView}function wf(e){return N$3.lFrame.contextLView=e,e[Z$1]}function Cf(e){return N$3.lFrame.contextLView=null,e}function Q$1(){let e=Ec();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ec(){return N$3.lFrame.currentTNode}function Tf(){let e=N$3.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function tr$1(e,t){let n=N$3.lFrame;n.currentTNode=e,n.isParent=t;}function Ic(){return N$3.lFrame.isParent}function wc(){N$3.lFrame.isParent=false;}function bf(){return N$3.lFrame.contextLView}function Cc(){return Ha}function Pr(e){let t=Ha;return Ha=e,t}function Cn$3(){let e=N$3.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Bi$2(){return N$3.lFrame.bindingIndex}function Sf(e){return N$3.lFrame.bindingIndex=e}function Gt$2(){return N$3.lFrame.bindingIndex++}function nr$1(e){let t=N$3.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _f(){return N$3.lFrame.inI18n}function Mf(e,t){let n=N$3.lFrame;n.bindingIndex=n.bindingRootIndex=e,Vi$2(t);}function Nf(){return N$3.lFrame.currentDirectiveIndex}function Vi$2(e){N$3.lFrame.currentDirectiveIndex=e;}function xf(e){let t=N$3.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Hi$2(){return N$3.lFrame.currentQueryIndex}function qr(e){N$3.lFrame.currentQueryIndex=e;}function Pv(e){let t=e[E$1];return t.type===2?t.declTNode:t.type===1?e[ie$3]:null}function Tc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Pv(i),o===null||(i=i[Ut$3],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=N$3.lFrame=Af();return r.currentTNode=t,r.lView=e,true}function Ui$2(e){let t=Af(),n=e[E$1];N$3.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Af(){let e=N$3.lFrame,t=e===null?null:e.child;return t===null?Rf(e):t}function Rf(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 Of(){let e=N$3.lFrame;return N$3.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var bc=Of;function $i$2(){let e=Of();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 kf(e){return (N$3.lFrame.contextLView=yf(e,N$3.lFrame.contextLView))[Z$1]}function Oe$3(){return N$3.lFrame.selectedIndex}function Wt$1(e){N$3.lFrame.selectedIndex=e;}function rr$1(){let e=N$3.lFrame;return ki$2(e.tView,e.selectedIndex)}function Ff(){N$3.lFrame.currentNamespace=uc;}function Pf(){Lv();}function Lv(){N$3.lFrame.currentNamespace=null;}function Sc(){return N$3.lFrame.currentNamespace}var Lf=true;function zi$2(){return Lf}function Zr(e){Lf=e;}function Ua(e,t=null,n=null,r){let o=_c(e,t,n);return o.resolveInjectorInitializers(),o}function _c(e,t=null,n=null,r,o=new Set){let i=[n||re$3,cf(e)];return new gn$3(i,t||Yn$3(),null,o)}var pe$4=class e{static THROW_IF_NOT_FOUND=fn$3;static NULL=new Wn$3;static create(t,n){if(Array.isArray(t))return Ua({name:""},n,t);{let r=t.name??"";return Ua({name:r},t.parent,t.providers)}}static \u0275prov=x({token:e,providedIn:"any",factory:()=>b$1(Ur)});static __NG_ELEMENT_ID__=-1},U$6=new w(""),we$1=(()=>{class e{static __NG_ELEMENT_ID__=jv;static __NG_ENV_ID__=n=>n}return e})(),Ei$2=class Ei extends we$1{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return In$3(this._lView)}onDestroy(t){let n=this._lView;return Li$2(n,t),()=>vf(n,t)}};function jv(){return new Ei$2(v$1())}var Mc=false,jf=new w(""),qt$1=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Tr(false);debugTaskTracker=g$3(jf,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new A$1(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),$a$1=class $a extends ce$3{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,ff()&&(this.destroyRef=g$3(we$1,{optional:true})??void 0,this.pendingTasks=g$3(qt$1,{optional:true})??void 0);}emit(t){let n=I$2(null);try{super.next(t);}finally{I$2(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c);}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof X$4&&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$5=$a$1;function Ii$2(...e){}function Nc(e){let t,n;function r(){e=Ii$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 Bf(e){return queueMicrotask(()=>e()),()=>{e=Ii$2;}}var xc="isAngularZone",Lr=xc+"_ID",Bv=0,G$2=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new yt$5(false);onMicrotaskEmpty=new yt$5(false);onStable=new yt$5(false);onError=new yt$5(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Mc}=t;if(typeof Zone>"u")throw new m$4(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,Uv(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(xc)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m$4(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m$4(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,Vv,Ii$2,Ii$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)}},Vv={};function Ac(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 Hv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Nc(()=>{e.callbackScheduled=false,za(e),e.isCheckStableRunning=true,Ac(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),za(e);}function Uv(e){let t=()=>{Hv(e);},n=Bv++;e._inner=e._inner.fork({name:"angular",properties:{[xc]:true,[Lr]:n,[Lr+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if($v(c))return r.invokeTask(i,s,a,c);try{return Zd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Yd(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Zd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!zv(c)&&t(),Yd(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,za(e),Ac(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 za(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Zd(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Yd(e){e._nesting--,Ac(e);}var jr=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new yt$5;onMicrotaskEmpty=new yt$5;onStable=new yt$5;onError=new yt$5;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 $v(e){return Vf(e,"__ignore_ng_zone__")}function zv(e){return Vf(e,"__scheduler_tick__")}function Vf(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Se$3=class Se{_console=console;handleError(t){this._console.error("ERROR",t);}},$e$4=new w("",{factory:()=>{let e=g$3(G$2),t=g$3(fe$4),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Se$3),n.handleError(r));});}}}),Hf={provide:It$1,useValue:()=>{g$3(Se$3,{optional:true});},multi:true},Gv=new w("",{factory:()=>{let e=g$3(U$6).defaultView;if(!e)return;let t=g$3($e$4),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$3(we$1).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function Wv(){return wt$5([af(()=>{g$3(Gv);})])}function Gi$2(e,t){let [n,r,o]=Na(e,t?.equal),i=n;i[q$3];return i.set=r,i.update=o,i.asReadonly=Yr.bind(i),i}function Yr(){let e=this[q$3];if(e.readonlyFn===void 0){let t=()=>this();t[q$3]=e,e.readonlyFn=t;}return e.readonlyFn}var Qr=new w("",{factory:()=>qv}),qv="ng";var Wi$2=new w(""),Kr=new w("",{providedIn:"platform",factory:()=>"unknown"}),Zv=new w(""),Xr=new w("",{factory:()=>g$3(U$6).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var or$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Yv}return e})();function Yv(){return new or$1(v$1(),Q$1())}var Be$4=class Be{},ir$1=new w("",{factory:()=>true});var qi$2=new w(""),Zi$1=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new Ga})}return e})(),Ga=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}},wi$3=class wi{[q$3];constructor(t){this[q$3]=t;}destroy(){this[q$3].destroy();}};function Uf(e,t){let n=t?.injector??g$3(pe$4),r=t?.manualCleanup!==true?n.get(we$1):null,o,i=n.get(or$1,null,{optional:true}),s=n.get(Be$4);return i!==null?(o=Xv(i.view,s,e),r instanceof Ei$2&&r._lView===i.view&&(r=null)):o=Jv(e,n.get(Zi$1),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new wi$3(o)}var $f=z$4(P$2({},xa),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Pr(false);try{Aa(this);}finally{Pr(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=I$2(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],I$2(e);}}}),Qv=z$4(P$2({},$f),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Lt$1(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),Kv=z$4(P$2({},$f),{consumerMarkedDirty(){this.view[S$3]|=8192,wn$3(this.view),this.notifier.notify(13);},destroy(){if(Lt$1(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Vt$2]?.delete(this);}});function Xv(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=zf(r,n),e[Vt$2]??=new Set,e[Vt$2].add(r),r.consumerMarkedDirty(r),r}function Jv(e,t,n){let r=Object.create(Qv);return r.fn=zf(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 zf(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function Jr(e){return typeof e=="function"&&e[q$3]!==void 0}function Yi$2(e){return Jr(e)&&typeof e.set=="function"}var eo$1=(()=>{class e{internalPendingTasks=g$3(qt$1);scheduler=g$3(Be$4);errorHandler=g$3($e$4);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({token:e,providedIn:"root",factory:()=>new e})}return e})();function po$2(e){return {toString:e}.toString()}var R$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})(R$3||{}),os$1=class os{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function Rp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var Op=null,bu=(()=>{Op=Gf;let e=()=>Gf;return e.ngInherit=true,e})();function lD(){return Op}function Gf(e){return e.type.prototype.ngOnChanges&&(e.setInput=fD),dD}function dD(){let e=kp(this),t=e?.current;if(t){let n=e.previous;if(n===Ht$2)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function fD(e,t,n,r,o){let i=this.declaredInputs[r],s=kp(e)||pD(e,{previous:Ht$2,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new os$1(u&&u.currentValue,n,c===Ht$2),Rp(e,t,o,n);}var $c="__ngSimpleChanges__";function kp(e){return Object.hasOwn(e,$c)&&e[$c]||null}function pD(e,t){return e[$c]=t}var Wf=[];var F$6=function(e,t=null,n){for(let r=0;r<Wf.length;r++){let o=Wf[r];o(e,t,n);}};function hD(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=lD()(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 Fp(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 es$1(e,t,n){Pp(e,t,3,n);}function ts$1(e,t,n,r){(e[S$3]&3)===n&&Pp(e,t,n,r);}function Rc(e,t){let n=e[S$3];(n&3)===t&&(n&=16383,n+=1,e[S$3]=n);}function Pp(e,t,n,r){let o=r!==void 0?e[vn$3]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[vn$3]+=65536),(a<i||i==-1)&&(gD(e,n,t,c),e[vn$3]=(e[vn$3]&4294901760)+c+2),c++;}function qf(e,t){F$6(R$3.LifecycleHookStart,e,t);let n=I$2(null);try{t.call(e);}finally{I$2(n),F$6(R$3.LifecycleHookEnd,e,t);}}function gD(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$3]>>14<e[vn$3]>>16&&(e[S$3]&3)===t&&(e[S$3]+=16384,qf(a,i)):qf(a,i);}var ar$1=-1,bn$3=class bn{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 mD(e){return (e.flags&8)!==0}function yD(e){return (e.flags&16)!==0}function vD(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];DD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Lp(e){return e===3||e===4||e===6}function DD(e){return e.charCodeAt(0)===64}function cr$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?Zf(e,n,o,null,t[++r]):Zf(e,n,o,null,null));}}return e}function Zf(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 jp(e){return e!==ar$1}function is$1(e){return e&32767}function ED(e){return e>>16}function ss$1(e,t){let n=ED(e),r=t;for(;n>0;)r=r[Ut$3],n--;return r}var zc=true;function as$1(e){let t=zc;return zc=e,t}var ID=256,Bp=ID-1,Vp=5,wD=0,it$2={};function CD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(mn$3)&&(r=n[mn$3]),r==null&&(r=n[mn$3]=wD++);let o=r&Bp,i=1<<o;t.data[e+(o>>Vp)]|=i;}function cs(e,t){let n=Hp(e,t);if(n!==-1)return n;let r=t[E$1];r.firstCreatePass&&(e.injectorIndex=t.length,Oc(r.data,e),Oc(t,null),Oc(r.blueprint,null));let o=Su(e,t),i=e.injectorIndex;if(jp(o)){let s=is$1(o),a=ss$1(o,t),c=a[E$1].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Oc(e,t){e.push(0,0,0,0,0,0,0,0,t);}function Hp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Su(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=qp(o),r===null)return ar$1;if(n++,o=o[Ut$3],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ar$1}function Gc(e,t,n){CD(e,t,n);}function TD(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(Lp(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 Up(e,t,n){if(n&8||e!==void 0)return e;Ni$2();}function $p(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[tt$3],i=de$3(void 0);try{return o?o.get(t,r,n&8):Ja(t,r,n&8)}finally{de$3(i);}}return Up(r,t,n)}function zp(e,t,n,r=0,o){if(e!==null){if(t[S$3]&2048&&!(r&2)){let s=MD(e,t,n,r,it$2);if(s!==it$2)return s}let i=Gp(e,t,n,r,it$2);if(i!==it$2)return i}return $p(t,n,r,o)}function Gp(e,t,n,r,o){let i=SD(n);if(typeof i=="function"){if(!Tc(t,e,r))return r&1?Up(o,n,r):$p(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ni$2(n);else return s}finally{bc();}}else if(typeof i=="number"){let s=null,a=Hp(e,t),c=ar$1,u=r&1?t[se$2][ie$3]:null;for((a===-1||r&4)&&(c=a===-1?Su(e,t):t[a+8],c===ar$1||!Qf(r,false)?a=-1:(s=t[E$1],a=is$1(c),t=ss$1(c,t)));a!==-1;){let l=t[E$1];if(Yf(i,a,l.data)){let d=bD(a,t,n,s,r,u);if(d!==it$2)return d}c=t[a+8],c!==ar$1&&Qf(r,t[E$1].data[a+8]===u)&&Yf(i,a,t)?(s=l,a=is$1(c),t=ss$1(c,t)):a=-1;}}return o}function bD(e,t,n,r,o,i){let s=t[E$1],a=s.data[e+8],c=r==null?Tt$2(a)&&zc:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=ns$1(a,s,n,c,u);return l!==null?io$1(t,s,l,a,o):it$2}function ns$1(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&&Ue$3(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 bn$3){let a=i;if(a.resolving)throw Xa();let c=as$1(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?de$3(a.injectImpl):null;Tc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&hD(n,s[n],t);}finally{d!==null&&de$3(d),as$1(c),a.resolving=false,bc();}}return i}function SD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(mn$3)?e[mn$3]:void 0;return typeof t=="number"?t>=0?t&Bp:_D:t}function Yf(e,t,n){let r=1<<e;return !!(n[t+(e>>Vp)]&r)}function Qf(e,t){return !(e&2)&&!(e&1&&t)}var Zt$3=class Zt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return zp(this._tNode,this._lView,t,pn$3(r),n)}};function _D(){return new Zt$3(Q$1(),v$1())}function Wp(e){return po$2(()=>{let t=e.prototype.constructor,n=t[Fr]||Wc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Fr]||Wc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function Wc(e){return Wa(e)?()=>{let t=Wc(J$5(e));return t&&t()}:Bt$2(e)}function MD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S$3]&2048&&!er$1(s);){let a=Gp(i,s,n,r|2,it$2);if(a!==it$2)return a;let c=i.parent;if(!c){let u=s[sc];if(u){let l=u.get(n,it$2,r&-5);if(l!==it$2)return l}c=qp(s),s=s[Ut$3];}i=c;}return o}function qp(e){let t=e[E$1],n=t.type;return n===2?t.declTNode:n===1?e[ie$3]:null}function _u(e){return TD(Q$1(),e)}function Ce$4(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function ND(){return hr$2(Q$1(),v$1())}function hr$2(e,t){return new Kt$2(Ae$3(e,t))}var Kt$2=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=ND}return e})();function Zp(e){return e instanceof Kt$2?e.nativeElement:e}function xD(){return this._results[Symbol.iterator]()}var us$1=class us{_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 ce$3}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=rf(t);(this._changesDetected=!nf(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]=xD};function Yp(e){return (e.flags&128)===128}var Mu=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Mu||{}),Qp=new Map,AD=0;function RD(){return AD++}function OD(e){Qp.set(e[rt$2],e);}function qc(e){Qp.delete(e[rt$2]);}var Kf="__ngContext__";function ur$1(e,t){Ct$4(t)?(e[Kf]=t[rt$2],OD(t)):e[Kf]=t;}function Kp(e){return Jp(e[Xn$3])}function Xp(e){return Jp(e[Me$3])}function Jp(e){for(;e!==null&&!Ne$4(e);)e=e[Me$3];return e}var Zc;function Nu(e){Zc=e;}function xu(){if(Zc!==void 0)return Zc;if(typeof document<"u")return document;throw new m$4(210,false)}var eh="r";var th="di";var kD=new w(""),nh=false,rh=new w("",{factory:()=>nh});var oh=new w("");var Xf=new WeakMap;function FD(e,t){if(e==null||typeof e!="object")return;let n=Xf.get(e);n||(n=new WeakSet,Xf.set(e,n)),n.add(t);}function Ts(e){return (e.flags&32)===32}var jD=()=>null;function ih(e,t,n=false){return jD()}function sh(e,t){let n=e.contentQueries;if(n!==null){let r=I$2(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];qr(i),a.contentQueries(2,t[s],s);}}}finally{I$2(r);}}}function Yc(e,t,n){qr(0);let r=I$2(null);try{t(e,n);}finally{I$2(r);}}function Au(e,t,n){if(cc(t)){let r=I$2(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{I$2(r);}}}var We$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})(We$3||{});var Qi$2;function BD(){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 bs(e){return BD()?.createHTML(e)||e}var Ki$2;function ah(){if(Ki$2===void 0&&(Ki$2=null,_e$2.trustedTypes))try{Ki$2=_e$2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Ki$2}function Jf(e){return ah()?.createHTML(e)||e}function ep(e){return ah()?.createScriptURL(e)||e}var bt$4=class bt{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ci$2})`}},Qc=class extends bt$4{getTypeName(){return "HTML"}},Kc=class extends bt$4{getTypeName(){return "Style"}},Xc=class extends bt$4{getTypeName(){return "Script"}},Jc=class extends bt$4{getTypeName(){return "URL"}},eu=class extends bt$4{getTypeName(){return "ResourceURL"}};function Te$2(e){return e instanceof bt$4?e.changingThisBreaksApplicationSecurity:e}function at$3(e,t){let n=ch(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ci$2})`)}return n===t}function ch(e){return e instanceof bt$4&&e.getTypeName()||null}function Ru(e){return new Qc(e)}function Ou(e){return new Kc(e)}function ku(e){return new Xc(e)}function Fu(e){return new Jc(e)}function Pu(e){return new eu(e)}function VD(e){let t=new nu(e);return HD()?new tu(t):t}var tu=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(bs(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},nu=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=bs(t),n}};function HD(){try{return !!new window.DOMParser().parseFromString(bs(""),"text/html")}catch(e){return false}}var UD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ho$1(e){return e=String(e),e.match(UD)?e:"unsafe:"+e}function St$5(e){let t={};for(let n of e.split(","))t[n]=true;return t}function go$1(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var uh=St$5("area,br,col,hr,img,wbr"),lh=St$5("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dh=St$5("rp,rt"),$D=go$1(dh,lh),zD=go$1(lh,St$5("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")),GD=go$1(dh,St$5("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")),tp=go$1(uh,zD,GD,$D),fh=St$5("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),WD=St$5("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"),qD=St$5("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"),ZD=go$1(fh,WD,qD),YD=St$5("script,style,template"),ru=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=XD(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=np(t).toLowerCase();if(!tp.hasOwnProperty(n))return this.sanitizedSomething=true,!YD.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(!ZD.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;fh[a]&&(c=ho$1(c)),this.buf.push(" ",s,'="',rp(c),'"');}return this.buf.push(">"),true}endElement(t){let n=np(t).toLowerCase();tp.hasOwnProperty(n)&&!uh.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(rp(t));}};function QD(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 ph(t);return t}function XD(e){let t=e.firstChild;if(t&&QD(e,t))throw ph(t);return t}function np(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function ph(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var JD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eE=/([^\#-~ |!])/g;function rp(e){return e.replace(/&/g,"&amp;").replace(JD,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(eE,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Xi$2;function Ss(e,t){let n=null;try{Xi$2=Xi$2||VD(e);let r=t?String(t):"";n=Xi$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=Xi$2.getInertBodyElement(r);}while(r!==i);let a=new ru().sanitizeChildren(op(n)||n);return bs(a)}finally{if(n){let r=op(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function op(e){return "content"in e&&tE(e)?e.content:null}function tE(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var nE=/^>|^->|<!--|-->|--!>|<!-$/g,rE=/(<|>)/g,oE="\u200B$1\u200B";function iE(e){return e.replace(nE,t=>t.replace(rE,oE))}function sE(e,t){return e.createText(t)}function aE(e,t,n){e.setValue(t,n);}function cE(e,t){return e.createComment(iE(t))}function hh(e,t,n){return e.createElement(t,n)}function ls$1(e,t,n,r,o){e.insertBefore(t,n,r,o);}function gh(e,t,n){e.appendChild(t,n);}function ip(e,t,n,r,o){r!==null?ls$1(e,t,n,r,o):gh(e,t,n);}function mh(e,t,n,r){e.removeChild(null,t,n,r);}function uE(e,t,n){e.setAttribute(t,"style",n);}function lE(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function yh(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&vD(e,t,r),o!==null&&lE(e,t,o),i!==null&&uE(e,t,i);}var ke$3=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(ke$3||{});function dE(e){let t=Lu();return t?Jf(t.sanitize(ke$3.HTML,e)||""):at$3(e,"HTML")?Jf(Te$2(e)):Ss(xu(),oe$2(e))}function vh(e){let t=Lu();return t?t.sanitize(ke$3.URL,e)||"":at$3(e,"URL")?Te$2(e):ho$1(oe$2(e))}function Dh(e){let t=Lu();if(t)return ep(t.sanitize(ke$3.RESOURCE_URL,e)||"");if(at$3(e,"ResourceURL"))return ep(Te$2(e));throw new m$4(904,false)}var fE={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function pE(e,t){return fE[e.toLowerCase()]?.[t.toLowerCase()]===true?Dh:vh}function hE(e,t,n){return pE(t,n)(e)}function Lu(){let e=v$1();return e&&e[He$4].sanitizer}function gE(e){return e.ownerDocument}function mE(e){return e instanceof Function?e():e}function yE(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 Eh="ng-template";function vE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&yE(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(ju(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 ju(e){return e.type===4&&e.value!==Eh}function DE(e,t,n){let r=e.type===4&&!n?Eh:e.value;return t===r}function EE(e,t,n){let r=4,o=e.attrs,i=o!==null?CE(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!ze$4(r)&&!ze$4(c))return false;if(s&&ze$4(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!DE(e,c,n)||c===""&&t.length===1){if(ze$4(r))return false;s=true;}}else if(r&8){if(o===null||!vE(e,o,c,n)){if(ze$4(r))return false;s=true;}}else {let u=t[++a],l=IE(c,o,ju(e),n);if(l===-1){if(ze$4(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ze$4(r))return false;s=true;}}}}return ze$4(r)||s}function ze$4(e){return (e&1)===0}function IE(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 TE(t,e)}function Ih(e,t,n=false){for(let r=0;r<t.length;r++)if(EE(e,t[r],n))return true;return false}function wE(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function CE(e){for(let t=0;t<e.length;t++){let n=e[t];if(Lp(n))return t}return e.length}function TE(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 bE(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 sp(e,t){return e?":not("+t.trim()+")":t}function SE(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!==""&&!ze$4(s)&&(t+=sp(i,o),o=""),r=s,i=i||!ze$4(r);n++;}return o!==""&&(t+=sp(i,o)),t}function _E(e){return e.map(SE).join(",")}function ME(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(!ze$4(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var te$4={},st$3=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(st$3||{}),NE;function Bu(e,t){return NE(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var ou=new WeakMap;function wh(e){return e?e[Ut$3]??e:null}var no$1=new WeakSet;function xE(e,t,n){let r=ou.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=wh(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 AE(e,t,n){let r=wh(n),o=ou.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):ou.set(e,[{el:t,declarationView:r}]);}var Yt$2=new Set,_s=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(_s||{}),ct$2=new w(""),ap=new Set;function ut$3(e){ap.has(e)||(ap.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var Ms=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),Vu=[0,1,2,3],Hu=(()=>{class e{ngZone=g$3(G$2);scheduler=g$3(Be$4);errorHandler=g$3(Se$3,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g$3(ct$2,{optional:true});}execute(){let n=this.sequences.size>0;n&&F$6(R$3.AfterRenderHooksStart),this.executing=true;for(let r of Vu)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$6(R$3.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[Dn$3]??=[]).push(n),wn$3(r),r[S$3]|=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(_s.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x({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?.[Dn$3];t&&(this.view[Dn$3]=t.filter(n=>n!==this));}};function RE(e,t){let n=t?.injector??g$3(pe$4);return ut$3("NgAfterNextRender"),kE(e,n,t,true)}function OE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function kE(e,t,n,r){let o=t.get(Ms);o.impl??=t.get(Hu);let i=t.get(ct$2,null,{optional:true}),s=n?.manualCleanup!==true?t.get(we$1):null,a=t.get(or$1,null,{optional:true}),c=new so$1(o.impl,OE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Uu=new w("",{factory:()=>{let e=g$3(fe$4),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function Ch(e,t,n){let r=e.get(Uu);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 FE(e,t){let n=e.get(Uu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function PE(e,t){let n=e.get(Uu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function LE(e,t){for(let[n,r]of t)Ch(e,r.animateFns);}function cp(e,t,n,r){let o=e?.[ot$3]?.enter;t!==null&&o&&o.has(n.index)&&LE(r,o);}function up(e,t,n,r){try{n.get(Ur);}catch(s){return r(false)}let o=e?.[ot$3];o?.enter?.has(t.index)&&FE(n,o.enter.get(t.index).animateFns);let i=jE(e,t,o);if(i.size===0){let s=false;if(e){let a=[];Ns(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Yt$2.add(e[rt$2]),Ch(n,()=>BE(e,t,o||void 0,i,r),o||void 0);}function jE(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E$1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function BE(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&&Ns(e,t,i),i.length>0){let s=n||e?.[ot$3];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),HE(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Yt$2.delete(e[rt$2]),o(true);});}else e&&Yt$2.delete(e[rt$2]),o(false);}function Ns(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$1].type===2&&VE(s,n);}}let r=t.child;for(;r;)Ns(e,r,n),r=r.next;}function VE(e,t){let n=e[ot$3];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[E$1].firstChild;for(;r;)Ns(e,r,t),r=r.next;}function HE(e,t,n){t.then(()=>{e[ot$3]?.running===t&&(e[ot$3].running=void 0,Yt$2.delete(e[rt$2])),n(true);});}function sr$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Ne$4(o)?c=o:Ct$4(o)&&(u=true,o=o[Ve$4]);let l=xe$2(o);e===0&&r!==null?(cp(a,r,i,n),s==null?gh(t,r,l):ls$1(t,r,l,s||null,true)):e===1&&r!==null?(cp(a,r,i,n),ls$1(t,r,l,s||null,true),xE(i,l,a)):e===2?(a?.[ot$3]?.leave?.has(i.index)&&AE(i,l,a),no$1.delete(l),up(a,i,n,d=>{if(no$1.has(l)){no$1.delete(l);return}mh(t,l,u,d);})):e===3&&(no$1.delete(l),up(a,i,n,()=>{t.destroyNode(l);})),c!=null&&KE(t,e,n,c,i,r,s);}}function UE(e,t){Th(e,t),t[Ve$4]=null,t[ie$3]=null;}function $E(e,t,n,r,o,i){r[Ve$4]=o,r[ie$3]=t,As(e,r,n,1,o,i);}function Th(e,t){t[He$4].changeDetectionScheduler?.notify(9),As(e,t,t[L$2],2,null,null);}function zE(e){let t=e[Xn$3];if(!t)return kc(e[E$1],e);for(;t;){let n=null;if(Ct$4(t))n=t[Xn$3];else {let r=t[W$4];r&&(n=r);}if(!n){for(;t&&!t[Me$3]&&t!==e;)Ct$4(t)&&kc(t[E$1],t),t=t[ee$4];t===null&&(t=e),Ct$4(t)&&kc(t[E$1],t),n=t&&t[Me$3];}t=n;}}function $u(e,t){let n=e[En$3],r=n.indexOf(t);n.splice(r,1);}function xs(e,t){if(In$3(t))return;let n=t[L$2];n.destroyNode&&As(e,t,n,3,null,null),zE(t);}function kc(e,t){if(In$3(t))return;let n=I$2(null);try{t[S$3]&=-129,t[S$3]|=256,t[Ee$2]&&Lt$1(t[Ee$2]),WE(e,t),GE(e,t),t[E$1].type===1&&t[L$2].destroy();let r=t[$t$1];if(r!==null&&Ne$4(t[ee$4])){r!==t[ee$4]&&$u(r,t);let o=t[nt$3];o!==null&&o.detachView(e);}qc(t);}finally{I$2(n);}}function GE(e,t){let n=e.cleanup,r=t[Kn$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[Kn$3]=null);let o=t[vt$5];if(o!==null){t[vt$5]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Vt$2];if(i!==null){t[Vt$2]=null;for(let s of i)s.destroy();}}function WE(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 bn$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$6(R$3.LifecycleHookStart,a,c);try{c.call(a);}finally{F$6(R$3.LifecycleHookEnd,a,c);}}else {F$6(R$3.LifecycleHookStart,o,i);try{i.call(o);}finally{F$6(R$3.LifecycleHookEnd,o,i);}}}}}function bh(e,t,n){return qE(e,t.parent,n)}function qE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ve$4];if(Tt$2(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===We$3.None||o===We$3.Emulated)return null}return Ae$3(r,n)}function Sh(e,t,n){return YE(e,t,n)}function ZE(e,t,n){return e.type&40?Ae$3(e,n):null}var YE=ZE;function zu(e,t,n,r){let o=bh(e,r,t),i=t[L$2],s=r.parent||t[ie$3],a=Sh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)ip(i,o,n[c],a,false);else ip(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 iu(-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)?iu(-1,o):xe$2(o)}}else {if(n&128)return ro$1(e,t.next);if(n&32)return Bu(t,e)()||xe$2(e[t.index]);{let r=_h(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Dt$1(e[se$2]);return ro$1(o,r)}else return ro$1(e,t.next)}}}return null}function _h(e,t){if(t!==null){let r=e[se$2][ie$3],o=t.projection;return r.projection[o]}return null}function iu(e,t){let n=W$4+e+1;if(n<t.length){let r=t[n],o=r[E$1].firstChild;if(o!==null)return ro$1(r,o)}return t[zt$2]}function Gu(e,t,n,r,o,i,s){for(;n!=null;){let a=r[tt$3];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&ur$1(xe$2(c),r),n.flags|=2),!Ts(n))if(u&8)Gu(e,t,n.child,r,o,i,false),sr$1(t,e,a,o,c,n,i,r);else if(u&32){let l=Bu(n,r),d;for(;d=l();)sr$1(t,e,a,o,d,n,i,r);sr$1(t,e,a,o,c,n,i,r);}else u&16?Mh(e,t,r,n,o,i):sr$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function As(e,t,n,r,o,i){Gu(n,r,e.firstChild,t,o,i,false);}function QE(e,t,n){let r=t[L$2],o=bh(e,n,t),i=n.parent||t[ie$3],s=Sh(i,n,t);Mh(r,0,t,n,o,s);}function Mh(e,t,n,r,o,i){let s=n[se$2],c=s[ie$3].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];sr$1(t,e,n[tt$3],o,l,r,i,n);}else {let u=c,l=s[ee$4];Yp(r)&&(u.flags|=128),Gu(e,t,u,l,o,i,true);}}function KE(e,t,n,r,o,i,s){let a=r[zt$2],c=xe$2(r);a!==c&&sr$1(t,e,n,i,a,o,s);for(let u=W$4;u<r.length;u++){let l=r[u];As(l[E$1],l,e,t,i,a);}}function XE(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$3.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=st$3.Important),e.setStyle(n,r,o,i));}}function Wu(e,t,n,r,o,i,s,a,c,u,l){let d=V$5+r,p=d+o,f=JE(d,p),h=typeof u=="function"?u():u;return f[E$1]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:false,ssrId:l}}function JE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:te$4);return n}function eI(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Wu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function qu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ve$4]=o,d[S$3]=r|4|128|8|64|1024,(u!==null||e&&e[S$3]&2048)&&(d[S$3]|=2048),fc(d),d[ee$4]=d[Ut$3]=e,d[Z$1]=n,d[He$4]=s||e&&e[He$4],d[L$2]=a||e&&e[L$2],d[tt$3]=c||e&&e[tt$3]||null,d[ie$3]=i,d[rt$2]=RD(),d[yn$3]=l,d[sc]=u,d[se$2]=t.type==2?e[se$2]:d,d}function tI(e,t,n){let r=Ae$3(t,e),o=eI(n),i=e[He$4].rendererFactory,s=Zu(e,qu(e,o,null,Nh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Nh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function xh(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 Zu(e,t){return e[Xn$3]?e[ic][Me$3]=t:e[Xn$3]=t,e[ic]=t,t}function nI(e=1){Ah(j$3(),v$1(),Oe$3()+e);}function Ah(e,t,n,r){if((t[S$3]&3)===3){let i=e.preOrderCheckHooks;i!==null&&es$1(t,i,n);}else {let i=e.preOrderHooks;i!==null&&ts$1(t,i,0,n);}Wt$1(n);}var Rs=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Rs||{});function Sn$3(e,t,n,r){let o=I$2(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Rs.SignalBased)!==0&&(c=t[i][q$3]),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):Rp(t,c,i,r);}finally{I$2(o);}}function Rh(e,t,n,r,o){let i=Oe$3(),s=r&2;try{Wt$1(-1),s&&t.length>V$5&&Ah(e,t,V$5,!1);let a=s?R$3.TemplateUpdateStart:R$3.TemplateCreateStart;F$6(a,o,n),n(r,o);}finally{Wt$1(i);let a=s?R$3.TemplateUpdateEnd:R$3.TemplateCreateEnd;F$6(a,o,n);}}function Os(e,t,n){cI(e,t,n),(n.flags&64)===64&&uI(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 rI(e,t,n,r){let i=r.get(rh,nh)||n===We$3.ShadowDom||n===We$3.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function sI(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Oh(e,t,n,r,o,i){let s=t[E$1];if(Xu(e,s,t,n,r)){Tt$2(e)&&aI(t,e.index);return}e.type&3&&(n=sI(n)),kh(e,t,n,r,o,i);}function kh(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 aI(e,t){let n=Re$4(t,e);n[S$3]&16||(n[S$3]|=64);}function cI(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Tt$2(n)&&tI(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||cs(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(ur$1(c,t),i!==null&&pI(t,s-r,c,a,n,i),Ue$3(a)){let u=Re$4(n.index,t);u[Z$1]=io$1(t,e,s,n);}}}function uI(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Nf();try{Wt$1(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Vi$2(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&lI(c,u);}}finally{Wt$1(-1),Vi$2(s);}}function lI(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function Yu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Ih(t,i.selectors,false)&&(r??=[],Ue$3(i)?r.unshift(i):r.push(i));}return r}function dI(e,t,n,r,o,i){let s=Ae$3(e,t);fI(t[L$2],s,i,e.value,n,r,o);}function fI(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?oe$2(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function pI(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];Sn$3(r,n,c,u);}}function Qu(e,t,n,r,o){let i=V$5+n,s=t[E$1],a=o(s,t,e,r,n);t[i]=a,tr$1(e,true);let c=e.type===2;return c?(yh(t[L$2],a,e),(Ef()===0||Jn$3(e))&&ur$1(a,t),If()):ur$1(a,t),zi$2()&&(!c||!Ts(e))&&zu(s,t,a,e),e}function Ku(e){let t=e;return Ic()?wc():(t=t.parent,tr$1(t,false)),t}function hI(e,t){let n=e[tt$3];if(!n)return;let r;try{r=n.get($e$4,null);}catch(o){r=null;}r?.(t);}function Xu(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];Sn$3(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Sn$3(l,u,r,o),a=true;}return a}function gI(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];Sn$3(h,n[f],y,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(Sn$3(r,n[s],o,i),u=true),u}function mI(e,t){let n=Re$4(t,e),r=n[E$1];yI(r,n);let o=n[Ve$4];o!==null&&n[yn$3]===null&&(n[yn$3]=ih(o,n[tt$3])),F$6(R$3.ComponentStart);try{Ju(r,n,n[Z$1]);}finally{F$6(R$3.ComponentEnd,n[Z$1]);}}function yI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function Ju(e,t,n){Ui$2(t);try{let r=e.viewQuery;r!==null&&Yc(1,r,n);let o=e.template;o!==null&&Rh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[nt$3]?.finishViewCreation(e),e.staticContentQueries&&sh(e,t),e.staticViewQueries&&Yc(2,e.viewQuery,n);let i=e.components;i!==null&&vI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[S$3]&=-5,$i$2();}}function vI(e,t){for(let n=0;n<t.length;n++)mI(e,t[n]);}function yo$1(e,t,n,r){let o=I$2(null);try{let i=t.tView,a=e[S$3]&4096?4096:16,c=qu(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[nt$3];return l!==null&&(c[nt$3]=l.createEmbeddedView(i)),Ju(i,c,n),c}finally{I$2(o);}}function lr$1(e,t){return !t||t.firstChild===null||Yp(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$2(i)),Ne$4(i)&&Fh(i,r);let s=n.type;if(s&8)ao$1(e,t,n.child,r);else if(s&32){let a=Bu(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=_h(t,n);if(Array.isArray(a))r.push(...a);else {let c=Dt$1(t[se$2]);ao$1(c[E$1],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Fh(e,t){for(let n=W$4;n<e.length;n++){let r=e[n],o=r[E$1].firstChild;o!==null&&ao$1(r[E$1],r,o,t);}e[zt$2]!==e[Ve$4]&&t.push(e[zt$2]);}function Ph(e){if(e[Dn$3]!==null){for(let t of e[Dn$3])t.impl.addSequence(t);e[Dn$3].length=0;}}var Lh=[];function DI(e){return e[Ee$2]??EI(e)}function EI(e){let t=Lh.pop()??Object.create(wI);return t.lView=e,t}function II(e){e.lView[Ee$2]!==e&&(e.lView=null,Lh.push(e));}var wI=z$4(P$2({},Ft$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{wn$3(e.lView);},consumerOnSignalRead(){this.lView[Ee$2]=this;}});function CI(e){let t=e[Ee$2]??Object.create(TI);return t.lView=e,t}var TI=z$4(P$2({},Ft$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Dt$1(e.lView);for(;t&&!jh(t[E$1]);)t=Dt$1(t);t&&pc(t);},consumerOnSignalRead(){this.lView[Ee$2]=this;}});function jh(e){return e.type!==2}function Bh(e){if(e[Vt$2]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Vt$2])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S$3]&8192);}}var bI=100;function Vh(e,t=0){let r=e[He$4].rendererFactory;r.begin?.();try{SI(e,t);}finally{r.end?.();}}function SI(e,t){let n=Cc();try{Pr(!0),su(e,t);let r=0;for(;Wr(e);){if(r===bI)throw new m$4(103,!1);r++,su(e,1);}}finally{Pr(n);}}function _I(e,t,n,r){if(In$3(t))return;let o=t[S$3],i=false,s=false;Ui$2(t);let a=true,c=null,u=null;(jh(e)?(u=DI(t),c=mt$3(u)):hi$2()===null?(a=false,u=CI(t),c=mt$3(u)):t[Ee$2]&&(Lt$1(t[Ee$2]),t[Ee$2]=null));try{fc(t),Sf(e.bindingStartIndex),n!==null&&Rh(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&es$1(t,f,null);}else {let f=e.preOrderHooks;f!==null&&ts$1(t,f,0,null),Rc(t,0);}if(s||MI(t),Bh(t),Hh(t,0),e.contentQueries!==null&&sh(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&es$1(t,f);}else {let f=e.contentHooks;f!==null&&ts$1(t,f,1),Rc(t,1);}xI(e,t);let d=e.components;d!==null&&$h(t,d,0);let p=e.viewQuery;if(p!==null&&Yc(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&es$1(t,f);}else {let f=e.viewHooks;f!==null&&ts$1(t,f,2),Rc(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Oi$3]){for(let f of t[Oi$3])f();t[Oi$3]=null;}i||(Ph(t),t[S$3]&=-73);}catch(l){throw wn$3(t),l}finally{u!==null&&(Pt$4(u,c),a&&II(u)),$i$2();}}function Hh(e,t){for(let n=Kp(e);n!==null;n=Xp(n))for(let r=W$4;r<n.length;r++){let o=n[r];Uh(o,t);}}function MI(e){for(let t=Kp(e);t!==null;t=Xp(t)){if(!(t[S$3]&2))continue;let n=t[En$3];for(let r=0;r<n.length;r++){let o=n[r];pc(o);}}}function NI(e,t,n){F$6(R$3.ComponentStart);let r=Re$4(t,e);try{Uh(r,n);}finally{F$6(R$3.ComponentEnd,r[Z$1]);}}function Uh(e,t){Fi$2(e)&&su(e,t);}function su(e,t){let r=e[E$1],o=e[S$3],i=e[Ee$2],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Un$3(i)),s||=false,i&&(i.dirty=false),e[S$3]&=-9217,s)_I(r,e,r.template,e[Z$1]);else if(o&8192){let a=I$2(null);try{Bh(e),Hh(e,1);let c=r.components;c!==null&&$h(e,c,1),Ph(e);}finally{I$2(a);}}}function $h(e,t,n){for(let r=0;r<t.length;r++)NI(e,t[r],n);}function xI(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];Mf(s,i);let c=t[i];F$6(R$3.HostBindingsUpdateStart,c);try{a(2,c);}finally{F$6(R$3.HostBindingsUpdateEnd,c);}}}}finally{Wt$1(-1);}}function el(e,t){let n=Cc()?64:1088;for(e[He$4].changeDetectionScheduler?.notify(t);e;){e[S$3]|=n;let r=Dt$1(e);if(er$1(e)&&!r)return e;e=r;}return null}function zh(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Gh(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$1];if(AI(o,t,e,n),r){let s=iu(n,e),a=t[L$2],c=a.parentNode(e[zt$2]);c!==null&&$E(o,e[ie$3],a,t,c,s);}let i=t[yn$3];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function Wh(e,t){let n=co$1(e,t);return n!==void 0&&xs(n[E$1],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&&$u(o,r),t>0&&(e[n-1][Me$3]=r[Me$3]);let i=Hr(e,W$4+t);UE(r[E$1],r);let s=i[nt$3];s!==null&&s.detachView(i[E$1]),r[ee$4]=null,r[Me$3]=null,r[S$3]&=-129;}return r}function AI(e,t,n,r){let o=W$4+r,i=n.length;r>0&&(n[o-1][Me$3]=t),r<i-W$4?(t[Me$3]=n[o],ec(n,W$4+r,t)):(n.push(t),t[Me$3]=null),t[ee$4]=n;let s=t[$t$1];s!==null&&n!==s&&qh(s,t);let a=t[nt$3];a!==null&&a.insertView(e),Pi$2(t),t[S$3]|=128;}function qh(e,t){let n=e[En$3],r=t[ee$4];if(Ct$4(r))e[S$3]|=2;else {let o=r[ee$4][se$2];t[se$2]!==o&&(e[S$3]|=2);}n===null?e[En$3]=[t]:n.push(t);}var Qt$1=class Qt{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E$1];return ao$1(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[Z$1]}set context(t){this._lView[Z$1]=t;}get destroyed(){return In$3(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ee$4];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;}xs(this._lView[E$1],this._lView);}onDestroy(t){Li$2(this._lView,t);}markForCheck(){el(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[S$3]&=-129;}reattach(){Pi$2(this._lView),this._lView[S$3]|=128;}detectChanges(){this._lView[S$3]|=1024,Vh(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m$4(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=er$1(this._lView),n=this._lView[$t$1];n!==null&&!t&&$u(n,this._lView),Th(this._lView[E$1],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m$4(902,false);this._appRef=t;let n=er$1(this._lView),r=this._lView[$t$1];r!==null&&!n&&qh(r,this._lView),Pi$2(this._lView);}};var dr$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=RI;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$1(i)}}return e})();function RI(){return ks(Q$1(),v$1())}function ks(e,t){return e.type&4?new dr$1(t,e,hr$2(e,t)):null}function gr$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=OI(e,t,n,r,o),_f()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Tf();i.injectorIndex=s===null?-1:s.injectorIndex;}return tr$1(i,true),i}function OI(e,t,n,r,o){let i=Ec(),s=Ic(),a=s?i:i&&i.parent,c=e.data[t]=FI(e,a,n,t,r,o);return kI(e,c,i,s),c}function kI(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 FI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return yc()&&(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:Sc(),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 PI(e){let t=e[ac]??[],r=e[ee$4][L$2],o=[];for(let i of t)i.data[th]!==void 0?o.push(i):LI(i,r);e[ac]=o;}function LI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[eh];for(;n<o;){let i=r.nextSibling;mh(t,r,false),r=i,n++;}}}var jI=()=>null,BI=()=>null;function ds$1(e,t){return jI()}function Zh(e,t,n){return BI()}var Yh=class{},_n$3=class _n{},Fs=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>VI()}return e})();function VI(){let e=v$1(),t=Q$1(),n=Re$4(t.index,e);return (Ct$4(n)?n:e)[L$2]}var Qh=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();function Kh(e){return e.debugInfo?.className||e.type.name||null}var rs$1={},fs$1=class fs{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,rs$1,r);return o!==rs$1||n===rs$1?o:this.parentInjector.get(t,n,r)}};function Ps(e,t,n){return e[t]=n}function HI(e,t){return e[t]}function he$3(e,t,n){if(n===te$4)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=he$3(e,t,n);return he$3(e,t+1,r)||o}function UI(e,t,n,r,o){let i=uo$1(e,t,n,r);return he$3(e,t+2,o)||i}function Xh(e,t,n,r,o,i){let s=uo$1(e,t,n,r);return uo$1(e,t+2,o,i)||s}function Tn$3(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&FD(o,i);let s=Tt$2(e)?Re$4(e.index,t):t;el(s,5);let a=t[Z$1],c=dp(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=dp(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function dp(e,t,n,r){let o=I$2(null);try{return F$6(R$3.OutputStart,t,n),n(r)!==!1}catch(i){return hI(e,i),false}finally{F$6(R$3.OutputEnd,t,n),I$2(o);}}function tl(e,t,n,r,o,i,s,a){let c=Jn$3(e),u=false,l=null;if(!r&&c&&(l=zI(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(!$I(i)){let h=r?y=>r(xe$2(y[e.index])):e.index;Jh(h,t,n,i,a,f,false);}}return u}function $I(e){return e.startsWith("animation")||e.startsWith("transition")}function zI(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[Kn$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?gc(t):null,c=hc(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function fp(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,ps$1(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,ps$1(e,t,i,r,r,o)),c}function ps$1(e,t,n,r,o,i){let s=t[n],a=t[E$1],u=a.data[n].outputs[r],d=s[u].subscribe(i);Jh(e.index,a,t,o,i,d,true);}function GI(){WI();}function WI(){let e=v$1(),t=j$3(),n=Q$1();if(t.firstCreatePass&&YI(t,n),n.controlDirectiveIndex===-1)return;ut$3("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new hs$1(e,t,n));}function qI(){ZI();}function ZI(){let e=v$1(),t=j$3(),n=rr$1();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new hs$1(e,t,n));}var hs$1=class hs{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];fp(this.tNode,this.lView,r,t,Tn$3(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];fp(this.tNode,this.lView,r,n,Tn$3(this.tNode,this.lView,t));}listenToDom(t,n){tl(this.tNode,this.tView,this.lView,void 0,this.lView[L$2],t,n,Tn$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];Sn$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];Sn$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";gI(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=pp(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=pp(i.directive);s!==null&&r.push(...s);}}}return n}};function pp(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function YI(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}QI(e,t);}function QI(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(hp(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(hp(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 hp(e,t){return KI(e,t)&&XI(e,t+"Change")}function KI(e,t){return t in e.inputs}function XI(e,t){return t in e.outputs}var au=Symbol("BINDING");var An$3=new w("");function gs$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=Ti$2(o,a);else if(i==2){let c=a,u=t[++s];r=Ti$2(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function ge$4(e,t=0){let n=v$1();if(n===null)return b$1(e,t);let r=Q$1();return zp(r,n,J$5(e),t)}function JI(){let e="invalid";throw new Error(e)}function eg(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}nw(e,t,n,a,i,c,u);}i!==null&&r!==null&&ew(n,r,i);}function ew(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$4(-301,false);r.push(t[o],i);}}function tw(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function nw(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&&Ue$3(f)&&(c=f,tw(e,n,p)),Gc(cs(n,t),e,f.type);}cw(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=xh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=cr$1(n.mergedAttrs,f.hostAttrs),ow(e,n,t,d,f),aw(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++;}rw(e,n,i);}function rw(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))gp(0,t,o,r),gp(1,t,o,r),yp(t,r,false);else {let i=n.get(o);mp(0,t,i,r),mp(1,t,i,r),yp(t,r,true);}}}function gp(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),tg(t,i);}}function mp(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),tg(t,s);}}function tg(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function yp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||ju(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 ow(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Bt$2(o.type)),s=new bn$3(i,Ue$3(o),ge$4,null);e.blueprint[r]=s,n[r]=s,iw(e,t,r,xh(e,n,o.hostVars,te$4),o);}function iw(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;sw(s)!=a&&s.push(a),s.push(n,r,i);}}function sw(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function aw(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ue$3(t)&&(n[""]=e);}}function cw(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function nl(e,t,n,r,o,i,s,a){let c=t[E$1],u=c.consts,l=Ie$4(u,s),d=gr$1(c,e,n,r,l);return eg(c,t,d,Ie$4(u,a),o),d.mergedAttrs=cr$1(d.mergedAttrs,d.attrs),d.attrs!==null&&gs$1(d,d.attrs,false),d.mergedAttrs!==null&&gs$1(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function rl(e,t){Fp(e,t),cc(t)&&e.queries.elementEnd(t);}function uw(e,t,n,r,o,i){let s=t.consts,a=Ie$4(s,o),c=gr$1(t,e,n,r,a);if(c.mergedAttrs=cr$1(c.mergedAttrs,c.attrs),i!=null){let u=Ie$4(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&gs$1(c,c.attrs,false),c.mergedAttrs!==null&&gs$1(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var ng=typeof ShadowRoot<"u",lw=typeof Document<"u";function dw(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Rs.SignalBased)!==0};return o&&(i.transform=o),i})}function fw(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function pw(e,t,n){let r=t instanceof fe$4?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new fs$1(n,r):n}function hw(e){let t=e.get(_n$3,null);if(t===null)throw new m$4(407,false);let n=e.get(Qh,null),r=e.get(Be$4,null),o=e.get(ct$2,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function gw(e,t){let n=rg(e);return hh(t,n,n==="svg"?uc:n==="math"?hf:null)}function mw(e){if(e?.toLowerCase()==="script")throw new m$4(905,false)}function rg(e){return (e.selectors[0][0]||"div").toLowerCase()}var Mn$3=class Mn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=dw(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=fw(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=_E(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){F$6(R$3.DynamicComponentStart);let a=I$2(null);try{let c=this.componentDef,u=pw(c,o||this.ngModule,t),l=hw(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Kh(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{I$2(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=yw(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?rI(u,o,a.encapsulation,n):gw(a,u);mw(l?.tagName);let d=n.get(An$3,null),p=vw(l,()=>n.get(U$6,null)??xu());d&&d.addHost(p);let f=s?.some(vp)||i?.some(D=>typeof D!="function"&&D.bindings.some(vp)),h=qu(null,c,null,512|Nh(a),null,null,t,u,n,null,ih(l,n,true));d&&ng&&p instanceof ShadowRoot&&Li$2(h,()=>{d.removeHost(p);}),h[V$5]=l,Ui$2(h);let y=null;try{let D=nl(V$5,h,2,"#host",()=>c.directiveRegistry,!0,0);yh(u,l,D),ur$1(l,h),Os(c,h,D),Au(c,D,h),rl(c,D),r!==void 0&&Ew(D,this.ngContentSelectors,r),y=Re$4(D.index,h),h[Z$1]=y[Z$1],Ju(c,h,null);}catch(D){throw y!==null&&qc(y),qc(h),D}finally{F$6(R$3.DynamicComponentEnd),$i$2();}return new ms$1(this.componentType,h,!!f)}};function yw(e,t,n,r){let o=e?["ng-version","22.0.8"]:ME(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[au].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[au].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=_i$2(d);c.push(p);}return Wu(0,null,Dw(i,s),1,a,c,null,null,null,[o],null)}function vw(e,t){let n=e.getRootNode?.();return lw&&n instanceof Document?n.head:n&&ng&&n instanceof ShadowRoot?n:t().head}function Dw(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 vp(e){let t=e[au].kind;return t==="input"||t==="twoWay"}var ms$1=class ms extends Yh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ki$2(n[E$1],V$5),this.location=hr$2(this._tNode,n),this.instance=Re$4(this._tNode.index,n)[Z$1],this.hostView=this.changeDetectorRef=new Qt$1(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;Xu(r,o[E$1],o,t,n);this.previousInputValues.set(t,n);let s=Re$4(r.index,o);el(s,1);}get injector(){return new Zt$3(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function Ew(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 mr$1=(()=>{class e{static __NG_ELEMENT_ID__=Iw}return e})();function Iw(){let e=Q$1();return og(e,v$1())}var cu=class e extends mr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return hr$2(this._hostTNode,this._hostLView)}get injector(){return new Zt$3(this._hostTNode,this._hostLView)}get parentInjector(){let t=Su(this._hostTNode,this._hostLView);if(jp(t)){let n=ss$1(t,this._hostLView),r=is$1(t),o=n[E$1].data[r+8];return new Zt$3(o,n)}else return new Zt$3(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=Dp(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=ds$1(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,lr$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 Mn$3(Et$4(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let _=this.parentInjector.get(fe$4,null);_&&(i=_);}let p=Et$4(l.componentType??{}),f=ds$1(this._lContainer,p?.id??null),h=null,y=l.create(d,o,h,i,s,a);return this.insertImpl(y.hostView,c,lr$1(this._hostTNode,f)),y}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(mf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[ee$4],u=new e(c,c[ie$3],c[ee$4]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return vo$1(s,o,i,r),t.attachToViewContainerRef(),ec(Fc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Dp(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(Fc(this._lContainer),n),xs(r[E$1],r));}detach(t){let n=this._adjustIndex(t,-1),r=co$1(this._lContainer,n);return r&&Hr(Fc(this._lContainer),n)!=null?new Qt$1(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Dp(e){return e[zr]}function Fc(e){return e[zr]||(e[zr]=[])}function og(e,t){let n,r=t[e.index];return Ne$4(r)?n=r:(n=zh(r,t,null,e),t[e.index]=n,Zu(t,n)),Cw(n,t,e,r),new cu(n,e,t)}function ww(e,t){let n=e[L$2],r=n.createComment(""),o=Ae$3(t,e),i=n.parentNode(o);return ls$1(n,i,r,n.nextSibling(o),false),r}var Cw=Sw;function Sw(e,t,n,r){if(e[zt$2])return;let o;n.type&8?o=xe$2(r):o=ww(t,n),e[zt$2]=o;}var uu=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},lu=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++)il(t,n).matches!==null&&this.queries[n].setDirty();}},ys=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Aw(t):this.predicate=t;}},du=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);}},fu=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,_w(n,i)),this.matchTNodeWithReadOption(t,n,ns$1(n,t,i,false,false));}else r===dr$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ns$1(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Kt$2||o===mr$1||o===dr$1&&n.type&4)this.addMatch(n.index,-2);else {let i=ns$1(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 _w(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 Mw(e,t){return e.type&11?hr$2(e,t):e.type&4?ks(e,t):null}function Nw(e,t,n,r){return n===-1?Mw(t,e):n===-2?xw(e,t,r):io$1(e,e[E$1],n,t)}function xw(e,t,n){if(n===Kt$2)return hr$2(t,e);if(n===dr$1)return ks(t,e);if(n===mr$1)return og(t,e)}function ig(e,t,n,r){let o=t[nt$3].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(Nw(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function pu(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=ig(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[ee$4]&&pu(p[E$1],p,u,r);}if(l[En$3]!==null){let d=l[En$3];for(let p=0;p<d.length;p++){let f=d[p];pu(f[E$1],f,u,r);}}}}}return r}function ol(e,t){return e[nt$3].queries[t].queryList}function sg(e,t,n){let r=new us$1((n&4)===4);return Df(e,t,r,r.destroy),(t[nt$3]??=new lu).queries.push(new uu(r))-1}function ag(e,t,n){let r=j$3();return r.firstCreatePass&&(ug(r,new ys(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),sg(r,v$1(),t)}function cg(e,t,n,r){let o=j$3();if(o.firstCreatePass){let i=Q$1();ug(o,new ys(t,n,r),i.index),Rw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return sg(o,v$1(),n)}function Aw(e){return e.split(",").map(t=>t.trim())}function ug(e,t,n){e.queries===null&&(e.queries=new du),e.queries.track(new fu(t,n));}function Rw(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 il(e,t){return e.queries.getByIndex(t)}function lg(e,t){let n=e[E$1],r=il(n,t);return r.crossesNgTemplate?pu(n,e,t,[]):ig(n,e,r,t)}function sl(e,t,n){let r,o=Rr$1(()=>{r._dirtyCounter();let i=Ow(r,e);if(t&&i===void 0)throw new m$4(-951,false);return i});return r=o[q$3],r._dirtyCounter=Gi$2(0),r._flatValue=void 0,o}function al(e){return sl(true,false)}function cl(e){return sl(true,true)}function dg(e){return sl(false,false)}function fg(e,t){let n=e[q$3];n._lView=v$1(),n._queryIndex=t,n._queryList=ol(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function Ow(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[S$3]&4)return t?void 0:re$3;let o=ol(n,r),i=lg(n,r);return o.reset(i,Zp),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Do$1(e){return !!e&&typeof e.then=="function"}function Ls(e){return !!e&&typeof e.subscribe=="function"}var Nn$3=class Nn{},pg=class{};var vs=class extends Nn$3{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Kd(t);this._bootstrapComponents=mE(i.bootstrap),this._r3Injector=_c(t,n,[{provide:Nn$3,useValue:this},...r],Br(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);}},Ds=class extends pg{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new vs(this.moduleType,t,[])}};var lo$1=class lo extends Nn$3{injector;instance=null;constructor(t){super();let n=new gn$3([...t.providers,{provide:Nn$3,useValue:this}],t.parent||Yn$3(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function hg(e,t,n=null){return new lo$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var kw=(()=>{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=nc(false,n.type),o=r.length>0?hg([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({token:e,providedIn:"environment",factory:()=>new e(b$1(fe$4))})}return e})();function Fw(e){return po$2(()=>{let t=gg(e),n=z$4(P$2({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Mu.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(kw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||We$3.Emulated,styles:e.styles||re$3,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ut$3("NgStandalone"),mg(n);let r=e.dependencies;return n.directiveDefs=Ep(r,Pw),n.pipeDefs=Ep(r,Xd),n.id=Bw(n),n})}function Pw(e){return Et$4(e)||_i$2(e)}function Eo$1(e){return po$2(()=>({type:e.type,bootstrap:e.bootstrap||re$3,declarations:e.declarations||re$3,imports:e.imports||re$3,exports:e.exports||re$3,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Lw(e,t){if(e==null)return Ht$2;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Rs.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function jw(e){if(e==null)return Ht$2;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function js(e){return po$2(()=>{let t=gg(e);return mg(t),t})}function Rn$3(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 gg(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$2,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||re$3,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Lw(e.inputs,t),outputs:jw(e.outputs),debugInfo:null}}function mg(e){e.features?.forEach(t=>t(e));}function Ep(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 Bw(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 ul=new w("");function Vw(e){return wt$5([{provide:ul,multi:true,useValue:e}])}var ll=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g$3(ul,{optional:true})??[];injector=g$3(pe$4);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Qn$3(this.injector,o);if(Do$1(i))n.push(i);else if(Ls(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$4({token:e,factory:e.\u0275fac})}return e})();function Hw(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function Uw(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=$w,n.hostDirectives=r?e.map(hu):[e]):r?n.hostDirectives.unshift(...e.map(hu)):n.hostDirectives.unshift(e);};return t.ngInherit=true,t}function $w(e){let t=[],n=false,r=null,o=null;for(let i=0;i<e.length;i++){let s=e[i];if(s.hostDirectives!==null){let a=t.length;r??=new Map,o??=new Map,yg(s,t,r,e),o.set(s,[a,t.length-1]);}i===0&&Ue$3(s)&&(n=true,t.push(s));}for(let i=n?1:0;i<e.length;i++)t.push(e[i]);return r!==null&&r.forEach((i,s)=>{zw(s.declaredInputs,i.inputs);}),[t,r,o]}function yg(e,t,n,r){if(e.hostDirectives!==null)for(let o of e.hostDirectives)if(typeof o=="function"){let i=o();for(let s of i)Ip(hu(s),t,n,r);}else Ip(o,t,n,r);}function Ip(e,t,n,r){let o=_i$2(e.directive);if(yg(o,t,n,r),n.has(o)){let i=n.get(o);wp(i,e.inputs,"input"),wp(i,e.outputs,"output");}else r.includes(o)||(n.set(o,e),t.push(o));}function wp(e,t,n){let r=n==="input"?e.inputs:e.outputs;Object.keys(t).forEach(o=>{let i=t[o];(!r.hasOwnProperty(o)||r[o]===i)&&(r[o]=i);});}function hu(e){return typeof e=="function"?{directive:J$5(e),inputs:{},outputs:{}}:{directive:J$5(e.directive),inputs:Cp(e.inputs),outputs:Cp(e.outputs)}}function Cp(e){let t={};if(e!==void 0&&e.length>0)for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function zw(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];e[r]=o;}}function Gw(e){return Object.getPrototypeOf(e.prototype).constructor}function vg(e){let t=Gw(e.type),n=true,r=[e];for(;t;){let o;if(Ue$3(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new m$4(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=Pc(e.inputs),s.declaredInputs=Pc(e.declaredInputs),s.outputs=Pc(e.outputs);let a=o.hostBindings;a&&Qw(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Zw(e,c),u&&Yw(e,u),Ww(e,o),Qd(e.outputs,o.outputs),Ue$3(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation);}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===vg&&(n=false);}}t=Object.getPrototypeOf(t);}qw(r);}function Ww(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 qw(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=cr$1(o.hostAttrs,n=cr$1(n,o.hostAttrs));}}function Pc(e){return e===Ht$2?{}:e===re$3?[]:e}function Zw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function Yw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function Qw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function Dg(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=cr$1(e.mergedAttrs,e.attrs);let l=e.tView=Wu(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),tr$1(e,false);let c=Xw(n,t);zi$2()&&zu(n,t,c,e),ur$1(c,t);let u=zh(c,t,c,e);t[r+V$5]=u,Zu(t,u);}function Kw(e,t,n,r,o,i,s,a,c,u,l){let d=n+V$5,p;return t.firstCreatePass?(p=gr$1(t,d,4,s||null,a||null),eg(t,e,p,Ie$4(t.consts,u),Yu),Fp(t,p)):p=t.data[d],Dg(p,e,t,n,r,o,i,c),Jn$3(p)&&Os(t,e,p),u!=null&&mo$1(e,p,l),p}function fr$2(e,t,n,r,o,i,s,a,c,u,l){let d=n+V$5,p;if(t.firstCreatePass){if(p=gr$1(t,d,4,s||null,a||null),u!=null){let f=Ie$4(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 Dg(p,e,t,n,r,o,i,c),u!=null&&mo$1(e,p,l),p}function Eg(e,t,n,r,o,i,s,a){let c=v$1(),u=j$3(),l=Ie$4(u.consts,i);return Kw(c,u,e,t,n,r,o,l,void 0,s,a),Eg}function Ig(e,t,n,r,o,i,s,a){let c=v$1(),u=j$3(),l=Ie$4(u.consts,i);return fr$2(c,u,e,t,n,r,o,l,void 0,s,a),Ig}var Xw=Jw;function Jw(e,t,n,r){return Zr(true),t[L$2].createComment("")}var wg=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var dl=new w("");var fl=new w("");function Cg(){Ma(()=>{let e="";throw new m$4(600,e)});}var eC=10;var yr$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g$3($e$4);afterRenderManager=g$3(Ms);zonelessEnabled=g$3(ir$1);rootEffectScheduler=g$3(Zi$1);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ce$3;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g$3(qt$1);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ue$3(n=>!n))}constructor(){g$3(ct$2,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g$3(fe$4);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=pe$4.NULL){return this._injector.get(G$2).run(()=>{if(F$6(R$3.BootstrapComponentStart),!this._injector.get(ll).done){let _="";throw new m$4(405,_)}let a=Et$4(n),c=this._injector.get(Nn$3),u=new Mn$3(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=tC(r),f=l||u.selector,h=u.create(o,[],f,c.injector,d,p),y=h.location.nativeElement,D=h.injector.get(dl,null);return D?.registerApplication(y),h.onDestroy(()=>{this.detachView(h.hostView),oo$1(this.components,h),D?.unregisterApplication(y);}),this._loadComponent(h),F$6(R$3.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){F$6(R$3.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(_s.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw F$6(R$3.ChangeDetectionEnd),new m$4(101,false);let n=I$2(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I$2(n),this.afterTick.next(),F$6(R$3.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(_n$3,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<eC;){F$6(R$3.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{F$6(R$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&&!Wr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Vh(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})=>Wr(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(fl,[]).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$4(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$4({token:e,factory:e.\u0275fac})}return e})();function tC(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 Tg(e,t,n,r){let o=v$1(),i=Gt$2();if(he$3(o,i,t)){j$3();let a=rr$1();dI(a,o,e,t,n,r);}return Tg}function nC(){return v$1()[se$2][Z$1]}var gu=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 Lc(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function rC(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){I$2(r);let u=t.length-1;for(I$2(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Lc(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=Lc(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 Es,i??=bp(e,s,a,n),mu(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;)Tp(e,o,n,s,t[s]),s++;}else if(t!=null){I$2(r);let u=t[Symbol.iterator]();I$2(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Lc(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new Es,i??=bp(e,s,a,n);let h=n(s,p);if(mu(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;)Tp(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 mu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function Tp(e,t,n,r,o){if(mu(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function bp(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 Es=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function oC(e,t,n,r,o,i,s,a){ut$3("NgControlFlow");let c=v$1(),u=j$3(),l=Ie$4(u.consts,i);return fr$2(c,u,e,t,n,r,o,l,256,s,a),pl}function pl(e,t,n,r,o,i,s,a){ut$3("NgControlFlow");let c=v$1(),u=j$3(),l=Ie$4(u.consts,i);return fr$2(c,u,e,t,n,r,o,l,512,s,a),pl}function iC(e,t){ut$3("NgControlFlow");let n=v$1(),r=Gt$2(),o=n[r]!==te$4?n[r]:-1,i=o!==-1?Is(n,V$5+o):void 0,s=0;if(he$3(n,r,e)){let a=I$2(null);try{if(i!==void 0&&Wh(i,s),e!==-1){let c=V$5+e,u=Is(n,c),l=Eu(n[E$1],c),d=Zh(u,l,n),p=yo$1(n,l,t,{dehydratedView:d});vo$1(u,p,s,lr$1(l,d));}}finally{I$2(a);}}else if(i!==void 0){let a=Gh(i,s);a!==void 0&&(a[Z$1]=t);}}var yu=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 sC(e){return e}function aC(e,t){return t}var vu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function cC(e,t,n,r,o,i,s,a,c,u,l,d,p){ut$3("NgControlFlow");let f=v$1(),h=j$3(),y=c!==void 0,D=v$1(),_=a?s.bind(D[se$2][Z$1]):s,$=new vu(y,_);D[V$5+e]=$,fr$2(f,h,e+1,t,n,r,o,Ie$4(h.consts,i),256);}var Du=class extends gu{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)[Z$1].$implicit}attach(t,n){let r=n[yn$3];this.needsIndexUpdate||=t!==this.length,vo$1(this.lContainer,n,t,lr$1(this.templateTNode,r)),lC(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,dC(this.lContainer,t),fC(this.lContainer,t)}create(t,n){let r=ds$1(this.lContainer,this.templateTNode.tView.ssrId);return yo$1(this.hostLView,this.templateTNode,new yu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){xs(t[E$1],t);}updateValue(t,n){this.getLView(t)[Z$1].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Z$1].$index=t;}getLView(t){return pC(this.lContainer,t)}};function uC(e){let t=I$2(null),n=Oe$3();try{let r=v$1(),o=r[E$1],i=r[n],s=n+1,a=Is(r,s);if(i.liveCollection===void 0){let u=Eu(o,s);i.liveCollection=new Du(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(rC(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Gt$2(),l=c.length===0;if(he$3(r,u,l)){let d=n+2,p=Is(r,d);if(l){let f=Eu(o,d),h=Zh(p,f,r),y=yo$1(r,f,void 0,{dehydratedView:h});vo$1(p,y,0,lr$1(f,h));}else o.firstUpdatePass&&PI(p),Wh(p,0);}}}finally{I$2(t);}}function Is(e,t){return e[t]}function lC(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[ot$3]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[tt$3];PE(i,o),Yt$2.delete(r[rt$2]),o.detachedLeaveAnimationFns=void 0;}}function dC(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[ot$3]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function fC(e,t){return co$1(e,t)}function pC(e,t){return Gh(e,t)}function Eu(e,t){return ki$2(e,t)}function bg(e,t,n){let r=v$1(),o=Gt$2();if(he$3(r,o,t)){j$3();let s=rr$1();Oh(s,r,e,t,r[L$2],n);}return bg}function Iu(e,t,n,r,o){Xu(t,e,n,o?"class":"style",r);}function ws(e,t,n,r){let o=v$1(),i=o[E$1],s=e+V$5,a=i.firstCreatePass?nl(s,o,2,t,Yu,ji$2(),n,r):i.data[s];if(Tt$2(a)){let c=o[He$4].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Kh(u),()=>(Sp(e,t,o,a,r),ws))}}return Sp(e,t,o,a,r),ws}function Sp(e,t,n,r,o){if(Qu(r,n,e,t,Mg),Jn$3(r)){let i=n[E$1];Os(i,n,r),Au(i,r,n);}o!=null&&mo$1(n,r);}function hl(){let e=j$3(),t=Q$1(),n=Ku(t);return e.firstCreatePass&&rl(e,n),vc(n)&&Dc(),mc(),n.classesWithoutHost!=null&&mD(n)&&Iu(e,n,v$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&yD(n)&&Iu(e,n,v$1(),n.stylesWithoutHost,false),hl}function Sg(e,t,n,r){return ws(e,t,n,r),hl(),Sg}function gl(e,t,n,r){let o=v$1(),i=o[E$1],s=e+V$5,a=i.firstCreatePass?uw(s,i,2,t,n,r):i.data[s];return Qu(a,o,e,t,Mg),r!=null&&mo$1(o,a),gl}function ml(){let e=Q$1(),t=Ku(e);return vc(t)&&Dc(),mc(),ml}function _g(e,t,n,r){return gl(e,t,n,r),ml(),_g}var Mg=(e,t,n,r,o)=>(Zr(true),hh(t[L$2],r,Sc()));function yl(e,t,n){let r=v$1(),o=r[E$1],i=e+V$5,s=o.firstCreatePass?nl(i,r,8,"ng-container",Yu,ji$2(),t,n):o.data[i];if(Qu(s,r,e,"ng-container",hC),Jn$3(s)){let a=r[E$1];Os(a,r,s),Au(a,s,r);}return n!=null&&mo$1(r,s),yl}function vl(){let e=j$3(),t=Q$1(),n=Ku(t);return e.firstCreatePass&&rl(e,n),vl}function Ng(e,t,n){return yl(e,t,n),vl(),Ng}var hC=(e,t,n,r,o)=>(Zr(true),cE(t[L$2],""));function gC(){return v$1()}function xg(e,t,n){let r=v$1(),o=Gt$2();if(he$3(r,o,t)){j$3();let s=rr$1();kh(s,r,e,t,r[L$2],n);}return xg}var to$2=void 0;function mC(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var yC=["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$2,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],to$2,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",to$2,to$2,to$2],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",mC],jc=Object.create(null);function me$3(e){let t=vC(e),n=_p(t);if(n)return n;let r=t.split("-")[0];if(n=_p(r),n)return n;if(r==="en")return yC;throw new m$4(701,false)}function _p(e){if(!(e in jc)){let t=_e$2.ng&&_e$2.ng.common&&_e$2.ng.common.locales&&_e$2.ng.common.locales[e];return t!==void 0&&(jc[e]=t),t}return jc[e]}var Y$2={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,ExtraData:21};function vC(e){return e.toLowerCase().replace(/_/g,"-")}var Io$1="en-US";function Ag(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function Rg(e,t,n){let r=v$1(),o=j$3(),i=Q$1();return kg(o,r,r[L$2],i,e,t,n),Rg}function Og(e,t,n){let r=v$1(),o=j$3(),i=Q$1();return (i.type&3||n)&&tl(i,o,r,n,r[L$2],e,t,Tn$3(i,r,t)),Og}function kg(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=Tn$3(r,t,i),tl(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??=Tn$3(r,t,i),ps$1(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=Tn$3(r,t,i),ps$1(r,t,d,o,o,c);}}function EC(e=1){return kf(e)}function IC(e,t){let n=null,r=wE(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Ih(e,i,true):bE(r,i))return o}return n}function wC(e){let t=v$1()[se$2][ie$3];if(!t.projection){let n=e?e.length:1,r=t.projection=of(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?IC(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function CC(e,t=0,n,r,o,i){let s=v$1(),a=j$3(),c=null;let u=gr$1(a,V$5+e,16,null,null);u.projection===null&&(u.projection=t),wc();let d=!s[yn$3]||yc();s[se$2][ie$3].projection[u.projection]===null&&c!==null?TC(s,a,c):d&&!Ts(u)&&QE(a,s,u);}function TC(e,t,n){let r=V$5+n,o=t.data[r],i=e[r],s=ds$1(i,o.tView.ssrId),a=yo$1(e,o,void 0,{dehydratedView:s});vo$1(i,a,0,lr$1(o,s));}function Fg(e,t,n,r){return cg(e,t,n,r),Fg}function Pg(e,t,n){return ag(e,t,n),Pg}function bC(e){let t=v$1(),n=j$3(),r=Hi$2();qr(r+1);let o=il(n,r);if(e.dirty&&gf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=lg(t,r);e.reset(i,Zp),e.notifyOnChanges();}return true}return false}function SC(){return ol(v$1(),Hi$2())}function Lg(e,t,n,r,o){return fg(t,cg(e,n,r,o)),Lg}function jg(e,t,n,r){return fg(e,ag(t,n,r)),jg}function _C(e=1){qr(Hi$2()+e);}function MC(e){let t=bf();return Gr(t,V$5+e)}function Ji$2(e,t){return e<<17|t<<2}function xn$3(e){return e>>17&32767}function NC(e){return (e&2)==2}function xC(e,t){return e&131071|t<<17}function wu(e){return e|2}function pr$2(e){return (e&131068)>>2}function Bc(e,t){return e&-131069|t<<2}function AC(e){return (e&1)===1}function Cu(e){return e|1}function RC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=xn$3(s),c=pr$2(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Zn$3(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=xn$3(e[a+1]);e[r+1]=Ji$2(p,a),p!==0&&(e[p+1]=Bc(e[p+1],r)),e[a+1]=xC(e[a+1],r);}else e[r+1]=Ji$2(a,0),a!==0&&(e[a+1]=Bc(e[a+1],r)),a=r;else e[r+1]=Ji$2(c,0),a===0?a=r:e[c+1]=Bc(e[c+1],r),c=r;u&&(e[r+1]=wu(e[r+1])),Mp(e,l,r,true),Mp(e,l,r,false),OC(t,l,e,r,i),s=Ji$2(a,c),i?t.classBindings=s:t.styleBindings=s;}function OC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Zn$3(i,t)>=0&&(n[r+1]=Cu(n[r+1]));}function Mp(e,t,n,r){let o=e[n+1],i=t===null,s=r?xn$3(o):pr$2(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];kC(c,t)&&(a=true,e[s+1]=r?Cu(u):wu(u)),s=r?xn$3(u):pr$2(u);}a&&(e[n+1]=r?wu(o):Cu(o));}function kC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Zn$3(e,t)>=0:false}var Ge$4={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function FC(e){return e.substring(Ge$4.key,Ge$4.keyEnd)}function PC(e){return LC(e),Bg(e,Vg(e,0,Ge$4.textEnd))}function Bg(e,t){let n=Ge$4.textEnd;return n===t?-1:(t=Ge$4.keyEnd=jC(e,Ge$4.key=t,n),Vg(e,t,n))}function LC(e){Ge$4.key=0,Ge$4.keyEnd=0,Ge$4.value=0,Ge$4.valueEnd=0,Ge$4.textEnd=e.length;}function Vg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function jC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Hg(e,t,n){return $g(e,t,n,false),Hg}function Ug(e,t){return $g(e,t,null,true),Ug}function BC(e){HC(qC,VC,e,true);}function VC(e,t){for(let n=PC(t);n>=0;n=Bg(t,n))Ai$2(e,FC(t),true);}function $g(e,t,n,r){let o=v$1(),i=j$3(),s=nr$1(2);if(i.firstUpdatePass&&Gg(i,e,s,r),t!==te$4&&he$3(o,s,t)){let a=i.data[Oe$3()];Wg(i,a,o,o[L$2],e,o[s+1]=YC(t,n),r,s);}}function HC(e,t,n,r){let o=j$3(),i=nr$1(2);o.firstUpdatePass&&Gg(o,null,i,r);let s=v$1();if(n!==te$4&&he$3(s,i,n)){let a=o.data[Oe$3()];if(qg(a,r)&&!zg(o,i)){let c=a.classesWithoutHost;c!==null&&(n=Ti$2(c,n||"")),Iu(o,a,s,n,r);}else ZC(o,a,s,s[L$2],s[i+1],s[i+1]=WC(e,t,n),r,i);}}function zg(e,t){return t>=e.expandoStartIndex}function Gg(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Oe$3()],s=zg(e,n);qg(i,r)&&t===null&&!s&&(t=false),t=UC(o,i,t,r),RC(o,i,t,n,s,r);}}function UC(e,t,n,r){let o=xf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Vc(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=Vc(o,e,t,n,r),i===null){let c=$C(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Vc(null,e,t,c[1],r),c=fo$1(c,t.attrs,r),zC(e,t,r,c));}else i=GC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function $C(e,t,n){let r=n?t.classBindings:t.styleBindings;if(pr$2(r)!==0)return e[xn$3(r)]}function zC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[xn$3(o)]=r;}function GC(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 Vc(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]),Ai$2(e,s,n?true:t[++i]));}return e===void 0?null:e}function WC(e,t,n){if(n==null||n==="")return re$3;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 qC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Ai$2(e,r,n);}function ZC(e,t,n,r,o,i,s,a){o===te$4&&(o=re$3);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let 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&&Wg(e,t,n,r,h,y,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Wg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=AC(u)?Np(c,t,n,o,pr$2(u),s):void 0;if(!Cs(l)){Cs(i)||NC(u)&&(i=Np(c,null,n,o,a,s));let d=lc(Oe$3(),n);XE(r,s,d,o,i);}}function Np(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===te$4&&(p=d?re$3:void 0);let f=d?Ri$2(p,r):l===r?p:void 0;if(u&&!Cs(f)&&(f=Ri$2(c,r)),Cs(f)&&(a=f,s))return a;let h=e[o+1];o=s?xn$3(h):pr$2(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ri$2(c,r));}return a}function Cs(e){return e!==void 0}function YC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Br(Te$2(e)))),e}function qg(e,t){return (e.flags&(t?8:16))!==0}function QC(e,t=""){let n=v$1(),r=j$3(),o=e+V$5,i=r.firstCreatePass?gr$1(r,o,1,t,null):r.data[o],s=KC(r,n,i,t);n[o]=s,zi$2()&&zu(r,n,s,i),tr$1(i,false);}var KC=(e,t,n,r)=>(Zr(true),sE(t[L$2],r));function Zg(e,t,n,r=""){return he$3(e,Gt$2(),n)?t+oe$2(n)+r:te$4}function XC(e,t,n,r,o,i=""){let s=Bi$2(),a=uo$1(e,s,n,o);return nr$1(2),a?t+oe$2(n)+r+oe$2(o)+i:te$4}function JC(e,t,n,r,o,i,s,a,c,u=""){let l=Bi$2(),d=Xh(e,l,n,o,s,c);return nr$1(4),d?t+oe$2(n)+r+oe$2(o)+i+oe$2(s)+a+oe$2(c)+u:te$4}function eT(e,t,n,r,o,i,s,a,c,u,l,d=""){let p=Bi$2(),f=Xh(e,p,n,o,s,c);return f=he$3(e,p+4,l)||f,nr$1(5),f?t+oe$2(n)+r+oe$2(o)+i+oe$2(s)+a+oe$2(c)+u+oe$2(l)+d:te$4}function Yg(e){return Dl("",e),Yg}function Dl(e,t,n){let r=v$1(),o=Zg(r,e,t,n);return o!==te$4&&Bs(r,Oe$3(),o),Dl}function Qg(e,t,n,r,o){let i=v$1(),s=XC(i,e,t,n,r,o);return s!==te$4&&Bs(i,Oe$3(),s),Qg}function Kg(e,t,n,r,o,i,s,a,c){let u=v$1(),l=JC(u,e,t,n,r,o,i,s,a,c);return l!==te$4&&Bs(u,Oe$3(),l),Kg}function Xg(e,t,n,r,o,i,s,a,c,u,l){let d=v$1(),p=eT(d,e,t,n,r,o,i,s,a,c,u,l);return p!==te$4&&Bs(d,Oe$3(),p),Xg}function Bs(e,t,n){let r=lc(t,e);aE(e[L$2],r,n);}function Jg(e,t,n){Yi$2(t)&&(t=t());let r=v$1(),o=Gt$2();if(he$3(r,o,t)){j$3();let s=rr$1();Oh(s,r,e,t,r[L$2],n);}return Jg}function tT(e,t){let n=Yi$2(e);return n&&e.set(t),n}function em(e,t){let n=v$1(),r=j$3(),o=Q$1();return kg(r,n,n[L$2],o,e,t),em}function nT(e,t,n=""){return Zg(v$1(),e,t,n)}function xp(e,t,n){let r=j$3();r.firstCreatePass&&tm(t,r.data,r.blueprint,Ue$3(e),n);}function tm(e,t,n,r,o){if(e=J$5(e),Array.isArray(e))for(let i=0;i<e.length;i++)tm(e[i],t,n,r,o);else {let i=j$3(),s=v$1(),a=Q$1(),c=hn$2(e)?e:J$5(e.provide),u=oc(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(hn$2(e)||!e.multi){let f=new bn$3(u,o,ge$4,null),h=Uc(c,t,l+p,d);h===-1?(Gc(cs(a,s),i,c),Hc(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=Uc(c,t,l+p,d),h=Uc(c,t,l,l+p),y=f>=0&&n[f],D=h>=0&&n[h];if(!y){Gc(cs(a,s),i,c);let _=iT(rT,n.length,o,r,u);D&&(n[h].providerFactory=_),Hc(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(_),s.push(_);}else {let _=nm(n[f],u,r);Hc(i,e,f>-1?f:h,_);}r&&D&&n[h].componentProviders++;}}}function Hc(e,t,n,r){let o=hn$2(t),i=df(t);if(o||i){let c=(i?J$5(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 nm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Uc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function rT(e,t,n,r,o){return Tu(this.multi,[])}function Tu(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function iT(e,t,n,r,o,i){let s=new bn$3(e,n,ge$4,null);return s.multi=[],s.index=t,s.componentProviders=0,nm(s,o,r&&!n),s}function sT(e,t){return n=>{n.providersResolver=(r,o)=>xp(r,o?o(e):e,false);}}function aT(e,t){let n=Cn$3()+e,r=v$1();return r[n]===te$4?Ps(r,n,t()):HI(r,n)}function cT(e,t,n){return rm(v$1(),Cn$3(),e,t,n)}function uT(e,t,n,r){return om(v$1(),Cn$3(),e,t,n,r)}function El(e,t){let n=e[t];return n===te$4?void 0:n}function rm(e,t,n,r,o,i){let s=t+n;return he$3(e,s,o)?Ps(e,s+1,i?r.call(i,o):r(o)):El(e,s+1)}function om(e,t,n,r,o,i,s){let a=t+n;return uo$1(e,a,o,i)?Ps(e,a+2,s?r.call(s,o,i):r(o,i)):El(e,a+2)}function lT(e,t,n,r,o,i,s,a){let c=t+n;return UI(e,c,o,i,s)?Ps(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):El(e,c+3)}function dT(e,t){let n=j$3(),r,o=e+V$5;n.firstCreatePass?(r=fT(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$2(r.type)),a=de$3(ge$4);try{let c=as$1(!1),u=i();return as$1(c),dc(n,v$1(),o,u),u}finally{de$3(a);}}function fT(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function pT(e,t,n){let r=e+V$5,o=v$1(),i=Gr(o,r);return Il(o,r)?rm(o,Cn$3(),t,i.transform,n,i):i.transform(n)}function hT(e,t,n,r){let o=e+V$5,i=v$1(),s=Gr(i,o);return Il(i,o)?om(i,Cn$3(),t,s.transform,n,r,s):s.transform(n,r)}function gT(e,t,n,r,o){let i=e+V$5,s=v$1(),a=Gr(s,i);return Il(s,i)?lT(s,Cn$3(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function Il(e,t){return e[E$1].data[t].pure}function mT(e,t){return ks(e,t)}var im=(()=>{class e{applicationErrorHandler=g$3($e$4);appRef=g$3(yr$1);taskService=g$3(qt$1);ngZone=g$3(G$2);zonelessEnabled=g$3(ir$1);tracing=g$3(ct$2,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new X$4;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Lr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g$3(qi$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?Bf:Nc;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(Lr+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$4({token:e,factory:e.\u0275fac})}return e})();function sm(){return [{provide:Be$4,useExisting:im},{provide:G$2,useClass:jr},{provide:ir$1,useValue:true}]}var yT=(()=>{class e{compileModuleSync(n){return new Ds(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$4({token:e,factory:e.\u0275fac})}return e})();function vT(){return typeof $localize<"u"&&$localize.locale||Io$1}var vr$1=new w("",{factory:()=>g$3(vr$1,{optional:true,skipSelf:true})||vT()});var wo$1=class wo{destroyed=false;listeners=null;errorHandler=g$3(Se$3,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=g$3(we$1);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new m$4(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(et$3(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=I$2(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&DT(this.listeners)),I$2(n),this.isEmitting=false;}}};function DT(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function ET(e,t){return Rr$1(e,t?.equal)}function On$3(e){return Gd(e)}var IT=e=>e;function wT(e,t){if(typeof e=="function"){let n=Oa(e,IT,t?.equal);return am(n)}else {let n=Oa(e.source,e.computation,e.equal);return am(n,e.debugName)}}function am(e,t){let n=e[q$3],r=e;return r.set=o=>$d(n,o),r.update=o=>zd(n,o),r.asReadonly=Yr.bind(e),r}var Hs=Symbol("InputSignalNode#UNSET"),mm=z$4(P$2({},Or),{transformFn:void 0,applyValueToInputSignal(e,t){jt$3(e,t);}});function ym(e,t){let n=Object.create(mm);n.value=e,n.transformFn=t?.transform;function r(){if(gt$4(n),n.value===Hs){let o=null;throw new m$4(-950,o)}return n.value}return r[q$3]=n,r}var cm=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>_u(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function FB(e){return kT(e)?e.default:e}function kT(e){return e&&typeof e=="object"&&"default"in e}function PB(e){return new wo$1}function um(e,t){return ym(e,t)}function FT(e){return ym(Hs,e)}var LB=(um.required=FT,um);function vm(e,t){let n=Object.create(mm),r=new wo$1;n.value=e;function o(){return gt$4(n),lm(n.value),n.value}return o[q$3]=n,o.asReadonly=Yr.bind(o),o.set=i=>{n.equal(n.value,i)||(jt$3(n,i),r.emit(i));},o.update=i=>{lm(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function lm(e){if(e===Hs)throw new m$4(952,false)}function dm(e,t){return vm(e)}function PT(e){return vm(Hs)}var jB=(dm.required=PT,dm);function fm(e,t){return al()}function LT(e,t){return cl()}var BB=(fm.required=LT,fm);function VB(e,t){return dg()}function pm(e,t){return al()}function jT(e,t){return cl()}var HB=(pm.required=jT,pm);var bl=(()=>{class e{static __NG_ELEMENT_ID__=VT}return e})();function VT(e){return HT(Q$1(),v$1(),(e&16)===16)}function HT(e,t,n){if(Tt$2(e)&&!n){let r=Re$4(e.index,t);return new Qt$1(r,r)}else if(e.type&175){let r=t[se$2];return new Qt$1(r,t)}return null}var UT=(()=>{class e{zone=g$3(G$2);changeDetectionScheduler=g$3(Be$4);applicationRef=g$3(yr$1);applicationErrorHandler=g$3($e$4);_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$4({token:e,factory:e.\u0275fac})}return e})(),$T=new w("",{factory:()=>false});function zT({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new G$2(z$4(P$2({},Dm()),{scheduleInRootZone:t})),[{provide:ir$1,useValue:false},{provide:G$2,useFactory:e},{provide:It$1,multi:true,useFactory:()=>{let n=g$3(UT,{optional:true});return ()=>n.initialize()}},{provide:It$1,multi:true,useFactory:()=>{let n=g$3(GT);return ()=>{n.initialize();}}},{provide:qi$2,useValue:t??Mc}]}function $B(e){let t=e?.scheduleInRootZone,n=zT({ngZoneFactory:()=>{let r=Dm(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&ut$3("NgZone_CoalesceEvent"),new G$2(r)},scheduleInRootZone:t});return wt$5([{provide:$T,useValue:true},n])}function Dm(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var GT=(()=>{class e{subscription=new X$4;initialized=false;zone=g$3(G$2);pendingTasks=g$3(qt$1);initialize(){if(this.initialized)return;this.initialized=true;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{G$2.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G$2.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var Cl=new w(""),WT=new w("");function Co$1(e){return !e.moduleRef}function qT(e){let t=Co$1(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G$2);return n.run(()=>{Co$1(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get($e$4),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),Co$1(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Cl);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Cl);s.add(i),e.moduleRef.onDestroy(()=>{oo$1(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return YT(r,n,()=>{let i=t.get(qt$1),s=i.add(),a=t.get(ll);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(vr$1,Io$1);if(Ag(c||Io$1),!t.get(WT,!0))return Co$1(e)?t.get(yr$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Co$1(e)){let l=t.get(yr$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return ZT?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var ZT;function YT(e,t,n){try{let r=n();return Do$1(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Vs=null;function QT(e=[],t){return pe$4.create({name:t,providers:[{provide:$r,useValue:"platform"},{provide:Cl,useValue:new Set([()=>Vs=null])},...e]})}function KT(e=[]){if(Vs)return Vs;let t=QT(e);return Vs=t,Cg(),XT(t),t}function XT(e){let t=e.get(Wi$2,null);Qn$3(e,()=>{t?.forEach(n=>n());});}function Em(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;F$6(R$3.BootstrapApplicationStart);try{let i=o?.injector??KT(r),s=[sm(),Hf,...n||[]],a=new lo$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return qT({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{F$6(R$3.BootstrapApplicationEnd);}}function JT(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function eb(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var wl=Symbol("NOT_SET"),Im=new Set,tb=z$4(P$2({},Or),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:wl,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!==wl&&!Un$3(this))return this.signal;try{for(let o of this.cleanup??Im)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$4(this,n);}return (this.value===wl||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Tl=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(we$1),s),this.scheduler=o;for(let a of Vu){let c=n[a];if(c===void 0)continue;let u=Object.create(tb);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(gt$4(u),u.value),u.signal[q$3]=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??Im)n();}finally{Lt$1(t);}}};function zB(e,t){let n=g$3(pe$4),r=n.get(Be$4),o=n.get(Ms),i=n.get(ct$2,null,{optional:true});o.impl??=n.get(Hu);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(or$1,null,{optional:true}),c=new Tl(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function GB(e,t){let n=Et$4(e),r=t.elementInjector||Yn$3();return new Mn$3(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function WB(e){let t=Et$4(e);if(!t)return null;let n=new Mn$3(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 wm=null;function _t$4(){return wm}function Sl(e){wm??=e;}var To$1=class To{},Xt$3=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>g$3(Cm),providedIn:"platform"})}return e})(),nb=new w(""),Cm=(()=>{class e extends Xt$3{_location;_history;_doc=g$3(U$6);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return _t$4().getBaseHref(this._doc)}onPopState(n){let r=_t$4().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=_t$4().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({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Us(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Tm(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function qe$4(e){return e&&e[0]!=="?"?`?${e}`:e}var Dr=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>g$3(Sm),providedIn:"root"})}return e})(),$s=new w(""),Sm=(()=>{class e extends Dr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g$3(U$6).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 Us(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+qe$4(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+qe$4(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+qe$4(i));this._platformLocation.replaceState(n,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n);}static \u0275fac=function(r){return new(r||e)(b$1(Xt$3),b$1($s,8))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var _m=(()=>{class e{_subject=new ce$3;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=ib(Tm(bm(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+qe$4(r))}normalize(n){return e.stripTrailingSlash(ob(this._basePath,bm(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+qe$4(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+qe$4(r)),o);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(n=0){this._locationStrategy.historyGo?.(n);}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state);}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r));}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=qe$4;static joinWithSlash=Us;static stripTrailingSlash=Tm;static \u0275fac=function(r){return new(r||e)(b$1(Dr))};static \u0275prov=x({token:e,factory:()=>rb(),providedIn:"root"})}return e})();function rb(){return new _m(b$1(Dr))}function ob(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function bm(e){return e.replace(/\/index\.html$/,"")}function ib(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var sb=(()=>{class e extends Dr{_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=Us(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+qe$4(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+qe$4(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(Xt$3),b$1($s,8))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();var Fl=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(Fl||{});var ae$2=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ae$2||{}),B$5=(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$5||{}),ye$2=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(ye$2||{}),ve$2={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function Am(e){return me$3(e)[Y$2.LocaleId]}function Rm(e,t,n){let r=me$3(e),o=[r[Y$2.DayPeriodsFormat],r[Y$2.DayPeriodsStandalone]],i=Fe$4(o,t);return Fe$4(i,n)}function Om(e,t,n){let r=me$3(e),o=[r[Y$2.DaysFormat],r[Y$2.DaysStandalone]],i=Fe$4(o,t);return Fe$4(i,n)}function km(e,t,n){let r=me$3(e),o=[r[Y$2.MonthsFormat],r[Y$2.MonthsStandalone]],i=Fe$4(o,t);return Fe$4(i,n)}function Fm(e,t){let r=me$3(e)[Y$2.Eras];return Fe$4(r,t)}function bo$1(e,t){let n=me$3(e);return Fe$4(n[Y$2.DateFormat],t)}function So$1(e,t){let n=me$3(e);return Fe$4(n[Y$2.TimeFormat],t)}function _o$1(e,t){let r=me$3(e)[Y$2.DateTimeFormat];return Fe$4(r,t)}function lt$3(e,t){let n=me$3(e),r=n[Y$2.NumberSymbols][t];if(typeof r>"u"){if(t===ve$2.CurrencyDecimal)return n[Y$2.NumberSymbols][ve$2.Decimal];if(t===ve$2.CurrencyGroup)return n[Y$2.NumberSymbols][ve$2.Group]}return r}function Pm(e,t){return me$3(e)[Y$2.NumberFormats][t]}function Lm(e){if(!e[Y$2.ExtraData])throw new m$4(2303,false)}function jm(e){let t=me$3(e);return Lm(t),(t[Y$2.ExtraData][2]||[]).map(r=>typeof r=="string"?_l(r):[_l(r[0]),_l(r[1])])}function Bm(e,t,n){let r=me$3(e);Lm(r);let o=[r[Y$2.ExtraData][0],r[Y$2.ExtraData][1]],i=Fe$4(o,t)||[];return Fe$4(i,n)||[]}function Fe$4(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new m$4(2304,false)}function _l(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var ab=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,zs=Object.create(null),cb=/((?:[^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]*)/,ub=256;function Vm(e,t,n,r){let o=Db(e);lb(t),t=Mt$2(n,t)||t;let s=[],a;for(;t;)if(a=cb.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=Um(r,c),o=vb(o,r));let u="";return s.forEach(l=>{let d=mb(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function lb(e){if(e.length>ub)throw new m$4(2300,false)}function Ys(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Mt$2(e,t){let n=Am(e);if(zs[n]??=Object.create(null),zs[n][t])return zs[n][t];let r="";switch(t){case "shortDate":r=bo$1(e,ye$2.Short);break;case "mediumDate":r=bo$1(e,ye$2.Medium);break;case "longDate":r=bo$1(e,ye$2.Long);break;case "fullDate":r=bo$1(e,ye$2.Full);break;case "shortTime":r=So$1(e,ye$2.Short);break;case "mediumTime":r=So$1(e,ye$2.Medium);break;case "longTime":r=So$1(e,ye$2.Long);break;case "fullTime":r=So$1(e,ye$2.Full);break;case "short":let o=Mt$2(e,"shortTime"),i=Mt$2(e,"shortDate");r=Gs(_o$1(e,ye$2.Short),[o,i]);break;case "medium":let s=Mt$2(e,"mediumTime"),a=Mt$2(e,"mediumDate");r=Gs(_o$1(e,ye$2.Medium),[s,a]);break;case "long":let c=Mt$2(e,"longTime"),u=Mt$2(e,"longDate");r=Gs(_o$1(e,ye$2.Long),[c,u]);break;case "full":let l=Mt$2(e,"fullTime"),d=Mt$2(e,"fullDate");r=Gs(_o$1(e,ye$2.Full),[l,d]);break}return r&&(zs[n][t]=r),r}function Gs(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function Ze$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 db(e,t){return Ze$3(e,3).substring(0,t)}function K$5(e,t,n=0,r=false,o=false){return function(i,s){let a=fb(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return db(a,t);let c=lt$3(s,ve$2.MinusSign);return Ze$3(a,t,c,r,o)}}function fb(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$4(2301,false)}}function H$4(e,t,n=ae$2.Format,r=false){return function(o,i){return pb(o,i,e,t,n,r)}}function pb(e,t,n,r,o,i){switch(n){case 2:return km(t,o,r)[e.getMonth()];case 1:return Om(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=jm(t),l=Bm(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 Rm(t,o,r)[s<12?0:1];case 3:return Fm(t,r)[e.getFullYear()<=0?0:1];default:throw new m$4(2302,false)}}function Ws(e){return function(t,n,r){let o=-1*r,i=lt$3(n,ve$2.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+Ze$3(s,2,i)+Ze$3(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+Ze$3(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+Ze$3(s,2,i)+":"+Ze$3(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Ze$3(s,2,i)+":"+Ze$3(Math.abs(o%60),2,i);default:throw new m$4(2310,false)}}}var hb=0,Zs=4;function gb(e){let t=Ys(e,hb,1).getDay();return Ys(e,0,1+(t<=Zs?Zs:Zs+7)-t)}function Hm(e){let t=e.getDay(),n=t===0?-3:Zs-t;return Ys(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Ml(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=Hm(n),s=gb(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return Ze$3(o,e,lt$3(r,ve$2.MinusSign))}}function qs(e,t=false){return function(n,r){let i=Hm(n).getFullYear();return Ze$3(i,e,lt$3(r,ve$2.MinusSign),t)}}var Nl=Object.create(null);function mb(e){if(Nl[e])return Nl[e];let t;switch(e){case "G":case "GG":case "GGG":t=H$4(3,B$5.Abbreviated);break;case "GGGG":t=H$4(3,B$5.Wide);break;case "GGGGG":t=H$4(3,B$5.Narrow);break;case "y":t=K$5(0,1,0,false,true);break;case "yy":t=K$5(0,2,0,true,true);break;case "yyy":t=K$5(0,3,0,false,true);break;case "yyyy":t=K$5(0,4,0,false,true);break;case "Y":t=qs(1);break;case "YY":t=qs(2,true);break;case "YYY":t=qs(3);break;case "YYYY":t=qs(4);break;case "M":case "L":t=K$5(1,1,1);break;case "MM":case "LL":t=K$5(1,2,1);break;case "MMM":t=H$4(2,B$5.Abbreviated);break;case "MMMM":t=H$4(2,B$5.Wide);break;case "MMMMM":t=H$4(2,B$5.Narrow);break;case "LLL":t=H$4(2,B$5.Abbreviated,ae$2.Standalone);break;case "LLLL":t=H$4(2,B$5.Wide,ae$2.Standalone);break;case "LLLLL":t=H$4(2,B$5.Narrow,ae$2.Standalone);break;case "w":t=Ml(1);break;case "ww":t=Ml(2);break;case "W":t=Ml(1,true);break;case "d":t=K$5(2,1);break;case "dd":t=K$5(2,2);break;case "c":case "cc":t=K$5(7,1);break;case "ccc":t=H$4(1,B$5.Abbreviated,ae$2.Standalone);break;case "cccc":t=H$4(1,B$5.Wide,ae$2.Standalone);break;case "ccccc":t=H$4(1,B$5.Narrow,ae$2.Standalone);break;case "cccccc":t=H$4(1,B$5.Short,ae$2.Standalone);break;case "E":case "EE":case "EEE":t=H$4(1,B$5.Abbreviated);break;case "EEEE":t=H$4(1,B$5.Wide);break;case "EEEEE":t=H$4(1,B$5.Narrow);break;case "EEEEEE":t=H$4(1,B$5.Short);break;case "a":case "aa":case "aaa":t=H$4(0,B$5.Abbreviated);break;case "aaaa":t=H$4(0,B$5.Wide);break;case "aaaaa":t=H$4(0,B$5.Narrow);break;case "b":case "bb":case "bbb":t=H$4(0,B$5.Abbreviated,ae$2.Standalone,true);break;case "bbbb":t=H$4(0,B$5.Wide,ae$2.Standalone,true);break;case "bbbbb":t=H$4(0,B$5.Narrow,ae$2.Standalone,true);break;case "B":case "BB":case "BBB":t=H$4(0,B$5.Abbreviated,ae$2.Format,true);break;case "BBBB":t=H$4(0,B$5.Wide,ae$2.Format,true);break;case "BBBBB":t=H$4(0,B$5.Narrow,ae$2.Format,true);break;case "h":t=K$5(3,1,-12);break;case "hh":t=K$5(3,2,-12);break;case "H":t=K$5(3,1);break;case "HH":t=K$5(3,2);break;case "m":t=K$5(4,1);break;case "mm":t=K$5(4,2);break;case "s":t=K$5(5,1);break;case "ss":t=K$5(5,2);break;case "S":t=K$5(6,1);break;case "SS":t=K$5(6,2);break;case "SSS":t=K$5(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Ws(0);break;case "ZZZZZ":t=Ws(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Ws(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Ws(2);break;default:return null}return Nl[e]=t,t}function Um(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function yb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function vb(e,t,n){let o=e.getTimezoneOffset(),i=Um(t,o);return yb(e,-1*(i-o))}function Db(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 Ys(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(ab))return Eb(r)}let t=new Date(e);if(!Mm(t))throw new m$4(2311,false);return t}function Eb(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 Ib=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Nm=22,Qs=".",Mo$1="0",wb=";",Cb=",",xl="#";function Tb(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=lt$3(n,ve$2.Infinity);else {let u=_b(e);s&&(u=Sb(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let $=i.match(Ib);if($===null)throw new m$4(2306,false);let be=$[1],Ye=$[3],At=$[5];be!=null&&(l=Al(be)),Ye!=null&&(d=Al(Ye)),At!=null?p=Al(At):Ye!=null&&d>p&&(p=d);let Pe=100;if(l>Pe||d>Pe||p>Pe)throw new m$4(2306,false)}Mb(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,ve$2.Exponential)+"+"+y);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function $m(e,t,n){let r=Pm(t,Fl.Decimal),o=bb(r,lt$3(t,ve$2.MinusSign));return Tb(e,o,t,ve$2.Group,ve$2.Decimal,n)}function bb(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(wb),o=r[0],i=r[1],s=o.indexOf(Qs)!==-1?o.split(Qs):[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(xl));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Mo$1?n.minFrac=n.maxFrac=l+1:d===xl?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(Cb);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(xl);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 Sb(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 _b(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Qs))>-1&&(t=t.replace(Qs,"")),(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>Nm&&(r=r.splice(0,Nm-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function Mb(e,t,n){if(t>n)throw new m$4(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 Al(e){let t=parseInt(e);if(isNaN(t))throw new m$4(2305,false);return t}var Rl=/\s+/,xm=[],Nb=(()=>{class e{_ngEl;_renderer;initialClasses=xm;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r;}set klass(n){this.initialClasses=n!=null?n.trim().split(Rl):xm;}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Rl):n;}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,true);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,true);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff();}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=true,o.enabled=r),o.touched=true):this.stateMap.set(n,{enabled:r,changed:true,touched:true});}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=false):o.touched||(o.enabled&&this._toggleClass(r,false),this.stateMap.delete(r)),o.touched=false;}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Rl).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o);});}static \u0275fac=function(r){return new(r||e)(ge$4(Kt$2),ge$4(Fs))};static \u0275dir=js({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var xb=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g$3(pe$4);constructor(n){this._viewContainerRef=n;}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return !!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):false,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(ge$4(mr$1))};static \u0275dir=js({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[bu]})}return e})();function Ks(e,t){return new m$4(2100,false)}var Ol=class{createSubscription(t,n,r){return On$3(()=>t.subscribe({next:n,error:r}))}dispose(t){On$3(()=>t.unsubscribe());}},kl=class{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null;}}}dispose(t){t.unsubscribe();}},Ab=new kl,Rb=new Ol,Ob=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=true;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=g$3($e$4);constructor(n){this._ref=n;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n);}finally{this.markForCheckOnValueUpdate=true;}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r),r=>this.applicationErrorHandler(r));}_selectStrategy(n){if(Do$1(n))return Ab;if(Ls(n))return Rb;throw Ks()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static \u0275fac=function(r){return new(r||e)(ge$4(bl,16))};static \u0275pipe=Rn$3({name:"async",type:e,pure:false})}return e})(),kb=(()=>{class e{transform(n){return n==null?null:(Fb(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Rn$3({name:"lowercase",type:e,pure:true})}return e})();function Fb(e,t){if(typeof t!="string")throw Ks()}var Pb="mediumDate",zm=new w(""),Gm=new w(""),Lb=(()=>{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??Pb,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Vm(n,s,i||this.locale,a)}catch(s){throw Ks(e,s.message)}}static \u0275fac=function(r){return new(r||e)(ge$4(vr$1,16),ge$4(zm,24),ge$4(Gm,24))};static \u0275pipe=Rn$3({name:"date",type:e,pure:true})}return e})();var jb=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Rn$3({name:"json",type:e,pure:false})}return e})();var Bb=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!Vb(n))return null;o||=this._locale;try{let i=Hb(n);return $m(i,o,r)}catch(i){throw Ks(e,i.message)}}static \u0275fac=function(r){return new(r||e)(ge$4(vr$1,16))};static \u0275pipe=Rn$3({name:"number",type:e,pure:true})}return e})();function Vb(e){return !(e==null||e===""||e!==e)}function Hb(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new m$4(2309,false);return e}var Wm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({})}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 Ll="browser";function h2(e){return e===Ll}var g2=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new Pl(g$3(U$6),window)})}return e})(),Pl=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(z$4(P$2({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=zb(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(et$3(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(z$4(P$2({},n),{left:o-s[0],top:i-s[1]}));}};function zb(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},Xs=(()=>{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$6))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),ta$1=new w(""),Hl=(()=>{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 Xs));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Xs);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$4(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b$1(ta$1),b$1(G$2))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),jl="ng-app-id";function qm(e){for(let t of e)t.remove();}function Zm(e,t){let n=t.createElement("style");return n.textContent=e,n}function Gb(e,t,n,r){let o=e.head?.querySelectorAll(`style[${jl}="${t}"],link[${jl}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(jl),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 Vl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Ul=(()=>{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,Gb(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Zm);r?.forEach(o=>this.addUsage(o,this.external,Vl));}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&&(qm(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])qm(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,Zm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Vl(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$6),b$1(Qr),b$1(Xr,8),b$1(Kr))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Bl={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"},$l=/%COMP%/g;var Qm="%COMP%",Wb=`_nghost-${Qm}`,qb=`_ngcontent-${Qm}`,Zb=true,Yb=new w("",{factory:()=>Zb});function Qb(e){return qb.replace($l,e)}function Kb(e){return Wb.replace($l,e)}function Km(e,t){return t.map(n=>n.replace($l,e))}var zl=(()=>{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 ea$1?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 We$3.Emulated:i=new ea$1(c,u,r,this.appId,l,s,a,d);break;case We$3.ShadowDom:return new Js(c,n,r,s,a,this.nonce,d,u);case We$3.ExperimentalIsolatedShadowDom:return new Js(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(Hl),b$1(An$3),b$1(Qr),b$1(Yb),b$1(U$6),b$1(G$2),b$1(Xr),b$1(ct$2,8))};static \u0275prov=x({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(Bl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Ym(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(Ym(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$4(-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=Bl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Bl[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$3.DashCase|st$3.Important)?t.style.setProperty(n,r,o&st$3.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&st$3.DashCase?t.style.removeProperty(n):t.style[n]="";}setProperty(t,n,r){t!=null&&(t[n]=r);}setValue(t,n){t.nodeValue=n;}listen(t,n,r,o){if(typeof t=="string"&&(t=_t$4().getGlobalEventTarget(this.doc,t),!t))throw new m$4(-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 Ym(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Js=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=Km(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=Vl(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?Km(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Yt$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},ea$1=class ea 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=Qb(u),this.hostAttr=Kb(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 na$1=class e extends To$1{supportsDOMEvents=true;static makeCurrent(){Sl(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=Xb();return n==null?null:Jb(n)}resetBaseElement(){Oo$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return No$1(document.cookie,t)}},Oo$1=null;function Xb(){return Oo$1=Oo$1||document.head.querySelector("base"),Oo$1?Oo$1.getAttribute("href"):null}function Jb(e){return new URL(e,document.baseURI).pathname}var Xm=["alt","control","meta","shift"],eS={"\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"},tS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Jm=(()=>{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$4().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."),Xm.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=eS[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"),Xm.forEach(s=>{if(s!==o){let a=tS[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$6))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function nS(e,t,n){return dt$2(this,null,function*(){let r=P$2({rootComponent:e},rS(t,n));return Em(r)})}function rS(e,t){return {platformRef:t?.platformRef,appProviders:[...cS,...e?.providers??[]],platformProviders:aS}}function oS(){na$1.makeCurrent();}function iS(){return new Se$3}function sS(){return Nu(document),document}var aS=[{provide:Kr,useValue:Ll},{provide:Wi$2,useValue:oS,multi:true},{provide:U$6,useFactory:sS}];var cS=[{provide:$r,useValue:"root"},{provide:Se$3,useFactory:iS},{provide:ta$1,useClass:Xs,multi:true},{provide:ta$1,useClass:Jm,multi:true},zl,{provide:An$3,useClass:Ul},{provide:Ul,useExisting:An$3},Hl,{provide:_n$3,useExisting:zl},[]];var xt$3=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n);})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r);});}:this.headers=new Map;}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t);}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null));}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n));});}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case "a":case "s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case "d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else {let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s);}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n]);}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o);}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)));}};var oa$1=class oa{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()}},ia$1=class ia{encodeKey(t){return ey(t)}encodeValue(t){return ey(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function uS(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 lS=/%(\d[a-f0-9])/gi,dS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ey(e){return encodeURIComponent(e).replace(lS,(t,n)=>dS[n]??t)}function ra$1(e){return `${e}`}var Nt$3=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ia$1,t.fromString){if(t.fromObject)throw new m$4(2805,false);this.map=uS(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(ra$1):[ra$1(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(ra$1(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(ra$1(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param);}else {this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null);}};function fS(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function ty(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function ny(e){return typeof Blob<"u"&&e instanceof Blob}function ry(e){return typeof FormData<"u"&&e instanceof FormData}function pS(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Gl="Content-Type",oy="Accept",sy="text/plain",ay="application/json",hS=`${ay}, ${sy}, */*`,Er=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(fS(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new m$4(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$3,this.context??=new oa$1,!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"||ty(this.body)||ny(this.body)||ry(this.body)||pS(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||ry(this.body)?null:ny(this.body)?this.body.type||null:ty(this.body)?null:typeof this.body=="string"?sy: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"?ay: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,Ye=t.reportDownloadProgress??this.reportDownloadProgress,At=t.headers||this.headers,Pe=t.params||this.params,Fo=t.context??this.context;return t.setHeaders!==void 0&&(At=Object.keys(t.setHeaders).reduce((Pn,Jt)=>Pn.set(Jt,t.setHeaders[Jt]),At)),t.setParams&&(Pe=Object.keys(t.setParams).reduce((Pn,Jt)=>Pn.set(Jt,t.setParams[Jt]),Pe)),new e(n,r,D,{params:Pe,headers:At,context:Fo,reportProgress:$,reportUploadProgress:be,reportDownloadProgress:Ye,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})}},Ir$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})(Ir$1||{}),wr$1=class wr{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new xt$3,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},sa=class e extends wr$1{constructor(t={}){super(t);}type=Ir$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 wr$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Ir$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})}},Fn$3=class Fn extends wr$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;}},gS=200;var mS=/^\)\]\}',?\n/,cy=new w("",{factory:()=>null}),aa=(()=>{class e{fetchImpl=g$3(ql,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g$3(G$2);destroyRef=g$3(we$1);maxResponseSize=g$3(cy);handle(n){return new A$1(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(Zl,s=>r.error(new Fn$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 dt$2(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,P$2({signal:r},i)));yS(D),o.next({type:Ir$1.Sent}),s=yield D;}catch(D){o.error(new Fn$3({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new xt$3(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new sa({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&&iy(this.maxResponseSize);let $=[],be=s.body.getReader(),Ye=0,At,Pe,Fo=typeof Zone<"u"&&Zone.current,Pn=false;if(yield this.ngZone.runOutsideAngular(()=>dt$2(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield be.cancel(),Pn=true;break}let{done:Cr,value:ua}=yield be.read();if(Cr)break;if($.push(ua),Ye+=ua.length,this.maxResponseSize!==null&&Ye>this.maxResponseSize&&(yield be.cancel(),iy(this.maxResponseSize)),p){Pe=n.responseType==="text"?(Pe??"")+(At??=new TextDecoder).decode(ua,{stream:true}):void 0;let Kl=()=>o.next({type:Ir$1.DownloadProgress,total:Number.isFinite(_)?_:void 0,loaded:Ye,partialText:Pe});Fo?Fo.run(Kl):Kl();}}})),Pn){o.complete();return}let Jt=this.concatChunks($,Ye);try{let Cr=s.headers.get(Gl)??"";d=this.parseBody(n,Jt,Cr,l);}catch(Cr){o.error(new Fn$3({error:Cr,headers:new xt$3(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?gS: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 Fn$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(mS,"");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$4(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(oy)||(r[oy]=hS),!n.headers.has(Gl)){let i=n.detectContentTypeHeader();i!==null&&(r[Gl]=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$4({token:e,factory:e.\u0275fac})}return e})(),ql=class{};function Zl(){}function yS(e){e.then(Zl,Zl);}function iy(e){throw new m$4(-2825,false)}function vS(e,t){return t(e)}function DS(e,t,n){return (r,o)=>Qn$3(n,()=>t(r,i=>e(i,o)))}var uy=new w("",{factory:()=>[]}),ly=new w(""),dy=new w("",{factory:()=>true});var Yl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(aa),o},providedIn:"root"})}return e})();var ca=(()=>{class e{backend;injector;chain=null;pendingTasks=g$3(eo$1);contributeToStability=g$3(dy);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(uy),...this.injector.get(ly,[])]));this.chain=o.reduceRight((i,s)=>DS(i,s,this.injector),vS);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return On$3(()=>r(n,i=>this.backend.handle(i))).pipe(fi$3(o))}else return On$3(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(b$1(Yl),b$1(fe$4))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ql=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(ca),o},providedIn:"root"})}return e})();function Wl(e,t){return P$2({body:t},e)}var fy=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof Er)i=n;else {let c;o.headers instanceof xt$3?c=o.headers:c=new xt$3(o.headers);let u;o.params&&(o.params instanceof Nt$3?u=o.params:u=new Nt$3({fromObject:o.params})),i=new Er(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=br$1(i).pipe(di$2(c=>this.handler.handle(c)));if(n instanceof Er||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(ue$3(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new m$4(2806,false);return c.body}));case "blob":return a.pipe(ue$3(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m$4(2807,false);return c.body}));case "text":return a.pipe(ue$3(c=>{if(c.body!==null&&typeof c.body!="string")throw new m$4(2808,false);return c.body}));default:return a.pipe(ue$3(c=>c.body))}case "response":return a;default:throw new m$4(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,Wl(o,r))}post(n,r,o={}){return this.request("POST",n,Wl(o,r))}put(n,r,o={}){return this.request("PUT",n,Wl(o,r))}static \u0275fac=function(r){return new(r||e)(b$1(Ql))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ES=new w("",{factory:()=>true}),IS="XSRF-TOKEN",wS=new w("",{factory:()=>IS}),CS="X-XSRF-TOKEN",TS=new w("",{factory:()=>CS}),bS=(()=>{class e{cookieName=g$3(wS);doc=g$3(U$6);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$4({token:e,factory:e.\u0275fac})}return e})(),py=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(bS),o},providedIn:"root"})}return e})();function SS(e,t){if(!g$3(ES)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g$3(Xt$3).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$3(py).getToken(),r=g$3(TS);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function _S(...e){let t=[fy,aa,ca,{provide:Ql,useExisting:ca},{provide:Yl,useFactory:()=>g$3(aa)},{provide:uy,useValue:SS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return wt$5(t)}var UH=(()=>{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$6))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var MS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$1(NS),o},providedIn:"root"})}return e})(),NS=(()=>{class e extends MS{_doc=g$3(U$6);sanitize(n,r){if(r==null)return null;switch(n){case ke$3.NONE:return r;case ke$3.HTML:return at$3(r,"HTML")?Te$2(r):Ss(this._doc,String(r)).toString();case ke$3.STYLE:return at$3(r,"Style")?Te$2(r):r;case ke$3.SCRIPT:if(at$3(r,"Script"))return Te$2(r);throw new m$4(5200,false);case ke$3.URL:return at$3(r,"URL")?Te$2(r):ho$1(String(r));case ke$3.RESOURCE_URL:if(at$3(r,"ResourceURL"))return Te$2(r);throw new m$4(-5201,false);default:throw new m$4(5202,false)}}bypassSecurityTrustHtml(n){return Ru(n)}bypassSecurityTrustStyle(n){return Ou(n)}bypassSecurityTrustScript(n){return ku(n)}bypassSecurityTrustUrl(n){return Fu(n)}bypassSecurityTrustResourceUrl(n){return Pu(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var y$2=class y{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:a,credentials:l,encodeParam:o,encoder:t,password:e,username:i,withCredentials:p}={}){n&&(this.apiKeys=n),i!==void 0&&(this.username=i),e!==void 0&&(this.password=e),x!==void 0&&(this.accessToken=x),a!==void 0&&(this.basePath=a),p!==void 0&&(this.withCredentials=p),t&&(this.encoder=t),this.encodeParam=o??(r=>this.defaultEncodeParam(r)),this.credentials=l??{};}selectHeaderContentType(x){if(x.length===0)return;let n=x.find(a=>this.isJsonMime(a));return n===void 0?x[0]:n}selectHeaderAccept(x){if(x.length===0)return;let n=x.find(a=>this.isJsonMime(a));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,a,l){let o=this.lookupCredential(x);return o?a.set(n,(l??"")+o):a}addCredentialToQuery(x,n,a){let l=this.lookupCredential(x);return l?a.set(n,l):a}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P$1=new w("basePath");var S$2=class S{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$2=class j{basePath="http://localhost:18124";defaultHeaders=new xt$3;configuration;encoder;constructor(x,n){if(this.configuration=n||new y$2,typeof this.configuration.basePath!="string"){let a=Array.isArray(x)?x[0]:void 0;a!=null&&(x=a),typeof x!="string"&&(x=this.basePath),this.configuration.basePath=x;}this.encoder=this.configuration.encoder||new S$2;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,a,l=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,l?a:void 0,l):this.addToHttpParamsRecursive(x,n,a)}addToHttpParamsRecursive(x,n,a,l=false){if(n==null)return x;if(typeof n=="object"){if(a!=null)return l?Object.keys(n).reduce((o,t)=>o.append(`${a}[${t}]`,n[t]),x):x.append(a,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>x=this.addToHttpParamsRecursive(x,o,a));else if(n instanceof Date)if(a!=null)x=x.append(a,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=a?`${a}.${o}`:o;x=this.addToHttpParamsRecursive(x,n[o],t);});return x}else if(a!=null)return x.append(a,n);throw Error("key may not be null if value is not object or array")}};var B$4=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createAgentConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/agent-configs",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteAgentConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}disableAgentConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}enableAgentConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}exportAgentConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdAgentConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsAgentConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/agent-configs/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getDefinitionAgentConfig(n,a,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let i=new Nt$3({encoder:this.encoder});i=this.addToHttpParams(i,a,"withUserOverlay"),i=this.addToHttpParams(i,l,"namespaceId");let p=this.defaultHeaders,r=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);r!==void 0&&(p=p.set("Accept",r));let d=e?.context??new oa$1,s=e?.transferCache??true,c="json";r&&(r.startsWith("text")?c="text":this.configuration.isJsonMime(r)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:d,params:i,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:s,reportProgress:t}))}listByParentAgentConfig(n,a,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,a,"withDisabled");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="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:u,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,a="body",l=false,o){let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"withDisabled");let e=this.defaultHeaders,i=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=o?.context??new oa$1,r=o?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s="/api/agent-configs/platform",{basePath:c,withCredentials:u}=this.configuration;return this.httpClient.request("get",`${c}${s}`,z$4(P$2({context:p,params:t,responseType:d},u?{withCredentials:u}:{}),{headers:e,observe:a,transferCache:r,reportProgress:l}))}searchAgentConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/agent-configs/search",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}updateAgentConfig(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAgentConfig.");if(a==null)throw new Error("Required parameter agentConfig was null or undefined when calling updateAgentConfig.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var M$1=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createAiModel(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/ai-models",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteAiModel(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdAiModel(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsAiModel(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/ai-models/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listByNamespaceIdAiModel(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listByParentAiModel(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listPlatformLevelAiModel(n="body",a=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 oa$1,i=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let r="/api/ai-models/platform",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:p},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}updateAiModel(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(a==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var $$2=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createAiProvider(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/ai-providers",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteAiProvider(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdAiProvider(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsAiProvider(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/ai-providers/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listAiProvider(n,a,l="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,a,"userId");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="blob");let c="/api/ai-providers",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}updateAiProvider(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(a==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var U$5=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createIntegrationConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/integration-configs",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteIntegrationConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}exportIntegrationConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdIntegrationConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsIntegrationConfig(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/integration-configs/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listIntegrationConfig(n,a,l="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,a,"userId");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="blob");let c="/api/integration-configs",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(a==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$5=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;getTypeIntegrationType(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listTypesIntegrationType(n="body",a=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 oa$1,i=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let r="/api/integration-types",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:p},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var N$2=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createNamespace(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/namespaces",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteNamespace(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deployAgentsNamespace(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deployAgentsNamespace.");if(a==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling deployAgentsNamespace.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}getByIdNamespace(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsNamespace(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/namespaces/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listAllNamespace(n="body",a=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 oa$1,i=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let r="/api/namespaces",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:p},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}listByExternalIdsNamespace(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/namespaces/by-external-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}undeployAgentsNamespace(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling undeployAgentsNamespace.");if(a==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling undeployAgentsNamespace.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}updateNamespace(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(a==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var k$2=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}removeAssociationNamespaceGit(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}setAssociationNamespaceGit(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling setAssociationNamespaceGit.");if(a==null)throw new Error("Required parameter namespaceGitRequest was null or undefined when calling setAssociationNamespaceGit.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ge$3=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(ge$3||{});var G$1=class C{http=g$3(fy);config=g$3(y$2);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({token:C,factory:C.\u0275fac,providedIn:"root"})};var D$1=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(D$1||{});var W$3=(a=>(a.NEVER="NEVER",a.ON_DATE="ON_DATE",a.OCCURRENCES="OCCURRENCES",a))(W$3||{});var Ce$3=D$1,He$3=W$3;var xe$1={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},me$2={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var J$4=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createAuthSetting(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/auth-settings",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteAuthSetting(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdAuthSetting(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsAuthSetting(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/auth-settings/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listAuthSetting(n,a,l="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,a,"userId");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="blob");let c="/api/auth-settings",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}updateAuthSetting(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAuthSetting.");if(a==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling updateAuthSetting.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$3=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;addMessageCase(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(a==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}countUnreadCase(n,a="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,i=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=o?.context??new oa$1,r=o?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s="/api/cases/unread-count",{basePath:c,withCredentials:u}=this.configuration;return this.httpClient.request("get",`${c}${s}`,z$4(P$2({context:p,params:t,responseType:d},u?{withCredentials:u}:{}),{headers:e,observe:a,transferCache:r,reportProgress:l}))}createCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/cases",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/cases/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}interruptCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}killCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listByParentCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listByUserCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listByUserExternalIdCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listByUserInNamespaceCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/cases/by-user/in-namespace",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listMineByParentCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}markCaseRead(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/read`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}starCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("put",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}unstarCase(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}updateCase(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(a==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsCaseEventRest(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/case-events/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listByCaseCaseEventRest(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var K$4=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;getMembersCaseMembership(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}updateMembersCaseMembership(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersCaseMembership.");if(a==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersCaseMembership.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y$1=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,a,l,o,t="body",e=false,i){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,a,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let r=this.defaultHeaders,d=i?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(r=r.set("Accept",d));let s=i?.context??new oa$1,c=i?.transferCache??true,u="json";d&&(d.startsWith("text")?u="text":this.configuration.isJsonMime(d)?u="json":u="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:V}=this.configuration;return this.httpClient.request("get",`${m}${b}`,z$4(P$2({context:s,params:p,responseType:u},V?{withCredentials:V}:{}),{headers:r,observe:t,transferCache:c,reportProgress:e}))}browseNamespaceFilesExchange(n,a,l,o,t="body",e=false,i){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,a,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let r=this.defaultHeaders,d=i?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(r=r.set("Accept",d));let s=i?.context??new oa$1,c=i?.transferCache??true,u="json";d&&(d.startsWith("text")?u="text":this.configuration.isJsonMime(d)?u="json":u="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:V}=this.configuration;return this.httpClient.request("get",`${m}${b}`,z$4(P$2({context:s,params:p,responseType:u},V?{withCredentials:V}:{}),{headers:r,observe:t,transferCache:c,reportProgress:e}))}deleteCaseFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling deleteCaseFileExchange.");if(a==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,a,"path");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deleteNamespaceFileExchange.");if(a==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,a,"path");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling downloadCaseFileExchange.");if(a==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,a,"path");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="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:u,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling downloadNamespaceFileExchange.");if(a==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,a,"path");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="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:u,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFileContentExchange.");if(a==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,a,"path");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="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:u,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getNamespaceFileContentExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFileContentExchange.");if(a==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,a,"path");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="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:u,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}uploadCaseFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling uploadCaseFileExchange.");if(a==null)throw new Error("Required parameter file was null or undefined when calling uploadCaseFileExchange.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["multipart/form-data"],s=this.canConsumeForm(d),c,u=false;u=s,u?c=new FormData:c=new Nt$3({encoder:this.encoder}),a!==void 0&&(c=c.append("file",a)||c);let m="json";i&&(i.startsWith("text")?m="text":this.configuration.isJsonMime(i)?m="json":m="blob");let V=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:q,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${q}${V}`,z$4(P$2({context:p,body:c,responseType:m},E?{withCredentials:E}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}uploadNamespaceFileExchange(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling uploadNamespaceFileExchange.");if(a==null)throw new Error("Required parameter file was null or undefined when calling uploadNamespaceFileExchange.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["multipart/form-data"],s=this.canConsumeForm(d),c,u=false;u=s,u?c=new FormData:c=new Nt$3({encoder:this.encoder}),a!==void 0&&(c=c.append("file",a)||c);let m="json";i&&(i.startsWith("text")?m="text":this.configuration.isJsonMime(i)?m="json":m="blob");let V=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:q,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${q}${V}`,z$4(P$2({context:p,body:c,responseType:m},E?{withCredentials:E}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createFeedback(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/feedbacks",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listByCaseEventFeedback(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listByCaseFeedback(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var z$3=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}updateMembersNamespaceMembership(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersNamespaceMembership.");if(a==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersNamespaceMembership.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;grantAdmin(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantAdmin.");if(a==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantAdmin.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s=`/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:a,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:u}=this.configuration;return this.httpClient.request("put",`${c}${s}`,z$4(P$2({context:p,responseType:d},u?{withCredentials:u}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}grantMember(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantMember.");if(a==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantMember.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s=`/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:a,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:u}=this.configuration;return this.httpClient.request("put",`${c}${s}`,z$4(P$2({context:p,responseType:d},u?{withCredentials:u}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}revokeAdmin(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeAdmin.");if(a==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeAdmin.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s=`/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:a,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:u}=this.configuration;return this.httpClient.request("delete",`${c}${s}`,z$4(P$2({context:p,responseType:d},u?{withCredentials:u}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}revokeMember(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeMember.");if(a==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeMember.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s=`/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:a,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:u}=this.configuration;return this.httpClient.request("delete",`${c}${s}`,z$4(P$2({context:p,responseType:d},u?{withCredentials:u}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}updateRolesByExternalId(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/namespaces/update-roles-by-external-id",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/oauth/callback",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ee$3=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;debugAllPlugins(n="body",a=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 oa$1,i=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let r="/api/plugins/debug",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:p},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}debugPlugin(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getAllPlugins(n="body",a=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 oa$1,i=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let r="/api/plugins",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:p},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}getPlugin(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}reloadAllAgentsPlugin(n="body",a=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 oa$1,i=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let r="/api/plugins/reload-agents",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("post",`${d}${r}`,z$4(P$2({context:e,responseType:p},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}reloadPlugin(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}startPlugin(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}stopPlugin(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}unloadPlugin(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}uploadPlugin(n="body",a=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 oa$1,i=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let r="/api/plugins/upload",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("post",`${d}${r}`,z$4(P$2({context:e,responseType:p},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var te$3=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/prompts",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deletePrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}exportPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/prompts/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}resolveEffectivePrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/prompts/effective",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}searchPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/prompts/search",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}translatePrompt(n,a,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling translatePrompt.");if(a==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 i=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(i=i.set("Accept",p));let r=e?.context??new oa$1,d=e?.transferCache??true,s=["application/json"],c=this.configuration.selectHeaderContentType(s);c!==void 0&&(i=i.set("Content-Type",c));let u="json";p&&(p.startsWith("text")?u="text":this.configuration.isJsonMime(p)?u="json":u="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:a,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:m,withCredentials:V}=this.configuration;return this.httpClient.request("post",`${m}${b}`,z$4(P$2({context:r,body:l,responseType:u},V?{withCredentials:V}:{}),{headers:i,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updatePrompt.");if(a==null)throw new Error("Required parameter prompt was null or undefined when calling updatePrompt.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne$2=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createScheduledPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/scheduled-prompts",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteScheduledPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}disableScheduledPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}enableScheduledPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdScheduledPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsScheduledPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/scheduled-prompts/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}resolveEffectiveScheduledPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/scheduled-prompts/effective",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}searchScheduledPrompt(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/scheduled-prompts/search",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}updateScheduledPrompt(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateScheduledPrompt.");if(a==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling updateScheduledPrompt.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createSkill(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/skills",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteSkill(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdSkill(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsSkill(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/skills/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listByParentSkill(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}listPlatformSkill(n="body",a=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 oa$1,i=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let r="/api/skills/platform",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:p},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}updateSkill(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateSkill.");if(a==null)throw new Error("Required parameter skill was null or undefined when calling updateSkill.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;streamEventsCaseEventSse(n,a,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,a,"includePreviousEvents");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,a,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByAgentUsageRecord.");if(a==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 i=new Nt$3({encoder:this.encoder});i=this.addToHttpParams(i,n,"namespaceId"),i=this.addToHttpParams(i,a,"from"),i=this.addToHttpParams(i,l,"to");let p=this.defaultHeaders,r=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);r!==void 0&&(p=p.set("Accept",r));let d=e?.context??new oa$1,s=e?.transferCache??true,c="json";r&&(r.startsWith("text")?c="text":this.configuration.isJsonMime(r)?c="json":c="blob");let u="/api/usage-records/aggregate/by-agent",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${u}`,z$4(P$2({context:d,params:i,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:s,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}aggregateByCaseTreeUsageRecord(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}aggregateByModelUsageRecord(n,a,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByModelUsageRecord.");if(a==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 i=new Nt$3({encoder:this.encoder});i=this.addToHttpParams(i,n,"namespaceId"),i=this.addToHttpParams(i,a,"from"),i=this.addToHttpParams(i,l,"to");let p=this.defaultHeaders,r=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);r!==void 0&&(p=p.set("Accept",r));let d=e?.context??new oa$1,s=e?.transferCache??true,c="json";r&&(r.startsWith("text")?c="text":this.configuration.isJsonMime(r)?c="json":c="blob");let u="/api/usage-records/aggregate/by-model",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${u}`,z$4(P$2({context:d,params:i,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:s,reportProgress:t}))}aggregateByUserUsageRecord(n,a,l,o,t="body",e=false,i){if(n==null)throw new Error("Required parameter userId was null or undefined when calling aggregateByUserUsageRecord.");if(a==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,a,"namespaceId"),p=this.addToHttpParams(p,l,"from"),p=this.addToHttpParams(p,o,"to");let r=this.defaultHeaders,d=i?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(r=r.set("Accept",d));let s=i?.context??new oa$1,c=i?.transferCache??true,u="json";d&&(d.startsWith("text")?u="text":this.configuration.isJsonMime(d)?u="json":u="blob");let b="/api/usage-records/aggregate/by-user",{basePath:m,withCredentials:V}=this.configuration;return this.httpClient.request("get",`${m}${b}`,z$4(P$2({context:s,params:p,responseType:u},V?{withCredentials:V}:{}),{headers:r,observe:t,transferCache:c,reportProgress:e}))}listByCaseIdUsageRecord(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var se$1=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createUser(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/users",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteUser(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdUser(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getByIdsUser(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/users/by-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getGroupsByExternalIdsUser(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/users/groups-by-external-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getMeUser(n="body",a=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 oa$1,i=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let r="/api/users/me",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:p},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}listAllUser(n="body",a=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 oa$1,i=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let r="/api/users",{basePath:d,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${d}${r}`,z$4(P$2({context:e,responseType:p},s?{withCredentials:s}:{}),{headers:o,observe:n,transferCache:i,reportProgress:a}))}listByExternalIdsUser(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/users/by-external-ids",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}revokeNamespaceAccessByExternalIdUser(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");if(a==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,a,"namespaceId");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="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:u,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling revokeNamespaceAccessUser.");if(a==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,a,"namespaceId");let i=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(i=i.set("Accept",p));let r=t?.context??new oa$1,d=t?.transferCache??true,s="json";p&&(p.startsWith("text")?s="text":this.configuration.isJsonMime(p)?s="json":s="blob");let c=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/access`,{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${u}${c}`,z$4(P$2({context:r,params:e,responseType:s},b?{withCredentials:b}:{}),{headers:i,observe:l,transferCache:d,reportProgress:o}))}updateUser(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(a==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ie$2=class C extends j$2{constructor(n,a,l){super(a,l);this.httpClient=n;}httpClient;createUserGroup(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r=["application/json"],d=this.configuration.selectHeaderContentType(r);d!==void 0&&(t=t.set("Content-Type",d));let s="json";e&&(e.startsWith("text")?s="text":this.configuration.isJsonMime(e)?s="json":s="blob");let c="/api/user-groups",{basePath:u,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${u}${c}`,z$4(P$2({context:i,body:n,responseType:s},b?{withCredentials:b}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}deleteUserGroup(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}findByNamespaceIdUserGroup(n,a="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,i=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=o?.context??new oa$1,r=o?.transferCache??true,d="json";i&&(i.startsWith("text")?d="text":this.configuration.isJsonMime(i)?d="json":d="blob");let s="/api/user-groups",{basePath:c,withCredentials:u}=this.configuration;return this.httpClient.request("get",`${c}${s}`,z$4(P$2({context:p,params:t,responseType:d},u?{withCredentials:u}:{}),{headers:e,observe:a,transferCache:r,reportProgress:l}))}getByIdUserGroup(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}getMembersUserGroup(n,a="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 i=o?.context??new oa$1,p=o?.transferCache??true,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:s,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${s}${d}`,z$4(P$2({context:i,responseType:r},c?{withCredentials:c}:{}),{headers:t,observe:a,transferCache:p,reportProgress:l}))}updateUserGroup(n,a,l="body",o=false,t){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling updateUserGroup.");if(a==null)throw new Error("Required parameter userGroupUpdateRequest was null or undefined when calling updateUserGroup.");let e=this.defaultHeaders,i=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);i!==void 0&&(e=e.set("Accept",i));let p=t?.context??new oa$1,r=t?.transferCache??true,d=["application/json"],s=this.configuration.selectHeaderContentType(d);s!==void 0&&(e=e.set("Content-Type",s));let c="json";i&&(i.startsWith("text")?c="text":this.configuration.isJsonMime(i)?c="json":c="blob");let u=`/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}${u}`,z$4(P$2({context:p,body:a,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(b$1(fy),b$1(P$1,8),b$1(y$2,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ye$1=(o=>(o.PENDING="PENDING",o.RUNNING="RUNNING",o.IDLE="IDLE",o.KILLED="KILLED",o.ERROR="ERROR",o))(ye$1||{});var Ae$2=(o=>(o.PENDING="PENDING",o.RUNNING="RUNNING",o.IDLE="IDLE",o.KILLED="KILLED",o.ERROR="ERROR",o))(Ae$2||{});var ve$1=(l=>(l.FREE_TEXT="FREE_TEXT",l.SINGLE_CHOICE="SINGLE_CHOICE",l.OPEN_CHOICE="OPEN_CHOICE",l.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",l))(ve$1||{});function wi$2(C){return wt$5([typeof C=="string"?{provide:P$1,useValue:C}:{provide:y$2,useValue:new y$2(P$2({},C))}])}(class C{config=g$3(y$2);zone=g$3(G$2);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new A$1(a=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n)),o=t=>{try{let e=JSON.parse(t.data);this.zone.run(()=>a.next(e));}catch(e){this.zone.run(()=>a.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({token:C,factory:C.\u0275fac,providedIn:"root"})});var pe$3=class C{http=g$3(fy);config=g$3(y$2);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({token:C,factory:C.\u0275fac,providedIn:"root"})};var le$4=class C{http=g$3(fy);config=g$3(y$2);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({token:C,factory:C.\u0275fac,providedIn:"root"})};
6
+ var r=(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})(r||{}),_$2="*";function a(s,t){return {type:r.Trigger,name:s,definitions:t,options:{}}}function c$1(s,t=null){return {type:r.Animate,styles:t,timings:s}}function y$1(s,t=null){return {type:r.Sequence,steps:s,options:t}}function F$4(s){return {type:r.Style,styles:s,offset:null}}function S$1(s,t,e=null){return {type:r.Transition,expr:s,animation:t,options:e}}var l=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(t=0,e=0){this.totalTime=t+e;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]);}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t);}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t);}onDestroy(t){this._onDestroyFns.push(t);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(t){this._position=this.totalTime?t*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0;}},u$1=class u{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let e=0,n=0,o=0,h=this.players.length;h==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(i=>{i.onDone(()=>{++e==h&&this._onFinish();}),i.onDestroy(()=>{++n==h&&this._onDestroy();}),i.onStart(()=>{++o==h&&this._onStart();});}),this.totalTime=this.players.reduce((i,f)=>Math.max(i,f.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]);}init(){this.players.forEach(t=>t.init());}onStart(t){this._onStartFns.push(t);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(t=>t()),this._onStartFns=[]);}onDone(t){this._onDoneFns.push(t);}onDestroy(t){this._onDestroyFns.push(t);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play());}pause(){this.players.forEach(t=>t.pause());}restart(){this.players.forEach(t=>t.restart());}finish(){this._onFinish(),this.players.forEach(t=>t.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[]);}reset(){this.players.forEach(t=>t.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(t){let e=t*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o);});}getPosition(){let t=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy();});}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0;}},g$2="!";var c=class s{baseUrl="/api/projects";http=g$3(fy);listProjects(){return this.http.get(this.baseUrl)}getProject(e){return this.http.get(`${this.baseUrl}/${e}`)}getProjectConfig(e){return this.http.get(`${this.baseUrl}/${e}/config`)}updateProjectConfig(e,t){return this.http.put(`${this.baseUrl}/${e}/config`,t)}createProject(e,t){return this.http.post(this.baseUrl,{name:e,path:t})}getGitBranches(e){return this.http.get(`${this.baseUrl}/${e}/git/branches`)}createTask(e,t,r,f,v,m,S){return this.http.post(`${this.baseUrl}/${e}/missions`,{agentName:t,task:r,mode:f,branch:v,issueNumber:m,branchType:S})}closeTask(e,t){return this.http.delete(`${this.baseUrl}/${e}/missions/${t}`)}markThreadDone(e,t){return this.http.post(`${this.baseUrl}/${e}/threads/${t}/done`,{})}markThreadActive(e,t){return this.http.delete(`${this.baseUrl}/${e}/threads/${t}/done`)}markThreadsBatchDone(e,t){return this.http.post(`${this.baseUrl}/${e}/threads/batch-done`,{threadIds:t})}deleteProject(e,t){let r={};return t&&(r.removeGitWorktree="true"),this.http.delete(`${this.baseUrl}/${encodeURIComponent(e)}`,{params:r})}getPreviewEntries(e){return this.http.get(`${this.baseUrl}/${e}/preview/entries`)}startPreview(e,t){return this.http.post(`${this.baseUrl}/${e}/preview/${t}/start`,{})}stopPreview(e,t){return this.http.post(`${this.baseUrl}/${e}/preview/${t}/stop`,{})}getPreviewStatus(e,t){return this.http.get(`${this.baseUrl}/${e}/preview/${t}/status`)}getPreviewLogs(e,t){return this.http.get(`${this.baseUrl}/${e}/preview/${t}/logs`)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=x({token:s,factory:s.\u0275fac,providedIn:"root"})};var P=class s{selectedProjectIdSubject=new Tr(null);isLoadingSubject=new Tr(false);refreshTriggerSubject=new Tr(void 0);hasInitialized=false;isLoading$=this.isLoadingSubject.asObservable();projectApi=g$3(c);projectListCall=this.refreshTriggerSubject.pipe(Da(()=>this.projectApi.listProjects()),Od({bufferSize:1,refCount:true}));projectList$=this.projectListCall.pipe(ue$3(e=>e.projects));forcedProject$=this.projectListCall.pipe(ue$3(e=>e.forcedProject));selectedProject$=jy([this.selectedProjectIdSubject,this.forcedProject$]).pipe(Da(([e,t])=>{let r=t??e;return r?this.projectApi.getProject(r):br$1(null)}),kd(e=>{e&&e.name!==this.selectedProjectIdSubject.value&&(console.log("[PROJECT-STATE] Backend returned different project name:",e.name),this.selectedProjectIdSubject.next(e.name));}),Od({bufferSize:1,refCount:true}));selectProject(e){console.log("[PROJECT-STATE] Explicit project selection:",e),this.forcedProject$.pipe(an$2(1)).subscribe(t=>this.selectedProjectIdSubject.next(t??e));}getSelectedProjectId(){return this.selectedProjectIdSubject.value}getSelectedProjectIdOrThrow(){let e=this.selectedProjectIdSubject.value;if(!e)throw new Error("[PROJECT_STATE] No project selected");return e}clearSelection(){console.log("[PROJECT-STATE] Clearing project selection"),this.selectedProjectIdSubject.next(null);}initializeDefaultProject(){return dt$2(this,null,function*(){if(this.hasInitialized){console.log("[PROJECT-STATE] Already initialized, skipping");return}this.hasInitialized=true;let e=yield this.projectApi.listProjects().pipe(an$2(1)).toPromise();if(!e){console.log("[PROJECT-STATE] No response from project API");return}let{defaultProject:t,forcedProject:r}=e;t&&!r?(console.log("[PROJECT-STATE] Initializing with default project:",t),this.selectedProjectIdSubject.next(t)):r?(console.log("[PROJECT-STATE] Initializing with forced project:",r),this.selectedProjectIdSubject.next(r)):console.log("[PROJECT-STATE] No default project, staying on selection page");})}createProject(e,t){return this.isLoadingSubject.next(true),this.projectApi.createProject(e,t).pipe(kd(()=>{this.isLoadingSubject.next(false),this.refreshTriggerSubject.next();}))}deleteProject(e,t){return this.isLoadingSubject.next(true),this.projectApi.deleteProject(e,t).pipe(kd(()=>{this.isLoadingSubject.next(false),this.refreshTriggerSubject.next(),this.selectedProjectIdSubject.value===e&&this.clearSelection();}))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=x({token:s,factory:s.\u0275fac,providedIn:"root"})};var N$1=class n{http=g$3(fy);projectState=g$3(P);getBaseUrl(){return `/api/projects/${this.projectState.getSelectedProjectIdOrThrow()}/threads`}listThreads(){return this.http.get(this.getBaseUrl())}listAllThreads(){return this.http.get("/api/threads")}getThread(e){return this.http.get(`${this.getBaseUrl()}/${e}`)}createThread(e){let t=e?{name:e}:{};return this.http.post(this.getBaseUrl(),t)}updateThread(e,t){return this.http.put(`${this.getBaseUrl()}/${e}`,{name:t})}updateThreadUsers(e,t){return this.http.put(`${this.getBaseUrl()}/${e}`,{users:t})}starThread(e){return this.http.post(`${this.getBaseUrl()}/${e}/star`,{})}unstarThread(e){return this.http.delete(`${this.getBaseUrl()}/${e}/star`)}deleteThread(e){return this.http.delete(`${this.getBaseUrl()}/${e}`)}stopThread(e){return this.http.post(`${this.getBaseUrl()}/${e}/stop`,{})}getThreadMessages(e){return this.http.get(`${this.getBaseUrl()}/${e}/messages`)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var U$4=class n{selectedThreadIdSubject=new Tr(null);isLoadingSubject=new Tr(false);isLoadingThreadListSubject=new Tr(false);refreshThreadListSubject=new ce$3;threadListSubject=new Tr([]);hasLoadedOncePerProject=new Map;currentProjectName=null;isLoading$=this.isLoadingSubject.asObservable();isLoadingThreadList$=this.isLoadingThreadListSubject.asObservable();threadApi=g$3(N$1);projectStateService=g$3(P);projectApi=g$3(c);projectName$=this.projectStateService.selectedProject$.pipe(ue$3(e=>e?.name),xd());constructor(){jy([this.projectName$,this.refreshThreadListSubject.asObservable().pipe(Sd(void 0))]).pipe(kd(([e])=>{e!==this.currentProjectName&&(console.log("[THREAD_STATE] Project changed, clearing thread list"),this.threadListSubject.next([]),this.currentProjectName=e),e?this.hasLoadedOncePerProject.get(e)?console.log("[THREAD_STATE] Refreshing thread list for project",e,"(no spinner)"):(console.log("[THREAD_STATE] Initial load for project",e,"- showing spinner"),this.isLoadingThreadListSubject.next(true)):(console.log("[THREAD_STATE] No project selected, hiding spinner"),this.isLoadingThreadListSubject.next(false));}),Da(([e])=>e?(console.log("[THREAD_STATE] Fetching threads for project:",e),this.threadApi.listThreads().pipe(ue$3(t=>({threads:t,projectName:e})),va(t=>(console.error("[THREAD_STATE] Error loading thread list:",t),br$1({threads:[],projectName:e}))))):(console.log("[THREAD_STATE] No project selected, returning empty list"),br$1({threads:[],projectName:null}))),kd(({threads:e,projectName:t})=>{console.log("[THREAD_STATE] Thread list loaded:",e.length,"threads for project",t),t&&this.hasLoadedOncePerProject.set(t,true),this.isLoadingThreadListSubject.next(false),this.threadListSubject.next(e);})).subscribe();}threadList$=this.threadListSubject.asObservable();refreshSelectedThreadSubject=new ce$3;selectedThread$=jy([this.projectName$,this.selectedThreadIdSubject.pipe(xd()),this.refreshSelectedThreadSubject.pipe(Sd(void 0))]).pipe(Da(([e,t])=>!e||!t?br$1(null):(this.isLoadingSubject.next(true),this.threadApi.getThread(t).pipe(Od({bufferSize:1,refCount:true})))),kd(()=>{this.isLoadingSubject.next(false);}));selectThread(e){this.selectedThreadIdSubject.next(e);}getSelectedThreadId(){return this.selectedThreadIdSubject.value}getSelectedThreadIdOrThrow(){let e=this.selectedThreadIdSubject.value;if(!e)throw new Error("[THREAD_STATE] No thread selected");return e}clearSelection(){this.selectedThreadIdSubject.next(null);}stop(){let e=this.selectedThreadIdSubject.value;if(!e){console.error("[THREAD_STATE] Cannot stop: no thread selected");return}console.log("[THREAD_STATE] Stopping thread:",e),this.threadApi.stopThread(e).subscribe({next:t=>console.log("[THREAD_STATE] Stop signal sent:",t.message),error:t=>console.error("[THREAD_STATE] Error stopping thread:",t)});}refreshThreadList(){console.log("[THREAD_STATE] Manually refreshing thread list"),this.refreshThreadListSubject.next();}updateStarLocal(e,t,s){let P=this.threadListSubject.value.map(l=>{if(l.id!==e)return l;let p=l.starring||[];return t&&!p.includes(s)?z$4(P$2({},l),{starring:[...p,s]}):!t&&p.includes(s)?z$4(P$2({},l),{starring:p.filter(I=>I!==s)}):l});this.threadListSubject.next(P);}refreshSelectedThread(){this.refreshSelectedThreadSubject.next();}updateThreadUsers(e,t){return this.threadApi.updateThreadUsers(e,t).pipe(kd(()=>{this.refreshThreadList();}),va(s=>(console.error("[THREAD_STATE] Error updating thread users:",s),Uy(()=>s))))}markDone(e){let t=this.projectStateService.getSelectedProjectId();if(!t){console.error("[THREAD_STATE] Cannot mark done: no project selected");return}this.projectApi.markThreadDone(t,e).subscribe({next:()=>this.refreshThreadList(),error:s=>console.error("[THREAD_STATE] Failed to mark thread as done:",s)});}markActive(e){let t=this.projectStateService.getSelectedProjectId();if(!t){console.error("[THREAD_STATE] Cannot mark active: no project selected");return}this.projectApi.markThreadActive(t,e).subscribe({next:()=>this.refreshThreadList(),error:s=>console.error("[THREAD_STATE] Failed to mark thread as active:",s)});}renameThread(e,t){let s=t.trim();return !s||s.length===0?(console.error("[THREAD_STATE] Cannot rename thread: name is empty after trimming"),Uy(()=>new Error("Thread name cannot be empty"))):(console.log("[THREAD_STATE] Renaming thread:",e,"to:",s),this.threadApi.updateThread(e,s).pipe(kd(i=>{console.log("[THREAD_STATE] Thread renamed successfully:",i),this.refreshThreadList();}),va(i=>(console.error("[THREAD_STATE] Error renaming thread:",i),Uy(()=>i)))))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var pe$2=class n{http=g$3(fy);usernameSubject=new Tr(null);authEnabledSubject=new Tr(false);username$=this.usernameSubject.asObservable();authEnabled$=this.authEnabledSubject.asObservable();fetchCurrentUser(){return this.http.get("/api/user/me").pipe(kd(e=>{this.usernameSubject.next(e.username),this.authEnabledSubject.next(e.authEnabled);}))}getUsername(){return this.usernameSubject.value}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var L$1=class n{STORAGE_KEY="coday-preferences";isDesktopApp=false;electronStorage=null;voiceLanguageSubject=new Tr("en-US");voiceLanguage$=this.voiceLanguageSubject.asObservable();voiceInputModeSubject=new Tr("browser");voiceInputMode$=this.voiceInputModeSubject.asObservable();enterToSendSubject=new Tr(true);enterToSend$=this.enterToSendSubject.asObservable();voiceAnnounceEnabledSubject=new Tr(false);voiceAnnounceEnabled$=this.voiceAnnounceEnabledSubject.asObservable();voiceModeSubject=new Tr("speech");voiceMode$=this.voiceModeSubject.asObservable();voiceReadFullTextSubject=new Tr(false);voiceReadFullText$=this.voiceReadFullTextSubject.asObservable();voiceVolumeSubject=new Tr(.8);voiceVolume$=this.voiceVolumeSubject.asObservable();voiceRateSubject=new Tr(1.2);voiceRate$=this.voiceRateSubject.asObservable();selectedVoiceSubject=new Tr(null);selectedVoice$=this.selectedVoiceSubject.asObservable();printTechnicalMessagesSubject=new Tr(false);printTechnicalMessages$=this.printTechnicalMessagesSubject.asObservable();hideTechnicalMessagesSubject=new Tr(true);hideTechnicalMessages$=this.hideTechnicalMessagesSubject.asObservable();hideWarningMessagesSubject=new Tr(false);hideWarningMessages$=this.hideWarningMessagesSubject.asObservable();agentNotificationEnabledSubject=new Tr(false);agentNotificationEnabled$=this.agentNotificationEnabledSubject.asObservable();notificationSoundEnabledSubject=new Tr(false);notificationSoundEnabled$=this.notificationSoundEnabledSubject.asObservable();browserNotificationEnabledSubject=new Tr(false);browserNotificationEnabled$=this.browserNotificationEnabledSubject.asObservable();themeSubject=new Tr("light");theme$=this.themeSubject.asObservable();missionPreviewEnabledSubject=new Tr(false);missionPreviewEnabled$=this.missionPreviewEnabledSubject.asObservable();constructor(){console.log("[PREFERENCES] Initializing preferences service"),typeof window<"u"&&window.codayDesktop?.storage&&(this.isDesktopApp=true,this.electronStorage=window.codayDesktop.storage,console.log("[PREFERENCES] Running in desktop app mode with persistent storage")),this.initializePreferences();}initializePreferences(){this.isDesktopApp?this.loadPreferencesAsync():this.loadPreferencesSync();}loadPreferencesSync(){let e=this.getPreferenceSync("voiceLanguage","en-US")??"en-US";this.voiceLanguageSubject.next(e),console.log("[PREFERENCES] Voice language initialized to:",e);let t=this.getPreferenceSync("useEnterToSend",true)??true;this.enterToSendSubject.next(t),console.log("[PREFERENCES] Enter to send initialized to:",t);let s=this.getPreferenceSync("voiceAnnounceEnabled",false)??false;this.voiceAnnounceEnabledSubject.next(s);let i=this.getPreferenceSync("voiceMode","speech")??"speech";this.voiceModeSubject.next(i);let P=this.getPreferenceSync("voiceReadFullText",false)??false;this.voiceReadFullTextSubject.next(P);let l=this.getPreferenceSync("voiceVolume",.8)??.8;this.voiceVolumeSubject.next(l);let p=this.getPreferenceSync("voiceRate",1.2)??1.2;this.voiceRateSubject.next(p);let I=this.getPreferenceSync("selectedVoice",null)??null;this.selectedVoiceSubject.next(I);let G=this.getPreferenceSync("printTechnicalMessages",false)??false;this.printTechnicalMessagesSubject.next(G);let Q=this.getPreferenceSync("hideTechnicalMessages",true)??true;this.hideTechnicalMessagesSubject.next(Q);let J=this.getPreferenceSync("hideWarningMessages",false)??false;this.hideWarningMessagesSubject.next(J);let Y=this.getPreferenceSync("agentNotificationEnabled",false)??false;this.agentNotificationEnabledSubject.next(Y);let X=this.getPreferenceSync("notificationSoundEnabled",true)??true;this.notificationSoundEnabledSubject.next(X);let Z=this.getPreferenceSync("browserNotificationEnabled",false)??false;this.browserNotificationEnabledSubject.next(Z);let ee=this.getPreferenceSync("theme","light")??"light";this.themeSubject.next(ee);let te=this.getPreferenceSync("missionPreviewEnabled",false)??false;this.missionPreviewEnabledSubject.next(te);let ne=this.getPreferenceSync("voiceInputMode","browser")??"browser";this.voiceInputModeSubject.next(ne),console.log("[PREFERENCES] All preferences initialized successfully");}loadPreferencesAsync(){return dt$2(this,null,function*(){let e=(yield this.getPreferenceAsync("voiceLanguage","en-US"))??"en-US";this.voiceLanguageSubject.next(e),console.log("[PREFERENCES] Voice language initialized to:",e);let t=(yield this.getPreferenceAsync("useEnterToSend",true))??true;this.enterToSendSubject.next(t),console.log("[PREFERENCES] Enter to send initialized to:",t);let s=(yield this.getPreferenceAsync("voiceAnnounceEnabled",false))??false;this.voiceAnnounceEnabledSubject.next(s);let i=(yield this.getPreferenceAsync("voiceMode","speech"))??"speech";this.voiceModeSubject.next(i);let P=(yield this.getPreferenceAsync("voiceReadFullText",false))??false;this.voiceReadFullTextSubject.next(P);let l=(yield this.getPreferenceAsync("voiceVolume",.8))??.8;this.voiceVolumeSubject.next(l);let p=(yield this.getPreferenceAsync("voiceRate",1.2))??1.2;this.voiceRateSubject.next(p);let I=(yield this.getPreferenceAsync("selectedVoice",null))??null;this.selectedVoiceSubject.next(I);let G=(yield this.getPreferenceAsync("printTechnicalMessages",false))??false;this.printTechnicalMessagesSubject.next(G);let Q=(yield this.getPreferenceAsync("hideTechnicalMessages",true))??true;this.hideTechnicalMessagesSubject.next(Q);let J=(yield this.getPreferenceAsync("hideWarningMessages",false))??false;this.hideWarningMessagesSubject.next(J);let Y=(yield this.getPreferenceAsync("agentNotificationEnabled",false))??false;this.agentNotificationEnabledSubject.next(Y);let X=(yield this.getPreferenceAsync("notificationSoundEnabled",true))??true;this.notificationSoundEnabledSubject.next(X);let Z=(yield this.getPreferenceAsync("browserNotificationEnabled",false))??false;this.browserNotificationEnabledSubject.next(Z);let ee=(yield this.getPreferenceAsync("theme","light"))??"light";this.themeSubject.next(ee);let te=(yield this.getPreferenceAsync("missionPreviewEnabled",false))??false;this.missionPreviewEnabledSubject.next(te);let ne=(yield this.getPreferenceAsync("voiceInputMode","browser"))??"browser";this.voiceInputModeSubject.next(ne),console.log("[PREFERENCES] All preferences initialized successfully (async)");})}getPreference(e,t){return this.getPreferenceSync(e,t)}getPreferenceSync(e,t){try{let s=localStorage.getItem(this.STORAGE_KEY);if(!s)return t;let i=JSON.parse(s);return i[e]!==void 0?i[e]:t}catch(s){return t}}getPreferenceAsync(e,t){return dt$2(this,null,function*(){if(!this.electronStorage)return this.getPreferenceSync(e,t);try{let s=yield this.electronStorage.get(this.STORAGE_KEY);if(!s)return t;let i=JSON.parse(s);return i[e]!==void 0?i[e]:t}catch(s){return t}})}setPreference(e,t){this.isDesktopApp?this.setPreferenceAsync(e,t):this.setPreferenceSync(e,t);}setPreferenceSync(e,t){try{let s=localStorage.getItem(this.STORAGE_KEY),i=s?JSON.parse(s):{};i[e]=t,localStorage.setItem(this.STORAGE_KEY,JSON.stringify(i)),this.updateSubject(e,t);}catch(s){console.error("Failed to set preference:",s);}}setPreferenceAsync(e,t){return dt$2(this,null,function*(){if(!this.electronStorage){this.setPreferenceSync(e,t);return}try{let s=yield this.electronStorage.get(this.STORAGE_KEY),i=s?JSON.parse(s):{};i[e]=t,yield this.electronStorage.set(this.STORAGE_KEY,JSON.stringify(i)),this.updateSubject(e,t);}catch(s){console.error("Failed to set preference:",s);}})}updateSubject(e,t){e==="voiceLanguage"&&this.voiceLanguageSubject.next(t),e==="useEnterToSend"&&this.enterToSendSubject.next(t),e==="voiceAnnounceEnabled"&&this.voiceAnnounceEnabledSubject.next(t),e==="voiceMode"&&this.voiceModeSubject.next(t),e==="voiceReadFullText"&&this.voiceReadFullTextSubject.next(t),e==="voiceVolume"&&this.voiceVolumeSubject.next(t),e==="voiceRate"&&this.voiceRateSubject.next(t),e==="selectedVoice"&&this.selectedVoiceSubject.next(t),e==="printTechnicalMessages"&&this.printTechnicalMessagesSubject.next(t),e==="hideTechnicalMessages"&&this.hideTechnicalMessagesSubject.next(t),e==="hideWarningMessages"&&this.hideWarningMessagesSubject.next(t),e==="agentNotificationEnabled"&&this.agentNotificationEnabledSubject.next(t),e==="notificationSoundEnabled"&&this.notificationSoundEnabledSubject.next(t),e==="browserNotificationEnabled"&&this.browserNotificationEnabledSubject.next(t),e==="theme"&&this.themeSubject.next(t),e==="voiceInputMode"&&this.voiceInputModeSubject.next(t),e==="missionPreviewEnabled"&&this.missionPreviewEnabledSubject.next(t);}setVoiceLanguage(e){console.log("[PREFERENCES] Setting voice language to:",e),this.setPreference("voiceLanguage",e);}getVoiceLanguage(){return this.getPreference("voiceLanguage","en-US")??"en-US"}setVoiceInputMode(e){console.log("[PREFERENCES] Setting voice input mode to:",e),this.setPreference("voiceInputMode",e);}getVoiceInputMode(){return this.getPreference("voiceInputMode","browser")??"browser"}setEnterToSend(e){console.log("[PREFERENCES] Setting Enter to send to:",e),this.setPreference("useEnterToSend",e);}getEnterToSend(){return this.getPreference("useEnterToSend",false)??false}setVoiceAnnounceEnabled(e){console.log("[PREFERENCES] Setting voice announce enabled to:",e),this.setPreference("voiceAnnounceEnabled",e);}getVoiceAnnounceEnabled(){return this.getPreference("voiceAnnounceEnabled",false)??false}setVoiceMode(e){console.log("[PREFERENCES] Setting voice mode to:",e),this.setPreference("voiceMode",e);}getVoiceMode(){return this.getPreference("voiceMode","speech")??"speech"}setVoiceReadFullText(e){console.log("[PREFERENCES] Setting voice read full text to:",e),this.setPreference("voiceReadFullText",e);}getVoiceReadFullText(){return this.getPreference("voiceReadFullText",false)??false}setVoiceVolume(e){let t=Math.max(0,Math.min(1,e));console.log("[PREFERENCES] Setting voice volume to:",t),this.setPreference("voiceVolume",t);}getVoiceVolume(){return this.getPreference("voiceVolume",.8)??.8}setVoiceRate(e){let t=Math.max(.5,Math.min(2,e));console.log("[PREFERENCES] Setting voice rate to:",t),this.setPreference("voiceRate",t);}getVoiceRate(){return this.getPreference("voiceRate",1.2)??1.2}setSelectedVoice(e){console.log("[PREFERENCES] Setting selected voice to:",e),this.setPreference("selectedVoice",e);}getSelectedVoice(){return this.getPreference("selectedVoice",null)??null}setPrintTechnicalMessages(e){console.log("[PREFERENCES] Setting print technical messages to:",e),this.setPreference("printTechnicalMessages",e);}getPrintTechnicalMessages(){return this.getPreference("printTechnicalMessages",false)??false}setHideTechnicalMessages(e){console.log("[PREFERENCES] Setting hide technical messages to:",e),this.setPreference("hideTechnicalMessages",e);}getHideTechnicalMessages(){return this.getPreference("hideTechnicalMessages",true)??true}setHideWarningMessages(e){console.log("[PREFERENCES] Setting hide warning messages to:",e),this.setPreference("hideWarningMessages",e);}getHideWarningMessages(){return this.getPreference("hideWarningMessages",false)??false}setAgentNotificationEnabled(e){console.log("[PREFERENCES] Setting agent notification enabled to:",e),this.setPreference("agentNotificationEnabled",e);}getAgentNotificationEnabled(){return this.getPreference("agentNotificationEnabled",false)??false}setNotificationSoundEnabled(e){console.log("[PREFERENCES] Setting notification sound enabled to:",e),this.setPreference("notificationSoundEnabled",e);}getNotificationSoundEnabled(){return this.getPreference("notificationSoundEnabled",true)??true}setBrowserNotificationEnabled(e){console.log("[PREFERENCES] Setting browser notification enabled to:",e),this.setPreference("browserNotificationEnabled",e);}getBrowserNotificationEnabled(){return this.getPreference("browserNotificationEnabled",false)??false}setMissionPreviewEnabled(e){this.setPreference("missionPreviewEnabled",e);}getMissionPreviewEnabled(){return this.getPreference("missionPreviewEnabled",false)??false}getMissionPreviewPanelWidth(){return this.getPreference("missionPreviewPanelWidth",33)??33}setMissionPreviewPanelWidth(e){this.setPreference("missionPreviewPanelWidth",e);}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};function ce$2(n,e=80){if(n.length<=e)return n;try{if(n.trim().startsWith("{")||n.trim().startsWith("[")){let t=JSON.parse(n),s=JSON.stringify(t);return s.length<=e?s:s.substring(0,e)+`...(${s.length} chars)`}}catch(t){}return n.substring(0,e)+"..."}var o=class{constructor(e,t){this.type=t;if(e.timestamp)this.timestamp=e.timestamp;else {let s=Math.random().toString(36).substring(2,7);this.timestamp=`${new Date().toISOString()}-${s}`;}this.parentKey=e.parentKey,this.threadId=e.threadId,this.length=0;}type;timestamp;parentKey;static type;length;threadId;get date(){let e=this.timestamp.lastIndexOf("-");if(e>0){let t=this.timestamp.substring(e+1);if(t.length===5&&/^[a-z0-9]+$/.test(t))return new Date(this.timestamp.substring(0,e))}return new Date(this.timestamp)}},q$2=class q extends o{invite;constructor(e,t){super(e,t),this.invite=e.invite;}buildAnswer(e){return new u({answer:e,parentKey:this.timestamp,invite:this.invite})}},F$3=class n extends o{static type="heartbeat";constructor(e){super(e,n.type);}},f$1=class n extends q$2{defaultValue;static type="invite";constructor(e){super(e,n.type),this.defaultValue=e.defaultValue;}},_e$1="InviteEventDefault",u=class n extends o{answer;invite;name;silent;static type="answer";constructor(e){super(e,n.type),this.answer=e.answer??"No answer",this.invite=e.invite,this.name=e.name,this.silent=e.silent;}},A=class n extends o{speaker;text;static type="text";constructor(e){super(e,n.type),this.speaker=e.speaker,this.text=e.text;}},B$3=class n extends o{chunk;static type="text_chunk";constructor(e){super(e,n.type),this.chunk=e.chunk,this.length=this.chunk.length;}},M=class n extends o{warning;static type="warn";constructor(e){super(e,n.type),this.warning=e.warning;}},h$1=class n extends o{error;static type="error";constructor(e){super(e,n.type),this.error=e.error;}},b=class n extends q$2{options;optionalQuestion;allowFreeText;static type="choice";constructor(e){super(e,n.type),this.options=Array.isArray(e.options)?e.options:[],this.optionalQuestion=e.optionalQuestion,this.allowFreeText=e.allowFreeText??false;}},v=class n extends o{toolRequestId;name;args;static type="tool_request";constructor(e){super(e,n.type),this.toolRequestId=e.toolRequestId??this.timestamp,this.name=e.name,this.args=e.args,this.length=this.args.length+this.name.length+this.toolRequestId.length+20;}buildResponse(e){return new m$3({output:e,toolRequestId:this.toolRequestId,parentKey:this.timestamp})}toSingleLineString(e=50){let t=ce$2(this.args,e);return `\u{1F527} ${this.name}(${t})`}},m$3=class n extends o{toolRequestId;output;static type="tool_response";constructor(e){if(super(e,n.type),this.toolRequestId=e.toolRequestId||this.timestamp||new Date().toISOString(),this.output=e.output,typeof this.output=="string")this.length=this.output.length+this.toolRequestId.length+20;else if(this.output.type==="text")this.length=this.output.content.length+this.toolRequestId.length+20;else if(this.output.type==="image"){let t=(this.output.width??0)*(this.output.height??0)/750;this.length=(t?t*3.5:this.output.content.length)+this.toolRequestId.length+20;}else this.length=this.toolRequestId.length+20;}getTextOutput(){return typeof this.output=="string"?this.output:this.output.type==="text"?this.output.content:this.output.type==="image"?`[Image: ${this.output.mimeType}]`:""}toSingleLineString(e=50){let t=this.getTextOutput(),s=ce$2(t,e),i=typeof this.output!="string"&&this.output.type==="image"?" [image]":"";return `\u2B91 ${s}${i}`}},O$3=class n extends o{static type="thinking";static debounce=5e3;constructor(e){super(e,n.type);}},y=class n extends o{summary;static type="summary";constructor(e){super(e,n.type),this.summary=e.summary,this.length=this.summary.length;}toSingleLineString(e=80){return `\u{1F4CB} Summary: ${ce$2(this.summary,e)}`}},T$2=class n extends o{role;name;content;static type="message";constructor(e){super(e,n.type),this.role=e.role,this.name=e.name;let t=e.content;Array.isArray(t)?this.content=t.map(s=>typeof s=="string"?{type:"text",content:s}:s):typeof t=="string"?this.content=[{type:"text",content:t}]:t&&typeof t=="object"&&"type"in t?this.content=[t]:this.content=[],this.length=this.content.map(s=>{if(s.type==="text")return s.content.length;if(s.type==="image"){let i=(s.width||0)*(s.height||0)/750;return i?i*3.5:s.content.length}return s.type==="audio"?s.transcription?.length??100:0}).reduce((s,i)=>s+i,0);}getTextContent(){return this.content.filter(e=>e.type==="text").map(e=>e.content).join(`
7
7
  `)}},V$4=class n extends o{threadId;name;summary;users;static type="thread_update";constructor(e){super(e,n.type),this.threadId=e.threadId,this.name=e.name,this.summary=e.summary,this.users=e.users;}},z$2=class n extends o{filename;operation;size;mimeType;static type="file";constructor(e){super(e,n.type),this.filename=e.filename,this.operation=e.operation,this.size=e.size,this.mimeType=e.mimeType;}toSingleLineString(){let e=this.operation==="created"?"\u{1F4C4}":this.operation==="updated"?"\u{1F4DD}":"\u{1F5D1}\uFE0F",t=this.size?` (${(this.size/1024).toFixed(1)} KB)`:"";return `${e} ${this.operation}: ${this.filename}${t}`}},H$3=class n extends o{authUrl;state;integrationName;static type="oauth_request";constructor(e){super(e,n.type),this.authUrl=e.authUrl,this.state=e.state,this.integrationName=e.integrationName;}},R$2=class n extends o{subThreadId;agentName;static type="delegation";constructor(e){super(e,n.type),this.subThreadId=e.subThreadId,this.agentName=e.agentName;}},W$2=class n extends o{status;static type="delegation_status";constructor(e){super(e,n.type),this.status=e.status;}},_$1=class n extends o{static type="usage";inputTokens;outputTokens;contextWindow;price;iterations;cacheReadTokens;constructor(e){super(e,n.type),this.inputTokens=e.inputTokens??0,this.outputTokens=e.outputTokens??0,this.contextWindow=e.contextWindow??0,this.price=e.price??0,this.iterations=e.iterations??0,this.cacheReadTokens=e.cacheReadTokens??0;}},K$3=class n extends o{code;state;integrationName;error;errorDescription;static type="oauth_callback";constructor(e){super(e,n.type),this.code=e.code,this.state=e.state,this.integrationName=e.integrationName,this.error=e.error,this.errorDescription=e.errorDescription;}},ve={[T$2.type]:T$2,[u.type]:u,[b.type]:b,[R$2.type]:R$2,[W$2.type]:W$2,[h$1.type]:h$1,[F$3.type]:F$3,[f$1.type]:f$1,[v.type]:v,[m$3.type]:m$3,[A.type]:A,[B$3.type]:B$3,[O$3.type]:O$3,[M.type]:M,[V$4.type]:V$4,[y.type]:y,[z$2.type]:z$2,[H$3.type]:H$3,[K$3.type]:K$3,[_$1.type]:_$1};function le$3(n){let e=ve[n.type];return e?new e(n):void 0}[{id:"builtin-plan",name:"plan",description:"Build a plan to complete the given task",source:"builtin",commands:[`@ We start a 3 phase process to build a comprehensive execution plan for the following task:
8
8
 
9
9
  <task>
@@ -272,8 +272,8 @@ Verify the memory system's overall health:
272
272
  - List any remaining issues or concerns
273
273
  - Provide recommendations for maintaining memory quality
274
274
 
275
- This ensures the memory system stays efficient and valuable.`],createdBy:"system",createdAt:new Date("2024-01-01").toISOString(),webhookEnabled:false,parameterFormat:""}];var ge$2={CONFLUENCE:[],GIT:[],GIT_WORKTREE:[],GITLAB:[],JIRA:[],SLACK:[],ZENDESK:[],BASECAMP:[]};Object.keys(ge$2).filter(n=>ge$2[n]?.length===0);var me$1=class n{currentThemeSubject=new Tr({variant:"industry",mode:"light"});currentTheme$=this.currentThemeSubject.asObservable();preferences=g$3(L$1);subscription=null;constructor(){console.log("[THEME] Initializing theme service"),this.initializeTheme(),this.setupSystemThemeListener();}ngOnDestroy(){this.subscription?.unsubscribe();}initializeTheme(){this.subscription=this.preferences.theme$.subscribe(e=>{let t=this.preferences.getPreference("themeVariant")??"industry",s={variant:["industry","terminal"].includes(t)?t:"industry",mode:["light","dark","system"].includes(e)?e:"system"};console.log("[THEME] Theme preference changed to:",s),this.applyTheme(s);});}setTheme(e){this.preferences.setPreference("themeVariant",e.variant),this.preferences.setPreference("theme",e.mode),this.applyTheme(e);}getCurrentTheme(){return this.currentThemeSubject.value}applyTheme(e){console.log("[THEME] Applying theme:",e),this.currentThemeSubject.next(e);let t=e.mode==="system"?typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light":e.mode;this.setDocumentTheme(e.variant,t);}setDocumentTheme(e,t){if(typeof document>"u"||!document.documentElement)return;let s=e==="industry"&&t==="light"?null:`${e}-${t}`;s?document.documentElement.setAttribute("data-theme",s):document.documentElement.removeAttribute("data-theme");}setupSystemThemeListener(){typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{let t=this.getCurrentTheme();t.mode==="system"&&this.setDocumentTheme(t.variant,e.matches?"dark":"light");});}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var fe$3=class n{eventSource=null;eventsSubject=new ce$4;connectionStatusSubject=new Tr({connected:false,reconnectAttempts:0,maxAttempts:3});reconnectAttempts=0;MAX_RECONNECT_ATTEMPTS=3;RECONNECT_DELAY=2e3;events$=this.eventsSubject.asObservable();connectionStatus$=this.connectionStatusSubject.asObservable();ngZone=g$3(G$2);connectToThread(e,t){console.log("[SSE] Connecting to thread event stream:",e,t),this.eventSource&&(console.log("[SSE] Closing existing EventSource"),this.eventSource.close());let s=`/api/projects/${e}/threads/${t}/event-stream`;console.log("[SSE] EventSource URL:",s),this.eventSource=new EventSource(s),this.setupEventHandlers();}setupEventHandlers(){this.eventSource&&(this.eventSource.onmessage=e=>{this.ngZone.run(()=>{console.log("[SSE] Message received:",e.data.substring(0,100)),this.reconnectAttempts=0,this.updateConnectionStatus(true,0);try{let t=JSON.parse(e.data),s=le$3(t);s?(console.log("[SSE] Event:",s.type),this.eventsSubject.next(s)):console.warn("[SSE] Failed to build event:",t.type);}catch(t){console.error("[SSE] Parse error:",t.message);}});},this.eventSource.onopen=()=>{this.ngZone.run(()=>{console.log("[SSE] Connection established"),this.reconnectAttempts=0,this.updateConnectionStatus(true,0);});},this.eventSource.onerror=e=>{this.ngZone.run(()=>{console.log("[SSE] EventSource error:",e),this.eventSource?.readyState===EventSource.CLOSED&&(console.log("[SSE] Connection closed"),this.updateConnectionStatus(false,this.reconnectAttempts),this.reconnectAttempts<this.MAX_RECONNECT_ATTEMPTS?(console.log(`[SSE] Attempting reconnect ${this.reconnectAttempts+1}/${this.MAX_RECONNECT_ATTEMPTS}`),this.eventsSubject.next(new h$1({error:new Error(`Connection lost. Attempting to reconnect (${this.reconnectAttempts+1}/${this.MAX_RECONNECT_ATTEMPTS})...`)})),setTimeout(()=>{this.reconnectAttempts++,console.warn("[SSE] Reconnection may not work properly with thread-based connections");},this.RECONNECT_DELAY)):(console.log("[SSE] Max reconnection attempts reached"),this.eventsSubject.next(new h$1({error:new Error("Connection lost permanently. Please refresh the page.")}))));});});}disconnect(){this.eventSource&&(console.log("[SSE] Disconnecting EventSource"),this.eventSource.close(),this.eventSource=null,this.updateConnectionStatus(false,0));}updateConnectionStatus(e,t){this.connectionStatusSubject.next({connected:e,reconnectAttempts:t,maxAttempts:this.MAX_RECONNECT_ATTEMPTS});}ngOnDestroy(){this.disconnect(),this.eventsSubject.complete(),this.connectionStatusSubject.complete();}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var be$1=class n{http=g$3(dy);projectState=g$3(P);threadState=g$3(U$4);getBaseUrl(){return `/api/projects/${this.projectState.getSelectedProjectIdOrThrow()}/threads/${this.threadState.getSelectedThreadIdOrThrow()}/messages`}getMessages(){return this.http.get(this.getBaseUrl())}sendMessage(e){return this.http.post(this.getBaseUrl(),e,{responseType:"text"})}sendFreeMessage(e){return this.http.post(this.getBaseUrl(),{message:e})}getMessage(e){return this.http.get(`${this.getBaseUrl()}/${encodeURIComponent(e)}`)}deleteMessage(e){return this.http.delete(`${this.getBaseUrl()}/${encodeURIComponent(e)}`)}getFormattedMessage(e){return this.http.get(`${this.getBaseUrl()}/${encodeURIComponent(e)}/formatted`,{responseType:"text"})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var f="primary",Be$3=Symbol("RouteTitle"),er=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 ue$2(t){return new er(t)}function Yt$1(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function Sn$2(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 Yt$1(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !Yt$1(o,t.slice(0,o.length),c)||!Yt$1(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function ht$2(t){return new Promise((n,e)=>{t.pipe(Ad()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ci$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!q$1(t[e],n[e]))return false;return true}function q$1(t,n){let e=t?tr(t):void 0,r=n?tr(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],!Cn$2(t[i],n[i]))return false;return true}function tr(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Cn$2(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 wi$1(t){return t.length>0?t[t.length-1]:null}function he$2(t){return Uy(t)?t:Do$1(t)?Ke$2(Promise.resolve(t)):br$1(t)}function wn$2(t){return Uy(t)?ht$2(t):Promise.resolve(t)}var bi$1={exact:An$2,subset:En$2},bn$2={exact:Ii$1,subset:Ai$1,ignored:()=>true},In$2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function dn$1(t,n,e){return bi$1[e.paths](t.root,n.root,e.matrixParams)&&bn$2[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ii$1(t,n){return q$1(t,n)}function An$2(t,n,e){if(!ce$1(t.segments,n.segments)||!ct$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!An$2(t.children[r],n.children[r],e))return false;return true}function Ai$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Cn$2(t[e],n[e]))}function En$2(t,n,e){return Tn$2(t,n,n.segments,e)}function Tn$2(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!ce$1(i,e)||n.hasChildren()||!ct$1(i,e,r))}else if(t.segments.length===e.length){if(!ce$1(t.segments,e)||!ct$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!En$2(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 !ce$1(t.segments,i)||!ct$1(t.segments,i,r)||!t.children[f]?false:Tn$2(t.children[f],n,o,r)}}function ct$1(t,n,e){return n.every((r,i)=>bn$2[e](t[i].parameters,r.parameters))}var U$3=class U{root;queryParams;fragment;_queryParamMap;constructor(n=new m$2([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=ue$2(this.queryParams),this._queryParamMap}toString(){return Ni$1.serialize(this)}},m$2=class m{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 ut$2(this)}},X$3=class X{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=ue$2(this.parameters),this._parameterMap}toString(){return Mn$2(this)}};function Ei$1(t,n){return ce$1(t,n)&&t.every((e,r)=>q$1(e.parameters,n[r].parameters))}function ce$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function Ti$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)));}),e}var re$2=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:()=>new K$2})}return t})(),K$2=class K{parse(n){let e=new ir(n);return new U$3(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Oe$2(n.root,true)}`,r=_i$1(n.queryParams),i=typeof n.fragment=="string"?`#${Mi$1(n.fragment)}`:"";return `${e}${r}${i}`}},Ni$1=new K$2;function ut$2(t){return t.segments.map(n=>Mn$2(n)).join("/")}function Oe$2(t,n){if(!t.hasChildren())return ut$2(t);if(n){let e=t.children[f]?Oe$2(t.children[f],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Oe$2(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=Ti$1(t,(r,i)=>i===f?[Oe$2(t.children[f],false)]:[`${i}:${Oe$2(r,false)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ut$2(t)}/${e[0]}`:`${ut$2(t)}/(${e.join("//")})`}}function Nn$2(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function at$2(t){return Nn$2(t).replace(/%3B/gi,";")}function Mi$1(t){return encodeURI(t)}function nr(t){return Nn$2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lt$2(t){return decodeURIComponent(t)}function fn$2(t){return lt$2(t.replace(/\+/g,"%20"))}function Mn$2(t){return `${nr(t.path)}${Di$1(t.parameters)}`}function Di$1(t){return Object.entries(t).map(([n,e])=>`;${nr(n)}=${nr(e)}`).join("")}function _i$1(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${at$2(e)}=${at$2(i)}`).join("&"):`${at$2(e)}=${at$2(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ui$1=/^[^\/()?;#]+/;function Zt$2(t){let n=t.match(Ui$1);return n?n[0]:""}var Oi$2=/^[^\/()?;=#]+/;function Pi$1(t){let n=t.match(Oi$2);return n?n[0]:""}var Li$1=/^[^=?&#]+/;function ji$1(t){let n=t.match(Li$1);return n?n[0]:""}var xi$1=/^[^&#]+/;function ki$1(t){let n=t.match(xi$1);return n?n[0]:""}var ir=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m$2([],{}):new m$2([],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$4(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[f]=new m$2(e,r)),i}parseSegment(){let n=Zt$2(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new m$4(4009,false);return this.capture(n),new X$3(lt$2(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Pi$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Zt$2(this.remaining);i&&(r=i,this.capture(r));}n[lt$2(e)]=lt$2(r);}parseQueryParam(n){let e=ji$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=ki$1(this.remaining);a&&(r=a,this.capture(r));}let i=fn$2(e),o=fn$2(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=Zt$2(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new m$4(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=f);let c=this.parseChildren(e+1);r[a??f]=Object.keys(c).length===1&&c[f]?c[f]:new m$2([],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$4(4011,false)}};function Dn$2(t){return t.segments.length>0?new m$2([],{[f]:t}):t}function _n$2(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=_n$2(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m$2(t.segments,n);return $i$1(e)}function $i$1(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new m$2(t.segments.concat(n.segments),n.children)}return t}function ee$2(t){return t instanceof U$3}function Un$2(t,n,e=null,r=null,i=new K$2){let o=On$2(t);return Pn$2(o,n,e,r,i)}function On$2(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$2(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Dn$2(r);return n??i}function Pn$2(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Jt$1(o,o,o,e,r,i);let a=zi$1(n);if(a.toRoot())return Jt$1(o,o,new m$2([],{}),e,r,i);let c=Hi$1(a,o,t),s=c.processChildren?Le$3(c.segmentGroup,c.index,a.commands):jn$2(c.segmentGroup,c.index,a.commands);return Jt$1(o,c.segmentGroup,s,e,r,i)}function dt$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe(t){return typeof t=="object"&&t!=null&&t.outlets}function pn$2(t,n,e){t||="\u0275";let r=new U$3;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Jt$1(t,n,e,r,i,o){let a={};for(let[u,h]of Object.entries(r??{}))a[u]=Array.isArray(h)?h.map(v=>pn$2(u,v,o)):pn$2(u,h,o);let c;t===n?c=e:c=Ln$2(t,n,e);let s=Dn$2(_n$2(c));return new U$3(s,a,i)}function Ln$2(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Ln$2(o,n,e);}),new m$2(t.segments,r)}var ft$2=class ft{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&dt$1(r[0]))throw new m$4(4003,false);let i=r.find(xe);if(i&&i!==wi$1(r))throw new m$4(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zi$1(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ft$2(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 ft$2(e,n,r)}var Re$3=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Hi$1(t,n,e){if(t.isAbsolute)return new Re$3(n,true,0);if(!e)return new Re$3(n,false,NaN);if(e.parent===null)return new Re$3(e,true,0);let r=dt$1(t.commands[0])?0:1,i=e.segments.length-1+r;return Fi$1(e,i,t.numberOfDoubleDots)}function Fi$1(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m$4(4005,false);i=r.segments.length;}return new Re$3(r,false,i-o)}function qi$1(t){return xe(t[0])?t[0].outlets:{[f]:t}}function jn$2(t,n,e){if(t??=new m$2([],{}),t.segments.length===0&&t.hasChildren())return Le$3(t,n,e);let r=Bi$1(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m$2(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new m$2(t.segments.slice(r.pathIndex),t.children),Le$3(o,0,i)}else return r.match&&i.length===0?new m$2(t.segments,{}):r.match&&!t.hasChildren()?or(t,n,e):r.match?Le$3(t,0,i):or(t,n,e)}function Le$3(t,n,e){if(e.length===0)return new m$2(t.segments,{});{let r=qi$1(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Le$3(t.children[f],n,e);return new m$2(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=jn$2(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m$2(t.segments,i)}}function Bi$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(xe(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(!vn$2(s,u,a))return o;r+=2;}else {if(!vn$2(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function or(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe(o)){let s=Vi$1(o.outlets);return new m$2(r,s)}if(i===0&&dt$1(e[0])){let s=t.segments[n];r.push(new X$3(s.path,gn$2(e[0]))),i++;continue}let a=xe(o)?o.outlets[f]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&dt$1(c)?(r.push(new X$3(a,gn$2(c))),i+=2):(r.push(new X$3(a,{})),i++);}return new m$2(r,{})}function Vi$1(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=or(new m$2([],{}),0,r));}),n}function gn$2(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function vn$2(t,n,e){return t==e.path&&q$1(n,e.parameters)}var Se$2="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$2=class O{id;url;constructor(n,e){this.id=n,this.url=e;}},te$2=class te extends O$2{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}')`}},$$1=class $ extends O$2{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}')`}},I$1=(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})(I$1||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),k$1=class k extends O$2{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 xn$2(t){return t instanceof k$1&&(t.code===I$1.Redirect||t.code===I$1.SupersededByNewNavigation)}var B$2=class B extends O$2{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},le$2=class le extends O$2{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})`}},ke$2=class ke extends O$2{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})`}},pt$3=class pt extends O$2{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})`}},gt$3=class gt extends O$2{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})`}},vt$4=class vt extends O$2{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})`}},mt$2=class mt extends O$2{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})`}},yt$4=class yt{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},Rt$2=class Rt{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},St$4=class St{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct$3=class Ct{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wt$4=class wt{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bt$3=class bt{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$3=class Ie{},$e$3=class $e{},Ae$1=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Gi$1(t){return !(t instanceof Ie$3)&&!(t instanceof Ae$1)&&!(t instanceof $e$3)}var It=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new de$2(this.rootInjector);}},de$2=(()=>{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 It(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(C$1(fe$4))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),At$2=class At{_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=ar(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=ar(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=sr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return sr(n,this._root).map(e=>e.value)}};function ar(t,n){if(t===n.value)return n;for(let e of n.children){let r=ar(t,e);if(r)return r}return null}function sr(t,n){if(t===n.value)return [n];for(let e of n.children){let r=sr(t,e);if(r.length)return r.unshift(n),r}return []}var _=class{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ze$3=class ze extends At$2{snapshot;constructor(n,e){super(n),this.snapshot=e,vr(this,n);}toString(){return this.snapshot.toString()}};function kn$2(t,n){let e=Wi$1(t,n),r=new Tr([new X$3("",{})]),i=new Tr({}),o=new Tr({}),a=new Tr({}),c=new Tr(""),s=new V$3(r,i,a,c,o,f,t,e.root);return s.snapshot=e.root,new ze$3(new _(s,[]),e)}function Wi$1(t,n){let e={},r={},i={},a=new Ee$1([],e,i,"",r,f,t,null,{},n);return new He$2("",new _(a,[]))}var V$3=class V{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(ue$3(u=>u[Be$3]))??br$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(ue$3(n=>ue$2(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ue$3(n=>ue$2(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Qi$1="always";function gr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:P$2(P$2({},n.params),t.params),data:P$2(P$2({},n.data),t.data),resolve:P$2(P$2(P$2(P$2({},t.data),n.data),i?.data),t._resolvedData)}:r={params:P$2({},t.params),data:P$2({},t.data),resolve:P$2(P$2({},t.data),t._resolvedData??{})},i&&zn$2(i)&&(r.resolve[Be$3]=i.title),r}var Ee$1=class Ee{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Be$3]}constructor(n,e,r,i,o,a,c,s,u,h){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=h;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ue$2(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ue$2(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}')`}},He$2=class He extends At$2{url;constructor(n,e){super(e),this.url=n,vr(this,e);}toString(){return $n$2(this._root)}};function vr(t,n){n.value._routerState=t,n.children.forEach(e=>vr(t,e));}function $n$2(t){let n=t.children.length>0?` { ${t.children.map($n$2).join(", ")} } `:"";return `${t.value}${n}`}function Xt$2(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,q$1(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),q$1(n.params,e.params)||t.paramsSubject.next(e.params),Ci$1(n.url,e.url)||t.urlSubject.next(e.url),q$1(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function cr(t,n){let e=q$1(t.params,n.params)&&Ei$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||cr(t.parent,n.parent))}function zn$2(t){return typeof t.title=="string"||t.title===null}var Hn$2=new w(""),mr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new yt$5;deactivateEvents=new yt$5;attachEvents=new yt$5;detachEvents=new yt$5;routerOutletData=TB();parentContexts=g$3(de$2);location=g$3(mr$1);changeDetector=g$3(Tl);inputBinder=g$3(Ve$3,{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$4(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$4(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$4(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$4(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new ur(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=Ls({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Tu]})}return t})(),ur=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===V$3?this.route:n===de$2?this.childContexts:n===Hn$2?this.outletData:this.parent.get(n,e)}},Ve$3=new w(""),Fn$2=(()=>{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=Ly([this.options.queryParams?r.queryParams:br$1({}),r.params,r.data]).pipe(va(([o,a,c],s)=>(c=P$2(P$2(P$2({},o),a),c),s===0?br$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=OB(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let h=o[u];(h!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,h);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){QI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),yr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Rw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&bg(0,"router-outlet");},dependencies:[mr],encapsulation:2,changeDetection:1})}return t})();function Rr(t){let n=t.children&&t.children.map(Rr),e=n?z$4(P$2({},t),{children:n}):P$2({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=yr),e}function Ki$1(t,n,e){let r=new Set,i=Fe$3(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new ze$3(i,n)}}function Fe$3(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=Yi$1(t,n,e,r);return new _(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=>Fe$3(t,s,void 0,r)),c}}let i=Zi(n.value);r.add(i);let o=n.children.map(a=>Fe$3(t,a,void 0,r));return new _(i,o)}}function Yi$1(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Fe$3(t,i,o,r);return Fe$3(t,i,void 0,r)})}function Zi(t){return new V$3(new Tr(t.url),new Tr(t.params),new Tr(t.queryParams),new Tr(t.fragment),new Tr(t.data),t.outlet,t.component,t)}var Te$1=class Te{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},qn$2="ngNavigationCancelingError";function Et$3(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=ee$2(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Bn$2(false,I$1.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Bn$2(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[qn$2]=true,e.cancellationCode=n,e}function Ji$1(t){return Vn$2(t)&&ee$2(t.url)}function Vn$2(t){return !!t&&t[qn$2]}var lr=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),Xt$2(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye(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(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(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(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new bt$3(o.value.snapshot));}),n.children.length&&this.forwardEvent(new Ct$3(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Xt$2(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),Xt$2(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);}},Tt$1=class Tt{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$2=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function Xi$1(t,n,e){let r=t._root,i=n?n._root:null;return Pe$3(r,i,e,[r.value])}function eo(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$2(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!pv(t)?t:n.get(t):r}function Pe$3(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye(n);return t.children.forEach(a=>{to$1(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>je$3(c,e.getContext(a),i)),i}function to$1(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=ro(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new Tt$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Pe$3(t,n,c?c.children:null,r,i):Pe$3(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$2(c.outlet.component,a));}else a&&je$3(n,c,i),i.canActivateChecks.push(new Tt$1(r)),o.component?Pe$3(t,null,c?c.children:null,r,i):Pe$3(t,null,e,r,i);return i}function ro(t,n,e){if(typeof e=="function")return Qn$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !ce$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !ce$1(t.url,n.url)||!q$1(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !cr(t,n)||!q$1(t.queryParams,n.queryParams);default:return !cr(t,n)}}function je$3(t,n,e){let r=ye(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?je$3(a,n.children.getContext(o),e):je$3(a,null,e):je$3(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$2(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$2(null,i)):e.canDeactivateChecks.push(new Ce$2(null,i));}function Ge$3(t){return typeof t=="function"}function no(t){return typeof t=="boolean"}function io(t){return t&&Ge$3(t.canLoad)}function oo(t){return t&&Ge$3(t.canActivate)}function ao(t){return t&&Ge$3(t.canActivateChild)}function so(t){return t&&Ge$3(t.canDeactivate)}function co(t){return t&&Ge$3(t.canMatch)}function Gn$2(t){return t instanceof ht$3||t?.name==="EmptyError"}var st$2=Symbol("INITIAL_VALUE");function Ne$3(){return va(t=>Ly(t.map(n=>n.pipe(an$2(1),Sd(st$2)))).pipe(ue$3(n=>{for(let e of n)if(e!==true){if(e===st$2)return st$2;if(e===false||uo(e))return e}return true}),Ot$3(n=>n!==st$2),an$2(1)))}function uo(t){return ee$2(t)||t instanceof Te$1}function Wn$2(t){return t.aborted?br$1(void 0).pipe(an$2(1)):new A$1(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Qn$2(t){return Vy(Wn$2(t))}function lo(t){return pt$4(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?br$1(z$4(P$2({},n),{guardsResult:true})):ho(o,e,r).pipe(pt$4(a=>a&&no(a)?fo(e,i,t):br$1(a)),ue$3(a=>z$4(P$2({},n),{guardsResult:a})))})}function ho(t,n,e){return Ke$2(t).pipe(pt$4(r=>yo(r.component,r.route,e,n)),Ad(r=>r!==true,true))}function fo(t,n,e){return Ke$2(n).pipe(li$1(r=>kt$1(go(r.route.parent,e),po$1(r.route,e),mo(t,r.path),vo(t,r.route))),Ad(r=>r!==true,true))}function po$1(t,n){return t!==null&&n&&n(new wt$4(t)),br$1(true)}function go(t,n){return t!==null&&n&&n(new St$4(t)),br$1(true)}function vo(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return br$1(true);let r=e.map(i=>Zy(()=>{let o=n._environmentInjector,a=Me$2(i,o),c=oo(a)?a.canActivate(n,t):Qn$3(o,()=>a(n,t));return he$2(c).pipe(Ad())}));return br$1(r).pipe(Ne$3())}function mo(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>eo(o)).filter(o=>o!==null).map(o=>Zy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$2(c,s),h=ao(u)?u.canActivateChild(e,t):Qn$3(s,()=>u(e,t));return he$2(h).pipe(Ad())});return br$1(a).pipe(Ne$3())}));return br$1(i).pipe(Ne$3())}function yo(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return br$1(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$2(a,c),u=so(s)?s.canDeactivate(t,n,e,r):Qn$3(c,()=>s(t,n,e,r));return he$2(u).pipe(Ad())});return br$1(o).pipe(Ne$3())}function Ro(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return br$1(true);let a=o.map(c=>{let s=Me$2(c,t),u=io(s)?s.canLoad(n,e):Qn$3(t,()=>s(n,e)),h=he$2(u);return i?h.pipe(Qn$2(i)):h});return br$1(a).pipe(Ne$3(),Kn$2(r))}function Kn$2(t){return Dy(Od(n=>{if(typeof n!="boolean")throw Et$3(t,n)}),ue$3(n=>n===true))}function So(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return br$1(true);let c=a.map(s=>{let u=Me$2(s,t),h=co(u)?u.canMatch(n,e,i):Qn$3(t,()=>u(n,e,i));return he$2(h).pipe(Qn$2(o))});return br$1(c).pipe(Ne$3(),Kn$2(r))}var Q=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},qe$3=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Co(t){throw new m$4(4e3,false)}function wo(t){throw Bn$2(false,I$1.GuardRejected)}var hr$1=class hr{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return dt$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[f])throw Co(`${n.redirectTo}`);i=i.children[f];}})}applyRedirectCommands(n,e,r,i,o){return dt$2(this,null,function*(){let a=yield bo(e,i,o);if(a instanceof U$3)throw new qe$3(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new qe$3(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new U$3(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$2(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$4(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 bo(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return ht$2(he$2(Qn$3(e,()=>r(n))))}function Io(t,n){return t.providers&&!t._injector&&(t._injector=pg(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H$2(t){return t.outlet||f}function Ao(t,n){let e=t.filter(r=>H$2(r)===n);return e.push(...t.filter(r=>H$2(r)!==n)),e}var dr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Yn$2(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 Eo(t,n,e,r,i,o,a){let c=Zn$2(t,n,e);if(!c.matched)return br$1(c);let s=Yn$2(o(c));return r=Io(n,r),So(r,n,e,i,s,a).pipe(ue$3(u=>u===true?c:P$2({},dr)))}function Zn$2(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?P$2({},dr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Sn$2)(e,t,n);if(!i)return P$2({},dr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?P$2(P$2({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function mn$2(t,n,e,r,i){return e.length>0&&Mo(t,e,r,i)?{segmentGroup:new m$2(n,No(r,new m$2(e,t.children))),slicedSegments:[]}:e.length===0&&Do(t,e,r)?{segmentGroup:new m$2(t.segments,To(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m$2(t.segments,t.children),slicedSegments:e}}function To(t,n,e,r){let i={};for(let o of e)if(Mt$1(t,n,o)&&!r[H$2(o)]){let a=new m$2([],{});i[H$2(o)]=a;}return P$2(P$2({},r),i)}function No(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&H$2(r)!==f){let i=new m$2([],{});e[H$2(r)]=i;}return e}function Mo(t,n,e,r){return e.some(i=>!Mt$1(t,n,i)||!(H$2(i)!==f)?false:!(r!==void 0&&H$2(i)===r))}function Do(t,n,e){return e.some(r=>Mt$1(t,n,r))}function Mt$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function _o(t,n,e){return n.length===0&&!t.children[e]}var fr$1=class fr{};function Uo(t,n,e,r,i,o,a,c){return dt$2(this,null,function*(){return new pr$1(t,n,e,r,i,a,o,c).recognize()})}var Oo=31,pr$1=class pr{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 hr$1(this.urlSerializer,this.urlTree);}noMatchError(n){return new m$4(4002,`'${n.segmentGroup}'`)}recognize(){return dt$2(this,null,function*(){let n=mn$2(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new _(r,e),o=new He$2("",i),a=Un$2(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 dt$2(this,null,function*(){let e=new Ee$1([],Object.freeze({}),Object.freeze(P$2({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,f,e),rootSnapshot:e}}catch(r){if(r instanceof qe$3)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Q?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return dt$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 _?[a]:[]})}processChildren(n,e,r,i){return dt$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],h=Ao(e,s),v=yield this.processSegmentGroup(n,h,u,s,i);a.push(...v);}let c=Jn$2(a);return Po(c),c})}processSegment(n,e,r,i,o,a,c){return dt$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 Q||Gn$2(u))continue;throw u}if(_o(r,i,o))return new fr$1;throw new Q(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return dt$2(this,null,function*(){if(H$2(r)!==a&&(a===f||!Mt$1(i,o,r)))throw new Q(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 Q(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return dt$2(this,null,function*(){let{matched:s,parameters:u,consumedSegments:h,positionalParamSegments:v,remainingSegments:g}=Zn$2(e,i,o);if(!s)throw new Q(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Oo&&(this.allowRedirects=false));let T=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(h,i.redirectTo,v,Yn$2(T),n),ie=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,ie.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee$1(r,i,Object.freeze(P$2({},this.urlTree.queryParams)),this.urlTree.fragment,jo(e),H$2(e),e.component??e._loadedComponent??null,e,xo(e),n),c=gr(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 dt$2(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=oe=>this.createSnapshot(n,r,oe.consumedSegments,oe.parameters,a),s=yield ht$2(Eo(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new Q(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),h=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:T}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:ie,slicedSegments:De}=mn$2(e,g,T,u,o);if(De.length===0&&ie.hasChildren()){let oe=yield this.processChildren(h,u,ie,z);return new _(z,oe)}if(u.length===0&&De.length===0)return new _(z,[]);let Lt=H$2(r)===o,Ke=yield this.processSegment(h,u,ie,De,Lt?f:o,true,z);return new _(z,Ke instanceof _?[Ke]:[])})}getChildConfig(n,e,r){return dt$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 ht$2(Ro(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 wo()}return {routes:[],injector:n}})}};function Po(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet));}function Lo(t){let n=t.value.routeConfig;return n&&n.path===""}function Jn$2(t){let n=[],e=new Set;for(let r of t){if(!Lo(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=Jn$2(r.children);n.push(new _(r.value,i));}return n.filter(r=>!e.has(r))}function jo(t){return t.data||{}}function xo(t){return t.resolve||{}}function ko(t,n,e,r,i,o,a){return pt$4(c=>dt$2(null,null,function*(){let{state:s,tree:u}=yield Uo(t,n,e,r,c.extractedUrl,i,o,a);return z$4(P$2({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function $o(t){return pt$4(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return br$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 Xn$2(c))o.add(s);let a=0;return Ke$2(o).pipe(li$1(c=>i.has(c)?zo(c,e,t):(c.data=gr(c,c.parent,t).resolve,br$1(void 0))),Od(()=>a++),tv(1),pt$4(c=>a===o.size?br$1(n):sn$2))})}function Xn$2(t){let n=t.children.map(e=>Xn$2(e)).flat();return [t,...n]}function zo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!zn$2(r)&&(i[Be$3]=r.title),Zy(()=>(t.data=gr(t,t.parent,e).resolve,Ho(i,t,n).pipe(ue$3(o=>(t._resolvedData=o,t.data=P$2(P$2({},t.data),o),null)))))}function Ho(t,n,e){let r=tr(t);if(r.length===0)return br$1({});let i={};return Ke$2(r).pipe(pt$4(o=>Fo(t[o],n,e).pipe(Ad(),Od(a=>{if(a instanceof Te$1)throw Et$3(new K$2,a);i[o]=a;}))),tv(1),ue$3(()=>i),ya(o=>Gn$2(o)?sn$2:Hy(o)))}function Fo(t,n,e){let r=n._environmentInjector,i=Me$2(t,r),o=i.resolve?i.resolve(n,e):Qn$3(r,()=>i(n,e));return he$2(o)}function yn$2(t){return va(n=>{let e=t(n);return e?Ke$2(e).pipe(ue$3(()=>n)):br$1(n)})}var Sr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[Be$3]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:()=>g$3(ei)})}return t})(),ei=(()=>{class t extends Sr{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(C$1(NH))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ne$1=new w("",{factory:()=>({})}),fe$2=new w(""),Dt=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g$3(hT);loadComponent(e,r){return dt$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=dt$2(this,null,function*(){try{let o=yield wn$2(Qn$3(e,()=>r.loadComponent())),a=yield ri(wB(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=dt$2(this,null,function*(){try{let o=yield ti(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$4({token:t,factory:t.\u0275fac})}return t})();function ti(t,n,e,r){return dt$2(this,null,function*(){let i=yield wn$2(Qn$3(e,()=>t.loadChildren())),o=yield ri(wB(i)),a;o instanceof fg||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,h;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,h=a,s=c.get(fe$2,[],{optional:true,self:true}).flat()),{routes:s.map(Rr),injector:c,factory:h}})}function ri(t){return dt$2(this,null,function*(){return t})}var _t$3=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:()=>g$3(qo)})}return t})(),qo=(()=>{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$4({token:t,factory:t.\u0275fac})}return t})(),Cr=new w(""),wr=new w("");function ni$1(t,n,e){let r=t.get(wr),i=t.get(U$6);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(),Bo(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 Bo(t){return new Promise(n=>{NE({read:()=>setTimeout(n)},{injector:t});})}var ii$1=new w(""),Vo=()=>{},br=new w(""),Ut$2=(()=>{class t{currentNavigation=zi$2(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=zi$2(null);events=new ce$4;transitionAbortWithErrorSubject=new ce$4;configLoader=g$3(Dt);environmentInjector=g$3(fe$4);destroyRef=g$3(we$1);urlSerializer=g$3(re$2);rootContexts=g$3(de$2);location=g$3(Sm);inputBindingEnabled=g$3(Ve$3,{optional:true})!==null;titleStrategy=g$3(Sr);options=g$3(ne$1,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Qi$1;urlHandlingStrategy=g$3(_t$3);createViewTransition=g$3(Cr,{optional:true});navigationErrorHandler=g$3(br,{optional:true});activatedRouteInjectorFeature=g$3(ii$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>br$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new yt$4(i)),r=i=>this.events.next(new Rt$2(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;On$3(()=>{this.transitions?.next(z$4(P$2({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Tr(null),this.transitions.pipe(Ot$3(r=>r!==null),va(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return br$1(r).pipe(va(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",I$1.SupersededByNewNavigation),sn$2;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?z$4(P$2({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let h=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!h&&v!=="reload")return this.events.next(new B$2(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(false),sn$2;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return br$1(s).pipe(va(g=>(this.events.next(new te$2(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?sn$2:Promise.resolve(g))),ko(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),Od(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(T=>(T.finalUrl=g.urlAfterRedirects,T)),this.events.next(new $e$3);}),va(g=>Ke$2(r.routesRecognizeHandler.deferredHandle??br$1(void 0)).pipe(ue$3(()=>g))),Od(()=>{let g=new ke$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:T,source:z,restoredState:ie,extras:De}=s,Lt=new te$2(g,this.urlSerializer.serialize(T),z,ie);this.events.next(Lt);let Ke=kn$2(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=z$4(P$2({},s),{targetSnapshot:Ke,urlAfterRedirects:T,extras:z$4(P$2({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(oe=>(oe.finalUrl=T,oe)),br$1(r)}else return this.events.next(new B$2(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(false),sn$2}),ue$3(s=>{let u=new pt$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=z$4(P$2({},s),{guards:Xi$1(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),lo(s=>this.events.next(s)),va(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Et$3(this.urlSerializer,s.guardsResult);let u=new gt$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return sn$2;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",I$1.GuardRejected),sn$2;if(s.guards.canActivateChecks.length===0)return br$1(s);let h=new vt$4(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(h),!c())return sn$2;let v=false;return br$1(s).pipe($o(this.paramsInheritanceStrategy),Od({next:()=>{v=true;let g=new mt$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",I$1.NoDataFromResolver);}}))}),yn$2(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let T=v._environmentInjector;g.push(this.configLoader.loadComponent(T,v.routeConfig).then(z=>{v.component=z;}));}for(let T of v.children)g.push(...u(T));return g},h=u(s.targetSnapshot.root);return h.length===0?br$1(s):Ke$2(Promise.all(h).then(()=>s))}),va(s=>{let{newlyCreatedRoutes:u,state:h}=Ki$1(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=z$4(P$2({},s),{targetRouterState:h,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=h,v)),br$1(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),yn$2(()=>this.afterPreactivation()),va(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,h=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return h?Ke$2(h).pipe(ue$3(()=>r)):br$1(r)}),an$2(1),va(s=>{i=false,this.events.next(new Ie$3);let u=r.beforeActivateHandler.deferredHandle;return u?Ke$2(u.then(()=>s)):br$1(s)}),Od(s=>{new lr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Vo,u)),this.lastSuccessfulNavigation.set(On$3(this.currentNavigation)),this.events.next(new $$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Vy(Wn$2(a.signal).pipe(Ot$3(()=>!o&&i),Od(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",I$1.Aborted);}))),Od({complete:()=>{o=true;}}),Vy(this.transitionAbortWithErrorSubject.pipe(Od(s=>{throw s}))),di$2(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",I$1.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),ya(s=>{if(o=true,Rn$2(r),this.destroyed)return r.resolve(false),sn$2;if(Vn$2(s))this.events.next(new k$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Ji$1(s)?this.events.next(new Ae$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new le$2(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let h=Qn$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(h instanceof Te$1){let{message:v,cancellationCode:g}=Et$3(this.urlSerializer,h);this.events.next(new k$1(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$1(h.redirectTo,h.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(h){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(h);}}return sn$2}))}))}cancelNavigationTransition(e,r,i){Rn$2(e);let o=new k$1(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=On$3(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$4({token:t,factory:t.\u0275fac})}return t})();function Go(t){return t!==Se$2}function Rn$2(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var oi$1=new w("");var ai=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:()=>g$3(Wo)})}return t})(),Nt$2=class Nt{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}},Wo=(()=>{class t extends Nt$2{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:t.\u0275fac})}return t})(),Ot$2=(()=>{class t{urlSerializer=g$3(re$2);options=g$3(ne$1,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g$3(Sm);urlHandlingStrategy=g$3(_t$3);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new U$3;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 U$3?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=kn$2(null,g$3(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$4({token:t,factory:()=>g$3(Qo)})}return t})(),Qo=(()=>{class t extends Ot$2{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 te$2?this.updateStateMemento():e instanceof B$2?this.commitTransition(r):e instanceof ke$2?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$3?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof k$1&&!xn$2(e)?this.restoreHistory(r):e instanceof le$2?this.restoreHistory(r,true):e instanceof $$1&&(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=P$2(P$2({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=P$2(P$2({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?P$2({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):P$2({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:t.\u0275fac})}return t})();function Pt$3(t,n){t.events.pipe(Ot$3(e=>e instanceof $$1||e instanceof k$1||e instanceof le$2||e instanceof B$2),ue$3(e=>e instanceof $$1||e instanceof B$2?0:(e instanceof k$1?e.code===I$1.Redirect||e.code===I$1.SupersededByNewNavigation:false)?2:1),Ot$3(e=>e!==2),an$2(1)).subscribe(()=>{n();});}var G=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g$3(Ig);stateManager=g$3(Ot$2);options=g$3(ne$1,{optional:true})||{};pendingTasks=g$3(qt$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g$3(Ut$2);urlSerializer=g$3(re$2);location=g$3(Sm);urlHandlingStrategy=g$3(_t$3);injector=g$3(fe$4);_events=new ce$4;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g$3(ai);injectorCleanup=g$3(oi$1,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g$3(fe$2,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g$3(Ve$3,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new X$4;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=On$3(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof k$1&&r.code!==I$1.Redirect&&r.code!==I$1.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof $$1)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=P$2({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Go(i.source)},a);this.scheduleNavigation(c,Se$2,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Gi$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$2,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=z$4(P$2({},o),{browserUrl:e})),i){let u=P$2({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get($e$4)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return On$3(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Rr),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,h=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":h=P$2(P$2({},this.currentUrlTree.queryParams),o);break;case "preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null;}h!==null&&(h=this.removeEmptyProps(h));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=On$2(g);}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return Pn$2(v,e,h,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=ee$2(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se$2,null,r)}navigate(e,r={skipLocationChange:false}){return Ko(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(et$3(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=P$2({},In$2):r===false?i=P$2({},rr):i=P$2(P$2({},rr),r),ee$2(e))return dn$1(this.currentUrlTree,e,i);let o=this.parseUrl(e);return dn$1(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let h=this.pendingTasks.add();return Pt$3(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:t.\u0275fac})}return t})();function Ko(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new m$4(4008,false)}var Zo=(()=>{class t{router=g$3(G);stateManager=g$3(Ot$2);fragment=zi$2("");queryParams=zi$2({});path=zi$2("");serializer=g$3(re$2);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof $$1&&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 U$3(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:t.\u0275fac})}return t})(),si$1=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g$3(new am("href"),{optional:true});reactiveHref=DT(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return On$3(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return On$3(this._target)}_target=zi$2(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return On$3(this._queryParams)}_queryParams=zi$2(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return On$3(this._fragment)}_fragment=zi$2(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return On$3(this._queryParamsHandling)}_queryParamsHandling=zi$2(void 0);set state(e){this._state.set(e);}get state(){return On$3(this._state)}_state=zi$2(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return On$3(this._info)}_info=zi$2(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return On$3(this._relativeTo)}_relativeTo=zi$2(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return On$3(this._preserveFragment)}_preserveFragment=zi$2(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return On$3(this._skipLocationChange)}_skipLocationChange=zi$2(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return On$3(this._replaceUrl)}_replaceUrl=zi$2(false);browserUrl=TB(void 0);isAnchorElement;onChanges=new ce$4;applicationErrorHandler=g$3($e$4);options=g$3(ne$1,{optional:true});reactiveRouterState=g$3(Zo);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=zi$2(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(ee$2(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=P$2({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(h=>{this.applicationErrorHandler(h);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=yT(()=>{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:ee$2(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 On$3(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)(ge$4(G),ge$4(V$3),Su("tabindex"),ge$4(ks),ge$4(Kt$2),ge$4(Dr))};static \u0275dir=Ls({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Ag("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Cg("href",i.reactiveHref(),dE)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",QT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",QT],replaceUrl:[2,"replaceUrl","replaceUrl",QT],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Tu]})}return t})();var We$2=class We{};var ci=(()=>{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 $$1),li$1(()=>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=pg(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 Ke$2(i).pipe(Mr())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return br$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ke$2(this.loader.loadChildren(e,r)):i=br$1(null);let o=i.pipe(pt$4(a=>a===null?br$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 Ke$2([o,a]).pipe(Mr())}else return o})}static \u0275fac=function(r){return new(r||t)(C$1(G),C$1(fe$4),C$1(We$2),C$1(Dt))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ui$1=new w(""),Jo=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se$2;restoredId=0;store={};isHydrating=g$3(AD,{optional:true})??false;urlSerializer=g$3(re$2);zone=g$3(G$2);viewportScroller=g$3(n2);transitions=g$3(Ut$2);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g$3(yr$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 te$2?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof $$1?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B$2&&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=On$3(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>dt$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){QI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})();function Xo(t,...n){return wt$5([{provide:fe$2,multi:true,useValue:t},{provide:V$3,useFactory:li},{provide:dl,multi:true,useFactory:hi$1},n.map(e=>e.\u0275providers)])}function li(){return g$3(G).routerState.root}function Qe$3(t,n){return {\u0275kind:t,\u0275providers:n}}function hi$1(){let t=g$3(pe$3);return n=>{let e=t.get(yr$1);if(n!==e.components[0])return;let r=t.get(G),i=t.get(di$1);t.get(Ar)===1&&r.initialNavigation(),t.get(gi$1,null,{optional:true})?.setUpPreloading(),t.get(ui$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var di$1=new w("",{factory:()=>new ce$4}),Ar=new w("",{factory:()=>1});function fi$2(){let t=[{provide:rh,useValue:true},{provide:Ar,useValue:0},Lw(()=>{let n=g$3(pe$3);return n.get(JT,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(G),o=n.get(di$1);Pt$3(i,()=>{r(true);}),n.get(Ut$2).afterPreactivation=()=>(r(true),o.closed?br$1(void 0):o),i.initialNavigation();}))})];return Qe$3(2,t)}function pi$2(){let t=[Lw(()=>{g$3(G).setUpLocationChangeListener();}),{provide:Ar,useValue:2}];return Qe$3(3,t)}var gi$1=new w("");function vi$2(t){return Qe$3(0,[{provide:gi$1,useExisting:ci},{provide:We$2,useExisting:t}])}function mi$1(t={}){return Qe$3(8,[{provide:Ve$3,useFactory:()=>new Fn$2(t)}])}function yi$1(t){ut$3("NgRouterViewTransitions");let n=[{provide:Cr,useValue:ni$1},{provide:wr,useValue:P$2({skipNextTransition:false},t)}];return Qe$3(9,n)}var Ri$1=[Sm,{provide:re$2,useClass:K$2},G,de$2,{provide:V$3,useFactory:li},Dt],ea=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[Ri$1,[],{provide:fe$2,multi:true,useValue:e},[],r?.errorHandler?{provide:br,useValue:r.errorHandler}:[],{provide:ne$1,useValue:r||{}},r?.useHash?ra():na(),ta(),r?.preloadingStrategy?vi$2(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ia(r):[],r?.bindToComponentInputs?mi$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?yi$1().\u0275providers:[],oa()]}}static forChild(e){return {ngModule:t,providers:[{provide:fe$2,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Eo$1({type:t});static \u0275inj=qn$3({})}return t})();function ta(){return {provide:ui$1,useFactory:()=>{let t=g$3(n2),n=g$3(ne$1);return n.scrollOffset&&t.setOffset(n.scrollOffset),new Jo(n)}}}function ra(){return {provide:Dr,useClass:rb}}function na(){return {provide:Dr,useClass:bm}}function ia(t){return [t.initialNavigation==="disabled"?pi$2().\u0275providers:[],t.initialNavigation==="enabledBlocking"?fi$2().\u0275providers:[]]}var Ir=new w("");function oa(){return [{provide:Ir,useFactory:hi$1},{provide:dl,multi:true,useExisting:Ir}]}
276
- var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication in progress...";ngOnInit(){console.log("[OAuth Callback] Component initialized");let t=this.route.snapshot.queryParamMap.get("code"),e=this.route.snapshot.queryParamMap.get("state"),o=this.route.snapshot.queryParamMap.get("error"),a=this.route.snapshot.queryParamMap.get("error_description");if(console.log("[OAuth Callback] Code:",t,"State:",e,"Error:",o,"Opener:",!!window.opener),o){if(console.log("[OAuth Callback] OAuth error received:",o,a),!window.opener){console.warn("[OAuth Callback] No window.opener \u2014 using localStorage fallback for error"),localStorage.setItem(m$1,JSON.stringify({error:o,state:e,errorDescription:a})),this.message="Authentication failed. You can close this window.",setTimeout(()=>window.close(),1e3);return}try{window.opener.postMessage({error:o,state:e,errorDescription:a},window.location.origin),console.log("[OAuth Callback] Error postMessage sent successfully"),setTimeout(()=>{console.log("[OAuth Callback] Closing popup after error"),window.close();},1e3);}catch(n){console.error("[OAuth Callback] Error sending error postMessage:",n),alert("OAuth error: Failed to communicate with parent window");}return}if(!t){console.error("[OAuth Callback] Missing authorization code"),this.message="OAuth callback error: Missing authorization code.";return}if(!window.opener){console.warn("[OAuth Callback] No window.opener \u2014 using localStorage fallback"),localStorage.setItem(m$1,JSON.stringify({code:t,state:e})),this.message="Authentication complete. You can close this window.",setTimeout(()=>window.close(),1e3);return}try{console.log("[OAuth Callback] Sending postMessage to parent"),window.opener.postMessage({code:t,state:e},window.location.origin),console.log("[OAuth Callback] postMessage sent successfully"),setTimeout(()=>{console.log("[OAuth Callback] Closing popup"),window.close();},1e3);}catch(n){console.error("[OAuth Callback] Error sending postMessage:",n),alert("OAuth callback error: Failed to communicate with parent window");}}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Rw({type:r,selectors:[["app-oauth-callback"]],decls:2,vars:1,template:function(e,o){e&1&&(hl(0,"p"),qC(1),gl()),e&2&&(JE(),Zg(o.message));},encapsulation:2,changeDetection:1})};var O$1=class c{eventStream=g$3(fe$3);messageApi=g$3(be$1);pendingStates=new Map;popupCheckInterval=null;popupClosedAt=null;static POPUP_CLOSE_GRACE_MS=2e3;pendingRequest$=new Tr(null);messageHandler=e=>this.handlePopupMessage(e);storageHandler=e=>this.handleStorageEvent(e);constructor(){this.eventStream.events$.pipe(Ot$3(e=>e.type==="oauth_request")).subscribe(e=>this.handleOAuthRequest(e)),window.addEventListener("message",this.messageHandler),window.addEventListener("storage",this.storageHandler),this.drainLocalStorage();}ngOnDestroy(){window.removeEventListener("message",this.messageHandler),window.removeEventListener("storage",this.storageHandler),this.pendingRequest$.complete(),this.popupCheckInterval&&clearInterval(this.popupCheckInterval);}startPopupMonitoring(e,t){this.popupCheckInterval&&clearInterval(this.popupCheckInterval),this.popupCheckInterval=setInterval(()=>{if(e.closed){if(this.popupClosedAt===null){this.popupClosedAt=Date.now(),console.log("[OAuth Service] Popup closed, waiting for postMessage grace period...");return}if(Date.now()-this.popupClosedAt<c.POPUP_CLOSE_GRACE_MS)return;if(console.log("[OAuth Service] Grace period elapsed, popup closed by user"),clearInterval(this.popupCheckInterval),this.popupCheckInterval=null,this.popupClosedAt=null,this.pendingStates.has(t)){console.warn("[OAuth Service] OAuth cancelled - popup closed without completing authentication");let s=this.pendingStates.get(t);if(this.pendingStates.delete(t),s){let a=new K$3({state:t,integrationName:s,error:"user_cancelled",errorDescription:"User closed the popup without completing authentication"});this.messageApi.sendMessage(a).subscribe({next:()=>console.log("[OAuth Service] Cancellation sent to backend"),error:n=>console.error("[OAuth Service] Failed to send cancellation:",n)});}}}else this.popupClosedAt!==null&&(console.log("[OAuth Service] Popup reopened/navigating, resetting grace period"),this.popupClosedAt=null);},500);}openPopup(e){console.log("[OAuth Service] Opening popup from user gesture:",e.integrationName);let t=600,o=900,s=window.screenX+(window.outerWidth-t)/2,a=window.screenY+(window.outerHeight-o)/2,n=`width=${t},height=${o},left=${s},top=${a},popup=yes,resizable=yes,scrollbars=yes`,r=window.open(e.authUrl,"oauth_popup",n);console.log("[OAuth Service] Popup opened:",!!r),r?(r.focus(),this.startPopupMonitoring(r,e.state),this.pendingRequest$.next(null)):console.warn("[OAuth Service] Popup was blocked by the browser");}cancelRequest(e){console.log("[OAuth Service] OAuth cancelled by user via inline panel"),this.pendingStates.delete(e.state),this.pendingRequest$.next(null);let t=new K$3({state:e.state,integrationName:e.integrationName,error:"user_cancelled",errorDescription:"User dismissed the authorization panel"});this.messageApi.sendMessage(t).subscribe({next:()=>console.log("[OAuth Service] Cancellation sent to backend"),error:o=>console.error("[OAuth Service] Failed to send cancellation:",o)});}handleOAuthRequest(e){console.log("[OAuth Service] Received OAuthRequestEvent:",e.integrationName,e.state),this.pendingStates.set(e.state,e.integrationName),console.log("[OAuth Service] Pending states:",Array.from(this.pendingStates.keys())),this.pendingRequest$.next(e);}handlePopupMessage(e){if(console.log("[OAuth Service] Received postMessage:",e.origin,e.data),e.origin!==window.location.origin){console.warn("[OAuth Service] Rejected message from different origin:",e.origin);return}this.processCallbackData(e.data);}handleStorageEvent(e){e.key!==m$1||!e.newValue||(console.log("[OAuth Service] Received localStorage callback fallback"),this.drainLocalStorage());}drainLocalStorage(){let e=localStorage.getItem(m$1);if(e){localStorage.removeItem(m$1),console.log("[OAuth Service] Processing localStorage OAuth callback fallback");try{let t=JSON.parse(e);this.processCallbackData(t);}catch(t){console.error("[OAuth Service] Failed to parse localStorage OAuth callback:",t);}}}processCallbackData(e){let{code:t,state:o,error:s,errorDescription:a}=e??{};if(s){console.log("[OAuth Service] OAuth error received:",s,a);let i=this.pendingStates.get(o);if(i){this.pendingStates.delete(o),this.popupCheckInterval&&(clearInterval(this.popupCheckInterval),this.popupCheckInterval=null,this.popupClosedAt=null);let d=new K$3({state:o,integrationName:i,error:s,errorDescription:a});this.messageApi.sendMessage(d).subscribe({next:()=>console.log("[OAuth Service] Error callback sent to backend"),error:p=>console.error("[OAuth Service] Failed to send error callback:",p)});}return}if(!t){console.warn("[OAuth Service] Message missing code:",e);return}console.log("[OAuth Service] Processing callback - code:",t,"state:",o);let n=o?this.pendingStates.get(o):void 0,r=o;if(!n&&this.pendingStates.size===1){let i=this.pendingStates.entries().next().value;if(i){let[d,p]=i;console.warn("[OAuth Service] State missing from callback, using sole pending flow:",p),n=p,r=d;}}if(!n){console.warn("[OAuth Service] Unknown or ambiguous state:",o,"Pending states:",Array.from(this.pendingStates.keys()));return}console.log("[OAuth Service] Found integration:",n),this.pendingStates.delete(r),this.popupCheckInterval&&(clearInterval(this.popupCheckInterval),this.popupCheckInterval=null,this.popupClosedAt=null);let f=new K$3({code:t,state:r,integrationName:n});console.log("[OAuth Service] Sending callback to backend..."),this.messageApi.sendMessage(f).subscribe({next:()=>console.log("[OAuth Service] Callback sent to backend successfully"),error:i=>console.error("[OAuth Service] Failed to send callback:",i)});}static \u0275fac=function(t){return new(t||c)};static \u0275prov=x({token:c,factory:c.\u0275fac,providedIn:"root"})};var Ct$2;try{Ct$2=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(e){Ct$2=false;}var p$1=(()=>{class e{_platformId=g$3(Kr);isBrowser=this._platformId?t2(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||Ct$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||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();function mt$1(e){return Array.isArray(e)?e:[e]}var Ae=new Set,B$1,lt$1=(()=>{class e{_platform=g$3(p$1);_nonce=g$3(Xr,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):bn$1;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&un$1(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();function un$1(e,o){if(!Ae.has(e))try{B$1||(B$1=document.createElement("style"),o&&B$1.setAttribute("nonce",o),B$1.setAttribute("type","text/css"),document.head.appendChild(B$1)),B$1.sheet&&(B$1.sheet.insertRule(`@media ${e.replace(/[{}]/g,"")} {body{ }}`,0),Ae.add(e));}catch(t){console.error(t);}}function bn$1(e){return {matches:e==="all"||e==="",media:e,addListener:()=>{},removeListener:()=>{}}}var Ot$1=(()=>{class e{_mediaMatcher=g$3(lt$1);_zone=g$3(G$2);_queries=new Map;_destroySubject=new ce$4;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return Ie$2(mt$1(t)).some(a=>this._registerQuery(a).mql.matches)}observe(t){let a=Ie$2(mt$1(t)).map(s=>this._registerQuery(s).observable),i=Ly(a);return i=kt$1(i.pipe(an$2(1)),i.pipe(Cd(1),wd(0))),i.pipe(ue$3(s=>{let d={matches:false,breakpoints:{}};return s.forEach(({matches:_,query:I})=>{d.matches=d.matches||_,d.breakpoints[I]=_;}),d}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),i={observable:new A$1(s=>{let d=_=>this._zone.run(()=>s.next(_));return n.addListener(d),()=>{n.removeListener(d);}}).pipe(Sd(n),ue$3(({matches:s})=>({query:t,matches:s})),Vy(this._destroySubject)),mql:n};return this._queries.set(t,i),i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();function Ie$2(e){return e.map(o=>o.split(",")).reduce((o,t)=>o.concat(t)).map(o=>o.trim())}var po={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)"};function X$2(e){return e.buttons===0||e.detail===0}function q(e){let o=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return !!o&&o.identifier===-1&&(o.radiusX==null||o.radiusX===1)&&(o.radiusY==null||o.radiusY===1)}var Nt$1;function Te(){if(Nt$1==null){let e=typeof document<"u"?document.head:null;Nt$1=!!(e&&(e.createShadowRoot||e.attachShadow));}return Nt$1}function Rt$1(e){if(Te()){let o=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&o instanceof ShadowRoot)return o}return null}function pn$1(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let o=e.shadowRoot.activeElement;if(o===e)break;e=o;}return e}function E(e){if(e.composedPath)try{return e.composedPath()[0]}catch(o){}return e.target}var J$3;function Me$1(){if(J$3==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>J$3=!0}));}finally{J$3=J$3||false;}return J$3}function z$1(e){return Me$1()?e:!!e.capture}function fn$1(e,o=0){return De$1(e)?Number(e):arguments.length===2?o:0}function De$1(e){return !isNaN(parseFloat(e))&&!isNaN(Number(e))}function R$1(e){return e instanceof Kt$2?e.nativeElement:e}var ke$1=new w("cdk-input-modality-detector-options"),Ce$1={ignoreKeys:[18,17,224,91,16]},Oe$1=650,Ft={passive:true,capture:true},Ne$2=(()=>{class e{_platform=g$3(p$1);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Tr(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=E(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<Oe$1||(this._modality.next(X$2(t)?"keyboard":"mouse"),this._mostRecentTarget=E(t));};_onTouchstart=t=>{if(q(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=E(t);};constructor(){let t=g$3(G$2),n=g$3(U$6),a=g$3(ke$1,{optional:true});if(this._options=P$2(P$2({},Ce$1),a),this.modalityDetected=this._modality.pipe(Cd(1)),this.modalityChanged=this.modalityDetected.pipe(Nd()),this._platform.isBrowser){let i=g$3(_n$3).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[i.listen(n,"keydown",this._onKeydown,Ft),i.listen(n,"mousedown",this._onMousedown,Ft),i.listen(n,"touchstart",this._onTouchstart,Ft)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})(),tt$2=(function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e})(tt$2||{}),Re$2=new w("cdk-focus-monitor-default-options"),ut$1=z$1({passive:true,capture:true}),St$3=(()=>{class e{_ngZone=g$3(G$2);_platform=g$3(p$1);_inputModalityDetector=g$3(Ne$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$3(U$6);_stopInputModalityDetector=new ce$4;constructor(){let t=g$3(Re$2,{optional:true});this._detectionMode=t?.detectionMode||tt$2.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=E(t);for(let a=n;a;a=a.parentElement)t.type==="focus"?this._onFocus(t,a):this._onBlur(t,a);};monitor(t,n=false){let a=R$1(t);if(!this._platform.isBrowser||a.nodeType!==1)return br$1();let i=Rt$1(a)||this._document,s=this._elementInfo.get(a);if(s)return n&&(s.checkChildren=true),s.subject;let d={checkChildren:n,subject:new ce$4,rootNode:i};return this._elementInfo.set(a,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(t){let n=R$1(t),a=this._elementInfo.get(n);a&&(a.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(a));}focusVia(t,n,a){let i=R$1(t),s=this._document.activeElement;i===s?this._getClosestElementsInfo(i).forEach(([d,_])=>this._originChanged(d,n,_)):(this._setOrigin(n),typeof i.focus=="function"&&i.focus(a));}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===tt$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===tt$2.IMMEDIATE){clearTimeout(this._originTimeoutId);let a=this._originFromTouchInteraction?Oe$1:1;this._originTimeoutId=setTimeout(()=>this._origin=null,a);}});}_onFocus(t,n){let a=this._elementInfo.get(n),i=E(t);!a||!a.checkChildren&&n!==i||this._originChanged(n,this._getFocusOrigin(i),a);}_onBlur(t,n){let a=this._elementInfo.get(n);!a||a.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(a,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,a=this._rootNodeFocusListenerCount.get(n)||0;a||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,ut$1),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,ut$1);}),this._rootNodeFocusListenerCount.set(n,a+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Vy(this._stopInputModalityDetector)).subscribe(i=>{this._setOrigin(i,true);}));}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let a=this._rootNodeFocusListenerCount.get(n);a>1?this._rootNodeFocusListenerCount.set(n,a-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,a){this._setClasses(t,n),this._emitOrigin(a,n),this._lastFocusOrigin=n;}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((a,i)=>{(i===t||a.checkChildren&&i.contains(t))&&n.push([i,a]);}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:a}=this._inputModalityDetector;if(a!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return false;let i=t.labels;if(i){for(let s=0;s<i.length;s++)if(i[s].contains(n))return true}return false}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var bt$2=new WeakMap,D=(()=>{class e{_appRef;_injector=g$3(pe$3);_environmentInjector=g$3(fe$4);load(t){let n=this._appRef=this._appRef||this._injector.get(yr$1),a=bt$2.get(n);a||(a={loaders:new Set,refs:[]},bt$2.set(n,a),n.onDestroy(()=>{bt$2.get(n)?.refs.forEach(i=>i.destroy()),bt$2.delete(n);})),a.loaders.has(t)||(a.loaders.add(t),a.refs.push(RB(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var ft$1=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Rw({type:e,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,a){},styles:[`.cdk-visually-hidden {
275
+ This ensures the memory system stays efficient and valuable.`],createdBy:"system",createdAt:new Date("2024-01-01").toISOString(),webhookEnabled:false,parameterFormat:""}];var ge$2={CONFLUENCE:[],GIT:[],GIT_WORKTREE:[],GITLAB:[],JIRA:[],SLACK:[],ZENDESK:[],BASECAMP:[]};Object.keys(ge$2).filter(n=>ge$2[n]?.length===0);var me$1=class n{currentThemeSubject=new Tr({variant:"industry",mode:"light"});currentTheme$=this.currentThemeSubject.asObservable();preferences=g$3(L$1);subscription=null;constructor(){console.log("[THEME] Initializing theme service"),this.initializeTheme(),this.setupSystemThemeListener();}ngOnDestroy(){this.subscription?.unsubscribe();}initializeTheme(){this.subscription=this.preferences.theme$.subscribe(e=>{let t=this.preferences.getPreference("themeVariant")??"industry",s={variant:["industry","terminal"].includes(t)?t:"industry",mode:["light","dark","system"].includes(e)?e:"system"};console.log("[THEME] Theme preference changed to:",s),this.applyTheme(s);});}setTheme(e){this.preferences.setPreference("themeVariant",e.variant),this.preferences.setPreference("theme",e.mode),this.applyTheme(e);}getCurrentTheme(){return this.currentThemeSubject.value}applyTheme(e){console.log("[THEME] Applying theme:",e),this.currentThemeSubject.next(e);let t=e.mode==="system"?typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light":e.mode;this.setDocumentTheme(e.variant,t);}setDocumentTheme(e,t){if(typeof document>"u"||!document.documentElement)return;let s=e==="industry"&&t==="light"?null:`${e}-${t}`;s?document.documentElement.setAttribute("data-theme",s):document.documentElement.removeAttribute("data-theme");}setupSystemThemeListener(){typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{let t=this.getCurrentTheme();t.mode==="system"&&this.setDocumentTheme(t.variant,e.matches?"dark":"light");});}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var fe$3=class n{eventSource=null;eventsSubject=new ce$3;connectionStatusSubject=new Tr({connected:false,reconnectAttempts:0,maxAttempts:3});reconnectAttempts=0;MAX_RECONNECT_ATTEMPTS=3;RECONNECT_DELAY=2e3;events$=this.eventsSubject.asObservable();connectionStatus$=this.connectionStatusSubject.asObservable();ngZone=g$3(G$2);connectToThread(e,t){console.log("[SSE] Connecting to thread event stream:",e,t),this.eventSource&&(console.log("[SSE] Closing existing EventSource"),this.eventSource.close());let s=`/api/projects/${e}/threads/${t}/event-stream`;console.log("[SSE] EventSource URL:",s),this.eventSource=new EventSource(s),this.setupEventHandlers();}setupEventHandlers(){this.eventSource&&(this.eventSource.onmessage=e=>{this.ngZone.run(()=>{console.log("[SSE] Message received:",e.data.substring(0,100)),this.reconnectAttempts=0,this.updateConnectionStatus(true,0);try{let t=JSON.parse(e.data),s=le$3(t);s?(console.log("[SSE] Event:",s.type),this.eventsSubject.next(s)):console.warn("[SSE] Failed to build event:",t.type);}catch(t){console.error("[SSE] Parse error:",t.message);}});},this.eventSource.onopen=()=>{this.ngZone.run(()=>{console.log("[SSE] Connection established"),this.reconnectAttempts=0,this.updateConnectionStatus(true,0);});},this.eventSource.onerror=e=>{this.ngZone.run(()=>{console.log("[SSE] EventSource error:",e),this.eventSource?.readyState===EventSource.CLOSED&&(console.log("[SSE] Connection closed"),this.updateConnectionStatus(false,this.reconnectAttempts),this.reconnectAttempts<this.MAX_RECONNECT_ATTEMPTS?(console.log(`[SSE] Attempting reconnect ${this.reconnectAttempts+1}/${this.MAX_RECONNECT_ATTEMPTS}`),this.eventsSubject.next(new h$1({error:new Error(`Connection lost. Attempting to reconnect (${this.reconnectAttempts+1}/${this.MAX_RECONNECT_ATTEMPTS})...`)})),setTimeout(()=>{this.reconnectAttempts++,console.warn("[SSE] Reconnection may not work properly with thread-based connections");},this.RECONNECT_DELAY)):(console.log("[SSE] Max reconnection attempts reached"),this.eventsSubject.next(new h$1({error:new Error("Connection lost permanently. Please refresh the page.")}))));});});}disconnect(){this.eventSource&&(console.log("[SSE] Disconnecting EventSource"),this.eventSource.close(),this.eventSource=null,this.updateConnectionStatus(false,0));}updateConnectionStatus(e,t){this.connectionStatusSubject.next({connected:e,reconnectAttempts:t,maxAttempts:this.MAX_RECONNECT_ATTEMPTS});}ngOnDestroy(){this.disconnect(),this.eventsSubject.complete(),this.connectionStatusSubject.complete();}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var be$1=class n{http=g$3(fy);projectState=g$3(P);threadState=g$3(U$4);getBaseUrl(){return `/api/projects/${this.projectState.getSelectedProjectIdOrThrow()}/threads/${this.threadState.getSelectedThreadIdOrThrow()}/messages`}getMessages(){return this.http.get(this.getBaseUrl())}sendMessage(e){return this.http.post(this.getBaseUrl(),e,{responseType:"text"})}sendFreeMessage(e){return this.http.post(this.getBaseUrl(),{message:e})}getMessage(e){return this.http.get(`${this.getBaseUrl()}/${encodeURIComponent(e)}`)}deleteMessage(e){return this.http.delete(`${this.getBaseUrl()}/${encodeURIComponent(e)}`)}getFormattedMessage(e){return this.http.get(`${this.getBaseUrl()}/${encodeURIComponent(e)}/formatted`,{responseType:"text"})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=x({token:n,factory:n.\u0275fac,providedIn:"root"})};var f="primary",Be$3=Symbol("RouteTitle"),er=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 ue$2(t){return new er(t)}function Yt$1(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function Sn$2(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 Yt$1(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !Yt$1(o,t.slice(0,o.length),c)||!Yt$1(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function ht$2(t){return new Promise((n,e)=>{t.pipe(Rd()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ci$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!q$1(t[e],n[e]))return false;return true}function q$1(t,n){let e=t?tr(t):void 0,r=n?tr(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],!Cn$2(t[i],n[i]))return false;return true}function tr(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Cn$2(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 wi$1(t){return t.length>0?t[t.length-1]:null}function he$2(t){return $y(t)?t:Do$1(t)?Ke$2(Promise.resolve(t)):br$1(t)}function wn$2(t){return $y(t)?ht$2(t):Promise.resolve(t)}var bi$1={exact:An$2,subset:En$2},bn$2={exact:Ii$1,subset:Ai$1,ignored:()=>true},In$2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function dn$1(t,n,e){return bi$1[e.paths](t.root,n.root,e.matrixParams)&&bn$2[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ii$1(t,n){return q$1(t,n)}function An$2(t,n,e){if(!ce$1(t.segments,n.segments)||!ct$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!An$2(t.children[r],n.children[r],e))return false;return true}function Ai$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Cn$2(t[e],n[e]))}function En$2(t,n,e){return Tn$2(t,n,n.segments,e)}function Tn$2(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!ce$1(i,e)||n.hasChildren()||!ct$1(i,e,r))}else if(t.segments.length===e.length){if(!ce$1(t.segments,e)||!ct$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!En$2(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 !ce$1(t.segments,i)||!ct$1(t.segments,i,r)||!t.children[f]?false:Tn$2(t.children[f],n,o,r)}}function ct$1(t,n,e){return n.every((r,i)=>bn$2[e](t[i].parameters,r.parameters))}var U$3=class U{root;queryParams;fragment;_queryParamMap;constructor(n=new m$2([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=ue$2(this.queryParams),this._queryParamMap}toString(){return Ni$1.serialize(this)}},m$2=class m{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 ut$2(this)}},X$3=class X{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=ue$2(this.parameters),this._parameterMap}toString(){return Mn$2(this)}};function Ei$1(t,n){return ce$1(t,n)&&t.every((e,r)=>q$1(e.parameters,n[r].parameters))}function ce$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function Ti$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)));}),e}var re$2=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:()=>new K$2})}return t})(),K$2=class K{parse(n){let e=new ir(n);return new U$3(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Oe$2(n.root,true)}`,r=_i$1(n.queryParams),i=typeof n.fragment=="string"?`#${Mi$1(n.fragment)}`:"";return `${e}${r}${i}`}},Ni$1=new K$2;function ut$2(t){return t.segments.map(n=>Mn$2(n)).join("/")}function Oe$2(t,n){if(!t.hasChildren())return ut$2(t);if(n){let e=t.children[f]?Oe$2(t.children[f],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Oe$2(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=Ti$1(t,(r,i)=>i===f?[Oe$2(t.children[f],false)]:[`${i}:${Oe$2(r,false)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ut$2(t)}/${e[0]}`:`${ut$2(t)}/(${e.join("//")})`}}function Nn$2(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function at$2(t){return Nn$2(t).replace(/%3B/gi,";")}function Mi$1(t){return encodeURI(t)}function nr(t){return Nn$2(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lt$2(t){return decodeURIComponent(t)}function fn$2(t){return lt$2(t.replace(/\+/g,"%20"))}function Mn$2(t){return `${nr(t.path)}${Di$1(t.parameters)}`}function Di$1(t){return Object.entries(t).map(([n,e])=>`;${nr(n)}=${nr(e)}`).join("")}function _i$1(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${at$2(e)}=${at$2(i)}`).join("&"):`${at$2(e)}=${at$2(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ui$1=/^[^\/()?;#]+/;function Zt$2(t){let n=t.match(Ui$1);return n?n[0]:""}var Oi$2=/^[^\/()?;=#]+/;function Pi$1(t){let n=t.match(Oi$2);return n?n[0]:""}var Li$1=/^[^=?&#]+/;function ji$1(t){let n=t.match(Li$1);return n?n[0]:""}var xi$1=/^[^&#]+/;function ki$1(t){let n=t.match(xi$1);return n?n[0]:""}var ir=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m$2([],{}):new m$2([],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$4(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[f]=new m$2(e,r)),i}parseSegment(){let n=Zt$2(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new m$4(4009,false);return this.capture(n),new X$3(lt$2(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Pi$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Zt$2(this.remaining);i&&(r=i,this.capture(r));}n[lt$2(e)]=lt$2(r);}parseQueryParam(n){let e=ji$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=ki$1(this.remaining);a&&(r=a,this.capture(r));}let i=fn$2(e),o=fn$2(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=Zt$2(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new m$4(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=f);let c=this.parseChildren(e+1);r[a??f]=Object.keys(c).length===1&&c[f]?c[f]:new m$2([],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$4(4011,false)}};function Dn$2(t){return t.segments.length>0?new m$2([],{[f]:t}):t}function _n$2(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=_n$2(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m$2(t.segments,n);return $i$1(e)}function $i$1(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new m$2(t.segments.concat(n.segments),n.children)}return t}function ee$2(t){return t instanceof U$3}function Un$2(t,n,e=null,r=null,i=new K$2){let o=On$2(t);return Pn$2(o,n,e,r,i)}function On$2(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$2(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Dn$2(r);return n??i}function Pn$2(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Jt$1(o,o,o,e,r,i);let a=zi$1(n);if(a.toRoot())return Jt$1(o,o,new m$2([],{}),e,r,i);let c=Hi$1(a,o,t),s=c.processChildren?Le$3(c.segmentGroup,c.index,a.commands):jn$2(c.segmentGroup,c.index,a.commands);return Jt$1(o,c.segmentGroup,s,e,r,i)}function dt$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe(t){return typeof t=="object"&&t!=null&&t.outlets}function pn$2(t,n,e){t||="\u0275";let r=new U$3;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Jt$1(t,n,e,r,i,o){let a={};for(let[u,h]of Object.entries(r??{}))a[u]=Array.isArray(h)?h.map(v=>pn$2(u,v,o)):pn$2(u,h,o);let c;t===n?c=e:c=Ln$2(t,n,e);let s=Dn$2(_n$2(c));return new U$3(s,a,i)}function Ln$2(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Ln$2(o,n,e);}),new m$2(t.segments,r)}var ft$2=class ft{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&dt$1(r[0]))throw new m$4(4003,false);let i=r.find(xe);if(i&&i!==wi$1(r))throw new m$4(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zi$1(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ft$2(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 ft$2(e,n,r)}var Re$3=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Hi$1(t,n,e){if(t.isAbsolute)return new Re$3(n,true,0);if(!e)return new Re$3(n,false,NaN);if(e.parent===null)return new Re$3(e,true,0);let r=dt$1(t.commands[0])?0:1,i=e.segments.length-1+r;return Fi$1(e,i,t.numberOfDoubleDots)}function Fi$1(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m$4(4005,false);i=r.segments.length;}return new Re$3(r,false,i-o)}function qi$1(t){return xe(t[0])?t[0].outlets:{[f]:t}}function jn$2(t,n,e){if(t??=new m$2([],{}),t.segments.length===0&&t.hasChildren())return Le$3(t,n,e);let r=Bi$1(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m$2(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new m$2(t.segments.slice(r.pathIndex),t.children),Le$3(o,0,i)}else return r.match&&i.length===0?new m$2(t.segments,{}):r.match&&!t.hasChildren()?or(t,n,e):r.match?Le$3(t,0,i):or(t,n,e)}function Le$3(t,n,e){if(e.length===0)return new m$2(t.segments,{});{let r=qi$1(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Le$3(t.children[f],n,e);return new m$2(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=jn$2(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m$2(t.segments,i)}}function Bi$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(xe(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(!vn$2(s,u,a))return o;r+=2;}else {if(!vn$2(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function or(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe(o)){let s=Vi$1(o.outlets);return new m$2(r,s)}if(i===0&&dt$1(e[0])){let s=t.segments[n];r.push(new X$3(s.path,gn$2(e[0]))),i++;continue}let a=xe(o)?o.outlets[f]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&dt$1(c)?(r.push(new X$3(a,gn$2(c))),i+=2):(r.push(new X$3(a,{})),i++);}return new m$2(r,{})}function Vi$1(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=or(new m$2([],{}),0,r));}),n}function gn$2(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function vn$2(t,n,e){return t==e.path&&q$1(n,e.parameters)}var Se$2="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$2=class O{id;url;constructor(n,e){this.id=n,this.url=e;}},te$2=class te extends O$2{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}')`}},$$1=class $ extends O$2{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}')`}},I$1=(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})(I$1||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),k$1=class k extends O$2{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 xn$2(t){return t instanceof k$1&&(t.code===I$1.Redirect||t.code===I$1.SupersededByNewNavigation)}var B$2=class B extends O$2{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},le$2=class le extends O$2{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})`}},ke$2=class ke extends O$2{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})`}},pt$3=class pt extends O$2{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})`}},gt$3=class gt extends O$2{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})`}},vt$4=class vt extends O$2{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})`}},mt$2=class mt extends O$2{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})`}},yt$4=class yt{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},Rt$2=class Rt{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},St$4=class St{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct$3=class Ct{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wt$4=class wt{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bt$3=class bt{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$3=class Ie{},$e$3=class $e{},Ae$1=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Gi$1(t){return !(t instanceof Ie$3)&&!(t instanceof Ae$1)&&!(t instanceof $e$3)}var It=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new de$2(this.rootInjector);}},de$2=(()=>{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 It(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({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),At$2=class At{_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=ar(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=ar(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=sr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return sr(n,this._root).map(e=>e.value)}};function ar(t,n){if(t===n.value)return n;for(let e of n.children){let r=ar(t,e);if(r)return r}return null}function sr(t,n){if(t===n.value)return [n];for(let e of n.children){let r=sr(t,e);if(r.length)return r.unshift(n),r}return []}var _=class{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ze$3=class ze extends At$2{snapshot;constructor(n,e){super(n),this.snapshot=e,vr(this,n);}toString(){return this.snapshot.toString()}};function kn$2(t,n){let e=Wi$1(t,n),r=new Tr([new X$3("",{})]),i=new Tr({}),o=new Tr({}),a=new Tr({}),c=new Tr(""),s=new V$3(r,i,a,c,o,f,t,e.root);return s.snapshot=e.root,new ze$3(new _(s,[]),e)}function Wi$1(t,n){let e={},r={},i={},a=new Ee$1([],e,i,"",r,f,t,null,{},n);return new He$2("",new _(a,[]))}var V$3=class V{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(ue$3(u=>u[Be$3]))??br$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(ue$3(n=>ue$2(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ue$3(n=>ue$2(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Qi$1="always";function gr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:P$2(P$2({},n.params),t.params),data:P$2(P$2({},n.data),t.data),resolve:P$2(P$2(P$2(P$2({},t.data),n.data),i?.data),t._resolvedData)}:r={params:P$2({},t.params),data:P$2({},t.data),resolve:P$2(P$2({},t.data),t._resolvedData??{})},i&&zn$2(i)&&(r.resolve[Be$3]=i.title),r}var Ee$1=class Ee{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Be$3]}constructor(n,e,r,i,o,a,c,s,u,h){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=h;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ue$2(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ue$2(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}')`}},He$2=class He extends At$2{url;constructor(n,e){super(e),this.url=n,vr(this,e);}toString(){return $n$2(this._root)}};function vr(t,n){n.value._routerState=t,n.children.forEach(e=>vr(t,e));}function $n$2(t){let n=t.children.length>0?` { ${t.children.map($n$2).join(", ")} } `:"";return `${t.value}${n}`}function Xt$2(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,q$1(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),q$1(n.params,e.params)||t.paramsSubject.next(e.params),Ci$1(n.url,e.url)||t.urlSubject.next(e.url),q$1(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function cr(t,n){let e=q$1(t.params,n.params)&&Ei$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||cr(t.parent,n.parent))}function zn$2(t){return typeof t.title=="string"||t.title===null}var Hn$2=new w(""),mr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new yt$5;deactivateEvents=new yt$5;attachEvents=new yt$5;detachEvents=new yt$5;routerOutletData=LB();parentContexts=g$3(de$2);location=g$3(mr$1);changeDetector=g$3(bl);inputBinder=g$3(Ve$3,{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$4(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$4(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$4(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$4(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new ur(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=js({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[bu]})}return t})(),ur=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===V$3?this.route:n===de$2?this.childContexts:n===Hn$2?this.outletData:this.parent.get(n,e)}},Ve$3=new w(""),Fn$2=(()=>{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=jy([this.options.queryParams?r.queryParams:br$1({}),r.params,r.data]).pipe(Da(([o,a,c],s)=>(c=P$2(P$2(P$2({},o),a),c),s===0?br$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=WB(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let h=o[u];(h!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,h);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){JI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),yr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Fw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Sg(0,"router-outlet");},dependencies:[mr],encapsulation:2,changeDetection:1})}return t})();function Rr(t){let n=t.children&&t.children.map(Rr),e=n?z$4(P$2({},t),{children:n}):P$2({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=yr),e}function Ki$1(t,n,e){let r=new Set,i=Fe$3(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new ze$3(i,n)}}function Fe$3(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=Yi$1(t,n,e,r);return new _(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=>Fe$3(t,s,void 0,r)),c}}let i=Zi(n.value);r.add(i);let o=n.children.map(a=>Fe$3(t,a,void 0,r));return new _(i,o)}}function Yi$1(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Fe$3(t,i,o,r);return Fe$3(t,i,void 0,r)})}function Zi(t){return new V$3(new Tr(t.url),new Tr(t.params),new Tr(t.queryParams),new Tr(t.fragment),new Tr(t.data),t.outlet,t.component,t)}var Te$1=class Te{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},qn$2="ngNavigationCancelingError";function Et$3(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=ee$2(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Bn$2(false,I$1.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Bn$2(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[qn$2]=true,e.cancellationCode=n,e}function Ji$1(t){return Vn$2(t)&&ee$2(t.url)}function Vn$2(t){return !!t&&t[qn$2]}var lr=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),Xt$2(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye(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(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(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(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new bt$3(o.value.snapshot));}),n.children.length&&this.forwardEvent(new Ct$3(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Xt$2(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),Xt$2(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);}},Tt$1=class Tt{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$2=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function Xi$1(t,n,e){let r=t._root,i=n?n._root:null;return Pe$3(r,i,e,[r.value])}function eo(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$2(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!mv(t)?t:n.get(t):r}function Pe$3(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye(n);return t.children.forEach(a=>{to$1(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>je$3(c,e.getContext(a),i)),i}function to$1(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=ro(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new Tt$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?Pe$3(t,n,c?c.children:null,r,i):Pe$3(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$2(c.outlet.component,a));}else a&&je$3(n,c,i),i.canActivateChecks.push(new Tt$1(r)),o.component?Pe$3(t,null,c?c.children:null,r,i):Pe$3(t,null,e,r,i);return i}function ro(t,n,e){if(typeof e=="function")return Qn$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !ce$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !ce$1(t.url,n.url)||!q$1(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !cr(t,n)||!q$1(t.queryParams,n.queryParams);default:return !cr(t,n)}}function je$3(t,n,e){let r=ye(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?je$3(a,n.children.getContext(o),e):je$3(a,null,e):je$3(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$2(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$2(null,i)):e.canDeactivateChecks.push(new Ce$2(null,i));}function Ge$3(t){return typeof t=="function"}function no(t){return typeof t=="boolean"}function io(t){return t&&Ge$3(t.canLoad)}function oo(t){return t&&Ge$3(t.canActivate)}function ao(t){return t&&Ge$3(t.canActivateChild)}function so(t){return t&&Ge$3(t.canDeactivate)}function co(t){return t&&Ge$3(t.canMatch)}function Gn$2(t){return t instanceof ht$3||t?.name==="EmptyError"}var st$2=Symbol("INITIAL_VALUE");function Ne$3(){return Da(t=>jy(t.map(n=>n.pipe(an$2(1),Sd(st$2)))).pipe(ue$3(n=>{for(let e of n)if(e!==true){if(e===st$2)return st$2;if(e===false||uo(e))return e}return true}),Ot$3(n=>n!==st$2),an$2(1)))}function uo(t){return ee$2(t)||t instanceof Te$1}function Wn$2(t){return t.aborted?br$1(void 0).pipe(an$2(1)):new A$1(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Qn$2(t){return Hy(Wn$2(t))}function lo(t){return pt$4(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?br$1(z$4(P$2({},n),{guardsResult:true})):ho(o,e,r).pipe(pt$4(a=>a&&no(a)?fo(e,i,t):br$1(a)),ue$3(a=>z$4(P$2({},n),{guardsResult:a})))})}function ho(t,n,e){return Ke$2(t).pipe(pt$4(r=>yo(r.component,r.route,e,n)),Rd(r=>r!==true,true))}function fo(t,n,e){return Ke$2(n).pipe(di$2(r=>kt$1(go(r.route.parent,e),po$1(r.route,e),mo(t,r.path),vo(t,r.route))),Rd(r=>r!==true,true))}function po$1(t,n){return t!==null&&n&&n(new wt$4(t)),br$1(true)}function go(t,n){return t!==null&&n&&n(new St$4(t)),br$1(true)}function vo(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return br$1(true);let r=e.map(i=>Yy(()=>{let o=n._environmentInjector,a=Me$2(i,o),c=oo(a)?a.canActivate(n,t):Qn$3(o,()=>a(n,t));return he$2(c).pipe(Rd())}));return br$1(r).pipe(Ne$3())}function mo(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>eo(o)).filter(o=>o!==null).map(o=>Yy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$2(c,s),h=ao(u)?u.canActivateChild(e,t):Qn$3(s,()=>u(e,t));return he$2(h).pipe(Rd())});return br$1(a).pipe(Ne$3())}));return br$1(i).pipe(Ne$3())}function yo(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return br$1(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$2(a,c),u=so(s)?s.canDeactivate(t,n,e,r):Qn$3(c,()=>s(t,n,e,r));return he$2(u).pipe(Rd())});return br$1(o).pipe(Ne$3())}function Ro(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return br$1(true);let a=o.map(c=>{let s=Me$2(c,t),u=io(s)?s.canLoad(n,e):Qn$3(t,()=>s(n,e)),h=he$2(u);return i?h.pipe(Qn$2(i)):h});return br$1(a).pipe(Ne$3(),Kn$2(r))}function Kn$2(t){return Ey(kd(n=>{if(typeof n!="boolean")throw Et$3(t,n)}),ue$3(n=>n===true))}function So(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return br$1(true);let c=a.map(s=>{let u=Me$2(s,t),h=co(u)?u.canMatch(n,e,i):Qn$3(t,()=>u(n,e,i));return he$2(h).pipe(Qn$2(o))});return br$1(c).pipe(Ne$3(),Kn$2(r))}var Q=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},qe$3=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Co(t){throw new m$4(4e3,false)}function wo(t){throw Bn$2(false,I$1.GuardRejected)}var hr$1=class hr{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return dt$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[f])throw Co(`${n.redirectTo}`);i=i.children[f];}})}applyRedirectCommands(n,e,r,i,o){return dt$2(this,null,function*(){let a=yield bo(e,i,o);if(a instanceof U$3)throw new qe$3(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new qe$3(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new U$3(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$2(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$4(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 bo(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return ht$2(he$2(Qn$3(e,()=>r(n))))}function Io(t,n){return t.providers&&!t._injector&&(t._injector=hg(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H$2(t){return t.outlet||f}function Ao(t,n){let e=t.filter(r=>H$2(r)===n);return e.push(...t.filter(r=>H$2(r)!==n)),e}var dr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Yn$2(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 Eo(t,n,e,r,i,o,a){let c=Zn$2(t,n,e);if(!c.matched)return br$1(c);let s=Yn$2(o(c));return r=Io(n,r),So(r,n,e,i,s,a).pipe(ue$3(u=>u===true?c:P$2({},dr)))}function Zn$2(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?P$2({},dr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Sn$2)(e,t,n);if(!i)return P$2({},dr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?P$2(P$2({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function mn$2(t,n,e,r,i){return e.length>0&&Mo(t,e,r,i)?{segmentGroup:new m$2(n,No(r,new m$2(e,t.children))),slicedSegments:[]}:e.length===0&&Do(t,e,r)?{segmentGroup:new m$2(t.segments,To(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m$2(t.segments,t.children),slicedSegments:e}}function To(t,n,e,r){let i={};for(let o of e)if(Mt$1(t,n,o)&&!r[H$2(o)]){let a=new m$2([],{});i[H$2(o)]=a;}return P$2(P$2({},r),i)}function No(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&H$2(r)!==f){let i=new m$2([],{});e[H$2(r)]=i;}return e}function Mo(t,n,e,r){return e.some(i=>!Mt$1(t,n,i)||!(H$2(i)!==f)?false:!(r!==void 0&&H$2(i)===r))}function Do(t,n,e){return e.some(r=>Mt$1(t,n,r))}function Mt$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function _o(t,n,e){return n.length===0&&!t.children[e]}var fr$1=class fr{};function Uo(t,n,e,r,i,o,a,c){return dt$2(this,null,function*(){return new pr$1(t,n,e,r,i,a,o,c).recognize()})}var Oo=31,pr$1=class pr{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 hr$1(this.urlSerializer,this.urlTree);}noMatchError(n){return new m$4(4002,`'${n.segmentGroup}'`)}recognize(){return dt$2(this,null,function*(){let n=mn$2(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new _(r,e),o=new He$2("",i),a=Un$2(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 dt$2(this,null,function*(){let e=new Ee$1([],Object.freeze({}),Object.freeze(P$2({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,f,e),rootSnapshot:e}}catch(r){if(r instanceof qe$3)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Q?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return dt$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 _?[a]:[]})}processChildren(n,e,r,i){return dt$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],h=Ao(e,s),v=yield this.processSegmentGroup(n,h,u,s,i);a.push(...v);}let c=Jn$2(a);return Po(c),c})}processSegment(n,e,r,i,o,a,c){return dt$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 Q||Gn$2(u))continue;throw u}if(_o(r,i,o))return new fr$1;throw new Q(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return dt$2(this,null,function*(){if(H$2(r)!==a&&(a===f||!Mt$1(i,o,r)))throw new Q(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 Q(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return dt$2(this,null,function*(){let{matched:s,parameters:u,consumedSegments:h,positionalParamSegments:v,remainingSegments:g}=Zn$2(e,i,o);if(!s)throw new Q(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Oo&&(this.allowRedirects=false));let T=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(h,i.redirectTo,v,Yn$2(T),n),ie=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,ie.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee$1(r,i,Object.freeze(P$2({},this.urlTree.queryParams)),this.urlTree.fragment,jo(e),H$2(e),e.component??e._loadedComponent??null,e,xo(e),n),c=gr(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 dt$2(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=oe=>this.createSnapshot(n,r,oe.consumedSegments,oe.parameters,a),s=yield ht$2(Eo(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new Q(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),h=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:T}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:ie,slicedSegments:De}=mn$2(e,g,T,u,o);if(De.length===0&&ie.hasChildren()){let oe=yield this.processChildren(h,u,ie,z);return new _(z,oe)}if(u.length===0&&De.length===0)return new _(z,[]);let Lt=H$2(r)===o,Ke=yield this.processSegment(h,u,ie,De,Lt?f:o,true,z);return new _(z,Ke instanceof _?[Ke]:[])})}getChildConfig(n,e,r){return dt$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 ht$2(Ro(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 wo()}return {routes:[],injector:n}})}};function Po(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet));}function Lo(t){let n=t.value.routeConfig;return n&&n.path===""}function Jn$2(t){let n=[],e=new Set;for(let r of t){if(!Lo(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=Jn$2(r.children);n.push(new _(r.value,i));}return n.filter(r=>!e.has(r))}function jo(t){return t.data||{}}function xo(t){return t.resolve||{}}function ko(t,n,e,r,i,o,a){return pt$4(c=>dt$2(null,null,function*(){let{state:s,tree:u}=yield Uo(t,n,e,r,c.extractedUrl,i,o,a);return z$4(P$2({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function $o(t){return pt$4(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return br$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 Xn$2(c))o.add(s);let a=0;return Ke$2(o).pipe(di$2(c=>i.has(c)?zo(c,e,t):(c.data=gr(c,c.parent,t).resolve,br$1(void 0))),kd(()=>a++),rv(1),pt$4(c=>a===o.size?br$1(n):sn$2))})}function Xn$2(t){let n=t.children.map(e=>Xn$2(e)).flat();return [t,...n]}function zo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!zn$2(r)&&(i[Be$3]=r.title),Yy(()=>(t.data=gr(t,t.parent,e).resolve,Ho(i,t,n).pipe(ue$3(o=>(t._resolvedData=o,t.data=P$2(P$2({},t.data),o),null)))))}function Ho(t,n,e){let r=tr(t);if(r.length===0)return br$1({});let i={};return Ke$2(r).pipe(pt$4(o=>Fo(t[o],n,e).pipe(Rd(),kd(a=>{if(a instanceof Te$1)throw Et$3(new K$2,a);i[o]=a;}))),rv(1),ue$3(()=>i),va(o=>Gn$2(o)?sn$2:Uy(o)))}function Fo(t,n,e){let r=n._environmentInjector,i=Me$2(t,r),o=i.resolve?i.resolve(n,e):Qn$3(r,()=>i(n,e));return he$2(o)}function yn$2(t){return Da(n=>{let e=t(n);return e?Ke$2(e).pipe(ue$3(()=>n)):br$1(n)})}var Sr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[Be$3]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:()=>g$3(ei)})}return t})(),ei=(()=>{class t extends Sr{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(UH))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ne$1=new w("",{factory:()=>({})}),fe$2=new w(""),Dt=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g$3(yT);loadComponent(e,r){return dt$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=dt$2(this,null,function*(){try{let o=yield wn$2(Qn$3(e,()=>r.loadComponent())),a=yield ri(FB(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=dt$2(this,null,function*(){try{let o=yield ti(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$4({token:t,factory:t.\u0275fac})}return t})();function ti(t,n,e,r){return dt$2(this,null,function*(){let i=yield wn$2(Qn$3(e,()=>t.loadChildren())),o=yield ri(FB(i)),a;o instanceof pg||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,h;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,h=a,s=c.get(fe$2,[],{optional:true,self:true}).flat()),{routes:s.map(Rr),injector:c,factory:h}})}function ri(t){return dt$2(this,null,function*(){return t})}var _t$3=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:()=>g$3(qo)})}return t})(),qo=(()=>{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$4({token:t,factory:t.\u0275fac})}return t})(),Cr=new w(""),wr=new w("");function ni$1(t,n,e){let r=t.get(wr),i=t.get(U$6);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(),Bo(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 Bo(t){return new Promise(n=>{RE({read:()=>setTimeout(n)},{injector:t});})}var ii$1=new w(""),Vo=()=>{},br=new w(""),Ut$2=(()=>{class t{currentNavigation=Gi$2(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Gi$2(null);events=new ce$3;transitionAbortWithErrorSubject=new ce$3;configLoader=g$3(Dt);environmentInjector=g$3(fe$4);destroyRef=g$3(we$1);urlSerializer=g$3(re$2);rootContexts=g$3(de$2);location=g$3(_m);inputBindingEnabled=g$3(Ve$3,{optional:true})!==null;titleStrategy=g$3(Sr);options=g$3(ne$1,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Qi$1;urlHandlingStrategy=g$3(_t$3);createViewTransition=g$3(Cr,{optional:true});navigationErrorHandler=g$3(br,{optional:true});activatedRouteInjectorFeature=g$3(ii$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>br$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new yt$4(i)),r=i=>this.events.next(new Rt$2(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;On$3(()=>{this.transitions?.next(z$4(P$2({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Tr(null),this.transitions.pipe(Ot$3(r=>r!==null),Da(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return br$1(r).pipe(Da(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",I$1.SupersededByNewNavigation),sn$2;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?z$4(P$2({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let h=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!h&&v!=="reload")return this.events.next(new B$2(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(false),sn$2;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return br$1(s).pipe(Da(g=>(this.events.next(new te$2(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?sn$2:Promise.resolve(g))),ko(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),kd(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(T=>(T.finalUrl=g.urlAfterRedirects,T)),this.events.next(new $e$3);}),Da(g=>Ke$2(r.routesRecognizeHandler.deferredHandle??br$1(void 0)).pipe(ue$3(()=>g))),kd(()=>{let g=new ke$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:T,source:z,restoredState:ie,extras:De}=s,Lt=new te$2(g,this.urlSerializer.serialize(T),z,ie);this.events.next(Lt);let Ke=kn$2(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=z$4(P$2({},s),{targetSnapshot:Ke,urlAfterRedirects:T,extras:z$4(P$2({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(oe=>(oe.finalUrl=T,oe)),br$1(r)}else return this.events.next(new B$2(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(false),sn$2}),ue$3(s=>{let u=new pt$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=z$4(P$2({},s),{guards:Xi$1(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),lo(s=>this.events.next(s)),Da(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Et$3(this.urlSerializer,s.guardsResult);let u=new gt$3(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return sn$2;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",I$1.GuardRejected),sn$2;if(s.guards.canActivateChecks.length===0)return br$1(s);let h=new vt$4(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(h),!c())return sn$2;let v=false;return br$1(s).pipe($o(this.paramsInheritanceStrategy),kd({next:()=>{v=true;let g=new mt$2(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",I$1.NoDataFromResolver);}}))}),yn$2(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let T=v._environmentInjector;g.push(this.configLoader.loadComponent(T,v.routeConfig).then(z=>{v.component=z;}));}for(let T of v.children)g.push(...u(T));return g},h=u(s.targetSnapshot.root);return h.length===0?br$1(s):Ke$2(Promise.all(h).then(()=>s))}),Da(s=>{let{newlyCreatedRoutes:u,state:h}=Ki$1(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=z$4(P$2({},s),{targetRouterState:h,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=h,v)),br$1(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),yn$2(()=>this.afterPreactivation()),Da(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,h=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return h?Ke$2(h).pipe(ue$3(()=>r)):br$1(r)}),an$2(1),Da(s=>{i=false,this.events.next(new Ie$3);let u=r.beforeActivateHandler.deferredHandle;return u?Ke$2(u.then(()=>s)):br$1(s)}),kd(s=>{new lr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Vo,u)),this.lastSuccessfulNavigation.set(On$3(this.currentNavigation)),this.events.next(new $$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Hy(Wn$2(a.signal).pipe(Ot$3(()=>!o&&i),kd(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",I$1.Aborted);}))),kd({complete:()=>{o=true;}}),Hy(this.transitionAbortWithErrorSubject.pipe(kd(s=>{throw s}))),fi$3(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",I$1.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),va(s=>{if(o=true,Rn$2(r),this.destroyed)return r.resolve(false),sn$2;if(Vn$2(s))this.events.next(new k$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Ji$1(s)?this.events.next(new Ae$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new le$2(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let h=Qn$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(h instanceof Te$1){let{message:v,cancellationCode:g}=Et$3(this.urlSerializer,h);this.events.next(new k$1(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$1(h.redirectTo,h.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(h){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(h);}}return sn$2}))}))}cancelNavigationTransition(e,r,i){Rn$2(e);let o=new k$1(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=On$3(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$4({token:t,factory:t.\u0275fac})}return t})();function Go(t){return t!==Se$2}function Rn$2(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var oi$1=new w("");var ai=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:()=>g$3(Wo)})}return t})(),Nt$2=class Nt{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}},Wo=(()=>{class t extends Nt$2{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:t.\u0275fac})}return t})(),Ot$2=(()=>{class t{urlSerializer=g$3(re$2);options=g$3(ne$1,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g$3(_m);urlHandlingStrategy=g$3(_t$3);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new U$3;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 U$3?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=kn$2(null,g$3(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$4({token:t,factory:()=>g$3(Qo)})}return t})(),Qo=(()=>{class t extends Ot$2{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 te$2?this.updateStateMemento():e instanceof B$2?this.commitTransition(r):e instanceof ke$2?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$3?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof k$1&&!xn$2(e)?this.restoreHistory(r):e instanceof le$2?this.restoreHistory(r,true):e instanceof $$1&&(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=P$2(P$2({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=P$2(P$2({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?P$2({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):P$2({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:t.\u0275fac})}return t})();function Pt$3(t,n){t.events.pipe(Ot$3(e=>e instanceof $$1||e instanceof k$1||e instanceof le$2||e instanceof B$2),ue$3(e=>e instanceof $$1||e instanceof B$2?0:(e instanceof k$1?e.code===I$1.Redirect||e.code===I$1.SupersededByNewNavigation:false)?2:1),Ot$3(e=>e!==2),an$2(1)).subscribe(()=>{n();});}var G=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g$3(wg);stateManager=g$3(Ot$2);options=g$3(ne$1,{optional:true})||{};pendingTasks=g$3(qt$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g$3(Ut$2);urlSerializer=g$3(re$2);location=g$3(_m);urlHandlingStrategy=g$3(_t$3);injector=g$3(fe$4);_events=new ce$3;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g$3(ai);injectorCleanup=g$3(oi$1,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g$3(fe$2,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g$3(Ve$3,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new X$4;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=On$3(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof k$1&&r.code!==I$1.Redirect&&r.code!==I$1.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof $$1)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=P$2({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Go(i.source)},a);this.scheduleNavigation(c,Se$2,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Gi$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$2,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=z$4(P$2({},o),{browserUrl:e})),i){let u=P$2({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get($e$4)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return On$3(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Rr),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,h=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":h=P$2(P$2({},this.currentUrlTree.queryParams),o);break;case "preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null;}h!==null&&(h=this.removeEmptyProps(h));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=On$2(g);}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return Pn$2(v,e,h,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=ee$2(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se$2,null,r)}navigate(e,r={skipLocationChange:false}){return Ko(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(et$3(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=P$2({},In$2):r===false?i=P$2({},rr):i=P$2(P$2({},rr),r),ee$2(e))return dn$1(this.currentUrlTree,e,i);let o=this.parseUrl(e);return dn$1(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let h=this.pendingTasks.add();return Pt$3(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:t.\u0275fac})}return t})();function Ko(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new m$4(4008,false)}var Zo=(()=>{class t{router=g$3(G);stateManager=g$3(Ot$2);fragment=Gi$2("");queryParams=Gi$2({});path=Gi$2("");serializer=g$3(re$2);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof $$1&&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 U$3(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$4({token:t,factory:t.\u0275fac})}return t})(),si$1=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g$3(new cm("href"),{optional:true});reactiveHref=wT(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return On$3(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return On$3(this._target)}_target=Gi$2(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return On$3(this._queryParams)}_queryParams=Gi$2(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return On$3(this._fragment)}_fragment=Gi$2(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return On$3(this._queryParamsHandling)}_queryParamsHandling=Gi$2(void 0);set state(e){this._state.set(e);}get state(){return On$3(this._state)}_state=Gi$2(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return On$3(this._info)}_info=Gi$2(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return On$3(this._relativeTo)}_relativeTo=Gi$2(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return On$3(this._preserveFragment)}_preserveFragment=Gi$2(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return On$3(this._skipLocationChange)}_skipLocationChange=Gi$2(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return On$3(this._replaceUrl)}_replaceUrl=Gi$2(false);browserUrl=LB(void 0);isAnchorElement;onChanges=new ce$3;applicationErrorHandler=g$3($e$4);options=g$3(ne$1,{optional:true});reactiveRouterState=g$3(Zo);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=Gi$2(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(ee$2(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=P$2({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(h=>{this.applicationErrorHandler(h);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=ET(()=>{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:ee$2(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 On$3(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)(ge$4(G),ge$4(V$3),_u("tabindex"),ge$4(Fs),ge$4(Kt$2),ge$4(Dr))};static \u0275dir=js({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Rg("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Tg("href",i.reactiveHref(),hE)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",JT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",JT],replaceUrl:[2,"replaceUrl","replaceUrl",JT],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[bu]})}return t})();var We$2=class We{};var ci=(()=>{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 $$1),di$2(()=>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=hg(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 Ke$2(i).pipe(Mr())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return br$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ke$2(this.loader.loadChildren(e,r)):i=br$1(null);let o=i.pipe(pt$4(a=>a===null?br$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 Ke$2([o,a]).pipe(Mr())}else return o})}static \u0275fac=function(r){return new(r||t)(b$1(G),b$1(fe$4),b$1(We$2),b$1(Dt))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ui$1=new w(""),Jo=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se$2;restoredId=0;store={};isHydrating=g$3(kD,{optional:true})??false;urlSerializer=g$3(re$2);zone=g$3(G$2);viewportScroller=g$3(g2);transitions=g$3(Ut$2);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g$3(yr$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 te$2?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof $$1?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B$2&&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=On$3(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>dt$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){JI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})();function Xo(t,...n){return wt$5([{provide:fe$2,multi:true,useValue:t},{provide:V$3,useFactory:li},{provide:fl,multi:true,useFactory:hi$1},n.map(e=>e.\u0275providers)])}function li(){return g$3(G).routerState.root}function Qe$3(t,n){return {\u0275kind:t,\u0275providers:n}}function hi$1(){let t=g$3(pe$4);return n=>{let e=t.get(yr$1);if(n!==e.components[0])return;let r=t.get(G),i=t.get(di$1);t.get(Ar)===1&&r.initialNavigation(),t.get(gi$1,null,{optional:true})?.setUpPreloading(),t.get(ui$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var di$1=new w("",{factory:()=>new ce$3}),Ar=new w("",{factory:()=>1});function fi$2(){let t=[{provide:oh,useValue:true},{provide:Ar,useValue:0},Vw(()=>{let n=g$3(pe$4);return n.get(nb,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(G),o=n.get(di$1);Pt$3(i,()=>{r(true);}),n.get(Ut$2).afterPreactivation=()=>(r(true),o.closed?br$1(void 0):o),i.initialNavigation();}))})];return Qe$3(2,t)}function pi$2(){let t=[Vw(()=>{g$3(G).setUpLocationChangeListener();}),{provide:Ar,useValue:2}];return Qe$3(3,t)}var gi$1=new w("");function vi$2(t){return Qe$3(0,[{provide:gi$1,useExisting:ci},{provide:We$2,useExisting:t}])}function mi$1(t={}){return Qe$3(8,[{provide:Ve$3,useFactory:()=>new Fn$2(t)}])}function yi$1(t){ut$3("NgRouterViewTransitions");let n=[{provide:Cr,useValue:ni$1},{provide:wr,useValue:P$2({skipNextTransition:false},t)}];return Qe$3(9,n)}var Ri$1=[_m,{provide:re$2,useClass:K$2},G,de$2,{provide:V$3,useFactory:li},Dt],ea=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[Ri$1,[],{provide:fe$2,multi:true,useValue:e},[],r?.errorHandler?{provide:br,useValue:r.errorHandler}:[],{provide:ne$1,useValue:r||{}},r?.useHash?ra():na(),ta(),r?.preloadingStrategy?vi$2(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ia(r):[],r?.bindToComponentInputs?mi$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?yi$1().\u0275providers:[],oa()]}}static forChild(e){return {ngModule:t,providers:[{provide:fe$2,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Eo$1({type:t});static \u0275inj=qn$3({})}return t})();function ta(){return {provide:ui$1,useFactory:()=>{let t=g$3(g2),n=g$3(ne$1);return n.scrollOffset&&t.setOffset(n.scrollOffset),new Jo(n)}}}function ra(){return {provide:Dr,useClass:sb}}function na(){return {provide:Dr,useClass:Sm}}function ia(t){return [t.initialNavigation==="disabled"?pi$2().\u0275providers:[],t.initialNavigation==="enabledBlocking"?fi$2().\u0275providers:[]]}var Ir=new w("");function oa(){return [{provide:Ir,useFactory:hi$1},{provide:fl,multi:true,useExisting:Ir}]}
276
+ var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication in progress...";ngOnInit(){console.log("[OAuth Callback] Component initialized");let t=this.route.snapshot.queryParamMap.get("code"),e=this.route.snapshot.queryParamMap.get("state"),o=this.route.snapshot.queryParamMap.get("error"),a=this.route.snapshot.queryParamMap.get("error_description");if(console.log("[OAuth Callback] Code:",t,"State:",e,"Error:",o,"Opener:",!!window.opener),o){if(console.log("[OAuth Callback] OAuth error received:",o,a),!window.opener){console.warn("[OAuth Callback] No window.opener \u2014 using localStorage fallback for error"),localStorage.setItem(m$1,JSON.stringify({error:o,state:e,errorDescription:a})),this.message="Authentication failed. You can close this window.",setTimeout(()=>window.close(),1e3);return}try{window.opener.postMessage({error:o,state:e,errorDescription:a},window.location.origin),console.log("[OAuth Callback] Error postMessage sent successfully"),setTimeout(()=>{console.log("[OAuth Callback] Closing popup after error"),window.close();},1e3);}catch(n){console.error("[OAuth Callback] Error sending error postMessage:",n),alert("OAuth error: Failed to communicate with parent window");}return}if(!t){console.error("[OAuth Callback] Missing authorization code"),this.message="OAuth callback error: Missing authorization code.";return}if(!window.opener){console.warn("[OAuth Callback] No window.opener \u2014 using localStorage fallback"),localStorage.setItem(m$1,JSON.stringify({code:t,state:e})),this.message="Authentication complete. You can close this window.",setTimeout(()=>window.close(),1e3);return}try{console.log("[OAuth Callback] Sending postMessage to parent"),window.opener.postMessage({code:t,state:e},window.location.origin),console.log("[OAuth Callback] postMessage sent successfully"),setTimeout(()=>{console.log("[OAuth Callback] Closing popup"),window.close();},1e3);}catch(n){console.error("[OAuth Callback] Error sending postMessage:",n),alert("OAuth callback error: Failed to communicate with parent window");}}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=Fw({type:r,selectors:[["app-oauth-callback"]],decls:2,vars:1,template:function(e,o){e&1&&(gl(0,"p"),QC(1),ml()),e&2&&(nI(),Yg(o.message));},encapsulation:2,changeDetection:1})};var O$1=class c{eventStream=g$3(fe$3);messageApi=g$3(be$1);pendingStates=new Map;popupCheckInterval=null;popupClosedAt=null;static POPUP_CLOSE_GRACE_MS=2e3;pendingRequest$=new Tr(null);messageHandler=e=>this.handlePopupMessage(e);storageHandler=e=>this.handleStorageEvent(e);constructor(){this.eventStream.events$.pipe(Ot$3(e=>e.type==="oauth_request")).subscribe(e=>this.handleOAuthRequest(e)),window.addEventListener("message",this.messageHandler),window.addEventListener("storage",this.storageHandler),this.drainLocalStorage();}ngOnDestroy(){window.removeEventListener("message",this.messageHandler),window.removeEventListener("storage",this.storageHandler),this.pendingRequest$.complete(),this.popupCheckInterval&&clearInterval(this.popupCheckInterval);}startPopupMonitoring(e,t){this.popupCheckInterval&&clearInterval(this.popupCheckInterval),this.popupCheckInterval=setInterval(()=>{if(e.closed){if(this.popupClosedAt===null){this.popupClosedAt=Date.now(),console.log("[OAuth Service] Popup closed, waiting for postMessage grace period...");return}if(Date.now()-this.popupClosedAt<c.POPUP_CLOSE_GRACE_MS)return;if(console.log("[OAuth Service] Grace period elapsed, popup closed by user"),clearInterval(this.popupCheckInterval),this.popupCheckInterval=null,this.popupClosedAt=null,this.pendingStates.has(t)){console.warn("[OAuth Service] OAuth cancelled - popup closed without completing authentication");let s=this.pendingStates.get(t);if(this.pendingStates.delete(t),s){let a=new K$3({state:t,integrationName:s,error:"user_cancelled",errorDescription:"User closed the popup without completing authentication"});this.messageApi.sendMessage(a).subscribe({next:()=>console.log("[OAuth Service] Cancellation sent to backend"),error:n=>console.error("[OAuth Service] Failed to send cancellation:",n)});}}}else this.popupClosedAt!==null&&(console.log("[OAuth Service] Popup reopened/navigating, resetting grace period"),this.popupClosedAt=null);},500);}openPopup(e){console.log("[OAuth Service] Opening popup from user gesture:",e.integrationName);let t=600,o=900,s=window.screenX+(window.outerWidth-t)/2,a=window.screenY+(window.outerHeight-o)/2,n=`width=${t},height=${o},left=${s},top=${a},popup=yes,resizable=yes,scrollbars=yes`,r=window.open(e.authUrl,"oauth_popup",n);console.log("[OAuth Service] Popup opened:",!!r),r?(r.focus(),this.startPopupMonitoring(r,e.state),this.pendingRequest$.next(null)):console.warn("[OAuth Service] Popup was blocked by the browser");}cancelRequest(e){console.log("[OAuth Service] OAuth cancelled by user via inline panel"),this.pendingStates.delete(e.state),this.pendingRequest$.next(null);let t=new K$3({state:e.state,integrationName:e.integrationName,error:"user_cancelled",errorDescription:"User dismissed the authorization panel"});this.messageApi.sendMessage(t).subscribe({next:()=>console.log("[OAuth Service] Cancellation sent to backend"),error:o=>console.error("[OAuth Service] Failed to send cancellation:",o)});}handleOAuthRequest(e){console.log("[OAuth Service] Received OAuthRequestEvent:",e.integrationName,e.state),this.pendingStates.set(e.state,e.integrationName),console.log("[OAuth Service] Pending states:",Array.from(this.pendingStates.keys())),this.pendingRequest$.next(e);}handlePopupMessage(e){if(console.log("[OAuth Service] Received postMessage:",e.origin,e.data),e.origin!==window.location.origin){console.warn("[OAuth Service] Rejected message from different origin:",e.origin);return}this.processCallbackData(e.data);}handleStorageEvent(e){e.key!==m$1||!e.newValue||(console.log("[OAuth Service] Received localStorage callback fallback"),this.drainLocalStorage());}drainLocalStorage(){let e=localStorage.getItem(m$1);if(e){localStorage.removeItem(m$1),console.log("[OAuth Service] Processing localStorage OAuth callback fallback");try{let t=JSON.parse(e);this.processCallbackData(t);}catch(t){console.error("[OAuth Service] Failed to parse localStorage OAuth callback:",t);}}}processCallbackData(e){let{code:t,state:o,error:s,errorDescription:a}=e??{};if(s){console.log("[OAuth Service] OAuth error received:",s,a);let i=this.pendingStates.get(o);if(i){this.pendingStates.delete(o),this.popupCheckInterval&&(clearInterval(this.popupCheckInterval),this.popupCheckInterval=null,this.popupClosedAt=null);let d=new K$3({state:o,integrationName:i,error:s,errorDescription:a});this.messageApi.sendMessage(d).subscribe({next:()=>console.log("[OAuth Service] Error callback sent to backend"),error:p=>console.error("[OAuth Service] Failed to send error callback:",p)});}return}if(!t){console.warn("[OAuth Service] Message missing code:",e);return}console.log("[OAuth Service] Processing callback - code:",t,"state:",o);let n=o?this.pendingStates.get(o):void 0,r=o;if(!n&&this.pendingStates.size===1){let i=this.pendingStates.entries().next().value;if(i){let[d,p]=i;console.warn("[OAuth Service] State missing from callback, using sole pending flow:",p),n=p,r=d;}}if(!n){console.warn("[OAuth Service] Unknown or ambiguous state:",o,"Pending states:",Array.from(this.pendingStates.keys()));return}console.log("[OAuth Service] Found integration:",n),this.pendingStates.delete(r),this.popupCheckInterval&&(clearInterval(this.popupCheckInterval),this.popupCheckInterval=null,this.popupClosedAt=null);let f=new K$3({code:t,state:r,integrationName:n});console.log("[OAuth Service] Sending callback to backend..."),this.messageApi.sendMessage(f).subscribe({next:()=>console.log("[OAuth Service] Callback sent to backend successfully"),error:i=>console.error("[OAuth Service] Failed to send callback:",i)});}static \u0275fac=function(t){return new(t||c)};static \u0275prov=x({token:c,factory:c.\u0275fac,providedIn:"root"})};var Ct$2;try{Ct$2=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(e){Ct$2=false;}var p$1=(()=>{class e{_platformId=g$3(Kr);isBrowser=this._platformId?h2(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||Ct$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||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();function mt$1(e){return Array.isArray(e)?e:[e]}var Ae=new Set,B$1,lt$1=(()=>{class e{_platform=g$3(p$1);_nonce=g$3(Xr,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):bn$1;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&un$1(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();function un$1(e,o){if(!Ae.has(e))try{B$1||(B$1=document.createElement("style"),o&&B$1.setAttribute("nonce",o),B$1.setAttribute("type","text/css"),document.head.appendChild(B$1)),B$1.sheet&&(B$1.sheet.insertRule(`@media ${e.replace(/[{}]/g,"")} {body{ }}`,0),Ae.add(e));}catch(t){console.error(t);}}function bn$1(e){return {matches:e==="all"||e==="",media:e,addListener:()=>{},removeListener:()=>{}}}var Ot$1=(()=>{class e{_mediaMatcher=g$3(lt$1);_zone=g$3(G$2);_queries=new Map;_destroySubject=new ce$3;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return Ie$2(mt$1(t)).some(a=>this._registerQuery(a).mql.matches)}observe(t){let a=Ie$2(mt$1(t)).map(s=>this._registerQuery(s).observable),i=jy(a);return i=kt$1(i.pipe(an$2(1)),i.pipe(Td(1),Cd(0))),i.pipe(ue$3(s=>{let d={matches:false,breakpoints:{}};return s.forEach(({matches:_,query:I})=>{d.matches=d.matches||_,d.breakpoints[I]=_;}),d}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),i={observable:new A$1(s=>{let d=_=>this._zone.run(()=>s.next(_));return n.addListener(d),()=>{n.removeListener(d);}}).pipe(Sd(n),ue$3(({matches:s})=>({query:t,matches:s})),Hy(this._destroySubject)),mql:n};return this._queries.set(t,i),i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();function Ie$2(e){return e.map(o=>o.split(",")).reduce((o,t)=>o.concat(t)).map(o=>o.trim())}var po={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)"};function X$2(e){return e.buttons===0||e.detail===0}function q(e){let o=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return !!o&&o.identifier===-1&&(o.radiusX==null||o.radiusX===1)&&(o.radiusY==null||o.radiusY===1)}var Nt$1;function Te(){if(Nt$1==null){let e=typeof document<"u"?document.head:null;Nt$1=!!(e&&(e.createShadowRoot||e.attachShadow));}return Nt$1}function Rt$1(e){if(Te()){let o=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&o instanceof ShadowRoot)return o}return null}function pn$1(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){let o=e.shadowRoot.activeElement;if(o===e)break;e=o;}return e}function E(e){if(e.composedPath)try{return e.composedPath()[0]}catch(o){}return e.target}var J$3;function Me$1(){if(J$3==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>J$3=!0}));}finally{J$3=J$3||false;}return J$3}function z$1(e){return Me$1()?e:!!e.capture}function fn$1(e,o=0){return De$1(e)?Number(e):arguments.length===2?o:0}function De$1(e){return !isNaN(parseFloat(e))&&!isNaN(Number(e))}function R$1(e){return e instanceof Kt$2?e.nativeElement:e}var ke$1=new w("cdk-input-modality-detector-options"),Ce$1={ignoreKeys:[18,17,224,91,16]},Oe$1=650,Ft={passive:true,capture:true},Ne$2=(()=>{class e{_platform=g$3(p$1);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Tr(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=E(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<Oe$1||(this._modality.next(X$2(t)?"keyboard":"mouse"),this._mostRecentTarget=E(t));};_onTouchstart=t=>{if(q(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=E(t);};constructor(){let t=g$3(G$2),n=g$3(U$6),a=g$3(ke$1,{optional:true});if(this._options=P$2(P$2({},Ce$1),a),this.modalityDetected=this._modality.pipe(Td(1)),this.modalityChanged=this.modalityDetected.pipe(xd()),this._platform.isBrowser){let i=g$3(_n$3).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[i.listen(n,"keydown",this._onKeydown,Ft),i.listen(n,"mousedown",this._onMousedown,Ft),i.listen(n,"touchstart",this._onTouchstart,Ft)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})(),tt$2=(function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e})(tt$2||{}),Re$2=new w("cdk-focus-monitor-default-options"),ut$1=z$1({passive:true,capture:true}),St$3=(()=>{class e{_ngZone=g$3(G$2);_platform=g$3(p$1);_inputModalityDetector=g$3(Ne$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$3(U$6);_stopInputModalityDetector=new ce$3;constructor(){let t=g$3(Re$2,{optional:true});this._detectionMode=t?.detectionMode||tt$2.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=E(t);for(let a=n;a;a=a.parentElement)t.type==="focus"?this._onFocus(t,a):this._onBlur(t,a);};monitor(t,n=false){let a=R$1(t);if(!this._platform.isBrowser||a.nodeType!==1)return br$1();let i=Rt$1(a)||this._document,s=this._elementInfo.get(a);if(s)return n&&(s.checkChildren=true),s.subject;let d={checkChildren:n,subject:new ce$3,rootNode:i};return this._elementInfo.set(a,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(t){let n=R$1(t),a=this._elementInfo.get(n);a&&(a.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(a));}focusVia(t,n,a){let i=R$1(t),s=this._document.activeElement;i===s?this._getClosestElementsInfo(i).forEach(([d,_])=>this._originChanged(d,n,_)):(this._setOrigin(n),typeof i.focus=="function"&&i.focus(a));}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===tt$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===tt$2.IMMEDIATE){clearTimeout(this._originTimeoutId);let a=this._originFromTouchInteraction?Oe$1:1;this._originTimeoutId=setTimeout(()=>this._origin=null,a);}});}_onFocus(t,n){let a=this._elementInfo.get(n),i=E(t);!a||!a.checkChildren&&n!==i||this._originChanged(n,this._getFocusOrigin(i),a);}_onBlur(t,n){let a=this._elementInfo.get(n);!a||a.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(a,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,a=this._rootNodeFocusListenerCount.get(n)||0;a||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,ut$1),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,ut$1);}),this._rootNodeFocusListenerCount.set(n,a+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Hy(this._stopInputModalityDetector)).subscribe(i=>{this._setOrigin(i,true);}));}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let a=this._rootNodeFocusListenerCount.get(n);a>1?this._rootNodeFocusListenerCount.set(n,a-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,a){this._setClasses(t,n),this._emitOrigin(a,n),this._lastFocusOrigin=n;}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((a,i)=>{(i===t||a.checkChildren&&i.contains(t))&&n.push([i,a]);}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:a}=this._inputModalityDetector;if(a!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return false;let i=t.labels;if(i){for(let s=0;s<i.length;s++)if(i[s].contains(n))return true}return false}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var bt$2=new WeakMap,D=(()=>{class e{_appRef;_injector=g$3(pe$4);_environmentInjector=g$3(fe$4);load(t){let n=this._appRef=this._appRef||this._injector.get(yr$1),a=bt$2.get(n);a||(a={loaders:new Set,refs:[]},bt$2.set(n,a),n.onDestroy(()=>{bt$2.get(n)?.refs.forEach(i=>i.destroy()),bt$2.delete(n);})),a.loaders.has(t)||(a.loaders.add(t),a.refs.push(GB(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var ft$1=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Fw({type:e,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,a){},styles:[`.cdk-visually-hidden {
277
277
  border: 0;
278
278
  clip: rect(0 0 0 0);
279
279
  height: 1px;
@@ -292,7 +292,7 @@ var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication
292
292
  left: auto;
293
293
  right: 0;
294
294
  }
295
- `],encapsulation:2})}return e})(),pt$2;function hn$1(){if(pt$2===void 0&&(pt$2=null,typeof window<"u")){let e=window;if(e.trustedTypes!==void 0)try{pt$2=e.trustedTypes.createPolicy("angular#components",{createHTML:o=>o});}catch(o){console.error(o);}}return pt$2}function vn$1(e){return hn$1()?.createHTML(e)||e}function Fe$2(e,o,t){let n=t.sanitize(ke$3.HTML,o);e.innerHTML=vn$1(n||"");}var gn$1=(()=>{class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var Se$1=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({providers:[gn$1]})}return e})();var Ue$2=(()=>{class e{_platform=g$3(p$1);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return yn$1(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=_n$1(Dn$1(t));if(n&&(Le$2(n)===-1||!this.isVisible(n)))return false;let a=t.nodeName.toLowerCase(),i=Le$2(t);return t.hasAttribute("contenteditable")?i!==-1:a==="iframe"||a==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Tn$1(t)?false:a==="audio"?t.hasAttribute("controls")?i!==-1:false:a==="video"?i===-1?false:i!==null?true:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return Mn$1(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();function _n$1(e){try{return e.frameElement}catch(o){return null}}function yn$1(e){return !!(e.offsetWidth||e.offsetHeight||typeof e.getClientRects=="function"&&e.getClientRects().length)}function xn$1(e){let o=e.nodeName.toLowerCase();return o==="input"||o==="select"||o==="button"||o==="textarea"}function En$1(e){return An$1(e)&&e.type=="hidden"}function wn$1(e){return In$1(e)&&e.hasAttribute("href")}function An$1(e){return e.nodeName.toLowerCase()=="input"}function In$1(e){return e.nodeName.toLowerCase()=="a"}function ze$2(e){if(!e.hasAttribute("tabindex")||e.tabIndex===void 0)return false;let o=e.getAttribute("tabindex");return !!(o&&!isNaN(parseInt(o,10)))}function Le$2(e){if(!ze$2(e))return null;let o=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(o)?-1:o}function Tn$1(e){let o=e.nodeName.toLowerCase(),t=o==="input"&&e.type;return t==="text"||t==="password"||o==="select"||o==="textarea"}function Mn$1(e){return En$1(e)?false:xn$1(e)||wn$1(e)||e.hasAttribute("contenteditable")||ze$2(e)}function Dn$1(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}var ht$1=class ht{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(o){this._enabled=o,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor));}_enabled=true;constructor(o,t,n,a,i=false,s){this._element=o,this._checker=t,this._ngZone=n,this._document=a,this._injector=s,i||this.attachAnchors();}destroy(){let o=this._startAnchor,t=this._endAnchor;o&&(o.removeEventListener("focus",this.startAnchorListener),o.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(o){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(o)));})}focusFirstTabbableElementWhenReady(o){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(o)));})}focusLastTabbableElementWhenReady(o){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(o)));})}_getRegionBoundary(o){let t=this._element.querySelectorAll(`[cdk-focus-region-${o}], [cdkFocusRegion${o}], [cdk-focus-${o}]`);return o=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(o){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(o),!!n}return t.focus(o),true}return this.focusFirstTabbableElement(o)}focusFirstTabbableElement(o){let t=this._getRegionBoundary("start");return t&&t.focus(o),!!t}focusLastTabbableElement(o){let t=this._getRegionBoundary("end");return t&&t.focus(o),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(o){if(this._checker.isFocusable(o)&&this._checker.isTabbable(o))return o;let t=o.children;for(let n=0;n<t.length;n++){let a=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(a)return a}return null}_getLastTabbableElement(o){if(this._checker.isFocusable(o)&&this._checker.isTabbable(o))return o;let t=o.children;for(let n=t.length-1;n>=0;n--){let a=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(a)return a}return null}_createAnchor(){let o=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,o),o.classList.add("cdk-visually-hidden"),o.classList.add("cdk-focus-trap-anchor"),o.setAttribute("aria-hidden","true"),o}_toggleAnchorTabIndex(o,t){o?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex");}toggleAnchors(o){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor));}_executeOnStable(o){NE(o,{injector:this._injector});}},kn$1=(()=>{class e{_checker=g$3(Ue$2);_ngZone=g$3(G$2);_document=g$3(U$6);_injector=g$3(pe$3);constructor(){g$3(D).load(ft$1);}create(t,n=false){return new ht$1(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var je$2=new w("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),He$1=new w("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Cn$1=0,On$1=(()=>{class e{_ngZone=g$3(G$2);_defaultOptions=g$3(He$1,{optional:true});_liveElement;_document=g$3(U$6);_sanitizer=g$3(bS);_previousTimeout;_currentPromise;_currentResolve;constructor(){let t=g$3(je$2,{optional:true});this._liveElement=t||this._createLiveElement();}announce(t,...n){let a=this._defaultOptions,i,s;return n.length===1&&typeof n[0]=="number"?s=n[0]:[i,s]=n,this.clear(),clearTimeout(this._previousTimeout),i||(i=a&&a.politeness?a.politeness:"polite"),s==null&&a&&(s=a.duration),this._liveElement.setAttribute("aria-live",i),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!t||typeof t=="string"?this._liveElement.textContent=t:Fe$2(this._liveElement,t,this._sanitizer),typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="");}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;}_createLiveElement(){let t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),a=this._document.createElement("div");for(let i=0;i<n.length;i++)n[i].remove();return a.classList.add(t),a.classList.add("cdk-visually-hidden"),a.setAttribute("aria-atomic","true"),a.setAttribute("aria-live","polite"),a.id=`cdk-live-announcer-${Cn$1++}`,this._document.body.appendChild(a),a}_exposeAnnouncerToModals(t){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let a=0;a<n.length;a++){let i=n[a],s=i.getAttribute("aria-owns");s?s.indexOf(t)===-1&&i.setAttribute("aria-owns",s+" "+t):i.setAttribute("aria-owns",t);}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var F$2=(function(e){return e[e.NONE=0]="NONE",e[e.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",e[e.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",e})(F$2||{}),Pe$2="cdk-high-contrast-black-on-white",Be$2="cdk-high-contrast-white-on-black",Lt="cdk-high-contrast-active",Ke$1=(()=>{class e{_platform=g$3(p$1);_hasCheckedHighContrastMode=false;_document=g$3(U$6);_breakpointSubscription;constructor(){this._breakpointSubscription=g$3(Ot$1).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return F$2.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let n=this._document.defaultView||window,a=n&&n.getComputedStyle?n.getComputedStyle(t):null,i=(a&&a.backgroundColor||"").replace(/ /g,"");switch(t.remove(),i){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return F$2.WHITE_ON_BLACK;case "rgb(255,255,255)":case "rgb(255,250,239)":return F$2.BLACK_ON_WHITE}return F$2.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(Lt,Pe$2,Be$2),this._hasCheckedHighContrastMode=true;let n=this.getHighContrastMode();n===F$2.BLACK_ON_WHITE?t.add(Lt,Pe$2):n===F$2.WHITE_ON_BLACK&&t.add(Lt,Be$2);}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})(),Nn$1=(()=>{class e{constructor(){g$3(Ke$1)._applyBodyHighContrastModeCssClasses();}static \u0275fac=function(n){return new(n||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({imports:[Se$1]})}return e})();var Rn$1=200,vt$3=class vt{_letterKeyStream=new ce$4;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ce$4;selectedItem=this._selectedItem;constructor(o,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:Rn$1;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(o),this._setupKeyHandler(n);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(o){this._selectedItemIndex=o;}setItems(o){this._items=o;}handleKey(o){let t=o.keyCode;o.key&&o.key.length===1?this._letterKeyStream.next(o.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(o){this._letterKeyStream.pipe(Od(t=>this._pressedLetters.push(t)),wd(o),Ot$3(()=>this._pressedLetters.length>0),ue$3(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let n=1;n<this._items.length+1;n++){let a=(this._selectedItemIndex+n)%this._items.length,i=this._items[a];if(!this._skipPredicateFn?.(i)&&i.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(i);break}}this._pressedLetters=[];});}};function Ve$2(e,...o){return o.length?o.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var j$1=class j{_items;_activeItemIndex=zi$2(-1);_activeItem=zi$2(null);_wrap=false;_typeaheadSubscription=X$4.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=o=>o.disabled;constructor(o,t){this._items=o,o instanceof cs?this._itemChangesSubscription=o.changes.subscribe(n=>this._itemsChanged(n.toArray())):Jr(o)&&(this._effectRef=Hf(()=>this._itemsChanged(o()),{injector:t}));}tabOut=new ce$4;change=new ce$4;skipPredicate(o){return this._skipPredicateFn=o,this}withWrap(o=true){return this._wrap=o,this}withVerticalOrientation(o=true){return this._vertical=o,this}withHorizontalOrientation(o){return this._horizontal=o,this}withAllowedModifierKeys(o){return this._allowedModifierKeys=o,this}withTypeAhead(o=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new vt$3(t,{debounceInterval:typeof o=="number"?o: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(o=true){return this._homeAndEnd=o,this}withPageUpDown(o=true,t=10){return this._pageUpAndDown={enabled:o,delta:t},this}setActiveItem(o){let t=this._activeItem();this.updateActiveItem(o),this._activeItem()!==t&&this.change.next(this._activeItemIndex());}onKeydown(o){let t=o.keyCode,a=["altKey","ctrlKey","metaKey","shiftKey"].every(i=>!o[i]||this._allowedModifierKeys.indexOf(i)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&a){this.setNextItemActive();break}else return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&a){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&a){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&a){let i=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(i>0?i:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&a){let i=this._activeItemIndex()+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(i<s?i:s-1,-1);break}else return;default:(a||Ve$2(o,"shiftKey"))&&this._typeahead?.handleKey(o);return}this._typeahead?.reset(),o.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(o){let t=this._getItemsArray(),n=typeof o=="number"?o:t.indexOf(o),a=t[n];this._activeItem.set(a??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(o){this._wrap?this._setActiveInWrapMode(o):this._setActiveInDefaultMode(o);}_setActiveInWrapMode(o){let t=this._getItemsArray();for(let n=1;n<=t.length;n++){let a=(this._activeItemIndex()+o*n+t.length)%t.length,i=t[a];if(!this._skipPredicateFn(i)){this.setActiveItem(a);return}}}_setActiveInDefaultMode(o){this._setActiveItemByIndex(this._activeItemIndex()+o,o);}_setActiveItemByIndex(o,t){let n=this._getItemsArray();if(n[o]){for(;this._skipPredicateFn(n[o]);)if(o+=t,!n[o])return;this.setActiveItem(o);}}_getItemsArray(){return Jr(this._items)?this._items():this._items instanceof cs?this._items.toArray():this._items}_itemsChanged(o){this._typeahead?.setItems(o);let t=this._activeItem();if(t){let n=o.indexOf(t);n>-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n));}}};var Pt$2=class Pt extends j$1{setActiveItem(o){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(o),this.activeItem&&this.activeItem.setActiveStyles();}};var Bt$1=class Bt extends j$1{_origin="program";setFocusOrigin(o){return this._origin=o,this}setActiveItem(o){super.setActiveItem(o),this.activeItem&&this.activeItem.focus(this._origin);}};var We$1=new Map,Ut$1=class e{_appId=g$3(Qr);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(o,t=false){this._appId!=="ng"&&(o+=this._appId);let n=We$1.get(o);return n===void 0?n=0:n++,We$1.set(o,n),`${o}${t?e._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})};var Ge$2=" ";function Fn$1(e,o,t){let n=_t$2(e,o);t=t.trim(),!n.some(a=>a.trim()===t)&&(n.push(t),e.setAttribute(o,n.join(Ge$2)));}function Sn$1(e,o,t){let n=_t$2(e,o);t=t.trim();let a=n.filter(i=>i!==t);a.length?e.setAttribute(o,a.join(Ge$2)):e.removeAttribute(o);}function _t$2(e,o){return e.getAttribute(o)?.match(/\S+/g)??[]}var $e$2="cdk-describedby-message",gt$2="cdk-describedby-host",jt$2=0,$a=(()=>{class e{_platform=g$3(p$1);_document=g$3(U$6);_messageRegistry=new Map;_messagesContainer=null;_id=`${jt$2++}`;constructor(){g$3(D).load(ft$1),this._id=g$3(Qr)+"-"+jt$2++;}describe(t,n,a){if(!this._canBeDescribed(t,n))return;let i=zt$1(n,a);typeof n!="string"?(Ze$2(n,this._id),this._messageRegistry.set(i,{messageElement:n,referenceCount:0})):this._messageRegistry.has(i)||this._createMessageElement(n,a),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i);}removeDescription(t,n,a){if(!n||!this._isElementNode(t))return;let i=zt$1(n,a);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),typeof n=="string"){let s=this._messageRegistry.get(i);s&&s.referenceCount===0&&this._deleteMessageElement(i);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let t=this._document.querySelectorAll(`[${gt$2}="${this._id}"]`);for(let n=0;n<t.length;n++)this._removeCdkDescribedByReferenceIds(t[n]),t[n].removeAttribute(gt$2);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(t,n){let a=this._document.createElement("div");Ze$2(a,this._id),a.textContent=t,n&&a.setAttribute("role",n),this._createMessagesContainer(),this._messagesContainer.appendChild(a),this._messageRegistry.set(zt$1(t,n),{messageElement:a,referenceCount:0});}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t);}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",n=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let i=0;i<n.length;i++)n[i].remove();let a=this._document.createElement("div");a.style.visibility="hidden",a.classList.add(t),a.classList.add("cdk-visually-hidden"),this._platform.isBrowser||a.setAttribute("platform","server"),this._document.body.appendChild(a),this._messagesContainer=a;}_removeCdkDescribedByReferenceIds(t){let n=_t$2(t,"aria-describedby").filter(a=>a.indexOf($e$2)!=0);t.setAttribute("aria-describedby",n.join(" "));}_addMessageReference(t,n){let a=this._messageRegistry.get(n);Fn$1(t,"aria-describedby",a.messageElement.id),t.setAttribute(gt$2,this._id),a.referenceCount++;}_removeMessageReference(t,n){let a=this._messageRegistry.get(n);a.referenceCount--,Sn$1(t,"aria-describedby",a.messageElement.id),t.removeAttribute(gt$2);}_isElementDescribedByMessage(t,n){let a=_t$2(t,"aria-describedby"),i=this._messageRegistry.get(n),s=i&&i.messageElement.id;return !!s&&a.indexOf(s)!=-1}_canBeDescribed(t,n){if(!this._isElementNode(t))return false;if(n&&typeof n=="object")return true;let a=n==null?"":`${n}`.trim(),i=t.getAttribute("aria-label");return a?!i||i.trim()!==a:false}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();function zt$1(e,o){return typeof e=="string"?`${o||""}/${e}`:e}function Ze$2(e,o){e.id||(e.id=`${$e$2}-${o}-${jt$2++}`);}var et$2=(function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e})(et$2||{}),yt$3,U$2;function ni(){if(U$2==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return U$2=false,U$2;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)U$2=true;else {let e=Element.prototype.scrollTo;e?U$2=!/\{\s*\[native code\]\s*\}/.test(e.toString()):U$2=false;}}return U$2}function oi(){if(typeof document!="object"||!document)return et$2.NORMAL;if(yt$3==null){let e=document.createElement("div"),o=e.style;e.dir="rtl",o.width="1px",o.overflow="auto",o.visibility="hidden",o.pointerEvents="none",o.position="absolute";let t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",e.appendChild(t),document.body.appendChild(e),yt$3=et$2.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,yt$3=e.scrollLeft===0?et$2.NEGATED:et$2.INVERTED),e.remove();}return yt$3}function ii(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var H$1,Ye$1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function si(){if(H$1)return H$1;if(typeof document!="object"||!document)return H$1=new Set(Ye$1),H$1;let e=document.createElement("input");return H$1=new Set(Ye$1.filter(o=>(e.setAttribute("type",o),e.type===o))),H$1}var Ln$1=new w("MATERIAL_ANIMATIONS"),Qe$2=null;function Pn$1(){return g$3(Ln$1,{optional:true})?.animationsDisabled||g$3(Gv,{optional:true})==="NoopAnimations"?"di-disabled":(Qe$2??=g$3(lt$1).matchMedia("(prefers-reduced-motion)").matches,Qe$2?"reduced-motion":"enabled")}function K$1(){return Pn$1()!=="enabled"}function fi$1(e){return e==null?"":typeof e=="string"?e:`${e}px`}function vi$1(e){return e!=null&&`${e}`!="false"}var g$1=(function(e){return e[e.FADING_IN=0]="FADING_IN",e[e.VISIBLE=1]="VISIBLE",e[e.FADING_OUT=2]="FADING_OUT",e[e.HIDDEN=3]="HIDDEN",e})(g$1||{}),Ht$1=class Ht{_renderer;element;config;_animationForciblyDisabledThroughCss;state=g$1.HIDDEN;constructor(o,t,n,a=false){this._renderer=o,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=a;}fadeOut(){this._renderer.fadeOutRipple(this);}},Xe=z$1({passive:true,capture:true}),Kt$1=class Kt{_events=new Map;addHandler(o,t,n,a){let i=this._events.get(t);if(i){let s=i.get(n);s?s.add(a):i.set(n,new Set([a]));}else this._events.set(t,new Map([[n,new Set([a])]])),o.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,Xe);});}removeHandler(o,t,n){let a=this._events.get(o);if(!a)return;let i=a.get(t);i&&(i.delete(n),i.size===0&&a.delete(t),a.size===0&&(this._events.delete(o),document.removeEventListener(o,this._delegateEventHandler,Xe)));}_delegateEventHandler=o=>{let t=E(o);t&&this._events.get(o.type)?.forEach((n,a)=>{(a===t||a.contains(t))&&n.forEach(i=>i.handleEvent(o));});}},nt$2={enterDuration:225,exitDuration:150},Bn$1=800,qe$2=z$1({passive:true,capture:true}),Je$1=["mousedown","touchstart"],tn$1=["mouseup","mouseleave","touchend","touchcancel"],Un$1=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Rw({type:e,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,a){},styles:[`.mat-ripple {
295
+ `],encapsulation:2})}return e})(),pt$2;function hn$1(){if(pt$2===void 0&&(pt$2=null,typeof window<"u")){let e=window;if(e.trustedTypes!==void 0)try{pt$2=e.trustedTypes.createPolicy("angular#components",{createHTML:o=>o});}catch(o){console.error(o);}}return pt$2}function vn$1(e){return hn$1()?.createHTML(e)||e}function Fe$2(e,o,t){let n=t.sanitize(ke$3.HTML,o);e.innerHTML=vn$1(n||"");}var gn$1=(()=>{class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var Se$1=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({providers:[gn$1]})}return e})();var Ue$2=(()=>{class e{_platform=g$3(p$1);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return yn$1(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=_n$1(Dn$1(t));if(n&&(Le$2(n)===-1||!this.isVisible(n)))return false;let a=t.nodeName.toLowerCase(),i=Le$2(t);return t.hasAttribute("contenteditable")?i!==-1:a==="iframe"||a==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Tn$1(t)?false:a==="audio"?t.hasAttribute("controls")?i!==-1:false:a==="video"?i===-1?false:i!==null?true:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return Mn$1(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();function _n$1(e){try{return e.frameElement}catch(o){return null}}function yn$1(e){return !!(e.offsetWidth||e.offsetHeight||typeof e.getClientRects=="function"&&e.getClientRects().length)}function xn$1(e){let o=e.nodeName.toLowerCase();return o==="input"||o==="select"||o==="button"||o==="textarea"}function En$1(e){return An$1(e)&&e.type=="hidden"}function wn$1(e){return In$1(e)&&e.hasAttribute("href")}function An$1(e){return e.nodeName.toLowerCase()=="input"}function In$1(e){return e.nodeName.toLowerCase()=="a"}function ze$2(e){if(!e.hasAttribute("tabindex")||e.tabIndex===void 0)return false;let o=e.getAttribute("tabindex");return !!(o&&!isNaN(parseInt(o,10)))}function Le$2(e){if(!ze$2(e))return null;let o=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(o)?-1:o}function Tn$1(e){let o=e.nodeName.toLowerCase(),t=o==="input"&&e.type;return t==="text"||t==="password"||o==="select"||o==="textarea"}function Mn$1(e){return En$1(e)?false:xn$1(e)||wn$1(e)||e.hasAttribute("contenteditable")||ze$2(e)}function Dn$1(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}var ht$1=class ht{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(o){this._enabled=o,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor));}_enabled=true;constructor(o,t,n,a,i=false,s){this._element=o,this._checker=t,this._ngZone=n,this._document=a,this._injector=s,i||this.attachAnchors();}destroy(){let o=this._startAnchor,t=this._endAnchor;o&&(o.removeEventListener("focus",this.startAnchorListener),o.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(o){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(o)));})}focusFirstTabbableElementWhenReady(o){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(o)));})}focusLastTabbableElementWhenReady(o){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(o)));})}_getRegionBoundary(o){let t=this._element.querySelectorAll(`[cdk-focus-region-${o}], [cdkFocusRegion${o}], [cdk-focus-${o}]`);return o=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(o){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(o),!!n}return t.focus(o),true}return this.focusFirstTabbableElement(o)}focusFirstTabbableElement(o){let t=this._getRegionBoundary("start");return t&&t.focus(o),!!t}focusLastTabbableElement(o){let t=this._getRegionBoundary("end");return t&&t.focus(o),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(o){if(this._checker.isFocusable(o)&&this._checker.isTabbable(o))return o;let t=o.children;for(let n=0;n<t.length;n++){let a=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(a)return a}return null}_getLastTabbableElement(o){if(this._checker.isFocusable(o)&&this._checker.isTabbable(o))return o;let t=o.children;for(let n=t.length-1;n>=0;n--){let a=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(a)return a}return null}_createAnchor(){let o=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,o),o.classList.add("cdk-visually-hidden"),o.classList.add("cdk-focus-trap-anchor"),o.setAttribute("aria-hidden","true"),o}_toggleAnchorTabIndex(o,t){o?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex");}toggleAnchors(o){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor));}_executeOnStable(o){RE(o,{injector:this._injector});}},kn$1=(()=>{class e{_checker=g$3(Ue$2);_ngZone=g$3(G$2);_document=g$3(U$6);_injector=g$3(pe$4);constructor(){g$3(D).load(ft$1);}create(t,n=false){return new ht$1(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var je$2=new w("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),He$1=new w("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Cn$1=0,On$1=(()=>{class e{_ngZone=g$3(G$2);_defaultOptions=g$3(He$1,{optional:true});_liveElement;_document=g$3(U$6);_sanitizer=g$3(MS);_previousTimeout;_currentPromise;_currentResolve;constructor(){let t=g$3(je$2,{optional:true});this._liveElement=t||this._createLiveElement();}announce(t,...n){let a=this._defaultOptions,i,s;return n.length===1&&typeof n[0]=="number"?s=n[0]:[i,s]=n,this.clear(),clearTimeout(this._previousTimeout),i||(i=a&&a.politeness?a.politeness:"polite"),s==null&&a&&(s=a.duration),this._liveElement.setAttribute("aria-live",i),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!t||typeof t=="string"?this._liveElement.textContent=t:Fe$2(this._liveElement,t,this._sanitizer),typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="");}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;}_createLiveElement(){let t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),a=this._document.createElement("div");for(let i=0;i<n.length;i++)n[i].remove();return a.classList.add(t),a.classList.add("cdk-visually-hidden"),a.setAttribute("aria-atomic","true"),a.setAttribute("aria-live","polite"),a.id=`cdk-live-announcer-${Cn$1++}`,this._document.body.appendChild(a),a}_exposeAnnouncerToModals(t){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let a=0;a<n.length;a++){let i=n[a],s=i.getAttribute("aria-owns");s?s.indexOf(t)===-1&&i.setAttribute("aria-owns",s+" "+t):i.setAttribute("aria-owns",t);}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var F$2=(function(e){return e[e.NONE=0]="NONE",e[e.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",e[e.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",e})(F$2||{}),Pe$2="cdk-high-contrast-black-on-white",Be$2="cdk-high-contrast-white-on-black",Lt="cdk-high-contrast-active",Ke$1=(()=>{class e{_platform=g$3(p$1);_hasCheckedHighContrastMode=false;_document=g$3(U$6);_breakpointSubscription;constructor(){this._breakpointSubscription=g$3(Ot$1).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return F$2.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let n=this._document.defaultView||window,a=n&&n.getComputedStyle?n.getComputedStyle(t):null,i=(a&&a.backgroundColor||"").replace(/ /g,"");switch(t.remove(),i){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return F$2.WHITE_ON_BLACK;case "rgb(255,255,255)":case "rgb(255,250,239)":return F$2.BLACK_ON_WHITE}return F$2.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(Lt,Pe$2,Be$2),this._hasCheckedHighContrastMode=true;let n=this.getHighContrastMode();n===F$2.BLACK_ON_WHITE?t.add(Lt,Pe$2):n===F$2.WHITE_ON_BLACK&&t.add(Lt,Be$2);}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})(),Nn$1=(()=>{class e{constructor(){g$3(Ke$1)._applyBodyHighContrastModeCssClasses();}static \u0275fac=function(n){return new(n||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({imports:[Se$1]})}return e})();var Rn$1=200,vt$3=class vt{_letterKeyStream=new ce$3;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ce$3;selectedItem=this._selectedItem;constructor(o,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:Rn$1;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(o),this._setupKeyHandler(n);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(o){this._selectedItemIndex=o;}setItems(o){this._items=o;}handleKey(o){let t=o.keyCode;o.key&&o.key.length===1?this._letterKeyStream.next(o.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(o){this._letterKeyStream.pipe(kd(t=>this._pressedLetters.push(t)),Cd(o),Ot$3(()=>this._pressedLetters.length>0),ue$3(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let n=1;n<this._items.length+1;n++){let a=(this._selectedItemIndex+n)%this._items.length,i=this._items[a];if(!this._skipPredicateFn?.(i)&&i.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(i);break}}this._pressedLetters=[];});}};function Ve$2(e,...o){return o.length?o.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var j$1=class j{_items;_activeItemIndex=Gi$2(-1);_activeItem=Gi$2(null);_wrap=false;_typeaheadSubscription=X$4.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=o=>o.disabled;constructor(o,t){this._items=o,o instanceof us$1?this._itemChangesSubscription=o.changes.subscribe(n=>this._itemsChanged(n.toArray())):Jr(o)&&(this._effectRef=Uf(()=>this._itemsChanged(o()),{injector:t}));}tabOut=new ce$3;change=new ce$3;skipPredicate(o){return this._skipPredicateFn=o,this}withWrap(o=true){return this._wrap=o,this}withVerticalOrientation(o=true){return this._vertical=o,this}withHorizontalOrientation(o){return this._horizontal=o,this}withAllowedModifierKeys(o){return this._allowedModifierKeys=o,this}withTypeAhead(o=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new vt$3(t,{debounceInterval:typeof o=="number"?o: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(o=true){return this._homeAndEnd=o,this}withPageUpDown(o=true,t=10){return this._pageUpAndDown={enabled:o,delta:t},this}setActiveItem(o){let t=this._activeItem();this.updateActiveItem(o),this._activeItem()!==t&&this.change.next(this._activeItemIndex());}onKeydown(o){let t=o.keyCode,a=["altKey","ctrlKey","metaKey","shiftKey"].every(i=>!o[i]||this._allowedModifierKeys.indexOf(i)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&a){this.setNextItemActive();break}else return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&a){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&a){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&a){let i=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(i>0?i:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&a){let i=this._activeItemIndex()+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(i<s?i:s-1,-1);break}else return;default:(a||Ve$2(o,"shiftKey"))&&this._typeahead?.handleKey(o);return}this._typeahead?.reset(),o.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(o){let t=this._getItemsArray(),n=typeof o=="number"?o:t.indexOf(o),a=t[n];this._activeItem.set(a??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(o){this._wrap?this._setActiveInWrapMode(o):this._setActiveInDefaultMode(o);}_setActiveInWrapMode(o){let t=this._getItemsArray();for(let n=1;n<=t.length;n++){let a=(this._activeItemIndex()+o*n+t.length)%t.length,i=t[a];if(!this._skipPredicateFn(i)){this.setActiveItem(a);return}}}_setActiveInDefaultMode(o){this._setActiveItemByIndex(this._activeItemIndex()+o,o);}_setActiveItemByIndex(o,t){let n=this._getItemsArray();if(n[o]){for(;this._skipPredicateFn(n[o]);)if(o+=t,!n[o])return;this.setActiveItem(o);}}_getItemsArray(){return Jr(this._items)?this._items():this._items instanceof us$1?this._items.toArray():this._items}_itemsChanged(o){this._typeahead?.setItems(o);let t=this._activeItem();if(t){let n=o.indexOf(t);n>-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n));}}};var Pt$2=class Pt extends j$1{setActiveItem(o){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(o),this.activeItem&&this.activeItem.setActiveStyles();}};var Bt$1=class Bt extends j$1{_origin="program";setFocusOrigin(o){return this._origin=o,this}setActiveItem(o){super.setActiveItem(o),this.activeItem&&this.activeItem.focus(this._origin);}};var We$1=new Map,Ut$1=class e{_appId=g$3(Qr);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(o,t=false){this._appId!=="ng"&&(o+=this._appId);let n=We$1.get(o);return n===void 0?n=0:n++,We$1.set(o,n),`${o}${t?e._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})};var Ge$2=" ";function Fn$1(e,o,t){let n=_t$2(e,o);t=t.trim(),!n.some(a=>a.trim()===t)&&(n.push(t),e.setAttribute(o,n.join(Ge$2)));}function Sn$1(e,o,t){let n=_t$2(e,o);t=t.trim();let a=n.filter(i=>i!==t);a.length?e.setAttribute(o,a.join(Ge$2)):e.removeAttribute(o);}function _t$2(e,o){return e.getAttribute(o)?.match(/\S+/g)??[]}var $e$2="cdk-describedby-message",gt$2="cdk-describedby-host",jt$2=0,$a=(()=>{class e{_platform=g$3(p$1);_document=g$3(U$6);_messageRegistry=new Map;_messagesContainer=null;_id=`${jt$2++}`;constructor(){g$3(D).load(ft$1),this._id=g$3(Qr)+"-"+jt$2++;}describe(t,n,a){if(!this._canBeDescribed(t,n))return;let i=zt$1(n,a);typeof n!="string"?(Ze$2(n,this._id),this._messageRegistry.set(i,{messageElement:n,referenceCount:0})):this._messageRegistry.has(i)||this._createMessageElement(n,a),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i);}removeDescription(t,n,a){if(!n||!this._isElementNode(t))return;let i=zt$1(n,a);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),typeof n=="string"){let s=this._messageRegistry.get(i);s&&s.referenceCount===0&&this._deleteMessageElement(i);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let t=this._document.querySelectorAll(`[${gt$2}="${this._id}"]`);for(let n=0;n<t.length;n++)this._removeCdkDescribedByReferenceIds(t[n]),t[n].removeAttribute(gt$2);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(t,n){let a=this._document.createElement("div");Ze$2(a,this._id),a.textContent=t,n&&a.setAttribute("role",n),this._createMessagesContainer(),this._messagesContainer.appendChild(a),this._messageRegistry.set(zt$1(t,n),{messageElement:a,referenceCount:0});}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t);}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",n=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let i=0;i<n.length;i++)n[i].remove();let a=this._document.createElement("div");a.style.visibility="hidden",a.classList.add(t),a.classList.add("cdk-visually-hidden"),this._platform.isBrowser||a.setAttribute("platform","server"),this._document.body.appendChild(a),this._messagesContainer=a;}_removeCdkDescribedByReferenceIds(t){let n=_t$2(t,"aria-describedby").filter(a=>a.indexOf($e$2)!=0);t.setAttribute("aria-describedby",n.join(" "));}_addMessageReference(t,n){let a=this._messageRegistry.get(n);Fn$1(t,"aria-describedby",a.messageElement.id),t.setAttribute(gt$2,this._id),a.referenceCount++;}_removeMessageReference(t,n){let a=this._messageRegistry.get(n);a.referenceCount--,Sn$1(t,"aria-describedby",a.messageElement.id),t.removeAttribute(gt$2);}_isElementDescribedByMessage(t,n){let a=_t$2(t,"aria-describedby"),i=this._messageRegistry.get(n),s=i&&i.messageElement.id;return !!s&&a.indexOf(s)!=-1}_canBeDescribed(t,n){if(!this._isElementNode(t))return false;if(n&&typeof n=="object")return true;let a=n==null?"":`${n}`.trim(),i=t.getAttribute("aria-label");return a?!i||i.trim()!==a:false}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();function zt$1(e,o){return typeof e=="string"?`${o||""}/${e}`:e}function Ze$2(e,o){e.id||(e.id=`${$e$2}-${o}-${jt$2++}`);}var et$2=(function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e})(et$2||{}),yt$3,U$2;function ni(){if(U$2==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return U$2=false,U$2;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)U$2=true;else {let e=Element.prototype.scrollTo;e?U$2=!/\{\s*\[native code\]\s*\}/.test(e.toString()):U$2=false;}}return U$2}function oi(){if(typeof document!="object"||!document)return et$2.NORMAL;if(yt$3==null){let e=document.createElement("div"),o=e.style;e.dir="rtl",o.width="1px",o.overflow="auto",o.visibility="hidden",o.pointerEvents="none",o.position="absolute";let t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",e.appendChild(t),document.body.appendChild(e),yt$3=et$2.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,yt$3=e.scrollLeft===0?et$2.NEGATED:et$2.INVERTED),e.remove();}return yt$3}function ii(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var H$1,Ye$1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function si(){if(H$1)return H$1;if(typeof document!="object"||!document)return H$1=new Set(Ye$1),H$1;let e=document.createElement("input");return H$1=new Set(Ye$1.filter(o=>(e.setAttribute("type",o),e.type===o))),H$1}var Ln$1=new w("MATERIAL_ANIMATIONS"),Qe$2=null;function Pn$1(){return g$3(Ln$1,{optional:true})?.animationsDisabled||g$3(Zv,{optional:true})==="NoopAnimations"?"di-disabled":(Qe$2??=g$3(lt$1).matchMedia("(prefers-reduced-motion)").matches,Qe$2?"reduced-motion":"enabled")}function K$1(){return Pn$1()!=="enabled"}function fi$1(e){return e==null?"":typeof e=="string"?e:`${e}px`}function vi$1(e){return e!=null&&`${e}`!="false"}var g$1=(function(e){return e[e.FADING_IN=0]="FADING_IN",e[e.VISIBLE=1]="VISIBLE",e[e.FADING_OUT=2]="FADING_OUT",e[e.HIDDEN=3]="HIDDEN",e})(g$1||{}),Ht$1=class Ht{_renderer;element;config;_animationForciblyDisabledThroughCss;state=g$1.HIDDEN;constructor(o,t,n,a=false){this._renderer=o,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=a;}fadeOut(){this._renderer.fadeOutRipple(this);}},Xe=z$1({passive:true,capture:true}),Kt$1=class Kt{_events=new Map;addHandler(o,t,n,a){let i=this._events.get(t);if(i){let s=i.get(n);s?s.add(a):i.set(n,new Set([a]));}else this._events.set(t,new Map([[n,new Set([a])]])),o.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,Xe);});}removeHandler(o,t,n){let a=this._events.get(o);if(!a)return;let i=a.get(t);i&&(i.delete(n),i.size===0&&a.delete(t),a.size===0&&(this._events.delete(o),document.removeEventListener(o,this._delegateEventHandler,Xe)));}_delegateEventHandler=o=>{let t=E(o);t&&this._events.get(o.type)?.forEach((n,a)=>{(a===t||a.contains(t))&&n.forEach(i=>i.handleEvent(o));});}},nt$2={enterDuration:225,exitDuration:150},Bn$1=800,qe$2=z$1({passive:true,capture:true}),Je$1=["mousedown","touchstart"],tn$1=["mouseup","mouseleave","touchend","touchcancel"],Un$1=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Fw({type:e,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,a){},styles:[`.mat-ripple {
296
296
  overflow: hidden;
297
297
  position: relative;
298
298
  }
@@ -320,7 +320,7 @@ var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication
320
320
  .cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element {
321
321
  display: none;
322
322
  }
323
- `],encapsulation:2})}return e})(),ot$2=class e{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new Kt$1;constructor(o,t,n,a,i){this._target=o,this._ngZone=t,this._platform=a,a.isBrowser&&(this._containerElement=R$1(n)),i&&i.get(D).load(Un$1);}fadeInRipple(o,t,n={}){let a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=P$2(P$2({},nt$2),n.animation);n.centered&&(o=a.left+a.width/2,t=a.top+a.height/2);let s=n.radius||zn$1(o,t,a),d=o-a.left,_=t-a.top,I=i.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=`${d-s}px`,f.style.top=`${_-s}px`,f.style.height=`${s*2}px`,f.style.width=`${s*2}px`,n.color!=null&&(f.style.backgroundColor=n.color),f.style.transitionDuration=`${I}ms`,this._containerElement.appendChild(f);let $t=window.getComputedStyle(f),ln=$t.transitionProperty,Yt=$t.transitionDuration,At=ln==="none"||Yt==="0s"||Yt==="0s, 0s"||a.width===0&&a.height===0,S=new Ht$1(this,f,n,At);f.style.transform="scale3d(1, 1, 1)",S.state=g$1.FADING_IN,n.persistent||(this._mostRecentTransientRipple=S);let at=null;return !At&&(I||i.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Qt=()=>{at&&(at.fallbackTimer=null),clearTimeout(Xt),this._finishRippleTransition(S);},It=()=>this._destroyRipple(S),Xt=setTimeout(It,I+100);f.addEventListener("transitionend",Qt),f.addEventListener("transitioncancel",It),at={onTransitionEnd:Qt,onTransitionCancel:It,fallbackTimer:Xt};}),this._activeRipples.set(S,at),(At||!I)&&this._finishRippleTransition(S),S}fadeOutRipple(o){if(o.state===g$1.FADING_OUT||o.state===g$1.HIDDEN)return;let t=o.element,n=P$2(P$2({},nt$2),o.config.animation);t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",o.state=g$1.FADING_OUT,(o._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(o);}fadeOutAll(){this._getActiveRipples().forEach(o=>o.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(o=>{o.config.persistent||o.fadeOut();});}setupTriggerEvents(o){let t=R$1(o);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Je$1.forEach(n=>{e._eventManager.addHandler(this._ngZone,n,t,this);}));}handleEvent(o){o.type==="mousedown"?this._onMousedown(o):o.type==="touchstart"?this._onTouchStart(o):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{tn$1.forEach(t=>{this._triggerElement.addEventListener(t,this,qe$2);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(o){o.state===g$1.FADING_IN?this._startFadeOutTransition(o):o.state===g$1.FADING_OUT&&this._destroyRipple(o);}_startFadeOutTransition(o){let t=o===this._mostRecentTransientRipple,{persistent:n}=o.config;o.state=g$1.VISIBLE,!n&&(!t||!this._isPointerDown)&&o.fadeOut();}_destroyRipple(o){let t=this._activeRipples.get(o)??null;this._activeRipples.delete(o),this._activeRipples.size||(this._containerRect=null),o===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),o.state=g$1.HIDDEN,t!==null&&(o.element.removeEventListener("transitionend",t.onTransitionEnd),o.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),o.element.remove();}_onMousedown(o){let t=X$2(o),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Bn$1;!this._target.rippleDisabled&&!t&&!n&&(this._isPointerDown=true,this.fadeInRipple(o.clientX,o.clientY,this._target.rippleConfig));}_onTouchStart(o){if(!this._target.rippleDisabled&&!q(o)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let t=o.changedTouches;if(t)for(let n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(o=>{let t=o.state===g$1.VISIBLE||o.config.terminateOnPointerUp&&o.state===g$1.FADING_IN;!o.config.persistent&&t&&o.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let o=this._triggerElement;o&&(Je$1.forEach(t=>e._eventManager.removeHandler(t,o,this)),this._pointerUpEventsRegistered&&(tn$1.forEach(t=>o.removeEventListener(t,this,qe$2)),this._pointerUpEventsRegistered=false));}};function zn$1(e,o,t){let n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),a=Math.max(Math.abs(o-t.top),Math.abs(o-t.bottom));return Math.sqrt(n*n+a*a)}var Vt$1=new w("mat-ripple-global-options"),Oi$1=(()=>{class e{_elementRef=g$3(Kt$2);_animationsDisabled=K$1();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let t=g$3(G$2),n=g$3(p$1),a=g$3(Vt$1,{optional:true}),i=g$3(pe$3);this._globalOptions=a||{},this._rippleRenderer=new ot$2(this,t,this._elementRef,n,i);}ngOnInit(){this._isInitialized=true,this._setupTriggerEventsIfEnabled();}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents();}fadeOutAll(){this._rippleRenderer.fadeOutAll();}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent();}get rippleConfig(){return {centered:this.centered,radius:this.radius,color:this.color,animation:P$2(P$2(P$2({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger);}launch(t,n=0,a){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,P$2(P$2({},this.rippleConfig),a)):this._rippleRenderer.fadeInRipple(0,0,P$2(P$2({},this.rippleConfig),t))}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Ls({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,a){n&2&&Hg("mat-ripple-unbounded",a.unbounded);},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return e})();var jn$1={capture:true},Hn$1=["focus","mousedown","mouseenter","touchstart"],Wt="mat-ripple-loader-uninitialized",Zt$1="mat-ripple-loader-class-name",en$1="mat-ripple-loader-centered",xt$2="mat-ripple-loader-disabled",nn$1=(()=>{class e{_document=g$3(U$6);_animationsDisabled=K$1();_globalRippleOptions=g$3(Vt$1,{optional:true});_platform=g$3(p$1);_ngZone=g$3(G$2);_injector=g$3(pe$3);_eventCleanups;_hosts=new Map;constructor(){let t=g$3(_n$3).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Hn$1.map(n=>t.listen(this._document,n,this._onInteraction,jn$1)));}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);this._eventCleanups.forEach(n=>n());}configureRipple(t,n){t.setAttribute(Wt,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(Zt$1))&&t.setAttribute(Zt$1,n.className||""),n.centered&&t.setAttribute(en$1,""),n.disabled&&t.setAttribute(xt$2,"");}setDisabled(t,n){let a=this._hosts.get(t);a?(a.target.rippleDisabled=n,!n&&!a.hasSetUpEvents&&(a.hasSetUpEvents=true,a.renderer.setupTriggerEvents(t))):n?t.setAttribute(xt$2,""):t.removeAttribute(xt$2);}_onInteraction=t=>{let n=E(t);if(n instanceof HTMLElement){let a=n.closest(`[${Wt}="${this._globalRippleOptions?.namespace??""}"]`);a&&this._createRipple(a);}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",t.getAttribute(Zt$1)),t.append(n);let a=this._globalRippleOptions,i=this._animationsDisabled?0:a?.animation?.enterDuration??nt$2.enterDuration,s=this._animationsDisabled?0:a?.animation?.exitDuration??nt$2.exitDuration,d={rippleDisabled:this._animationsDisabled||a?.disabled||t.hasAttribute(xt$2),rippleConfig:{centered:t.hasAttribute(en$1),terminateOnPointerUp:a?.terminateOnPointerUp,animation:{enterDuration:i,exitDuration:s}}},_=new ot$2(d,this._ngZone,n,this._platform,this._injector),I=!d.rippleDisabled;I&&_.setupTriggerEvents(t),this._hosts.set(t,{target:d,renderer:_,hasSetUpEvents:I}),t.removeAttribute(Wt);}destroyRipple(t){let n=this._hosts.get(t);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(t));}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var on$1=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Rw({type:e,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,a){},styles:[`.mat-focus-indicator {
323
+ `],encapsulation:2})}return e})(),ot$2=class e{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new Kt$1;constructor(o,t,n,a,i){this._target=o,this._ngZone=t,this._platform=a,a.isBrowser&&(this._containerElement=R$1(n)),i&&i.get(D).load(Un$1);}fadeInRipple(o,t,n={}){let a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=P$2(P$2({},nt$2),n.animation);n.centered&&(o=a.left+a.width/2,t=a.top+a.height/2);let s=n.radius||zn$1(o,t,a),d=o-a.left,_=t-a.top,I=i.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=`${d-s}px`,f.style.top=`${_-s}px`,f.style.height=`${s*2}px`,f.style.width=`${s*2}px`,n.color!=null&&(f.style.backgroundColor=n.color),f.style.transitionDuration=`${I}ms`,this._containerElement.appendChild(f);let $t=window.getComputedStyle(f),ln=$t.transitionProperty,Yt=$t.transitionDuration,At=ln==="none"||Yt==="0s"||Yt==="0s, 0s"||a.width===0&&a.height===0,S=new Ht$1(this,f,n,At);f.style.transform="scale3d(1, 1, 1)",S.state=g$1.FADING_IN,n.persistent||(this._mostRecentTransientRipple=S);let at=null;return !At&&(I||i.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Qt=()=>{at&&(at.fallbackTimer=null),clearTimeout(Xt),this._finishRippleTransition(S);},It=()=>this._destroyRipple(S),Xt=setTimeout(It,I+100);f.addEventListener("transitionend",Qt),f.addEventListener("transitioncancel",It),at={onTransitionEnd:Qt,onTransitionCancel:It,fallbackTimer:Xt};}),this._activeRipples.set(S,at),(At||!I)&&this._finishRippleTransition(S),S}fadeOutRipple(o){if(o.state===g$1.FADING_OUT||o.state===g$1.HIDDEN)return;let t=o.element,n=P$2(P$2({},nt$2),o.config.animation);t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",o.state=g$1.FADING_OUT,(o._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(o);}fadeOutAll(){this._getActiveRipples().forEach(o=>o.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(o=>{o.config.persistent||o.fadeOut();});}setupTriggerEvents(o){let t=R$1(o);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Je$1.forEach(n=>{e._eventManager.addHandler(this._ngZone,n,t,this);}));}handleEvent(o){o.type==="mousedown"?this._onMousedown(o):o.type==="touchstart"?this._onTouchStart(o):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{tn$1.forEach(t=>{this._triggerElement.addEventListener(t,this,qe$2);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(o){o.state===g$1.FADING_IN?this._startFadeOutTransition(o):o.state===g$1.FADING_OUT&&this._destroyRipple(o);}_startFadeOutTransition(o){let t=o===this._mostRecentTransientRipple,{persistent:n}=o.config;o.state=g$1.VISIBLE,!n&&(!t||!this._isPointerDown)&&o.fadeOut();}_destroyRipple(o){let t=this._activeRipples.get(o)??null;this._activeRipples.delete(o),this._activeRipples.size||(this._containerRect=null),o===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),o.state=g$1.HIDDEN,t!==null&&(o.element.removeEventListener("transitionend",t.onTransitionEnd),o.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),o.element.remove();}_onMousedown(o){let t=X$2(o),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Bn$1;!this._target.rippleDisabled&&!t&&!n&&(this._isPointerDown=true,this.fadeInRipple(o.clientX,o.clientY,this._target.rippleConfig));}_onTouchStart(o){if(!this._target.rippleDisabled&&!q(o)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let t=o.changedTouches;if(t)for(let n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(o=>{let t=o.state===g$1.VISIBLE||o.config.terminateOnPointerUp&&o.state===g$1.FADING_IN;!o.config.persistent&&t&&o.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let o=this._triggerElement;o&&(Je$1.forEach(t=>e._eventManager.removeHandler(t,o,this)),this._pointerUpEventsRegistered&&(tn$1.forEach(t=>o.removeEventListener(t,this,qe$2)),this._pointerUpEventsRegistered=false));}};function zn$1(e,o,t){let n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),a=Math.max(Math.abs(o-t.top),Math.abs(o-t.bottom));return Math.sqrt(n*n+a*a)}var Vt$1=new w("mat-ripple-global-options"),Oi$1=(()=>{class e{_elementRef=g$3(Kt$2);_animationsDisabled=K$1();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let t=g$3(G$2),n=g$3(p$1),a=g$3(Vt$1,{optional:true}),i=g$3(pe$4);this._globalOptions=a||{},this._rippleRenderer=new ot$2(this,t,this._elementRef,n,i);}ngOnInit(){this._isInitialized=true,this._setupTriggerEventsIfEnabled();}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents();}fadeOutAll(){this._rippleRenderer.fadeOutAll();}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent();}get rippleConfig(){return {centered:this.centered,radius:this.radius,color:this.color,animation:P$2(P$2(P$2({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger);}launch(t,n=0,a){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,P$2(P$2({},this.rippleConfig),a)):this._rippleRenderer.fadeInRipple(0,0,P$2(P$2({},this.rippleConfig),t))}static \u0275fac=function(n){return new(n||e)};static \u0275dir=js({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,a){n&2&&Ug("mat-ripple-unbounded",a.unbounded);},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return e})();var jn$1={capture:true},Hn$1=["focus","mousedown","mouseenter","touchstart"],Wt="mat-ripple-loader-uninitialized",Zt$1="mat-ripple-loader-class-name",en$1="mat-ripple-loader-centered",xt$2="mat-ripple-loader-disabled",nn$1=(()=>{class e{_document=g$3(U$6);_animationsDisabled=K$1();_globalRippleOptions=g$3(Vt$1,{optional:true});_platform=g$3(p$1);_ngZone=g$3(G$2);_injector=g$3(pe$4);_eventCleanups;_hosts=new Map;constructor(){let t=g$3(_n$3).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Hn$1.map(n=>t.listen(this._document,n,this._onInteraction,jn$1)));}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);this._eventCleanups.forEach(n=>n());}configureRipple(t,n){t.setAttribute(Wt,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(Zt$1))&&t.setAttribute(Zt$1,n.className||""),n.centered&&t.setAttribute(en$1,""),n.disabled&&t.setAttribute(xt$2,"");}setDisabled(t,n){let a=this._hosts.get(t);a?(a.target.rippleDisabled=n,!n&&!a.hasSetUpEvents&&(a.hasSetUpEvents=true,a.renderer.setupTriggerEvents(t))):n?t.setAttribute(xt$2,""):t.removeAttribute(xt$2);}_onInteraction=t=>{let n=E(t);if(n instanceof HTMLElement){let a=n.closest(`[${Wt}="${this._globalRippleOptions?.namespace??""}"]`);a&&this._createRipple(a);}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",t.getAttribute(Zt$1)),t.append(n);let a=this._globalRippleOptions,i=this._animationsDisabled?0:a?.animation?.enterDuration??nt$2.enterDuration,s=this._animationsDisabled?0:a?.animation?.exitDuration??nt$2.exitDuration,d={rippleDisabled:this._animationsDisabled||a?.disabled||t.hasAttribute(xt$2),rippleConfig:{centered:t.hasAttribute(en$1),terminateOnPointerUp:a?.terminateOnPointerUp,animation:{enterDuration:i,exitDuration:s}}},_=new ot$2(d,this._ngZone,n,this._platform,this._injector),I=!d.rippleDisabled;I&&_.setupTriggerEvents(t),this._hosts.set(t,{target:d,renderer:_,hasSetUpEvents:I}),t.removeAttribute(Wt);}destroyRipple(t){let n=this._hosts.get(t);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(t));}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var on$1=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Fw({type:e,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,a){},styles:[`.mat-focus-indicator {
324
324
  position: relative;
325
325
  }
326
326
  .mat-focus-indicator::before {
@@ -347,7 +347,7 @@ var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication
347
347
  --mat-focus-indicator-fallback-border-style: none;
348
348
  }
349
349
  }
350
- `],encapsulation:2})}return e})();var Kn$1=["*",[["","progressIndicator",""]]],Vn$1=["*","[progressIndicator]"];function Wn$1(e,o){e&1&&(hl(0,"div",1),EC(1,1),gl());}var Zn$1=new w("MAT_BUTTON_CONFIG");function an$1(e){return e==null?void 0:KT(e)}var Et$2=(()=>{class e{_elementRef=g$3(Kt$2);_ngZone=g$3(G$2);_animationsDisabled=K$1();_config=g$3(Zn$1,{optional:true});_focusMonitor=g$3(St$3);_cleanupClick;_renderer=g$3(ks);_rippleLoader=g$3(nn$1);_isAnchor;_isFab=false;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled();}_disableRipple=false;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled();}_disabled=false;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t;}showProgress=TB(false,{transform:QT});constructor(){g$3(D).load(on$1);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??false,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true),this._isAnchor&&this._setupAsAnchor();}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?true:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:true}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation());}));}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Ls({type:e,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(n,a){n&2&&(Cg("disabled",a._getDisabledAttribute())("aria-disabled",a._getAriaDisabled())("tabindex",a._getTabIndex()),PC(a.color?"mat-"+a.color:""),Hg("mat-mdc-button-progress-indicator-shown",a.showProgress())("mat-mdc-button-disabled",a.disabled)("mat-mdc-button-disabled-interactive",a.disabledInteractive)("mat-unthemed",!a.color)("_mat-animation-noopable",a._animationsDisabled));},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",QT],disabled:[2,"disabled","disabled",QT],ariaDisabled:[2,"aria-disabled","ariaDisabled",QT],disabledInteractive:[2,"disabledInteractive","disabledInteractive",QT],tabIndex:[2,"tabIndex","tabIndex",an$1],_tabindex:[2,"tabindex","_tabindex",an$1],showProgress:[1,"showProgress"]}})}return e})(),Gn$1=(()=>{class e extends Et$2{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:true});}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Rw({type:e,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[yg],ngContentSelectors:Vn$1,decls:5,vars:1,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,a){n&1&&(DC(Kn$1),Sg(0,"span",0),EC(1),tC(2,Wn$1,2,0,"div",1),Sg(3,"span",2)(4,"span",3)),n&2&&(JE(2),nC(a.showProgress()?2:-1));},styles:[`.mat-mdc-icon-button {
350
+ `],encapsulation:2})}return e})();var Kn$1=["*",[["","progressIndicator",""]]],Vn$1=["*","[progressIndicator]"];function Wn$1(e,o){e&1&&(gl(0,"div",1),CC(1,1),ml());}var Zn$1=new w("MAT_BUTTON_CONFIG");function an$1(e){return e==null?void 0:eb(e)}var Et$2=(()=>{class e{_elementRef=g$3(Kt$2);_ngZone=g$3(G$2);_animationsDisabled=K$1();_config=g$3(Zn$1,{optional:true});_focusMonitor=g$3(St$3);_cleanupClick;_renderer=g$3(Fs);_rippleLoader=g$3(nn$1);_isAnchor;_isFab=false;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled();}_disableRipple=false;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled();}_disabled=false;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t;}showProgress=LB(false,{transform:JT});constructor(){g$3(D).load(on$1);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??false,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true),this._isAnchor&&this._setupAsAnchor();}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?true:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:true}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation());}));}static \u0275fac=function(n){return new(n||e)};static \u0275dir=js({type:e,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(n,a){n&2&&(Tg("disabled",a._getDisabledAttribute())("aria-disabled",a._getAriaDisabled())("tabindex",a._getTabIndex()),BC(a.color?"mat-"+a.color:""),Ug("mat-mdc-button-progress-indicator-shown",a.showProgress())("mat-mdc-button-disabled",a.disabled)("mat-mdc-button-disabled-interactive",a.disabledInteractive)("mat-unthemed",!a.color)("_mat-animation-noopable",a._animationsDisabled));},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",JT],disabled:[2,"disabled","disabled",JT],ariaDisabled:[2,"aria-disabled","ariaDisabled",JT],disabledInteractive:[2,"disabledInteractive","disabledInteractive",JT],tabIndex:[2,"tabIndex","tabIndex",an$1],_tabindex:[2,"tabindex","_tabindex",an$1],showProgress:[1,"showProgress"]}})}return e})(),Gn$1=(()=>{class e extends Et$2{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:true});}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Fw({type:e,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[vg],ngContentSelectors:Vn$1,decls:5,vars:1,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,a){n&1&&(wC(Kn$1),_g(0,"span",0),CC(1),oC(2,Wn$1,2,0,"div",1),_g(3,"span",2)(4,"span",3)),n&2&&(nI(2),iC(a.showProgress()?2:-1));},styles:[`.mat-mdc-icon-button {
351
351
  -webkit-user-select: none;
352
352
  user-select: none;
353
353
  display: inline-block;
@@ -495,7 +495,7 @@ var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication
495
495
  outline: solid 1px;
496
496
  }
497
497
  }
498
- `],encapsulation:2})}return e})();var $n$1=new w("cdk-dir-doc",{providedIn:"root",factory:()=>g$3(U$6)}),Yn$1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function rn$1(e){let o=e?.toLowerCase()||"";return o==="auto"&&typeof navigator<"u"&&navigator?.language?Yn$1.test(navigator.language)?"rtl":"ltr":o==="rtl"?"rtl":"ltr"}var Qn$1=(()=>{class e{get value(){return this.valueSignal()}valueSignal=zi$2("ltr");change=new yt$5;constructor(){let t=g$3($n$1,{optional:true});if(t){let n=t.body?t.body.dir:null,a=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(rn$1(n||a||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var wt$3=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({})}return e})();var sn$1=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({imports:[wt$3]})}return e})();var dn=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]],[["","progressIndicator",""]]],mn$1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]","[progressIndicator]"];function Xn$1(e,o){e&1&&(hl(0,"div",2),EC(1,3),gl());}function qn$1(e,o){e&1&&(hl(0,"div",2),EC(1,3),gl());}var cn$1=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),pr=(()=>{class e extends Et$2{get appearance(){return this._appearance}set appearance(t){this.setAppearance(t||this._config?.defaultAppearance||"text");}_appearance=null;constructor(){super();let t=Jn$1(this._elementRef.nativeElement);t&&this.setAppearance(t);}setAppearance(t){if(t===this._appearance)return;let n=this._elementRef.nativeElement.classList,a=this._appearance?cn$1.get(this._appearance):null,i=cn$1.get(t);a&&n.remove(...a),n.add(...i),this._appearance=t;}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Rw({type:e,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[yg],ngContentSelectors:mn$1,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,a){n&1&&(DC(dn),Sg(0,"span",0),EC(1),hl(2,"span",1),EC(3,1),gl(),EC(4,2),tC(5,Xn$1,2,0,"div",2),Sg(6,"span",3)(7,"span",4)),n&2&&(Hg("mdc-button__ripple",!a._isFab)("mdc-fab__ripple",a._isFab),JE(5),nC(a.showProgress()?5:-1));},styles:[`.mat-mdc-button-base {
498
+ `],encapsulation:2})}return e})();var $n$1=new w("cdk-dir-doc",{providedIn:"root",factory:()=>g$3(U$6)}),Yn$1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function rn$1(e){let o=e?.toLowerCase()||"";return o==="auto"&&typeof navigator<"u"&&navigator?.language?Yn$1.test(navigator.language)?"rtl":"ltr":o==="rtl"?"rtl":"ltr"}var Qn$1=(()=>{class e{get value(){return this.valueSignal()}valueSignal=Gi$2("ltr");change=new yt$5;constructor(){let t=g$3($n$1,{optional:true});if(t){let n=t.body?t.body.dir:null,a=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(rn$1(n||a||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Ce$4({token:e,factory:e.\u0275fac})}return e})();var wt$3=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({})}return e})();var sn$1=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({imports:[wt$3]})}return e})();var dn=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]],[["","progressIndicator",""]]],mn$1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]","[progressIndicator]"];function Xn$1(e,o){e&1&&(gl(0,"div",2),CC(1,3),ml());}function qn$1(e,o){e&1&&(gl(0,"div",2),CC(1,3),ml());}var cn$1=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),pr=(()=>{class e extends Et$2{get appearance(){return this._appearance}set appearance(t){this.setAppearance(t||this._config?.defaultAppearance||"text");}_appearance=null;constructor(){super();let t=Jn$1(this._elementRef.nativeElement);t&&this.setAppearance(t);}setAppearance(t){if(t===this._appearance)return;let n=this._elementRef.nativeElement.classList,a=this._appearance?cn$1.get(this._appearance):null,i=cn$1.get(t);a&&n.remove(...a),n.add(...i),this._appearance=t;}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Fw({type:e,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[vg],ngContentSelectors:mn$1,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,a){n&1&&(wC(dn),_g(0,"span",0),CC(1),gl(2,"span",1),CC(3,1),ml(),CC(4,2),oC(5,Xn$1,2,0,"div",2),_g(6,"span",3)(7,"span",4)),n&2&&(Ug("mdc-button__ripple",!a._isFab)("mdc-fab__ripple",a._isFab),nI(5),iC(a.showProgress()?5:-1));},styles:[`.mat-mdc-button-base {
499
499
  text-decoration: none;
500
500
  }
501
501
  .mat-mdc-button-base .mat-icon {
@@ -1060,7 +1060,7 @@ var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication
1060
1060
  outline: solid 1px;
1061
1061
  }
1062
1062
  }
1063
- `],encapsulation:2})}return e})();function Jn$1(e){return e.hasAttribute("mat-raised-button")?"elevated":e.hasAttribute("mat-stroked-button")?"outlined":e.hasAttribute("mat-flat-button")?"filled":e.hasAttribute("mat-button")?"text":null}var to=new w("mat-mdc-fab-default-options",{providedIn:"root",factory:()=>Gt$1}),Gt$1={color:"accent"},fr=(()=>{class e extends Et$2{_options=g$3(to,{optional:true});_isFab=true;extended=false;constructor(){super(),this._options=this._options||Gt$1,this.color=this._options.color||Gt$1.color;}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Rw({type:e,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(n,a){n&2&&Hg("mdc-fab--extended",a.extended)("mat-mdc-extended-fab",a.extended);},inputs:{extended:[2,"extended","extended",QT]},exportAs:["matButton","matAnchor"],features:[yg],ngContentSelectors:mn$1,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,a){n&1&&(DC(dn),Sg(0,"span",0),EC(1),hl(2,"span",1),EC(3,1),gl(),EC(4,2),tC(5,qn$1,2,0,"div",2),Sg(6,"span",3)(7,"span",4)),n&2&&(Hg("mdc-button__ripple",!a._isFab)("mdc-fab__ripple",a._isFab),JE(5),nC(a.showProgress()?5:-1));},styles:[`.mat-mdc-fab-base {
1063
+ `],encapsulation:2})}return e})();function Jn$1(e){return e.hasAttribute("mat-raised-button")?"elevated":e.hasAttribute("mat-stroked-button")?"outlined":e.hasAttribute("mat-flat-button")?"filled":e.hasAttribute("mat-button")?"text":null}var to=new w("mat-mdc-fab-default-options",{providedIn:"root",factory:()=>Gt$1}),Gt$1={color:"accent"},fr=(()=>{class e extends Et$2{_options=g$3(to,{optional:true});_isFab=true;extended=false;constructor(){super(),this._options=this._options||Gt$1,this.color=this._options.color||Gt$1.color;}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Fw({type:e,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(n,a){n&2&&Ug("mdc-fab--extended",a.extended)("mat-mdc-extended-fab",a.extended);},inputs:{extended:[2,"extended","extended",JT]},exportAs:["matButton","matAnchor"],features:[vg],ngContentSelectors:mn$1,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,a){n&1&&(wC(dn),_g(0,"span",0),CC(1),gl(2,"span",1),CC(3,1),ml(),CC(4,2),oC(5,qn$1,2,0,"div",2),_g(6,"span",3)(7,"span",4)),n&2&&(Ug("mdc-button__ripple",!a._isFab)("mdc-fab__ripple",a._isFab),nI(5),iC(a.showProgress()?5:-1));},styles:[`.mat-mdc-fab-base {
1064
1064
  -webkit-user-select: none;
1065
1065
  user-select: none;
1066
1066
  position: relative;
@@ -1349,7 +1349,7 @@ var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication
1349
1349
  .mat-mdc-button-progress-indicator-shown .mdc-button__label {
1350
1350
  visibility: hidden;
1351
1351
  }
1352
- `],encapsulation:2})}return e})();var hr=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({imports:[sn$1,wt$3]})}return e})();var le$1=20,I=(()=>{class n{_ngZone=g$3(G$2);_platform=g$3(p$1);_renderer=g$3(_n$3).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ce$4;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=le$1){return this._platform.isBrowser?new A$1(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(Qy(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):br$1()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete();}ancestorScrolled(t,i){let o=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Ot$3(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((o,s)=>{this._targetContainsElement(s,t)&&i.push(s);}),i}_targetContainsElement(t,i){let o=R$1(i),s=t.getElementRef().nativeElement;do if(o==s)return true;while(o=o.parentElement);return false}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),he$1=(()=>{class n{elementRef=g$3(Kt$2);scrollDispatcher=g$3(I);ngZone=g$3(G$2);dir=g$3(Qn$1,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ce$4;_renderer=g$3(ks);_cleanupScroll;_elementScrolled=new ce$4;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let i=this.elementRef.nativeElement,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=i.scrollHeight-i.clientHeight-t.bottom),o&&oi()!=et$2.NORMAL?(t.left!=null&&(t.right=i.scrollWidth-i.clientWidth-t.left),oi()==et$2.INVERTED?t.left=t.right:oi()==et$2.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let i=this.elementRef.nativeElement;ni()?i.scrollTo(t):(t.top!=null&&(i.scrollTop=t.top),t.left!=null&&(i.scrollLeft=t.left));}measureScrollOffset(t){let i="left",o="right",s=this.elementRef.nativeElement;if(t=="top")return s.scrollTop;if(t=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let r=this.dir&&this.dir.value=="rtl";return t=="start"?t=r?o:i:t=="end"&&(t=r?i:o),r&&oi()==et$2.INVERTED?t==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:r&&oi()==et$2.NEGATED?t==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}static \u0275fac=function(i){return new(i||n)};static \u0275dir=Ls({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return n})(),ce=20,F$1=(()=>{class n{_platform=g$3(p$1);_listeners;_viewportSize=null;_change=new ce$4;_document=g$3(U$6);constructor(){let t=g$3(G$2),i=g$3(_n$3).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=s=>this._change.next(s);this._listeners=[i.listen("window","resize",o),i.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:i,height:o}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+o,right:t.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,i=this._getWindow(),o=t.documentElement,s=o.getBoundingClientRect(),r=-s.top||t.body?.scrollTop||i.scrollY||o.scrollTop||0,a=-s.left||t.body?.scrollLeft||i.scrollX||o.scrollLeft||0;return {top:r,left:a}}change(t=ce){return t>0?this._change.pipe(Qy(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})();var vt$2=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Eo$1({type:n});static \u0275inj=qn$3({})}return n})(),yt$2=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Eo$1({type:n});static \u0275inj=qn$3({imports:[wt$3,vt$2,wt$3,vt$2]})}return n})();var W$1=class W{_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;}},wt$2=class wt extends W$1{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,i,o,s,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.projectableNodes=o,this.bindings=s||null,this.directives=r||null;}},Y=class extends W$1{templateRef;viewContainerRef;context;injector;constructor(e,t,i,o){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,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()}},bt$1=class bt extends W$1{element;constructor(e){super(),this.element=e instanceof Kt$2?e.nativeElement:e;}},J$2=class J{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof wt$2)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Y)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof bt$1)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);}},tt$1=class tt extends J$2{outletElement;_appRef;_defaultInjector;constructor(e,t,i){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=i;}attachComponentPortal(e){let t;if(e.viewContainerRef){let i=e.injector||e.viewContainerRef.injector,o=i.get(Nn$3,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:i,ngModuleRef:o,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let i=this._appRef,o=e.injector||this._defaultInjector||pe$3.NULL,s=o.get(fe$4,i.injector);t=RB(e.component,{elementInjector:o,environmentInjector:s,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),i.attachView(t.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(i);o!==-1&&t.remove(o);}),this._attachedPortal=e,i}attachDomPortal=e=>{let t=e.element;t.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var pi$1=(()=>{class n extends J$2{_moduleRef=g$3(Nn$3,{optional:true});_document=g$3(U$6);_viewContainerRef=g$3(mr$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$5;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let i=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=i.createComponent(t.component,{index:i.length,injector:t.injector||i.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(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 i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=t=>{let i=t.element;i.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),i.parentNode.insertBefore(o,i),this._getRootNode().appendChild(i),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(i,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=Gp(n)))(o||n)}})();static \u0275dir=Ls({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[yg]})}return n})(),Yt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Eo$1({type:n});static \u0275inj=qn$3({})}return n})();var Ht=ni();function Kt(n){return new et$1(n.get(F$1),n.get(U$6))}var et$1=class et{_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=fi$1(-this._previousScrollPosition.left),e.style.top=fi$1(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,i=e.style,o=t.style,s=i.scrollBehavior||"",r=o.scrollBehavior||"";this._isEnabled=false,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Ht&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ht&&(i.scrollBehavior=s,o.scrollBehavior=r);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}};function qt(n,e){return new it$1(n.get(I),n.get(G$2),n.get(F$1),e)}var it$1=class it{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,i,o){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,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 H=class{enable(){}disable(){}attach(){}};function Ct$1(n,e){return e.some(t=>{let i=n.bottom<t.top,o=n.top>t.bottom,s=n.right<t.left,r=n.left>t.right;return i||o||s||r})}function Xt$1(n,e){return e.some(t=>{let i=n.top<t.top,o=n.bottom>t.bottom,s=n.left<t.left,r=n.right>t.right;return i||o||s||r})}function kt(n,e){return new nt$1(n.get(I),n.get(F$1),n.get(G$2),e)}var nt$1=class nt{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,i,o){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,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:i,height:o}=this._viewportRuler.getViewportSize();Ct$1(t,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},Qt=(()=>{class n{_injector=g$3(pe$3);noop=()=>new H;close=t=>qt(this._injector,t);block=()=>Kt(this._injector);reposition=t=>kt(this._injector,t);static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),X$1=class X{positionStrategy;scrollStrategy=new H;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let i of t)e[i]!==void 0&&(this[i]=e[i]);}}};var ot$1=class ot{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var Jt=(()=>{class n{_attachedOverlays=[];_document=g$3(U$6);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,i,o){return o.observers.length<1?false:t.eventPredicate?t.eventPredicate(i):true}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),te$1=(()=>{class n extends Jt{_ngZone=g$3(G$2);_renderer=g$3(_n$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 i=this._attachedOverlays;for(let o=i.length-1;o>-1;o--){let s=i[o];if(this.canReceiveEvent(s,t,s._keydownEvents)){this._ngZone.run(()=>s._keydownEvents.next(t));break}}};static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),ee$1=(()=>{class n extends Jt{_platform=g$3(p$1);_ngZone=g$3(G$2);_renderer=g$3(_n$3).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let i=this._document.body,o={capture:true},s=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[s.listen(i,"pointerdown",this._pointerDownListener,o),s.listen(i,"click",this._clickListener,o),s.listen(i,"auxclick",this._clickListener,o),s.listen(i,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=E(t);};_clickListener=t=>{let i=E(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let s=this._attachedOverlays.slice();for(let r=s.length-1;r>-1;r--){let a=s[r],c=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,t,c))){if(jt$1(a.overlayElement,i)||jt$1(a.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>c.next(t)):c.next(t);}}};static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})();function jt$1(n,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===n)return true;i=t&&i instanceof ShadowRoot?i.host:i.parentNode;}return false}var ie$1=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=Rw({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
1352
+ `],encapsulation:2})}return e})();var hr=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Eo$1({type:e});static \u0275inj=qn$3({imports:[sn$1,wt$3]})}return e})();var le$1=20,I=(()=>{class n{_ngZone=g$3(G$2);_platform=g$3(p$1);_renderer=g$3(_n$3).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ce$3;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=le$1){return this._platform.isBrowser?new A$1(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(Ky(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):br$1()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete();}ancestorScrolled(t,i){let o=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Ot$3(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((o,s)=>{this._targetContainsElement(s,t)&&i.push(s);}),i}_targetContainsElement(t,i){let o=R$1(i),s=t.getElementRef().nativeElement;do if(o==s)return true;while(o=o.parentElement);return false}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),he$1=(()=>{class n{elementRef=g$3(Kt$2);scrollDispatcher=g$3(I);ngZone=g$3(G$2);dir=g$3(Qn$1,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ce$3;_renderer=g$3(Fs);_cleanupScroll;_elementScrolled=new ce$3;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let i=this.elementRef.nativeElement,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=i.scrollHeight-i.clientHeight-t.bottom),o&&oi()!=et$2.NORMAL?(t.left!=null&&(t.right=i.scrollWidth-i.clientWidth-t.left),oi()==et$2.INVERTED?t.left=t.right:oi()==et$2.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let i=this.elementRef.nativeElement;ni()?i.scrollTo(t):(t.top!=null&&(i.scrollTop=t.top),t.left!=null&&(i.scrollLeft=t.left));}measureScrollOffset(t){let i="left",o="right",s=this.elementRef.nativeElement;if(t=="top")return s.scrollTop;if(t=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let r=this.dir&&this.dir.value=="rtl";return t=="start"?t=r?o:i:t=="end"&&(t=r?i:o),r&&oi()==et$2.INVERTED?t==i?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:r&&oi()==et$2.NEGATED?t==i?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==i?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}static \u0275fac=function(i){return new(i||n)};static \u0275dir=js({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return n})(),ce=20,F$1=(()=>{class n{_platform=g$3(p$1);_listeners;_viewportSize=null;_change=new ce$3;_document=g$3(U$6);constructor(){let t=g$3(G$2),i=g$3(_n$3).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=s=>this._change.next(s);this._listeners=[i.listen("window","resize",o),i.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:i,height:o}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+o,right:t.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,i=this._getWindow(),o=t.documentElement,s=o.getBoundingClientRect(),r=-s.top||t.body?.scrollTop||i.scrollY||o.scrollTop||0,a=-s.left||t.body?.scrollLeft||i.scrollX||o.scrollLeft||0;return {top:r,left:a}}change(t=ce){return t>0?this._change.pipe(Ky(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})();var vt$2=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Eo$1({type:n});static \u0275inj=qn$3({})}return n})(),yt$2=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Eo$1({type:n});static \u0275inj=qn$3({imports:[wt$3,vt$2,wt$3,vt$2]})}return n})();var W$1=class W{_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;}},wt$2=class wt extends W$1{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,i,o,s,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.projectableNodes=o,this.bindings=s||null,this.directives=r||null;}},Y=class extends W$1{templateRef;viewContainerRef;context;injector;constructor(e,t,i,o){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,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()}},bt$1=class bt extends W$1{element;constructor(e){super(),this.element=e instanceof Kt$2?e.nativeElement:e;}},J$2=class J{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof wt$2)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Y)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof bt$1)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);}},tt$1=class tt extends J$2{outletElement;_appRef;_defaultInjector;constructor(e,t,i){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=i;}attachComponentPortal(e){let t;if(e.viewContainerRef){let i=e.injector||e.viewContainerRef.injector,o=i.get(Nn$3,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:i,ngModuleRef:o,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let i=this._appRef,o=e.injector||this._defaultInjector||pe$4.NULL,s=o.get(fe$4,i.injector);t=GB(e.component,{elementInjector:o,environmentInjector:s,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),i.attachView(t.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(i);o!==-1&&t.remove(o);}),this._attachedPortal=e,i}attachDomPortal=e=>{let t=e.element;t.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var pi$1=(()=>{class n extends J$2{_moduleRef=g$3(Nn$3,{optional:true});_document=g$3(U$6);_viewContainerRef=g$3(mr$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$5;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let i=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=i.createComponent(t.component,{index:i.length,injector:t.injector||i.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(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 i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=t=>{let i=t.element;i.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),i.parentNode.insertBefore(o,i),this._getRootNode().appendChild(i),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(i,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=Wp(n)))(o||n)}})();static \u0275dir=js({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[vg]})}return n})(),Yt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Eo$1({type:n});static \u0275inj=qn$3({})}return n})();var Ht=ni();function Kt(n){return new et$1(n.get(F$1),n.get(U$6))}var et$1=class et{_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=fi$1(-this._previousScrollPosition.left),e.style.top=fi$1(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,i=e.style,o=t.style,s=i.scrollBehavior||"",r=o.scrollBehavior||"";this._isEnabled=false,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Ht&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ht&&(i.scrollBehavior=s,o.scrollBehavior=r);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}};function qt(n,e){return new it$1(n.get(I),n.get(G$2),n.get(F$1),e)}var it$1=class it{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,i,o){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,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 H=class{enable(){}disable(){}attach(){}};function Ct$1(n,e){return e.some(t=>{let i=n.bottom<t.top,o=n.top>t.bottom,s=n.right<t.left,r=n.left>t.right;return i||o||s||r})}function Xt$1(n,e){return e.some(t=>{let i=n.top<t.top,o=n.bottom>t.bottom,s=n.left<t.left,r=n.right>t.right;return i||o||s||r})}function kt(n,e){return new nt$1(n.get(I),n.get(F$1),n.get(G$2),e)}var nt$1=class nt{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,i,o){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,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:i,height:o}=this._viewportRuler.getViewportSize();Ct$1(t,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},Qt=(()=>{class n{_injector=g$3(pe$4);noop=()=>new H;close=t=>qt(this._injector,t);block=()=>Kt(this._injector);reposition=t=>kt(this._injector,t);static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),X$1=class X{positionStrategy;scrollStrategy=new H;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let i of t)e[i]!==void 0&&(this[i]=e[i]);}}};var ot$1=class ot{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var Jt=(()=>{class n{_attachedOverlays=[];_document=g$3(U$6);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,i,o){return o.observers.length<1?false:t.eventPredicate?t.eventPredicate(i):true}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),te$1=(()=>{class n extends Jt{_ngZone=g$3(G$2);_renderer=g$3(_n$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 i=this._attachedOverlays;for(let o=i.length-1;o>-1;o--){let s=i[o];if(this.canReceiveEvent(s,t,s._keydownEvents)){this._ngZone.run(()=>s._keydownEvents.next(t));break}}};static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),ee$1=(()=>{class n extends Jt{_platform=g$3(p$1);_ngZone=g$3(G$2);_renderer=g$3(_n$3).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let i=this._document.body,o={capture:true},s=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[s.listen(i,"pointerdown",this._pointerDownListener,o),s.listen(i,"click",this._clickListener,o),s.listen(i,"auxclick",this._clickListener,o),s.listen(i,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=E(t);};_clickListener=t=>{let i=E(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let s=this._attachedOverlays.slice();for(let r=s.length-1;r>-1;r--){let a=s[r],c=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,t,c))){if(jt$1(a.overlayElement,i)||jt$1(a.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>c.next(t)):c.next(t);}}};static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})();function jt$1(n,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===n)return true;i=t&&i instanceof ShadowRoot?i.host:i.parentNode;}return false}var ie$1=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=Fw({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
1353
1353
  pointer-events: none;
1354
1354
  top: 0;
1355
1355
  left: 0;
@@ -1488,15 +1488,15 @@ var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication
1488
1488
  position: fixed;
1489
1489
  z-index: auto;
1490
1490
  }
1491
- `],encapsulation:2})}return n})(),ne=(()=>{class n{_platform=g$3(p$1);_containerElement;_document=g$3(U$6);_styleLoader=g$3(D);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||ii()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<o.length;s++)o[s].remove();}let i=this._document.createElement("div");i.classList.add(t),ii()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i;}_loadStyles(){this._styleLoader.load(ie$1);}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),St$2=class St{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,i,o){this._renderer=t,this._ngZone=i,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",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 Ot(n){return n&&n.nodeType===1}var st$1=class st{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ce$4;_attachments=new ce$4;_detachments=new ce$4;_positionStrategy;_scrollStrategy;_locationChanges=X$4.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new ce$4;_outsidePointerEvents=new ce$4;_afterNextRenderRef;constructor(e,t,i,o,s,r,a,c,f,h=false,d,p){this._portalOutlet=e,this._host=t,this._pane=i,this._config=o,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=c,this._outsideClickDispatcher=f,this._animationsDisabled=h,this._injector=d,this._renderer=p,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=NE(()=>{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=P$2(P$2({},this._config),e),this._updateElementSize();}setDirection(e){this._config=z$4(P$2({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=fi$1(this._config.width),e.height=fi$1(this._config.height),e.minWidth=fi$1(this._config.minWidth),e.minHeight=fi$1(this._config.minHeight),e.maxWidth=fi$1(this._config.maxWidth),e.maxHeight=fi$1(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none";}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Ot(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 St$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,i){let o=mt$1(t||[]).filter(s=>!!s);o.length&&(i?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=NE(()=>{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?.();}},Zt="cdk-overlay-connected-position-bounding-box",de$1=/([A-Za-z%]+)$/;function xt$1(n,e){return new rt$1(e,n.get(F$1),n.get(U$6),n.get(p$1),n.get(ne))}var rt$1=class rt{_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 ce$4;_resizeSubscription=X$4.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,i,o,s){this._viewportRuler=t,this._document=i,this._platform=o,this._overlayContainer=s,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Zt),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let e=this._originRect,t=this._overlayRect,i=this._viewportRect,o=this._containerRect,s=[],r;for(let a of this._preferredPositions){let c=this._getOriginPoint(e,o,a),f=this._getOverlayPoint(c,t,a),h=this._getOverlayFit(f,t,i,a);if(h.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(h,f,i)){s.push({position:a,origin:c,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!r||r.overlayFit.visibleArea<h.visibleArea)&&(r={overlayFit:h,overlayPoint:f,originPoint:c,position:a,overlayRect:t});}if(s.length){let a=null,c=-1;for(let f of s){let h=f.boundingBoxRect.width*f.boundingBoxRect.height*(f.position.weight||1);h>c&&(c=h,a=f);}this._isPushed=false,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&V$2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Zt),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 Kt$2?this._origin.nativeElement:Ot(this._origin)?this._origin:null}_getOriginPoint(e,t,i){let o;if(i.originX=="center")o=e.left+e.width/2;else {let r=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;o=i.originX=="start"?r:a;}t.left<0&&(o-=t.left);let s;return i.originY=="center"?s=e.top+e.height/2:s=i.originY=="top"?e.top:e.bottom,t.top<0&&(s-=t.top),{x:o,y:s}}_getOverlayPoint(e,t,i){let o;i.overlayX=="center"?o=-t.width/2:i.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let s;return i.overlayY=="center"?s=-t.height/2:s=i.overlayY=="top"?0:-t.height,{x:e.x+o,y:e.y+s}}_getOverlayFit(e,t,i,o){let s=Gt(t),{x:r,y:a}=e,c=this._getOffset(o,"x"),f=this._getOffset(o,"y");c&&(r+=c),f&&(a+=f);let h=0-r,d=r+s.width-i.width,p=0-a,g=a+s.height-i.height,_=this._subtractOverflows(s.width,h,d),w=this._subtractOverflows(s.height,p,g),Dt=_*w;return {visibleArea:Dt,isCompletelyWithinViewport:s.width*s.height===Dt,fitsInViewportVertically:w===s.height,fitsInViewportHorizontally:_==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){let o=i.bottom-t.y,s=i.right-t.x,r=Ut(this._overlayRef.getConfig().minHeight),a=Ut(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||r!=null&&r<=o,f=e.fitsInViewportHorizontally||a!=null&&a<=s;return c&&f}return false}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let o=Gt(t),s=this._viewportRect,r=Math.max(e.x+o.width-s.width,0),a=Math.max(e.y+o.height-s.height,0),c=Math.max(s.top-i.top-e.y,0),f=Math.max(s.left-i.left-e.x,0),h=0,d=0;return o.width<=s.width?h=f||-r:h=e.x<this._getViewportMarginStart()?s.left-i.left-e.x:0,o.height<=s.height?d=c||-a:d=e.y<this._getViewportMarginTop()?s.top-i.top-e.y:0,this._previousPushAmount={x:h,y:d},{x:e.x+h,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!fe$1(this._lastScrollVisibility,i)){let o=new ot$1(e,i);this._positionChanges.next(o);}this._lastScrollVisibility=i;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,o=e.overlayY;e.overlayX==="center"?i="center":this._isRtl()?i=e.overlayX==="start"?"right":"left":i=e.overlayX==="start"?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${o}`;}_calculateBoundingBoxRect(e,t){let i=this._viewportRect,o=this._isRtl(),s,r,a;if(t.overlayY==="top")r=e.y,s=i.height-r+this._getViewportMarginBottom();else if(t.overlayY==="bottom")a=i.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),s=i.height-a+this._getViewportMarginTop();else {let g=Math.min(i.bottom-e.y+i.top,e.y),_=this._lastBoundingBoxSize.height;s=g*2,r=e.y-g,s>_&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-_/2);}let c=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,f=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,h,d,p;if(f)p=i.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=e.x-this._getViewportMarginStart();else if(c)d=e.x,h=i.right-e.x-this._getViewportMarginEnd();else {let g=Math.min(i.right-e.x+i.left,e.x),_=this._lastBoundingBoxSize.width;h=g*2,d=e.x-g,h>_&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-_/2);}return {top:r,left:d,bottom:a,right:p,width:h,height:s}}_setBoundingBoxStyles(e,t){let i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let 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 s=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;o.width=fi$1(i.width),o.height=fi$1(i.height),o.top=fi$1(i.top)||"auto",o.bottom=fi$1(i.bottom)||"auto",o.left=fi$1(i.left)||"auto",o.right=fi$1(i.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",s&&(o.maxHeight=fi$1(s)),r&&(o.maxWidth=fi$1(r));}this._lastBoundingBoxSize=i,V$2(this._boundingBox.style,o);}_resetBoundingBoxStyles(){V$2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){V$2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let i={},o=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();V$2(i,this._getExactOverlayY(t,e,h)),V$2(i,this._getExactOverlayX(t,e,h));}else i.position="static";let a="",c=this._getOffset(t,"x"),f=this._getOffset(t,"y");c&&(a+=`translateX(${c}px) `),f&&(a+=`translateY(${f}px)`),i.transform=a.trim(),r.maxHeight&&(o?i.maxHeight=fi$1(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(o?i.maxWidth=fi$1(r.maxWidth):s&&(i.maxWidth="")),V$2(this._pane.style,i);}_getExactOverlayY(e,t,i){let o={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),e.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;o.bottom=`${r-(s.y+this._overlayRect.height)}px`;}else o.top=fi$1(s.y);return o}_getExactOverlayX(e,t,i){let o={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r;if(this._isRtl()?r=e.overlayX==="end"?"left":"right":r=e.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;o.right=`${a-(s.x+this._overlayRect.width)}px`;}else o.left=fi$1(s.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:Xt$1(e,i),isOriginOutsideView:Ct$1(e,i),isOverlayClipped:Xt$1(t,i),isOverlayOutsideView:Ct$1(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,o)=>i-Math.max(o,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return {top:i.top+this._getViewportMarginTop(),left:i.left+this._getViewportMarginStart(),right:i.left+e-this._getViewportMarginEnd(),bottom:i.top+t-this._getViewportMarginBottom(),width:e-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&mt$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 Kt$2)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,i=e.height||0;return {top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let i=t.getBoundingClientRect();return e&&(t.style.display=""),i}};function V$2(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Ut(n){if(typeof n!="number"&&n!=null){let[e,t]=n.split(de$1);return !t||t==="px"?parseFloat(e):null}return n||null}function Gt(n){return {top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function fe$1(n,e){return n===e?true:n.isOriginClipped===e.isOriginClipped&&n.isOriginOutsideView===e.isOriginOutsideView&&n.isOverlayClipped===e.isOverlayClipped&&n.isOverlayOutsideView===e.isOverlayOutsideView}var $t="cdk-global-overlay-wrapper";function oe$1(n){return new at$1}var at$1=class at{_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($t),this._isDisposed=false;}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:s,maxWidth:r,maxHeight:a}=i,c=(o==="100%"||o==="100vw")&&(!r||r==="100%"||r==="100vw"),f=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),h=this._xPosition,d=this._xOffset,p=this._overlayRef.getConfig().direction==="rtl",g="",_="",w="";c?w="flex-start":h==="center"?(w="center",p?_=d:g=d):p?h==="left"||h==="end"?(w="flex-end",g=d):(h==="right"||h==="start")&&(w="flex-start",_=d):h==="left"||h==="start"?(w="flex-start",g=d):(h==="right"||h==="end")&&(w="flex-end",_=d),e.position=this._cssPosition,e.marginLeft=c?"0":g,e.marginTop=f?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":_,t.justifyContent=w,t.alignItems=f?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove($t),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},se=(()=>{class n{_injector=g$3(pe$3);global(){return oe$1()}flexibleConnectedTo(t){return xt$1(this._injector,t)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),Et$1=new w("OVERLAY_DEFAULT_CONFIG");function Pt$1(n,e){n.get(D).load(ie$1);let t=n.get(ne),i=n.get(U$6),o=n.get(Ut$1),s=n.get(yr$1),r=n.get(Qn$1),a=n.get(ks,null,{optional:true})||n.get(_n$3).createRenderer(null,null),c=new X$1(e),f=n.get(Et$1,null,{optional:true})?.usePopover??true;c.direction=c.direction||r.value,!i.body||!("showPopover"in i.body)?c.usePopover=false:c.usePopover=e?.usePopover??f;let h=i.createElement("div"),d=i.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),d.appendChild(h),c.usePopover&&(d.setAttribute("popover","manual"),d.classList.add("cdk-overlay-popover"));let p=c.usePopover?c.positionStrategy?.getPopoverInsertionPoint?.():null;return Ot(p)?p.after(d):p?.type==="parent"?p.element.appendChild(d):t.getContainerElement().appendChild(d),new st$1(new tt$1(h,s,n),d,h,c,n.get(G$2),n.get(te$1),i,n.get(Sm),n.get(ee$1),e?.disableAnimations??n.get(Gv,null,{optional:true})==="NoopAnimations",n.get(fe$4),a)}var re$1=(()=>{class n{scrollStrategies=g$3(Qt);_positionBuilder=g$3(se);_injector=g$3(pe$3);create(t){return Pt$1(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),ue$1=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],pe$1=new w("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$3(pe$3);return ()=>kt(n)}}),Rt=(()=>{class n{elementRef=g$3(Kt$2);static \u0275fac=function(i){return new(i||n)};static \u0275dir=Ls({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return n})(),ae$1=new w("cdk-connected-overlay-default-config"),_e=(()=>{class n{_dir=g$3(Qn$1,{optional:true});_injector=g$3(pe$3);_overlayRef;_templatePortal;_backdropSubscription=X$4.EMPTY;_attachSubscription=X$4.EMPTY;_detachSubscription=X$4.EMPTY;_positionSubscription=X$4.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=g$3(pe$1);_ngZone=g$3(G$2);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position);}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position);}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=false;disableClose=false;transformOriginSelector;hasBackdrop=false;lockPosition=false;flexibleDimensions=false;growAfterOpen=false;push=false;disposeOnNavigation=false;usePopover;matchWidth=false;set _config(t){typeof t!="string"&&this._assignConfig(t);}backdropClick=new yt$5;positionChange=new yt$5;attach=new yt$5;detach=new yt$5;overlayKeydown=new yt$5;overlayOutsideClick=new yt$5;constructor(){let t=g$3(dr$1),i=g$3(mr$1),o=g$3(ae$1,{optional:true}),s=g$3(Et$1,{optional:true});this.usePopover=s?.usePopover===false?null:"global",this._templatePortal=new Y(t,i),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o);}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose();}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this.attachOverlay():this.detachOverlay());}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ue$1);let t=this._overlayRef=Pt$1(this._injector,this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Ve$2(i)&&(i.preventDefault(),this.detachOverlay());}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let o=this._getOriginElement(),s=E(i);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(i);});}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),i=new X$1({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return (this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(t){let i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let t=xt$1(this._injector,this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof Rt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Rt?this.origin.elementRef.nativeElement:this.origin instanceof Kt$2?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let t=this._overlayRef;t.getConfig().hasBackdrop=this.hasBackdrop,t.updateSize({width:this._getWidth()}),t.hasAttached()||t.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=t.backdropClick().subscribe(i=>this.backdropClick.emit(i)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(rv(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe();})),this.open=true;}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=false;}_assignConfig(t){this.origin=t.origin??this.origin,this.positions=t.positions??this.positions,this.positionStrategy=t.positionStrategy??this.positionStrategy,this.offsetX=t.offsetX??this.offsetX,this.offsetY=t.offsetY??this.offsetY,this.width=t.width??this.width,this.height=t.height??this.height,this.minWidth=t.minWidth??this.minWidth,this.minHeight=t.minHeight??this.minHeight,this.backdropClass=t.backdropClass??this.backdropClass,this.panelClass=t.panelClass??this.panelClass,this.viewportMargin=t.viewportMargin??this.viewportMargin,this.scrollStrategy=t.scrollStrategy??this.scrollStrategy,this.disableClose=t.disableClose??this.disableClose,this.transformOriginSelector=t.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=t.hasBackdrop??this.hasBackdrop,this.lockPosition=t.lockPosition??this.lockPosition,this.flexibleDimensions=t.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=t.growAfterOpen??this.growAfterOpen,this.push=t.push??this.push,this.disposeOnNavigation=t.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=t.usePopover??this.usePopover,this.matchWidth=t.matchWidth??this.matchWidth;}static \u0275fac=function(i){return new(i||n)};static \u0275dir=Ls({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",QT],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",QT],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",QT],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",QT],push:[2,"cdkConnectedOverlayPush","push",QT],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",QT],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",QT],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Tu]})}return n})(),ge$1=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Eo$1({type:n});static \u0275inj=qn$3({providers:[re$1],imports:[wt$3,Yt,yt$2,yt$2]})}return n})();function vt$1(a,l){if(a&1){let t=fC();Is(0,"div",1)(1,"button",2),Ag("click",function(){If(t);let n=yC();return wf(n.action())}),qC(2),pl()();}if(a&2){let t=yC();JE(2),vl(" ",t.data.action," ");}}var gt$1=["label"];function yt$1(a,l){}var At$1=Math.pow(2,31)-1,p=class{_overlayRef;instance;containerInstance;_afterDismissed=new ce$4;_afterOpened=new ce$4;_onAction=new ce$4;_durationTimeoutId;_dismissedByAction=false;constructor(l,t){this._overlayRef=t,this.containerInstance=l,l._onExit.subscribe(()=>this._finishDismiss());}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId);}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=true,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId);}closeWithAction(){this.dismissWithAction();}_dismissAfter(l){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(l,At$1));}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete());}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=false;}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},_t$1=new w("MatSnackBarData"),m=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},xt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=Ls({type:a,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return a})(),St$1=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=Ls({type:a,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return a})(),Bt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=Ls({type:a,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return a})(),pt$1=(()=>{class a{snackBarRef=g$3(p);data=g$3(_t$1);action(){this.snackBarRef.dismissWithAction();}get hasAction(){return !!this.data.action}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=Rw({type:a,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(e,n){e&1&&(Is(0,"div",0),qC(1),pl(),tC(2,vt$1,3,1,"div",1)),e&2&&(JE(),vl(" ",n.data.message,`
1492
- `),JE(),nC(n.hasAction?2:-1));},dependencies:[pr,xt,St$1,Bt],styles:[`.mat-mdc-simple-snack-bar {
1491
+ `],encapsulation:2})}return n})(),ne=(()=>{class n{_platform=g$3(p$1);_containerElement;_document=g$3(U$6);_styleLoader=g$3(D);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||ii()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<o.length;s++)o[s].remove();}let i=this._document.createElement("div");i.classList.add(t),ii()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i;}_loadStyles(){this._styleLoader.load(ie$1);}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),St$2=class St{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,i,o){this._renderer=t,this._ngZone=i,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",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 Ot(n){return n&&n.nodeType===1}var st$1=class st{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ce$3;_attachments=new ce$3;_detachments=new ce$3;_positionStrategy;_scrollStrategy;_locationChanges=X$4.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new ce$3;_outsidePointerEvents=new ce$3;_afterNextRenderRef;constructor(e,t,i,o,s,r,a,c,f,h=false,d,p){this._portalOutlet=e,this._host=t,this._pane=i,this._config=o,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=c,this._outsideClickDispatcher=f,this._animationsDisabled=h,this._injector=d,this._renderer=p,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=RE(()=>{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=P$2(P$2({},this._config),e),this._updateElementSize();}setDirection(e){this._config=z$4(P$2({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=fi$1(this._config.width),e.height=fi$1(this._config.height),e.minWidth=fi$1(this._config.minWidth),e.minHeight=fi$1(this._config.minHeight),e.maxWidth=fi$1(this._config.maxWidth),e.maxHeight=fi$1(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none";}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Ot(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 St$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,i){let o=mt$1(t||[]).filter(s=>!!s);o.length&&(i?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=RE(()=>{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?.();}},Zt="cdk-overlay-connected-position-bounding-box",de$1=/([A-Za-z%]+)$/;function xt$1(n,e){return new rt$1(e,n.get(F$1),n.get(U$6),n.get(p$1),n.get(ne))}var rt$1=class rt{_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 ce$3;_resizeSubscription=X$4.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,i,o,s){this._viewportRuler=t,this._document=i,this._platform=o,this._overlayContainer=s,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Zt),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let e=this._originRect,t=this._overlayRect,i=this._viewportRect,o=this._containerRect,s=[],r;for(let a of this._preferredPositions){let c=this._getOriginPoint(e,o,a),f=this._getOverlayPoint(c,t,a),h=this._getOverlayFit(f,t,i,a);if(h.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(h,f,i)){s.push({position:a,origin:c,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!r||r.overlayFit.visibleArea<h.visibleArea)&&(r={overlayFit:h,overlayPoint:f,originPoint:c,position:a,overlayRect:t});}if(s.length){let a=null,c=-1;for(let f of s){let h=f.boundingBoxRect.width*f.boundingBoxRect.height*(f.position.weight||1);h>c&&(c=h,a=f);}this._isPushed=false,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&V$2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Zt),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 Kt$2?this._origin.nativeElement:Ot(this._origin)?this._origin:null}_getOriginPoint(e,t,i){let o;if(i.originX=="center")o=e.left+e.width/2;else {let r=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;o=i.originX=="start"?r:a;}t.left<0&&(o-=t.left);let s;return i.originY=="center"?s=e.top+e.height/2:s=i.originY=="top"?e.top:e.bottom,t.top<0&&(s-=t.top),{x:o,y:s}}_getOverlayPoint(e,t,i){let o;i.overlayX=="center"?o=-t.width/2:i.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let s;return i.overlayY=="center"?s=-t.height/2:s=i.overlayY=="top"?0:-t.height,{x:e.x+o,y:e.y+s}}_getOverlayFit(e,t,i,o){let s=Gt(t),{x:r,y:a}=e,c=this._getOffset(o,"x"),f=this._getOffset(o,"y");c&&(r+=c),f&&(a+=f);let h=0-r,d=r+s.width-i.width,p=0-a,g=a+s.height-i.height,_=this._subtractOverflows(s.width,h,d),w=this._subtractOverflows(s.height,p,g),Dt=_*w;return {visibleArea:Dt,isCompletelyWithinViewport:s.width*s.height===Dt,fitsInViewportVertically:w===s.height,fitsInViewportHorizontally:_==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){let o=i.bottom-t.y,s=i.right-t.x,r=Ut(this._overlayRef.getConfig().minHeight),a=Ut(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportVertically||r!=null&&r<=o,f=e.fitsInViewportHorizontally||a!=null&&a<=s;return c&&f}return false}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let o=Gt(t),s=this._viewportRect,r=Math.max(e.x+o.width-s.width,0),a=Math.max(e.y+o.height-s.height,0),c=Math.max(s.top-i.top-e.y,0),f=Math.max(s.left-i.left-e.x,0),h=0,d=0;return o.width<=s.width?h=f||-r:h=e.x<this._getViewportMarginStart()?s.left-i.left-e.x:0,o.height<=s.height?d=c||-a:d=e.y<this._getViewportMarginTop()?s.top-i.top-e.y:0,this._previousPushAmount={x:h,y:d},{x:e.x+h,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!fe$1(this._lastScrollVisibility,i)){let o=new ot$1(e,i);this._positionChanges.next(o);}this._lastScrollVisibility=i;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,o=e.overlayY;e.overlayX==="center"?i="center":this._isRtl()?i=e.overlayX==="start"?"right":"left":i=e.overlayX==="start"?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${o}`;}_calculateBoundingBoxRect(e,t){let i=this._viewportRect,o=this._isRtl(),s,r,a;if(t.overlayY==="top")r=e.y,s=i.height-r+this._getViewportMarginBottom();else if(t.overlayY==="bottom")a=i.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),s=i.height-a+this._getViewportMarginTop();else {let g=Math.min(i.bottom-e.y+i.top,e.y),_=this._lastBoundingBoxSize.height;s=g*2,r=e.y-g,s>_&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-_/2);}let c=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,f=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,h,d,p;if(f)p=i.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),h=e.x-this._getViewportMarginStart();else if(c)d=e.x,h=i.right-e.x-this._getViewportMarginEnd();else {let g=Math.min(i.right-e.x+i.left,e.x),_=this._lastBoundingBoxSize.width;h=g*2,d=e.x-g,h>_&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-_/2);}return {top:r,left:d,bottom:a,right:p,width:h,height:s}}_setBoundingBoxStyles(e,t){let i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let 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 s=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;o.width=fi$1(i.width),o.height=fi$1(i.height),o.top=fi$1(i.top)||"auto",o.bottom=fi$1(i.bottom)||"auto",o.left=fi$1(i.left)||"auto",o.right=fi$1(i.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",s&&(o.maxHeight=fi$1(s)),r&&(o.maxWidth=fi$1(r));}this._lastBoundingBoxSize=i,V$2(this._boundingBox.style,o);}_resetBoundingBoxStyles(){V$2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){V$2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let i={},o=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();V$2(i,this._getExactOverlayY(t,e,h)),V$2(i,this._getExactOverlayX(t,e,h));}else i.position="static";let a="",c=this._getOffset(t,"x"),f=this._getOffset(t,"y");c&&(a+=`translateX(${c}px) `),f&&(a+=`translateY(${f}px)`),i.transform=a.trim(),r.maxHeight&&(o?i.maxHeight=fi$1(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(o?i.maxWidth=fi$1(r.maxWidth):s&&(i.maxWidth="")),V$2(this._pane.style,i);}_getExactOverlayY(e,t,i){let o={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),e.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;o.bottom=`${r-(s.y+this._overlayRect.height)}px`;}else o.top=fi$1(s.y);return o}_getExactOverlayX(e,t,i){let o={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r;if(this._isRtl()?r=e.overlayX==="end"?"left":"right":r=e.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;o.right=`${a-(s.x+this._overlayRect.width)}px`;}else o.left=fi$1(s.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:Xt$1(e,i),isOriginOutsideView:Ct$1(e,i),isOverlayClipped:Xt$1(t,i),isOverlayOutsideView:Ct$1(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,o)=>i-Math.max(o,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return {top:i.top+this._getViewportMarginTop(),left:i.left+this._getViewportMarginStart(),right:i.left+e-this._getViewportMarginEnd(),bottom:i.top+t-this._getViewportMarginBottom(),width:e-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&mt$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 Kt$2)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,i=e.height||0;return {top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let i=t.getBoundingClientRect();return e&&(t.style.display=""),i}};function V$2(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function Ut(n){if(typeof n!="number"&&n!=null){let[e,t]=n.split(de$1);return !t||t==="px"?parseFloat(e):null}return n||null}function Gt(n){return {top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function fe$1(n,e){return n===e?true:n.isOriginClipped===e.isOriginClipped&&n.isOriginOutsideView===e.isOriginOutsideView&&n.isOverlayClipped===e.isOverlayClipped&&n.isOverlayOutsideView===e.isOverlayOutsideView}var $t="cdk-global-overlay-wrapper";function oe$1(n){return new at$1}var at$1=class at{_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($t),this._isDisposed=false;}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:s,maxWidth:r,maxHeight:a}=i,c=(o==="100%"||o==="100vw")&&(!r||r==="100%"||r==="100vw"),f=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),h=this._xPosition,d=this._xOffset,p=this._overlayRef.getConfig().direction==="rtl",g="",_="",w="";c?w="flex-start":h==="center"?(w="center",p?_=d:g=d):p?h==="left"||h==="end"?(w="flex-end",g=d):(h==="right"||h==="start")&&(w="flex-start",_=d):h==="left"||h==="start"?(w="flex-start",g=d):(h==="right"||h==="end")&&(w="flex-end",_=d),e.position=this._cssPosition,e.marginLeft=c?"0":g,e.marginTop=f?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=c?"0":_,t.justifyContent=w,t.alignItems=f?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove($t),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},se=(()=>{class n{_injector=g$3(pe$4);global(){return oe$1()}flexibleConnectedTo(t){return xt$1(this._injector,t)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),Et$1=new w("OVERLAY_DEFAULT_CONFIG");function Pt$1(n,e){n.get(D).load(ie$1);let t=n.get(ne),i=n.get(U$6),o=n.get(Ut$1),s=n.get(yr$1),r=n.get(Qn$1),a=n.get(Fs,null,{optional:true})||n.get(_n$3).createRenderer(null,null),c=new X$1(e),f=n.get(Et$1,null,{optional:true})?.usePopover??true;c.direction=c.direction||r.value,!i.body||!("showPopover"in i.body)?c.usePopover=false:c.usePopover=e?.usePopover??f;let h=i.createElement("div"),d=i.createElement("div");h.id=o.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),d.appendChild(h),c.usePopover&&(d.setAttribute("popover","manual"),d.classList.add("cdk-overlay-popover"));let p=c.usePopover?c.positionStrategy?.getPopoverInsertionPoint?.():null;return Ot(p)?p.after(d):p?.type==="parent"?p.element.appendChild(d):t.getContainerElement().appendChild(d),new st$1(new tt$1(h,s,n),d,h,c,n.get(G$2),n.get(te$1),i,n.get(_m),n.get(ee$1),e?.disableAnimations??n.get(Zv,null,{optional:true})==="NoopAnimations",n.get(fe$4),a)}var re$1=(()=>{class n{scrollStrategies=g$3(Qt);_positionBuilder=g$3(se);_injector=g$3(pe$4);create(t){return Pt$1(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Ce$4({token:n,factory:n.\u0275fac})}return n})(),ue$1=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],pe$1=new w("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$3(pe$4);return ()=>kt(n)}}),Rt=(()=>{class n{elementRef=g$3(Kt$2);static \u0275fac=function(i){return new(i||n)};static \u0275dir=js({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return n})(),ae$1=new w("cdk-connected-overlay-default-config"),_e=(()=>{class n{_dir=g$3(Qn$1,{optional:true});_injector=g$3(pe$4);_overlayRef;_templatePortal;_backdropSubscription=X$4.EMPTY;_attachSubscription=X$4.EMPTY;_detachSubscription=X$4.EMPTY;_positionSubscription=X$4.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=g$3(pe$1);_ngZone=g$3(G$2);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position);}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position);}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=false;disableClose=false;transformOriginSelector;hasBackdrop=false;lockPosition=false;flexibleDimensions=false;growAfterOpen=false;push=false;disposeOnNavigation=false;usePopover;matchWidth=false;set _config(t){typeof t!="string"&&this._assignConfig(t);}backdropClick=new yt$5;positionChange=new yt$5;attach=new yt$5;detach=new yt$5;overlayKeydown=new yt$5;overlayOutsideClick=new yt$5;constructor(){let t=g$3(dr$1),i=g$3(mr$1),o=g$3(ae$1,{optional:true}),s=g$3(Et$1,{optional:true});this.usePopover=s?.usePopover===false?null:"global",this._templatePortal=new Y(t,i),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o);}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose();}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this.attachOverlay():this.detachOverlay());}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ue$1);let t=this._overlayRef=Pt$1(this._injector,this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Ve$2(i)&&(i.preventDefault(),this.detachOverlay());}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let o=this._getOriginElement(),s=E(i);(!o||o!==s&&!o.contains(s))&&this.overlayOutsideClick.next(i);});}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),i=new X$1({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return (this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(t){let i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let t=xt$1(this._injector,this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof Rt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Rt?this.origin.elementRef.nativeElement:this.origin instanceof Kt$2?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let t=this._overlayRef;t.getConfig().hasBackdrop=this.hasBackdrop,t.updateSize({width:this._getWidth()}),t.hasAttached()||t.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=t.backdropClick().subscribe(i=>this.backdropClick.emit(i)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(sv(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe();})),this.open=true;}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=false;}_assignConfig(t){this.origin=t.origin??this.origin,this.positions=t.positions??this.positions,this.positionStrategy=t.positionStrategy??this.positionStrategy,this.offsetX=t.offsetX??this.offsetX,this.offsetY=t.offsetY??this.offsetY,this.width=t.width??this.width,this.height=t.height??this.height,this.minWidth=t.minWidth??this.minWidth,this.minHeight=t.minHeight??this.minHeight,this.backdropClass=t.backdropClass??this.backdropClass,this.panelClass=t.panelClass??this.panelClass,this.viewportMargin=t.viewportMargin??this.viewportMargin,this.scrollStrategy=t.scrollStrategy??this.scrollStrategy,this.disableClose=t.disableClose??this.disableClose,this.transformOriginSelector=t.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=t.hasBackdrop??this.hasBackdrop,this.lockPosition=t.lockPosition??this.lockPosition,this.flexibleDimensions=t.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=t.growAfterOpen??this.growAfterOpen,this.push=t.push??this.push,this.disposeOnNavigation=t.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=t.usePopover??this.usePopover,this.matchWidth=t.matchWidth??this.matchWidth;}static \u0275fac=function(i){return new(i||n)};static \u0275dir=js({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",JT],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",JT],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",JT],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",JT],push:[2,"cdkConnectedOverlayPush","push",JT],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",JT],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",JT],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[bu]})}return n})(),ge$1=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Eo$1({type:n});static \u0275inj=qn$3({providers:[re$1],imports:[wt$3,Yt,yt$2,yt$2]})}return n})();function vt$1(a,l){if(a&1){let t=gC();ws(0,"div",1)(1,"button",2),Rg("click",function(){wf(t);let n=EC();return Cf(n.action())}),QC(2),hl()();}if(a&2){let t=EC();nI(2),Dl(" ",t.data.action," ");}}var gt$1=["label"];function yt$1(a,l){}var At$1=Math.pow(2,31)-1,p=class{_overlayRef;instance;containerInstance;_afterDismissed=new ce$3;_afterOpened=new ce$3;_onAction=new ce$3;_durationTimeoutId;_dismissedByAction=false;constructor(l,t){this._overlayRef=t,this.containerInstance=l,l._onExit.subscribe(()=>this._finishDismiss());}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId);}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=true,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId);}closeWithAction(){this.dismissWithAction();}_dismissAfter(l){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(l,At$1));}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete());}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=false;}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},_t$1=new w("MatSnackBarData"),m=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},xt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=js({type:a,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return a})(),St$1=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=js({type:a,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return a})(),Bt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=js({type:a,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return a})(),pt$1=(()=>{class a{snackBarRef=g$3(p);data=g$3(_t$1);action(){this.snackBarRef.dismissWithAction();}get hasAction(){return !!this.data.action}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=Fw({type:a,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(e,n){e&1&&(ws(0,"div",0),QC(1),hl(),oC(2,vt$1,3,1,"div",1)),e&2&&(nI(),Dl(" ",n.data.message,`
1492
+ `),nI(),iC(n.hasAction?2:-1));},dependencies:[pr,xt,St$1,Bt],styles:[`.mat-mdc-simple-snack-bar {
1493
1493
  display: flex;
1494
1494
  }
1495
1495
  .mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label {
1496
1496
  max-height: 50vh;
1497
1497
  overflow: auto;
1498
1498
  }
1499
- `],encapsulation:2})}return a})(),R="_mat-snack-bar-enter",T$1="_mat-snack-bar-exit",Ct=(()=>{class a extends J$2{_ngZone=g$3(G$2);_elementRef=g$3(Kt$2);_changeDetectorRef=g$3(Tl);_platform=g$3(p$1);_animationsDisabled=K$1();snackBarConfig=g$3(m);_document=g$3(U$6);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=g$3(pe$3);_announceDelay=150;_announceTimeoutId;_destroyed=false;_portalOutlet;_onAnnounce=new ce$4;_onExit=new ce$4;_onEnter=new ce$4;_animationState="void";_live;_label;_role;_liveElementId=g$3(Ut$1).getId("mat-snack-bar-container-live-");constructor(){super();let t=this.snackBarConfig;t.politeness==="assertive"&&!t.announcementMessage?this._live="assertive":t.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"));}attachComponentPortal(t){this._assertNotAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),e}attachTemplatePortal(t){this._assertNotAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),e}attachDomPortal=t=>{this._assertNotAttached();let e=this._portalOutlet.attachDomPortal(t);return this._afterPortalAttached(),e};onAnimationEnd(t){t===T$1?this._completeExit():t===R&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete();}));}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?NE(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(R)));},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(R);},200)));}exit(){return this._destroyed?br$1(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?NE(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(T$1)));},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(T$1),200));}),this._onExit)}ngOnDestroy(){this._destroyed=true,this._clearFromModals(),this._completeExit();}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete();});}_afterPortalAttached(){let t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(s=>t.classList.add(s)):t.classList.add(e)),this._exposeToModals();let n=this._label.nativeElement,i="mdc-snackbar__label";n.classList.toggle(i,!n.querySelector(`.${i}`));}_exposeToModals(){let t=this._liveElementId,e=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<e.length;n++){let i=e[n],s=i.getAttribute("aria-owns");this._trackedModals.add(i),s?s.indexOf(t)===-1&&i.setAttribute("aria-owns",s+" "+t):i.setAttribute("aria-owns",t);}}_clearFromModals(){this._trackedModals.forEach(t=>{let e=t.getAttribute("aria-owns");if(e){let n=e.replace(this._liveElementId,"").trim();n.length>0?t.setAttribute("aria-owns",n):t.removeAttribute("aria-owns");}}),this._trackedModals.clear();}_assertNotAttached(){this._portalOutlet.hasAttached();}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let t=this._elementRef.nativeElement,e=t.querySelector("[aria-hidden]"),n=t.querySelector("[aria-live]");if(e&&n){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(i=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),i?.focus(),this._onAnnounce.next(),this._onAnnounce.complete();}},this._announceDelay);});}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=Rw({type:a,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(e&1&&Fg(pi$1,7)(gt$1,7),e&2){let i;wC(i=CC())&&(n._portalOutlet=i.first),wC(i=CC())&&(n._label=i.first);}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(e,n){e&1&&Ag("animationend",function(s){return n.onAnimationEnd(s.animationName)})("animationcancel",function(s){return n.onAnimationEnd(s.animationName)}),e&2&&Hg("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled);},features:[yg],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){e&1&&(Is(0,"div",1)(1,"div",2,0)(3,"div",3),Dg(4,yt$1,0,0,"ng-template",4),pl(),bg(5,"div"),pl()()),e&2&&(JE(5),Cg("aria-live",n._live)("role",n._role)("id",n._liveElementId));},dependencies:[pi$1],styles:[`@keyframes _mat-snack-bar-enter {
1499
+ `],encapsulation:2})}return a})(),R="_mat-snack-bar-enter",T$1="_mat-snack-bar-exit",Ct=(()=>{class a extends J$2{_ngZone=g$3(G$2);_elementRef=g$3(Kt$2);_changeDetectorRef=g$3(bl);_platform=g$3(p$1);_animationsDisabled=K$1();snackBarConfig=g$3(m);_document=g$3(U$6);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=g$3(pe$4);_announceDelay=150;_announceTimeoutId;_destroyed=false;_portalOutlet;_onAnnounce=new ce$3;_onExit=new ce$3;_onEnter=new ce$3;_animationState="void";_live;_label;_role;_liveElementId=g$3(Ut$1).getId("mat-snack-bar-container-live-");constructor(){super();let t=this.snackBarConfig;t.politeness==="assertive"&&!t.announcementMessage?this._live="assertive":t.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"));}attachComponentPortal(t){this._assertNotAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),e}attachTemplatePortal(t){this._assertNotAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),e}attachDomPortal=t=>{this._assertNotAttached();let e=this._portalOutlet.attachDomPortal(t);return this._afterPortalAttached(),e};onAnimationEnd(t){t===T$1?this._completeExit():t===R&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete();}));}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?RE(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(R)));},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(R);},200)));}exit(){return this._destroyed?br$1(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?RE(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(T$1)));},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(T$1),200));}),this._onExit)}ngOnDestroy(){this._destroyed=true,this._clearFromModals(),this._completeExit();}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete();});}_afterPortalAttached(){let t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(s=>t.classList.add(s)):t.classList.add(e)),this._exposeToModals();let n=this._label.nativeElement,i="mdc-snackbar__label";n.classList.toggle(i,!n.querySelector(`.${i}`));}_exposeToModals(){let t=this._liveElementId,e=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<e.length;n++){let i=e[n],s=i.getAttribute("aria-owns");this._trackedModals.add(i),s?s.indexOf(t)===-1&&i.setAttribute("aria-owns",s+" "+t):i.setAttribute("aria-owns",t);}}_clearFromModals(){this._trackedModals.forEach(t=>{let e=t.getAttribute("aria-owns");if(e){let n=e.replace(this._liveElementId,"").trim();n.length>0?t.setAttribute("aria-owns",n):t.removeAttribute("aria-owns");}}),this._trackedModals.clear();}_assertNotAttached(){this._portalOutlet.hasAttached();}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let t=this._elementRef.nativeElement,e=t.querySelector("[aria-hidden]"),n=t.querySelector("[aria-live]");if(e&&n){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(i=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),i?.focus(),this._onAnnounce.next(),this._onAnnounce.complete();}},this._announceDelay);});}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=Fw({type:a,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(e&1&&Pg(pi$1,7)(gt$1,7),e&2){let i;bC(i=SC())&&(n._portalOutlet=i.first),bC(i=SC())&&(n._label=i.first);}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(e,n){e&1&&Rg("animationend",function(s){return n.onAnimationEnd(s.animationName)})("animationcancel",function(s){return n.onAnimationEnd(s.animationName)}),e&2&&Ug("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled);},features:[vg],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){e&1&&(ws(0,"div",1)(1,"div",2,0)(3,"div",3),Eg(4,yt$1,0,0,"ng-template",4),hl(),Sg(5,"div"),hl()()),e&2&&(nI(5),Tg("aria-live",n._live)("role",n._role)("id",n._liveElementId));},dependencies:[pi$1],styles:[`@keyframes _mat-snack-bar-enter {
1500
1500
  from {
1501
1501
  transform: scale(0.8);
1502
1502
  opacity: 0;
@@ -1612,14 +1612,14 @@ var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication
1612
1612
  .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element {
1613
1613
  opacity: 0.1;
1614
1614
  }
1615
- `],encapsulation:2,changeDetection:1})}return a})(),wt$1=new w("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new m}),Mt=(()=>{class a{_live=g$3(On$1);_injector=g$3(pe$3);_breakpointObserver=g$3(Ot$1);_parentSnackBar=g$3(a,{optional:true,skipSelf:true});_defaultConfig=g$3(wt$1);_animationsDisabled=K$1();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=pt$1;snackBarContainerComponent=Ct;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t;}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){let i=P$2(P$2({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(t,e){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=pe$3.create({parent:n||this._injector,providers:[{provide:m,useValue:e}]}),s=new wt$2(this.snackBarContainerComponent,e.viewContainerRef,i),o=t.attach(s);return o.instance.snackBarConfig=e,o.instance}_attach(t,e){let n=P$2(P$2(P$2({},new m),this._defaultConfig),e),i=this._createOverlay(n),s=this._attachSnackBarContainer(i,n),o=new p(s,i);if(t instanceof dr$1){let h=new Y(t,null,{$implicit:n.data,snackBarRef:o});o.instance=s.attachTemplatePortal(h);}else {let h=this._createInjector(n,o),bt=new wt$2(t,void 0,h),kt=s.attachComponentPortal(bt);o.instance=kt.instance;}return this._breakpointObserver.observe(po.HandsetPortrait).pipe(Vy(i.detachments())).subscribe(h=>{i.overlayElement.classList.toggle(this.handsetCssClass,h.matches);}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness);}),this._animateSnackBar(o,n),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear();}),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter();}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter();}_createOverlay(t){let e=new X$1;e.direction=t.direction;let n=oe$1(this._injector),i=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!i||t.horizontalPosition==="end"&&i,o=!s&&t.horizontalPosition!=="center";return s?n.left("0"):o?n.right("0"):n.centerHorizontally(),t.verticalPosition==="top"?n.top("0"):n.bottom("0"),e.positionStrategy=n,e.disableAnimations=this._animationsDisabled,Pt$1(this._injector,e)}_createInjector(t,e){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector;return pe$3.create({parent:n||this._injector,providers:[{provide:p,useValue:e},{provide:_t$1,useValue:t.data}]})}static \u0275fac=function(e){return new(e||a)};static \u0275prov=Ce$4({token:a,factory:a.\u0275fac})}return a})();var Xt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275mod=Eo$1({type:a});static \u0275inj=qn$3({providers:[Mt],imports:[ge$1,Yt,hr,pt$1,wt$3]})}return a})();function Be$1(i,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 K=(()=>{class i extends J$2{_elementRef=g$3(Kt$2);_focusTrapFactory=g$3(kn$1);_config;_interactivityChecker=g$3(Ue$2);_ngZone=g$3(G$2);_focusMonitor=g$3(St$3);_renderer=g$3(ks);_changeDetectorRef=g$3(Tl);_injector=g$3(pe$3);_platform=g$3(p$1);_document=g$3(U$6);_portalOutlet;_focusTrapped=new ce$4;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g$3(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 n=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",n),l=this._renderer.listen(e,"mousedown",n);})),e.focus(t);}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t);}_trapFocus(e){this._isDestroyed||NE(()=>{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 n=pn$1(),o=this._elementRef.nativeElement;(!n||n===this._document.body||n===o||o.contains(n))&&(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=pn$1();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=pn$1()));}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=Rw({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&Fg(pi$1,7),t&2){let o;wC(o=CC())&&(n._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&Cg("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[yg],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&Dg(0,Be$1,0,0,"ng-template",0);},dependencies:[pi$1],styles:[`.cdk-dialog-container {
1615
+ `],encapsulation:2,changeDetection:1})}return a})(),wt$1=new w("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new m}),Mt=(()=>{class a{_live=g$3(On$1);_injector=g$3(pe$4);_breakpointObserver=g$3(Ot$1);_parentSnackBar=g$3(a,{optional:true,skipSelf:true});_defaultConfig=g$3(wt$1);_animationsDisabled=K$1();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=pt$1;snackBarContainerComponent=Ct;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t;}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){let i=P$2(P$2({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(t,e){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=pe$4.create({parent:n||this._injector,providers:[{provide:m,useValue:e}]}),s=new wt$2(this.snackBarContainerComponent,e.viewContainerRef,i),o=t.attach(s);return o.instance.snackBarConfig=e,o.instance}_attach(t,e){let n=P$2(P$2(P$2({},new m),this._defaultConfig),e),i=this._createOverlay(n),s=this._attachSnackBarContainer(i,n),o=new p(s,i);if(t instanceof dr$1){let h=new Y(t,null,{$implicit:n.data,snackBarRef:o});o.instance=s.attachTemplatePortal(h);}else {let h=this._createInjector(n,o),bt=new wt$2(t,void 0,h),kt=s.attachComponentPortal(bt);o.instance=kt.instance;}return this._breakpointObserver.observe(po.HandsetPortrait).pipe(Hy(i.detachments())).subscribe(h=>{i.overlayElement.classList.toggle(this.handsetCssClass,h.matches);}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness);}),this._animateSnackBar(o,n),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear();}),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter();}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter();}_createOverlay(t){let e=new X$1;e.direction=t.direction;let n=oe$1(this._injector),i=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!i||t.horizontalPosition==="end"&&i,o=!s&&t.horizontalPosition!=="center";return s?n.left("0"):o?n.right("0"):n.centerHorizontally(),t.verticalPosition==="top"?n.top("0"):n.bottom("0"),e.positionStrategy=n,e.disableAnimations=this._animationsDisabled,Pt$1(this._injector,e)}_createInjector(t,e){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector;return pe$4.create({parent:n||this._injector,providers:[{provide:p,useValue:e},{provide:_t$1,useValue:t.data}]})}static \u0275fac=function(e){return new(e||a)};static \u0275prov=Ce$4({token:a,factory:a.\u0275fac})}return a})();var Xt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275mod=Eo$1({type:a});static \u0275inj=qn$3({providers:[Mt],imports:[ge$1,Yt,hr,pt$1,wt$3]})}return a})();function Be$1(i,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 K=(()=>{class i extends J$2{_elementRef=g$3(Kt$2);_focusTrapFactory=g$3(kn$1);_config;_interactivityChecker=g$3(Ue$2);_ngZone=g$3(G$2);_focusMonitor=g$3(St$3);_renderer=g$3(Fs);_changeDetectorRef=g$3(bl);_injector=g$3(pe$4);_platform=g$3(p$1);_document=g$3(U$6);_portalOutlet;_focusTrapped=new ce$3;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g$3(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 n=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",n),l=this._renderer.listen(e,"mousedown",n);})),e.focus(t);}_focusByCssSelector(e,t){let n=this._elementRef.nativeElement.querySelector(e);n&&this._forceFocus(n,t);}_trapFocus(e){this._isDestroyed||RE(()=>{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 n=pn$1(),o=this._elementRef.nativeElement;(!n||n===this._document.body||n===o||o.contains(n))&&(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=pn$1();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=pn$1()));}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=Fw({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,n){if(t&1&&Pg(pi$1,7),t&2){let o;bC(o=SC())&&(n._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,n){t&2&&Tg("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[vg],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){t&1&&Eg(0,Be$1,0,0,"ng-template",0);},dependencies:[pi$1],styles:[`.cdk-dialog-container {
1616
1616
  display: block;
1617
1617
  width: 100%;
1618
1618
  height: 100%;
1619
1619
  min-height: inherit;
1620
1620
  max-height: inherit;
1621
1621
  }
1622
- `],encapsulation:2,changeDetection:1})}return i})(),C=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new ce$4;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&&!Ve$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))}},je$1=new w("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=g$3(pe$3);return ()=>Kt(i)}}),Ne$1=new w("DialogData"),Ve$1=new w("DefaultDialogConfig");function ze$1(i){let a=zi$2(i),e=new yt$5;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var X=(()=>{class i{_injector=g$3(pe$3);_defaultOptions=g$3(Ve$1,{optional:true});_parentDialog=g$3(i,{optional:true,skipSelf:true});_overlayContainer=g$3(ne);_idGenerator=g$3(Ut$1);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ce$4;_afterOpenedAtThisLevel=new ce$4;_ariaHiddenElements=new Map;_scrollStrategy=g$3(je$1);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Zy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Sd(void 0)));open(e,t){let n=this._defaultOptions||new g;t=P$2(P$2({},n),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=Pt$1(this._injector,o),r=new C(l,t),d=this._attachContainer(l,r,t);if(r.containerInstance=d,!this.openDialogs.length){let H=this._overlayContainer.getContainerElement();d._focusTrapped?d._focusTrapped.pipe(an$2(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(H);}):this._hideNonDialogContentFromAssistiveTechnology(H);}return this._attachDialogContent(e,r,d,t),this.openDialogs.push(r),r.closed.subscribe(()=>this._removeOpenDialog(r,true)),this.afterOpened.next(r),r}closeAll(){$(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){$(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),$(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new X$1({positionStrategy:e.positionStrategy||oe$1().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,n){let o=n.injector||n.viewContainerRef?.injector,l=[{provide:g,useValue:n},{provide:C,useValue:t},{provide:st$1,useValue:e}],r;n.container?typeof n.container=="function"?r=n.container:(r=n.container.type,l.push(...n.container.providers(n))):r=K;let d=new wt$2(r,n.viewContainerRef,pe$3.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,n,o){if(e instanceof dr$1){let l=this._createInjector(o,t,n,void 0),r={$implicit:o.data,dialogRef:t};o.templateContext&&(r=P$2(P$2({},r),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),n.attachTemplatePortal(new Y(e,null,r,l));}else {let l=this._createInjector(o,t,n,this._injector),r=n.attachComponentPortal(new wt$2(e,o.viewContainerRef,l,null,o.bindings));t.componentRef=r,t.componentInstance=r.instance;}}_createInjector(e,t,n,o){let l=e.injector||e.viewContainerRef?.injector,r=[{provide:Ne$1,useValue:e.data},{provide:C,useValue:t}];return e.providers&&(typeof e.providers=="function"?r.push(...e.providers(t,e,n)):r.push(...e.providers)),e.direction&&(!l||!l.get(Qn$1,null,{optional:true}))&&r.push({provide:Qn$1,useValue:ze$1(e.direction)}),pe$3.create({parent:l||o,providers:r})}_removeOpenDialog(e,t){let n=this.openDialogs.indexOf(e);n>-1&&(this.openDialogs.splice(n,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 n=t.length-1;n>-1;n--){let o=t[n];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||i)};static \u0275prov=Ce$4({token:i,factory:i.\u0275fac})}return i})();function $(i,a){let e=i.length;for(;e--;)a(i[e]);}var Se=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Eo$1({type:i});static \u0275inj=qn$3({providers:[X],imports:[ge$1,Yt,Nn$1,Yt]})}return i})();function He(i,a){}var V$1=class V{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},J$1="mdc-dialog--open",Ie$1="mdc-dialog--opening",Ee="mdc-dialog--closing",Ge$1=150,We=75,Qe$1=(()=>{class i extends K{_animationStateChanged=new yt$5;_animationsEnabled=!K$1();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Le$1(this._config.enterAnimationDuration)??Ge$1:0;_exitAnimationDuration=this._animationsEnabled?Le$1(this._config.exitAnimationDuration)??We:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Fe$1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ie$1,J$1)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(J$1),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(J$1),this._animationsEnabled?(this._hostElement.style.setProperty(Fe$1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ee)),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(Ie$1,Ee);}_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(n){return (e||(e=Gp(i)))(n||i)}})();static \u0275cmp=Rw({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,n){t&2&&(Ng("id",n._config.id),Cg("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Hg("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0));},features:[yg],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,n){t&1&&(Is(0,"div",0)(1,"div",1),Dg(2,He,0,0,"ng-template",2),pl()());},dependencies:[pi$1],styles:[`.mat-mdc-dialog-container {
1622
+ `],encapsulation:2,changeDetection:1})}return i})(),C=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new ce$3;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&&!Ve$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))}},je$1=new w("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=g$3(pe$4);return ()=>Kt(i)}}),Ne$1=new w("DialogData"),Ve$1=new w("DefaultDialogConfig");function ze$1(i){let a=Gi$2(i),e=new yt$5;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var X=(()=>{class i{_injector=g$3(pe$4);_defaultOptions=g$3(Ve$1,{optional:true});_parentDialog=g$3(i,{optional:true,skipSelf:true});_overlayContainer=g$3(ne);_idGenerator=g$3(Ut$1);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ce$3;_afterOpenedAtThisLevel=new ce$3;_ariaHiddenElements=new Map;_scrollStrategy=g$3(je$1);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Yy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Sd(void 0)));open(e,t){let n=this._defaultOptions||new g;t=P$2(P$2({},n),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=Pt$1(this._injector,o),r=new C(l,t),d=this._attachContainer(l,r,t);if(r.containerInstance=d,!this.openDialogs.length){let H=this._overlayContainer.getContainerElement();d._focusTrapped?d._focusTrapped.pipe(an$2(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(H);}):this._hideNonDialogContentFromAssistiveTechnology(H);}return this._attachDialogContent(e,r,d,t),this.openDialogs.push(r),r.closed.subscribe(()=>this._removeOpenDialog(r,true)),this.afterOpened.next(r),r}closeAll(){$(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){$(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),$(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new X$1({positionStrategy:e.positionStrategy||oe$1().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,n){let o=n.injector||n.viewContainerRef?.injector,l=[{provide:g,useValue:n},{provide:C,useValue:t},{provide:st$1,useValue:e}],r;n.container?typeof n.container=="function"?r=n.container:(r=n.container.type,l.push(...n.container.providers(n))):r=K;let d=new wt$2(r,n.viewContainerRef,pe$4.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,n,o){if(e instanceof dr$1){let l=this._createInjector(o,t,n,void 0),r={$implicit:o.data,dialogRef:t};o.templateContext&&(r=P$2(P$2({},r),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),n.attachTemplatePortal(new Y(e,null,r,l));}else {let l=this._createInjector(o,t,n,this._injector),r=n.attachComponentPortal(new wt$2(e,o.viewContainerRef,l,null,o.bindings));t.componentRef=r,t.componentInstance=r.instance;}}_createInjector(e,t,n,o){let l=e.injector||e.viewContainerRef?.injector,r=[{provide:Ne$1,useValue:e.data},{provide:C,useValue:t}];return e.providers&&(typeof e.providers=="function"?r.push(...e.providers(t,e,n)):r.push(...e.providers)),e.direction&&(!l||!l.get(Qn$1,null,{optional:true}))&&r.push({provide:Qn$1,useValue:ze$1(e.direction)}),pe$4.create({parent:l||o,providers:r})}_removeOpenDialog(e,t){let n=this.openDialogs.indexOf(e);n>-1&&(this.openDialogs.splice(n,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 n=t.length-1;n>-1;n--){let o=t[n];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||i)};static \u0275prov=Ce$4({token:i,factory:i.\u0275fac})}return i})();function $(i,a){let e=i.length;for(;e--;)a(i[e]);}var Se=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Eo$1({type:i});static \u0275inj=qn$3({providers:[X],imports:[ge$1,Yt,Nn$1,Yt]})}return i})();function He(i,a){}var V$1=class V{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},J$1="mdc-dialog--open",Ie$1="mdc-dialog--opening",Ee="mdc-dialog--closing",Ge$1=150,We=75,Qe$1=(()=>{class i extends K{_animationStateChanged=new yt$5;_animationsEnabled=!K$1();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Le$1(this._config.enterAnimationDuration)??Ge$1:0;_exitAnimationDuration=this._animationsEnabled?Le$1(this._config.exitAnimationDuration)??We:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Fe$1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ie$1,J$1)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(J$1),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(J$1),this._animationsEnabled?(this._hostElement.style.setProperty(Fe$1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ee)),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(Ie$1,Ee);}_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(n){return (e||(e=Wp(i)))(n||i)}})();static \u0275cmp=Fw({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,n){t&2&&(xg("id",n._config.id),Tg("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Ug("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0));},features:[vg],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,n){t&1&&(ws(0,"div",0)(1,"div",1),Eg(2,He,0,0,"ng-template",2),hl()());},dependencies:[pi$1],styles:[`.mat-mdc-dialog-container {
1623
1623
  width: 100%;
1624
1624
  height: 100%;
1625
1625
  display: block;
@@ -1808,4 +1808,4 @@ var m$1="coday_oauth_callback",d=class r{route=g$3(V$3);message="Authentication
1808
1808
  .mat-mdc-dialog-component-host {
1809
1809
  display: contents;
1810
1810
  }
1811
- `],encapsulation:2,changeDetection:1})}return i})(),Fe$1="--mat-dialog-transition-duration";function Le$1(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?fn$1(i.substring(0,i.length-2)):i.endsWith("s")?fn$1(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var N=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(N||{}),z=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Nr(1);_beforeClosed=new Nr(1);_result;_closeFallbackTimeout;_state=N.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(n=>n.state==="opened"),an$2(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Ot$3(n=>n.state==="closed"),an$2(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Yy(this.backdropClick(),this.keydownEvents().pipe(Ot$3(n=>n.keyCode===27&&!this.disableClose&&!Ve$2(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),qe$1(this,n.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"),an$2(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=N.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=N.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function qe$1(i,a,e){return i._closeInteractionType=a,i.close(e)}var Ue$1=new w("MatMdcDialogData"),Ye=new w("mat-mdc-dialog-default-options"),Ze$1=new w("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=g$3(pe$3);return ()=>Kt(i)}}),Re$1=(()=>{class i{_defaultOptions=g$3(Ye,{optional:true});_scrollStrategy=g$3(Ze$1);_parentDialog=g$3(i,{optional:true,skipSelf:true});_idGenerator=g$3(Ut$1);_injector=g$3(pe$3);_dialog=g$3(X);_animationsDisabled=K$1();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ce$4;_afterOpenedAtThisLevel=new ce$4;dialogConfigClass=V$1;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Zy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Sd(void 0)));constructor(){this._dialogRefConstructor=z,this._dialogContainerType=Qe$1,this._dialogDataToken=Ue$1;}open(e,t){let n;t=P$2(P$2({},this._defaultOptions||new V$1),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,z$4(P$2({},t),{positionStrategy:oe$1(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleString()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g,useValue:t}]},templateContext:()=>({dialogRef:n}),providers:(l,r,d)=>(n=new this._dialogRefConstructor(l,t,d),n.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:r.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=o.componentRef,n.componentInstance=o.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),n}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||i)};static \u0275prov=Ce$4({token:i,factory:i.\u0275fac})}return i})();var Pe$1=(()=>{class i{_dialogRef=g$3(z,{optional:true});_elementRef=g$3(Kt$2);_dialog=g$3(Re$1);ngOnInit(){this._dialogRef||(this._dialogRef=$e$1(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd();});}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove();});}static \u0275fac=function(t){return new(t||i)};static \u0275dir=Ls({type:i})}return i})(),jt=(()=>{class i extends Pe$1{id=g$3(Ut$1).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Gp(i)))(n||i)}})();static \u0275dir=Ls({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(t,n){t&2&&Ng("id",n.id);},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[yg]})}return i})(),Nt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=Ls({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Bw([he$1])]})}return i})(),Vt=(()=>{class i extends Pe$1{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1);}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Gp(i)))(n||i)}})();static \u0275dir=Ls({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(t,n){t&2&&Hg("mat-mdc-dialog-actions-align-start",n.align==="start")("mat-mdc-dialog-actions-align-center",n.align==="center")("mat-mdc-dialog-actions-align-end",n.align==="end");},inputs:{align:"align"},features:[yg]})}return i})();function $e$1(i,a){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}var zt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Eo$1({type:i});static \u0275inj=qn$3({providers:[Re$1],imports:[Se,ge$1,Yt,wt$3]})}return i})();function U$1(n){n||(n=g$3(we$1));let e=new A$1(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(Vy(e))}function T(n,e){let t=g$3(pe$3),o=new Nr(1),c=Hf(()=>{let r;try{r=n();}catch(i){On$3(()=>o.error(i));return}On$3(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(we$1).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F(n,e){let o=!e?.manualCleanup?e?.injector?.get(we$1)??g$3(we$1):null,c=h(e?.equal),r;e?.requireSync?r=zi$2({kind:0},{equal:c}):r=zi$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$4(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),yT(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$4(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}function ui(s){return new m$4(3e3,false)}function mn(){return new m$4(3100,false)}function fn(){return new m$4(3101,false)}function pn(s){return new m$4(3001,false)}function gn(s){return new m$4(3003,false)}function yn(s){return new m$4(3004,false)}function di(s,e){return new m$4(3005,false)}function mi(){return new m$4(3006,false)}function fi(){return new m$4(3007,false)}function pi(s,e){return new m$4(3008,false)}function gi(s){return new m$4(3002,false)}function yi(s,e,t,i,n){return new m$4(3010,false)}function _i(){return new m$4(3011,false)}function Si(){return new m$4(3012,false)}function Ei(){return new m$4(3200,false)}function vi(){return new m$4(3202,false)}function Ti(){return new m$4(3013,false)}function Ai(s){return new m$4(3014,false)}function wi(s){return new m$4(3015,false)}function bi(s){return new m$4(3016,false)}function Pi(s,e){return new m$4(3404,false)}function _n(s){return new m$4(3502,false)}function Ni(s){return new m$4(3503,false)}function Ci(){return new m$4(3300,false)}function Mi(s){return new m$4(3504,false)}function Di(s){return new m$4(3301,false)}function Ri(s,e){return new m$4(3302,false)}function ki(s){return new m$4(3303,false)}function Oi(s,e){return new m$4(3400,false)}function Ii(s){return new m$4(3401,false)}function Fi(s){return new m$4(3402,false)}function Li(s,e){return new m$4(3505,false)}function V(s){switch(s.length){case 0:return new l;case 1:return s[0];default:return new u$1(s)}}function tt(s,e,t=new Map,i=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==o,u=h&&a||new Map;l.forEach((_,y)=>{let m=y,g=_;if(y!=="offset")switch(m=s.normalizePropertyName(m,n),g){case g$2:g=t.get(y);break;case _$2:g=i.get(y);break;default:g=s.normalizeStyleValue(y,m,g,n);break}u.set(m,g);}),h||r.push(u),a=u,o=c;}),n.length)throw _n();return r}function Pe(s,e,t,i){switch(e){case "start":s.onStart(()=>i(t&&Ze(t,"start",s)));break;case "done":s.onDone(()=>i(t&&Ze(t,"done",s)));break;case "destroy":s.onDestroy(()=>i(t&&Ze(t,"destroy",s)));break}}function Ze(s,e,t){let i=t.totalTime,n=!!t.disabled,r=Ne(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,i??s.totalTime,n),o=s._data;return o!=null&&(r._data=o),r}function Ne(s,e,t,i,n="",r=0,o){return {element:s,triggerName:e,fromState:t,toState:i,phaseName:n,totalTime:r,disabled:!!o}}function k(s,e,t){let i=s.get(e);return i||s.set(e,i=t),i}function it(s){let e=s.indexOf(":"),t=s.substring(1,e),i=s.slice(e+1);return [t,i]}var Sn=typeof document>"u"?null:document.documentElement;function Ce(s){let e=s.parentNode||s.host||null;return e===Sn?null:e}function En(s){return s.substring(1,6)=="ebkit"}var Z=null,hi=false;function zi(s){Z||(Z=vn()||{},hi=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!En(s)&&(e=s in Z.style,!e&&hi&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Z.style)),e}function vn(){return typeof document<"u"?document.body:null}function nt(s,e){for(;e;){if(e===s)return true;e=Ce(e);}return false}function st(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let i=s.querySelector(e);return i?[i]:[]}var Tn=1e3,rt="{{",An="}}",ot="ng-enter",Me="ng-leave",ue="ng-trigger",he=".ng-trigger",at="ng-animating",De=".ng-animating";function U(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:Je(parseFloat(e[1]),e[2])}function Je(s,e){return e==="s"?s*Tn:s}function de(s,e,t){return s.hasOwnProperty("duration")?s:bn(s,e,t)}var wn=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function bn(s,e,t){let i,n=0,r="";if(typeof s=="string"){let o=s.match(wn);if(o===null)return e.push(ui()),{duration:0,delay:0,easing:""};i=Je(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(n=Je(parseFloat(a),o[4]));let l=o[5];l&&(r=l);}else i=s;if(!t){let o=false,a=e.length;i<0&&(e.push(mn()),o=true),n<0&&(e.push(fn()),o=true),o&&e.splice(a,0,ui());}return {duration:i,delay:n,easing:r}}function Ki(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function j(s,e,t){e.forEach((i,n)=>{let r=Re(n);t&&!t.has(n)&&t.set(n,s.style[r]),s.style[r]=i;});}function W(s,e){e.forEach((t,i)=>{let n=Re(i);s.style[n]="";});}function re(s){return Array.isArray(s)?s.length==1?s[0]:y$1(s):s}function ji(s,e,t){let i=e.params||{},n=lt(s);n.length&&n.forEach(r=>{i.hasOwnProperty(r)||t.push(pn());});}var et=new RegExp(`${rt}\\s*(.+?)\\s*${An}`,"g");function lt(s){let e=[];if(typeof s=="string"){let t;for(;t=et.exec(s);)e.push(t[1]);et.lastIndex=0;}return e}function oe(s,e,t){let i=`${s}`,n=i.replace(et,(r,o)=>{let a=e[o];return a==null&&(t.push(gn()),a=""),a.toString()});return n==i?s:n}var Pn=/-+([a-z0-9])/g;function Re(s){return s.replace(Pn,(...e)=>e[1].toUpperCase())}function Bi(s,e){return s===0||e===0}function qi(s,e,t){if(t.size&&e.length){let i=e[0],n=[];if(t.forEach((r,o)=>{i.has(o)||n.push(o),i.set(o,r);}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,ke(s,a)));}}return e}function O(s,e,t){switch(e.type){case r.Trigger:return s.visitTrigger(e,t);case r.State:return s.visitState(e,t);case r.Transition:return s.visitTransition(e,t);case r.Sequence:return s.visitSequence(e,t);case r.Group:return s.visitGroup(e,t);case r.Animate:return s.visitAnimate(e,t);case r.Keyframes:return s.visitKeyframes(e,t);case r.Style:return s.visitStyle(e,t);case r.Reference:return s.visitReference(e,t);case r.AnimateChild:return s.visitAnimateChild(e,t);case r.AnimateRef:return s.visitAnimateRef(e,t);case r.Query:return s.visitQuery(e,t);case r.Stagger:return s.visitStagger(e,t);default:throw yn(e.type)}}function ke(s,e){return window.getComputedStyle(s)[e]}var bt=(()=>{class s{validateStyleProperty(t){return zi(t)}containsElement(t,i){return nt(t,i)}getParentElement(t){return Ce(t)}query(t,i,n){return st(t,i,n)}computeStyle(t,i,n){return n||""}animate(t,i,n,r,o,a=[],l$1){return new l(n,r)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=x({token:s,factory:s.\u0275fac})}return s})(),ee=class{static NOOP=new bt},te=class{};var Nn=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"]),ze=class extends te{normalizePropertyName(e,t){return Re(e)}normalizeStyleValue(e,t,i,n){let r="",o=i.toString().trim();if(Nn.has(t)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else {let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(di());}return o+r}};var Ke="*";function Cn(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(i=>Mn(i,t,e)):t.push(s),t}function Mn(s,e,t){if(s[0]==":"){let l=Dn(s,t);if(typeof l=="function"){e.push(l);return}s=l;}let i=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(wi()),e;let n=i[1],r=i[2],o=i[3];e.push(Qi(n,o));let a=n==Ke&&o==Ke;r[0]=="<"&&!a&&e.push(Qi(o,n));}function Dn(s,e){switch(s){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,i)=>parseFloat(i)>parseFloat(t);case ":decrement":return (t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(bi()),"* => *"}}var Oe=new Set(["true","1"]),Ie=new Set(["false","0"]);function Qi(s,e){let t=Oe.has(s)||Ie.has(s),i=Oe.has(e)||Ie.has(e);return (n,r)=>{let o=s==Ke||s==n,a=e==Ke||e==r;return !o&&t&&typeof n=="boolean"&&(o=n?Oe.has(s):Ie.has(s)),!a&&i&&typeof r=="boolean"&&(a=r?Oe.has(e):Ie.has(e)),o&&a}}var Ji=":self",Rn=new RegExp(`s*${Ji}s*,?`,"g");function en(s,e,t,i){return new ft(s).build(e,t,i)}var Ui="",ft=class{_driver;constructor(e){this._driver=e;}build(e,t,i){let n=new pt(t);return this._resetContextStyleTimingState(n),O(this,re(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ui,e.collectedStyles=new Map,e.collectedStyles.set(Ui,new Map),e.currentTime=0;}visitTrigger(e,t){let i=t.queryCount=0,n=t.depCount=0,r$1=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(mi()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==r.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r$1.push(this.visitState(l,t));}),l.name=c;}else if(a.type==r.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,n+=l.depCount,o.push(l);}else t.errors.push(fi());}),{type:r.Trigger,name:e.name,states:r$1,transitions:o,queryCount:i,depCount:n,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(i.containsDynamicStyles){let r=new Set,o=n||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{lt(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c);});});}),r.size&&t.errors.push(pi(e.name,[...r.values()]));}return {type:r.State,name:e.name,style:i,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=O(this,re(e.animation),t),n=Cn(e.expr,t.errors);return {type:r.Transition,matchers:n,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:r.Sequence,steps:e.steps.map(i=>O(this,i,t)),options:J(e.options)}}visitGroup(e,t){let i=t.currentTime,n=0,r$1=e.steps.map(o=>{t.currentTime=i;let a=O(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:r.Group,steps:r$1,options:J(e.options)}}visitAnimate(e,t){let i=Fn(e.timings,t.errors);t.currentAnimateTimings=i;let n,r$1=e.styles?e.styles:F$4({});if(r$1.type==r.Keyframes)n=this.visitKeyframes(r$1,t);else {let o=e.styles,a=false;if(!o){a=true;let c={};i.easing&&(c.easing=i.easing),o=F$4(c);}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l;}return t.currentAnimateTimings=null,{type:r.Animate,timings:i,style:n,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===_$2?i.push(a):t.errors.push(gi()):i.push(new Map(Object.entries(a)));let r$1=false,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r$1)){for(let l of a.values())if(l.toString().indexOf(rt)>=0){r$1=true;break}}}),{type:r.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:r$1,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=true;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(yi(l,h.startTime,h.endTime)),u=false),r=h.startTime),u&&c.set(l,{startTime:r,endTime:n}),t.options&&ji(a,t.options,t.errors);});});}visitKeyframes(e,t){let i={type:r.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(_i()),i;let n=1,r$1=0,o=[],a=false,l=false,c=0,h=e.steps.map(w=>{let b=this._makeStyleAst(w,t),M=b.offset!=null?b.offset:In(b.styles),N=0;return M!=null&&(r$1++,N=b.offset=M),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),b});l&&t.errors.push(Si()),a&&t.errors.push(Ei());let u=e.steps.length,_=0;r$1>0&&r$1<u?t.errors.push(vi()):r$1==0&&(_=n/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((w,b)=>{let M=_>0?b==y?1:_*b:o[b],N=M*T;t.currentTime=m+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=M,i.styles.push(w);}),i}visitReference(e,t){return {type:r.Reference,animation:O(this,re(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:r.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:r.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r$1,o]=kn(e.selector);t.currentQuerySelector=i.length?i+" "+r$1:r$1,k(t.collectedStyles,t.currentQuerySelector,new Map);let a=O(this,re(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:r.Query,selector:r$1,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ti());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:de(e.timings,t.errors,true);return {type:r.Stagger,animation:O(this,re(e.animation),t),timings:i,options:null}}};function kn(s){let e=!!s.split(/\s*,\s*/).find(t=>t==Ji);return e&&(s=s.replace(Rn,"")),s=s.replace(/@\*/g,he).replace(/@\w+/g,t=>he+"-"+t.slice(1)).replace(/:animating/g,De),[s,e]}function On(s){return s?P$2({},s):null}var pt=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 In(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 i=t;e=parseFloat(i.get("offset")),i.delete("offset");}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Fn(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=de(s,e).duration;return ct(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ct(0,0,"");return r.dynamic=true,r.strValue=t,r}let n=de(t,e);return ct(n.duration,n.delay,n.easing)}function J(s){return s?(s=P$2({},s),s.params&&(s.params=On(s.params))):s={},s}function ct(s,e,t){return {duration:s,delay:e,easing:t}}function Pt(s,e,t,i,n,r,o=null,a=false){return {type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:i,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var fe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},Ln=1,zn=":enter",Kn=new RegExp(zn,"g"),jn=":leave",Bn=new RegExp(jn,"g");function tn(s,e,t,i,n,r=new Map,o=new Map,a,l,c=[]){return new gt().buildKeyframes(s,e,t,i,n,r,o,a,l,c)}var gt=class{buildKeyframes(e,t,i,n,r,o,a,l,c,h=[]){c=c||new fe;let u=new yt(e,t,c,n,r,h,[]);u.options=l;let _=l.delay?U(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([o],null,u.errors,l),O(this,i,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&a.size){let m;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){m=T;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,l);}return y.length?y.map(m=>m.buildKeyframes()):[Pt(t,[],[],[],0,_,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&t.transformIntoNewTimeline(o);}t.previousNode=e;}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,i){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:U(oe(r,n?.params??{},t.errors));i.delayNextStep(o);}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime,o=i.duration!=null?U(i.duration):null,a=i.delay!=null?U(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);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 i=t.subContextCount,n=t,r$1=e.options;if(r$1&&(r$1.params||r$1.delay)&&(n=t.createSubContext(r$1),n.transformIntoNewTimeline(),r$1.delay!=null)){n.previousNode.type==r.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=je);let o=U(r$1.delay);n.delayNextStep(o);}e.steps.length&&(e.steps.forEach(o=>O(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let i=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?U(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),O(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline);}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,n=t.params?oe(i,t.params,t.errors):i;return de(n,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());let r$1=e.style;r$1.type==r.Keyframes?this.visitKeyframes(r$1,t):(t.incrementTime(i.duration),this.visitStyle(r$1,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let i=t.currentAnimateTimings,n=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e;}visitQuery(e,t){let i=t.currentTimeline.currentTime,n=e.options||{},r$1=n.delay?U(n.delay):0;r$1&&(t.previousNode.type===r.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=je);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);r$1&&u.delayNextStep(r$1),c===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;o=Math.max(o,_);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let i=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=a-l;break;case "full":l=i.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;O(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime);}},je={},yt=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=je;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new Be(this._driver,t,0),a.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,n=this.options;i.duration!=null&&(n.duration=U(i.duration)),i.delay!=null&&(n.delay=U(i.delay));let r=i.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=oe(r[a],o,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(n=>{i[n]=t[n];});}}return e}createSubContext(e=null,t,i){let n=t||this.element,r=new s(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||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=je,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new _t(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,i,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Kn,"."+this._enterClassName),e=e.replace(Bn,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c);}return !r&&a.length==0&&o.push(Ai()),a}},Be=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,i,n){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=n,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+=Ln,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,i]of this._globalTimelineStyles)this._backFill.set(t,i||_$2),this._currentKeyframe.set(t,_$2);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,i,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=qn(e,this._globalTimelineStyles);for(let[a,l]of o){let c=oe(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??_$2),this._updateStyle(a,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,i)=>{let n=this._styleSummary.get(i);(!n||t.time>n.time)&&this._updateStyle(i,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===g$2?e.add(u):h===_$2&&t.add(u);}),i||c.set("offset",l/this.duration),n.push(c);});let r=[...e.values()],o=[...t.values()];if(i){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l];}return Pt(this.element,n,r,o,this.duration,this.startTime,this.easing,false)}},_t=class extends Be{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,n,r,o,a=false){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",Vi(a)),r.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let _=new Map(e[u]),y=_.get("offset"),m=t+y*i;_.set("offset",Vi(m/o)),r.push(_);}i=o,t=0,n="",e=r;}return Pt(this.element,e,this.preStyleProps,this.postStyleProps,i,t,n,true)}};function Vi(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function qn(s,e){let t=new Map,i;return s.forEach(n=>{if(n==="*"){i??=e.keys();for(let r of i)t.set(r,_$2);}else for(let[r,o]of n)t.set(r,o);}),t}function $i(s,e,t,i,n,r,o,a,l,c,h,u,_){return {type:0,element:s,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:_}}var ut={},qe=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i;}match(e,t,i,n){return Qn(this.ast.matchers,e,t,i,n)}buildStyles(e,t,i){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,i):new Map}build(e,t,i,n,r,o,a,l,c,h){let u=[],_=this.ast.options&&this.ast.options.params||ut,y=a&&a.params||ut,m=this.buildStyles(i,y,u),g=l&&l.params||ut,T=this.buildStyles(n,g,u),w=new Set,b=new Map,M=new Map,N=n==="void",ne={params:nn(g,_),delay:this.ast.options?.delay},q=h?[]:tn(e,t,this.ast.animation,r,o,m,T,ne,c,u),D=0;return q.forEach(R=>{D=Math.max(R.duration+R.delay,D);}),u.length?$i(t,this._triggerName,i,n,N,m,T,[],[],b,M,D,u):(q.forEach(R=>{let H=R.element,se=k(b,H,new Set);R.preStyleProps.forEach(Y=>se.add(Y));let Nt=k(M,H,new Set);R.postStyleProps.forEach(Y=>Nt.add(Y)),H!==t&&w.add(H);}),$i(t,this._triggerName,i,n,N,m,T,q,[...w.values()],b,M,D))}};function Qn(s,e,t,i,n){return s.some(r=>r(e,t,i,n))}function nn(s,e){let t=P$2({},e);return Object.entries(s).forEach(([i,n])=>{n!=null&&(t[i]=n);}),t}var St=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i;}buildStyles(e,t){let i=new Map,n=nn(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=oe(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o);});}),i}};function Un(s,e,t){return new Et(s,e,t)}var Et=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new St(n.style,r,i));}),Gi(this.states,"true","1"),Gi(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new qe(e,n,this.states));}),this.fallbackTransition=Vn(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,n){return this.transitionFactories.find(o=>o.match(e,t,i,n))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Vn(s,e,t){let i=[(o,a)=>true],n={type:r.Sequence,steps:[],options:null},r$1={type:r.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0};return new qe(s,r$1,e)}function Gi(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 $n=new fe,vt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i;}register(e,t){let i=[],n=[],r=en(this._driver,t,i,n);if(i.length)throw Ni();this._animations.set(e,r);}_buildPlayer(e,t,i){let n=e.element,r=tt(this._normalizer,e.keyframes,t,i);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],true)}create(e,t,i={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=tn(this._driver,t,r,ot,Me,new Map,new Map,i,$n,n),o.forEach(h=>{let u=k(a,h.element,new Map);h.postStyleProps.forEach(_=>u.set(_,null));})):(n.push(Ci()),o=[]),n.length)throw Mi();a.forEach((h,u)=>{h.forEach((_,y)=>{h.set(y,this._driver.computeStyle(u,y,_$2));});});let l=o.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),c=V(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 i=this.players.indexOf(t);i>=0&&this.players.splice(i,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Di();return t}listen(e,t,i,n){let r=Ne(t,"","","");return Pe(this._getPlayer(e),i,r,n),()=>{}}command(e,t,i,n){if(i=="register"){this.register(e,n[0]);return}if(i=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(i){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(n[0]));break;case "destroy":this.destroy(e);break}}},Wi="ng-animate-queued",Gn=".ng-animate-queued",ht="ng-animate-disabled",Wn=".ng-animate-disabled",Hn="ng-star-inserted",Yn=".ng-star-inserted",Xn=[],sn={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},xn={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},B="__ng_removed",pe=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),n=i?e.value:e;if(this.value=Jn(n),i){let r=e,{value:o}=r,a=ed(r,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(n=>{i[n]==null&&(i[n]=t[n]);});}}},me="void",dt=new pe(me),Tt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+e,L(t,this._hostClassName);}listen(e,t,i,n){if(!this._triggers.has(t))throw Ri();if(i==null||i.length==0)throw ki();if(!es(i))throw Oi();let r=k(this._elementListeners,e,[]),o={name:t,phase:i,callback:n};r.push(o);let a=k(this._engine.statesByElement,e,new Map);return a.has(t)||(L(e,ue),L(e,ue+"-"+t),a.set(t,dt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.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 Ii();return t}trigger(e,t,i,n=true){let r=this._getTrigger(t),o=new ge(this.id,t,e),a=this._engine.statesByElement.get(e);a||(L(e,ue),L(e,ue+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new pe(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=dt),!(c.value===me)&&l.value===c.value){if(!ns(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{W(e,T),j(e,w);});}return}let _=k(this._engine.playersByElement,e,[]);_.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(!n)return;y=r.fallbackTransition,m=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(L(e,Wi),o.onStart(()=>{ae(e,Wi);})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(o);w>=0&&T.splice(w,1);}}),this.players.push(o),_.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(n=>n.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,he,true);i.forEach(n=>{if(n[B])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,false,true)):this.clearElementCache(n);}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)));}triggerLeaveAnimation(e,t,i,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,me,n);h&&a.push(h);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,true,t,o),i&&V(a).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||dt,h=new pe(me),u=new ge(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:true});});}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let n=false;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)n=true;else {let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){n=true;break}}}if(this.prepareLeaveAnimationListeners(e),n)i.markElementAsRemoved(this.id,e,false,t);else {let r=e[B];(!r||r===sn)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t));}}insertNode(e,t){L(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Ne(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Pe(i.player,a.phase,l,a.callback);}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy();}):t.push(i);}),this._queue=[],t.sort((i,n)=>{let r=i.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},At=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,i){this.bodyNode=e,this.driver=t,this._normalizer=i;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i);});}),e}createNamespace(e,t){let i=new Tt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let o=false,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=true;break}a=this.driver.getParentElement(a);}o||i.unshift(e);}else i.push(e);return n.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let n of i.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r);}}return t}trigger(e,t,i,n){if(Fe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,i,n),true}return false}insertNode(e,t,i,n){if(!Fe(t))return;let r=t[B];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1);}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i);}n&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),L(e,ht)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ae(e,ht));}removeNode(e,t,i){if(Fe(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,i):this.markElementAsRemoved(e,t,false,i);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,i);}else this._onRemovalComplete(t,i);}markElementAsRemoved(e,t,i,n,r){this.collectedLeaveElements.push(t),t[B]={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,i,n,r){return Fe(t)?this._fetchNamespace(e).listen(t,i,n,r):()=>{}}_buildInstruction(e,t,i,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,he,true);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,De,true),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=true:i.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return V(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[B];if(t&&t.setForRemoval){if(e[B]=sn,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(ht)&&this.markElementAsDisabled(e,false),this.driver.query(e,Wn,true).forEach(i=>{this.markElementAsDisabled(i,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let n=this.collectedEnterElements[i];L(n,Hn);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e);}finally{for(let n=0;n<i.length;n++)i[n]();}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let n=this.collectedLeaveElements[i];this.processLeaveNode(n);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?V(t).onDone(()=>{i.forEach(n=>n());}):i.forEach(n=>n());}}reportError(e){throw Fi()}_flushAnimations(e,t){let i=new fe,n=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let f=this.driver.query(d,Gn,true);for(let p=0;p<f.length;p++)h.add(f[p]);});let u=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=Xi(_,this.collectedEnterElements),m=new Map,g=0;y.forEach((d,f)=>{let p=ot+g++;m.set(f,p),d.forEach(E=>L(E,p));});let T=[],w=new Set,b=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let f=this.collectedLeaveElements[d],p=f[B];p&&p.setForRemoval&&(T.push(f),w.add(f),p.hasAnimation?this.driver.query(f,Yn,true).forEach(E=>w.add(E)):b.add(f));}let M=new Map,N=Xi(_,Array.from(w));N.forEach((d,f)=>{let p=Me+g++;M.set(f,p),d.forEach(E=>L(E,p));}),e.push(()=>{y.forEach((d,f)=>{let p=m.get(f);d.forEach(E=>ae(E,p));}),N.forEach((d,f)=>{let p=M.get(f);d.forEach(E=>ae(E,p));}),T.forEach(d=>{this.processLeaveNode(d);});});let ne=[],q=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(ne.push(E),this.collectedEnterElements.length){let C=P[B];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let X=C.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let ye=F.get(p.triggerName);ye.value=X,F.set(p.triggerName,ye);}}E.destroy();return}}let Q=!u||!this.driver.containsElement(u,P),I=M.get(P),$=m.get(P),A=this._buildInstruction(p,i,$,I,Q);if(A.errors&&A.errors.length){q.push(A);return}if(Q){E.onStart(()=>W(P,A.fromStyles)),E.onDestroy(()=>j(P,A.toStyles)),n.push(E);return}if(p.isFallbackTransition){E.onStart(()=>W(P,A.fromStyles)),E.onDestroy(()=>j(P,A.toStyles)),n.push(E);return}let Dt=[];A.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||Dt.push(C);}),A.timelines=Dt,i.append(P,A.timelines);let dn={instruction:A,player:E,element:P};o.push(dn),A.queriedElements.forEach(C=>k(a,C,[]).push(E)),A.preStyleProps.forEach((C,X)=>{if(C.size){let F=l.get(X);F||l.set(X,F=new Set),C.forEach((ye,He)=>F.add(He));}}),A.postStyleProps.forEach((C,X)=>{let F=c.get(X);F||c.set(X,F=new Set),C.forEach((ye,He)=>F.add(He));});});if(q.length){let d=[];q.forEach(f=>{d.push(Li(f.triggerName,f.errors));}),ne.forEach(f=>f.destroy()),this.reportError(d);}let D=new Map,R=new Map;o.forEach(d=>{let f=d.element;i.has(f)&&(R.set(f,f),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D));}),n.forEach(d=>{let f=d.element;this._getPreviousPlayers(f,false,d.namespaceId,d.triggerName,null).forEach(E=>{k(D,f,[]).push(E),E.destroy();});});let H=T.filter(d=>xi(d,l,c)),se=new Map;Yi(se,this.driver,b,c,_$2).forEach(d=>{xi(d,l,c)&&H.push(d);});let Y=new Map;y.forEach((d,f)=>{Yi(Y,this.driver,new Set(d),l,g$2);}),H.forEach(d=>{let f=se.get(d),p=Y.get(d);se.set(d,new Map([...f?.entries()??[],...p?.entries()??[]]));});let We=[],Ct=[],Mt={};o.forEach(d=>{let{element:f,player:p,instruction:E}=d;if(i.has(f)){if(h.has(f)){p.onDestroy(()=>j(f,E.toStyles)),p.disabled=true,p.overrideTotalTime(E.totalTime),n.push(p);return}let P=Mt;if(R.size>1){let I=f,$=[];for(;I=I.parentNode;){let A=R.get(I);if(A){P=A;break}$.push(I);}$.forEach(A=>R.set(A,P));}let Q=this._buildAnimation(p.namespaceId,E,D,r,Y,se);if(p.setRealPlayer(Q),P===Mt)We.push(p);else {let I=this.playersByElement.get(P);I&&I.length&&(p.parentPlayer=V(I)),n.push(p);}}else W(f,E.fromStyles),p.onDestroy(()=>j(f,E.toStyles)),Ct.push(p),h.has(f)&&n.push(p);}),Ct.forEach(d=>{let f=r.get(d.element);if(f&&f.length){let p=V(f);d.setRealPlayer(p);}}),n.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<T.length;d++){let f=T[d],p=f[B];if(ae(f,Me),p&&p.hasAnimation)continue;let E=[];if(a.size){let Q=a.get(f);Q&&Q.length&&E.push(...Q);let I=this.driver.query(f,De,true);for(let $=0;$<I.length;$++){let A=a.get(I[$]);A&&A.length&&E.push(...A);}}let P=E.filter(Q=>!Q.destroyed);P.length?ts(this,f,P):this.processLeaveNode(f);}return T.length=0,We.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let f=this.players.indexOf(d);this.players.splice(f,1);}),d.play();}),We}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,i,n,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a);}else {let a=this.playersByElement.get(e);if(a){let l=!r||r==me;a.forEach(c=>{c.queued||!l&&c.triggerName!=n||o.push(c);});}}return (i||n)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let c=l.element,h=c!==r,u=k(i,c,[]);this._getPreviousPlayers(c,h,o,a,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y);});}W(r,t.fromStyles);}_buildAnimation(e,t,i,n,r,o){let a=t.triggerName,l$1=t.element,c=[],h=new Set,u=new Set,_=t.timelines.map(m=>{let g=m.element;h.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new l(m.duration,m.delay);let w=g!==l$1,b=is((i.get(g)||Xn).map(D=>D.getRealPlayer())).filter(D=>{let R=D;return R.element?R.element===g:false}),M=r.get(g),N=o.get(g),ne=tt(this._normalizer,m.keyframes,M,N),q=this._buildPlayer(m,ne,b);if(m.subTimeline&&n&&u.add(g),w){let D=new ge(e,a,g);D.setRealPlayer(q),c.push(D);}return q});c.forEach(m=>{k(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Zn(this.playersByQueriedElement,m.element,m));}),h.forEach(m=>L(m,at));let y=V(_);return y.onDestroy(()=>{h.forEach(m=>ae(m,at)),j(l$1,t.toStyles);}),u.forEach(m=>{k(n,m,[]).push(y);}),y}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new l(e.duration,e.delay)}},ge=class{namespaceId;triggerName;element;_player=new l;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(n=>Pe(e,i,void 0,n));}),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){k(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 Zn(s,e,t){let i=s.get(e);if(i){if(i.length){let n=i.indexOf(t);i.splice(n,1);}i.length==0&&s.delete(e);}return i}function Jn(s){return s??null}function Fe(s){return s&&s.nodeType===1}function es(s){return s=="start"||s=="done"}function Hi(s,e){let t=s.style.display;return s.style.display=e??"none",t}function Yi(s,e,t,i,n){let r=[];t.forEach(l=>r.push(Hi(l)));let o=[];i.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let _=e.computeStyle(c,u,n);h.set(u,_),(!_||_.length==0)&&(c[B]=xn,o.push(c));}),s.set(c,h);});let a=0;return t.forEach(l=>Hi(l,r[a++])),o}function Xi(s,e){let t=new Map;if(s.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,n=new Set(e),r=new Map;function o(a){if(!a)return i;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:n.has(c)?l=i:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a);}),t}function L(s,e){s.classList?.add(e);}function ae(s,e){s.classList?.remove(e);}function ts(s,e,t){V(t).onDone(()=>s.processLeaveNode(e));}function is(s){let e=[];return rn(s,e),e}function rn(s,e){for(let t=0;t<s.length;t++){let i=s[t];i instanceof u$1?rn(i.players,e):e.push(i);}}function ns(s,e){let t=Object.keys(s),i=Object.keys(e);if(t.length!=i.length)return false;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||s[r]!==e[r])return false}return true}function xi(s,e,t){let i=t.get(s);if(!i)return false;let n=e.get(s);return n?i.forEach(r=>n.add(r)):e.set(s,i),t.delete(s),true}var le=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new At(e.body,t,i),this._timelineEngine=new vt(e.body,t,i),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r);}registerTrigger(e,t,i,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],c=[],h=en(this._driver,r,l,c);if(l.length)throw Pi();a=Un(n,h,this._normalizer),this._triggerCache[o]=a;}this._transitionEngine.registerTrigger(t,n,a);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n);}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,i,n){if(i.charAt(0)=="@"){let[r,o]=it(i),a=n;this._timelineEngine.command(r,t,o,a);}else this._transitionEngine.trigger(e,t,i,n);}listen(e,t,i,n,r){if(i.charAt(0)=="@"){let[o,a]=it(i);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,i,n,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 ss(s,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=mt(e[0]),e.length>1&&(i=mt(e[e.length-1]))):e instanceof Map&&(t=mt(e)),t||i?new rs(s,t,i):null}var rs=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,n){this._element=t,this._startStyles=i,this._endStyles=n;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&j(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(j(this._element,this._initialStyles),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),j(this._element,this._initialStyles),this._state=3);}}return s})();function mt(s){let e=null;return s.forEach((t,i)=>{os(i)&&(e=e||new Map,e.set(i,t));}),e}function os(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,i,n){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=n,this._duration=i.duration,this._delay=i.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 i=()=>this._onFinish();return t.addEventListener("finish",i),this.onDestroy(()=>{t.removeEventListener("finish",i);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i));}),t}_triggerWebAnimation(e,t,i){let n=this._convertKeyframesToObject(t);try{return e.animate(n,i)}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((i,n)=>{n!=="offset"&&e.set(n,this._finished?i:ke(this.element,n));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0;}},Ue=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return nt(e,t)}getParentElement(e){return Ce(e)}query(e,t,i){return st(e,t,i)}computeStyle(e,t,i){return ke(e,t)}animate(e,t,i,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:i,delay:n,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(y=>y instanceof Qe);Bi(i,n)&&h.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m));});let u=Ki(t).map(y=>new Map(y));u=qi(e,u,c);let _=ss(e,u);return new Qe(e,u,l,_)}};var Le="@",on="@.disabled",Ve=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,n){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=n;}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,i,n=true){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,n);}removeChild(e,t,i,n){if(n){this.delegate.removeChild(e,t,i,n);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,i,n){this.delegate.setAttribute(e,t,i,n);}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,i,n){this.delegate.setStyle(e,t,i,n);}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i);}setProperty(e,t,i){t.charAt(0)==Le&&t==on?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,i,n){return this.delegate.listen(e,t,i,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},wt=class extends Ve{factory;constructor(e,t,i,n,r){super(t,i,n,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,i){t.charAt(0)==Le?t.charAt(1)=="."&&t==on?(i=i===void 0?true:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i);}listen(e,t,i,n){if(t.charAt(0)==Le){let r=as(e),o=t.slice(1),a="";return o.charAt(0)!=Le&&([o,a]=ls(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l);})}return this.delegate.listen(e,t,i,n)}};function as(s){switch(s){case "body":return document.body;case "document":return document;case "window":return window;default:return s}}function ls(s){let e=s.indexOf("."),t=s.substring(0,e),i=s.slice(e+1);return [t,i]}var $e=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n);};}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(n);if(!h){let u=()=>c.delete(n);h=new Ve("",n,this.engine,u),c.set(n,h);}return h}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c);};return t.data.animation.forEach(a),new wt(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a);}),this._animationCallbacksBuffer=[];});}),n.push([t,i]);}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 us=(()=>{class s extends le{constructor(t,i,n){super(t,i,n);}ngOnDestroy(){this.flush();}static \u0275fac=function(i){return new(i||s)(C$1(U$6),C$1(ee),C$1(te))};static \u0275prov=x({token:s,factory:s.\u0275fac})}return s})();function hs(){return new ze}function ds(){return new $e(g$3($l),g$3(le),g$3(G$2))}var an=[{provide:te,useFactory:hs},{provide:le,useClass:us},{provide:_n$3,useFactory:ds}],ms=[{provide:ee,useFactory:()=>new Ue},{provide:Gv,useFactory:()=>"BrowserAnimations"},...an];function ln(){return ut$3("NgEagerAnimations"),[...ms]}var ie=s=>dt$2(null,null,function*(){let e=g$3(P),t=s.params.projectName;return t?e.getSelectedProjectId()===t?true:(e.selectProject(t),(yield zy(e.selectedProject$.pipe(Ad(n=>n?.name===t))))?.name===t):(console.log("[PROJECT GUARD] no project id in route"),false)});var cn=s=>dt$2(null,null,function*(){let e=g$3(U$4),t=g$3(pe$2),i=s.params.threadId;if(!t.getUsername())try{yield $y(t.fetchCurrentUser());}catch(n){console.error("[THREAD GUARD] Failed to load current user:",n);}if(!i)return console.log("[THREAD GUARD] no threadId in route"),false;if(console.log("[THREAD GUARD] Checking thread:",i),console.log("[THREAD GUARD] Current selected thread:",e.getSelectedThreadId()),e.getSelectedThreadId()===i)return console.log("[THREAD GUARD] Thread already selected, allowing navigation"),true;console.log("[THREAD GUARD] Selecting thread:",i),e.selectThread(i);try{let n=yield $y(Ly([e.isLoading$,e.selectedThread$]).pipe(Od(([o,a])=>console.log(`\u{1F43C} [${o?"loading":"loaded"}]`,a?.id)),Ot$3(([o,a])=>!o&&!!a),an$2(1),ue$3(([o,a])=>a?.id))),r=n===i;return r?console.log("[THREAD GUARD] Thread validated, allowing navigation"):console.error("[THREAD GUARD] Thread ID mismatch - route:",i,"loaded:",n),r}catch(n){return console.error("[THREAD GUARD] Error loading thread:",n),false}});var un=[{path:"",loadComponent:()=>import('./chunk-BfD1F12k.js').then(s=>s.GlobalTaskControlComponent)},{path:"projects",loadComponent:()=>import('./chunk-K-fhwl_z.js').then(s=>s.ProjectListComponent)},{path:"oauth/callback",loadComponent:()=>Promise.resolve().then(function(){return chunkDLAS6GII}).then(s=>s.OAuthCallbackComponent)},{path:"project/new",loadComponent:()=>import('./chunk-Dj9y_5pr.js').then(s=>s.ProjectNewComponent)},{path:"project/:projectName",loadComponent:()=>import('./chunk-DYUMiAN8.js').then(s=>s.MainAppComponent),canActivate:[ie]},{path:"project/:projectName/prompts",loadComponent:()=>import('./chunk-ZvcyZV3G.js').then(s=>s.PromptListComponent),canActivate:[ie]},{path:"project/:projectName/schedulers",loadComponent:()=>import('./chunk-Dg6QAZUw.js').then(s=>s.SchedulerListComponent),canActivate:[ie]},{path:"project/:projectName/agents",loadComponent:()=>import('./chunk-DvzNS1Bs.js').then(s=>s.AgentListComponent),canActivate:[ie]},{path:"project/:projectName/tasks",loadComponent:()=>import('./chunk-RxHlNJ_t.js').then(s=>s.TaskControlComponent),canActivate:[ie]},{path:"project/:projectName/missions",redirectTo:"project/:projectName/tasks"},{path:"project/:projectName/thread/:threadId",loadComponent:()=>import('./chunk-DYUMiAN8.js').then(s=>s.MainAppComponent),canActivate:[ie,cn]},{path:"token-usage",loadComponent:()=>import('./chunk-BlWlE-Cq.js').then(s=>s.TokenUsageComponent)},{path:"agentos",loadChildren:()=>dt$2(null,null,function*(){let{AGENTOS_ROUTES:s,THEME_PORT:e}=yield import('./chunk-uPxETzZs.js').then(function(n){return n.c});return [{path:"",providers:[{provide:e,useFactory:t=>({theme:F(t.currentTheme$,{initialValue:t.getCurrentTheme()}),setTheme:i=>t.setTheme(i)}),deps:[me$1]}],children:s}]})},{path:"**",redirectTo:""}];function fs(s){return ()=>s.initializeDefaultProject()}function ps(s){return ()=>{console.log("[APP_INIT] OAuthService initialized");}}function gs(s){return ()=>dt$2(null,null,function*(){let{UserStateService:e}=yield import('./chunk-uPxETzZs.js').then(function(n){return n.c}),t=s.get(e);yield zy(t.loadMe().pipe(ya(i=>(console.warn("Failed to load current user",i),br$1(null)))));})}var hn={providers:[$v(),xB({eventCoalescing:true}),Xo(un),TS(),ln(),{provide:wt$1,useValue:{duration:3e3}},{provide:cl,useFactory:fs,deps:[P],multi:true},{provide:cl,useFactory:ps,deps:[O$1],multi:true},{provide:cl,useFactory:gs,deps:[pe$3],multi:true},vi$3({basePath:"/api/agentos"}),{provide:Ye,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};var Ge=class s{title="client";themeService=g$3(me$1);ngOnInit(){console.log("[APP] Application initialized with theme:",this.themeService.getCurrentTheme());}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=Rw({type:s,selectors:[["app-root"]],decls:1,vars:0,template:function(t,i){t&1&&bg(0,"router-outlet");},dependencies:[ea,mr],encapsulation:2,changeDetection:1})};Jb(Ge,hn).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));});var chunkDLAS6GII=/*#__PURE__*/Object.freeze({__proto__:null,OAUTH_CALLBACK_STORAGE_KEY:m$1,OAuthCallbackComponent:d});export{zt as $,Ag as A,fE as B,Cg as C,Fg as D,wC as E,F,G,Hg as H,Is as I,JE as J,CC as K,L$1 as L,dy as M,N$1 as N,Ot$1 as O,P,c as Q,Re$1 as R,By as S,Tg as T,U$4 as U,V$4 as V,Wy as W,br$1 as X,x as Y,z as Z,Ue$1 as _,z$4 as a,JC as a$,jt as a0,Vt as a1,Nt as a2,UI as a3,oC as a4,vl as a5,zI as a6,ya as a7,Zg as a8,fC as a9,an$2 as aA,fr as aB,Tu as aC,Ly as aD,W$2 as aE,A$1 as aF,fe$3 as aG,z$2 as aH,bS as aI,Tr as aJ,xb as aK,Eo$1 as aL,qn$3 as aM,Nn$1 as aN,wt$3 as aO,G$2 as aP,$a as aQ,ks as aR,K$1 as aS,Ut$1 as aT,Ue$2 as aU,U$6 as aV,w as aW,D as aX,ft$1 as aY,Ls as aZ,QT as a_,If as aa,wf as ab,yC as ac,Vg as ad,Ot$3 as ae,Dg as af,pT as ag,oT as ah,Jg as ai,XC as aj,Xg as ak,yt$5 as al,Gm as am,ce$4 as an,V$3 as ao,Vy as ap,a as aq,S$1 as ar,F$4 as as,c$1 as at,nv as au,dt$2 as av,hl as aw,gl as ax,O$1 as ay,Kt$2 as az,P$2 as b,PC as b$,Yg as b0,Rn$3 as b1,kb as b2,Sb as b3,iT as b4,rT as b5,Sg as b6,u as b7,B$3 as b8,T$2 as b9,DC as bA,EC as bB,Ti$2 as bC,ge$1 as bD,vt$2 as bE,X$4 as bF,p$1 as bG,Pt$2 as bH,Eg as bI,dr$1 as bJ,fe$4 as bK,pe$3 as bL,mr$1 as bM,F$1 as bN,mt$1 as bO,Yy as bP,Zy as bQ,Sd as bR,va as bS,pn$1 as bT,Od as bU,Ky as bV,Y as bW,Pt$1 as bX,po as bY,X$1 as bZ,xt$1 as b_,v as ba,m$3 as bb,R$2 as bc,h$1 as bd,A as be,cT as bf,lT as bg,Hy as bh,dT as bi,cE as bj,yh as bk,Mt as bl,Sm as bm,Xt as bn,rC as bo,ml as bp,yl as bq,sn$1 as br,Tl as bs,Qn$1 as bt,Ve$2 as bu,kg as bv,St$3 as bw,on$1 as bx,am as by,Oi$1 as bz,U$1 as c,kn$1 as c$,Ng as c0,E as c1,NE as c2,kt as c3,On$1 as c4,Et$1 as c5,Rt as c6,_e as c7,KT as c8,kf as c9,_n$3 as cA,sn$2 as cB,R$1 as cC,Ce$4 as cD,Rd as cE,Pb as cF,fT as cG,Jw as cH,Nt$3 as cI,Rg as cJ,bB as cK,wd as cL,Nd as cM,On$3 as cN,cs as cO,Bt$1 as cP,q as cQ,X$2 as cR,Yt as cS,Gp as cT,pi$1 as cU,yg as cV,QI as cW,yr$1 as cX,tt$1 as cY,fn$1 as cZ,he$1 as c_,_e$1 as ca,TB as cb,CB as cc,Hf as cd,_b as ce,_$1 as cf,sT as cg,Mg as ch,me$1 as ci,Pn$1 as cj,Ff as ck,be$1 as cl,M as cm,F$3 as cn,H$3 as co,K$3 as cp,Se$1 as cq,SB as cr,MB as cs,vi$1 as ct,AB as cu,Lg as cv,TC as cw,Pg as cx,si as cy,Jr as cz,b as d,Ea as d0,lt$1 as d1,wt$2 as d2,I as d3,y$2 as d4,N$2 as d5,F$5 as d6,U$5 as d7,B$4 as d8,He$3 as d9,ie$2 as dA,Qg as dB,se$1 as dC,mr as dD,te$3 as dE,le$4 as dF,zy as dG,ye$1 as dH,Fb as dI,Ae$2 as dJ,Cd as dK,Y$1 as dL,_$3 as dM,Da as dN,ev as dO,li$1 as dP,_B as dQ,Ab as dR,ve$1 as dS,K$4 as dT,Kg as dU,ee$3 as dV,Ce$3 as da,xe$1 as db,ge$3 as dc,$$2 as dd,M$1 as de,z$3 as df,T as dg,J$4 as dh,ce$3 as di,ne$2 as dj,me$2 as dk,G$1 as dl,k$2 as dm,ge$4 as dn,_t$4 as dp,Do$1 as dq,Ke$2 as dr,jw as ds,m$4 as dt,Se$3 as du,ke$3 as dv,vn$1 as dw,di$2 as dx,Ca as dy,C$1 as dz,O$3 as e,f$1 as f,g$3 as g,Rw as h,hr as i,pr as j,Gn$1 as k,le$3 as l,pl as m,bg as n,iC as o,pe$2 as p,qC as q,bC as r,si$1 as s,tC as t,ue$3 as u,nC as v,we$1 as w,sC as x,yT as y,zi$2 as z};
1811
+ `],encapsulation:2,changeDetection:1})}return i})(),Fe$1="--mat-dialog-transition-duration";function Le$1(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?fn$1(i.substring(0,i.length-2)):i.endsWith("s")?fn$1(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var N=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(N||{}),z=class{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Nr(1);_beforeClosed=new Nr(1);_result;_closeFallbackTimeout;_state=N.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(n=>n.state==="opened"),an$2(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Ot$3(n=>n.state==="closed"),an$2(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Qy(this.backdropClick(),this.keydownEvents().pipe(Ot$3(n=>n.keyCode===27&&!this.disableClose&&!Ve$2(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),qe$1(this,n.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"),an$2(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=N.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=N.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function qe$1(i,a,e){return i._closeInteractionType=a,i.close(e)}var Ue$1=new w("MatMdcDialogData"),Ye=new w("mat-mdc-dialog-default-options"),Ze$1=new w("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=g$3(pe$4);return ()=>Kt(i)}}),Re$1=(()=>{class i{_defaultOptions=g$3(Ye,{optional:true});_scrollStrategy=g$3(Ze$1);_parentDialog=g$3(i,{optional:true,skipSelf:true});_idGenerator=g$3(Ut$1);_injector=g$3(pe$4);_dialog=g$3(X);_animationsDisabled=K$1();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ce$3;_afterOpenedAtThisLevel=new ce$3;dialogConfigClass=V$1;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Yy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Sd(void 0)));constructor(){this._dialogRefConstructor=z,this._dialogContainerType=Qe$1,this._dialogDataToken=Ue$1;}open(e,t){let n;t=P$2(P$2({},this._defaultOptions||new V$1),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,z$4(P$2({},t),{positionStrategy:oe$1(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleString()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g,useValue:t}]},templateContext:()=>({dialogRef:n}),providers:(l,r,d)=>(n=new this._dialogRefConstructor(l,t,d),n.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:r.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=o.componentRef,n.componentInstance=o.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),n}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||i)};static \u0275prov=Ce$4({token:i,factory:i.\u0275fac})}return i})();var Pe$1=(()=>{class i{_dialogRef=g$3(z,{optional:true});_elementRef=g$3(Kt$2);_dialog=g$3(Re$1);ngOnInit(){this._dialogRef||(this._dialogRef=$e$1(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd();});}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove();});}static \u0275fac=function(t){return new(t||i)};static \u0275dir=js({type:i})}return i})(),jt=(()=>{class i extends Pe$1{id=g$3(Ut$1).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Wp(i)))(n||i)}})();static \u0275dir=js({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(t,n){t&2&&xg("id",n.id);},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[vg]})}return i})(),Nt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=js({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Uw([he$1])]})}return i})(),Vt=(()=>{class i extends Pe$1{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1);}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1);}static \u0275fac=(()=>{let e;return function(n){return (e||(e=Wp(i)))(n||i)}})();static \u0275dir=js({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(t,n){t&2&&Ug("mat-mdc-dialog-actions-align-start",n.align==="start")("mat-mdc-dialog-actions-align-center",n.align==="center")("mat-mdc-dialog-actions-align-end",n.align==="end");},inputs:{align:"align"},features:[vg]})}return i})();function $e$1(i,a){let e=i.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}var zt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Eo$1({type:i});static \u0275inj=qn$3({providers:[Re$1],imports:[Se,ge$1,Yt,wt$3]})}return i})();function U$1(n){n||(n=g$3(we$1));let e=new A$1(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(Hy(e))}function T(n,e){let t=g$3(pe$4),o=new Nr(1),c=Uf(()=>{let r;try{r=n();}catch(i){On$3(()=>o.error(i));return}On$3(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(we$1).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F(n,e){let o=!e?.manualCleanup?e?.injector?.get(we$1)??g$3(we$1):null,c=h(e?.equal),r;e?.requireSync?r=Gi$2({kind:0},{equal:c}):r=Gi$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$4(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),ET(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$4(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}function ui(s){return new m$4(3e3,false)}function mn(){return new m$4(3100,false)}function fn(){return new m$4(3101,false)}function pn(s){return new m$4(3001,false)}function gn(s){return new m$4(3003,false)}function yn(s){return new m$4(3004,false)}function di(s,e){return new m$4(3005,false)}function mi(){return new m$4(3006,false)}function fi(){return new m$4(3007,false)}function pi(s,e){return new m$4(3008,false)}function gi(s){return new m$4(3002,false)}function yi(s,e,t,i,n){return new m$4(3010,false)}function _i(){return new m$4(3011,false)}function Si(){return new m$4(3012,false)}function Ei(){return new m$4(3200,false)}function vi(){return new m$4(3202,false)}function Ti(){return new m$4(3013,false)}function Ai(s){return new m$4(3014,false)}function wi(s){return new m$4(3015,false)}function bi(s){return new m$4(3016,false)}function Pi(s,e){return new m$4(3404,false)}function _n(s){return new m$4(3502,false)}function Ni(s){return new m$4(3503,false)}function Ci(){return new m$4(3300,false)}function Mi(s){return new m$4(3504,false)}function Di(s){return new m$4(3301,false)}function Ri(s,e){return new m$4(3302,false)}function ki(s){return new m$4(3303,false)}function Oi(s,e){return new m$4(3400,false)}function Ii(s){return new m$4(3401,false)}function Fi(s){return new m$4(3402,false)}function Li(s,e){return new m$4(3505,false)}function V(s){switch(s.length){case 0:return new l;case 1:return s[0];default:return new u$1(s)}}function tt(s,e,t=new Map,i=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==o,u=h&&a||new Map;l.forEach((_,y)=>{let m=y,g=_;if(y!=="offset")switch(m=s.normalizePropertyName(m,n),g){case g$2:g=t.get(y);break;case _$2:g=i.get(y);break;default:g=s.normalizeStyleValue(y,m,g,n);break}u.set(m,g);}),h||r.push(u),a=u,o=c;}),n.length)throw _n();return r}function Pe(s,e,t,i){switch(e){case "start":s.onStart(()=>i(t&&Ze(t,"start",s)));break;case "done":s.onDone(()=>i(t&&Ze(t,"done",s)));break;case "destroy":s.onDestroy(()=>i(t&&Ze(t,"destroy",s)));break}}function Ze(s,e,t){let i=t.totalTime,n=!!t.disabled,r=Ne(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,i??s.totalTime,n),o=s._data;return o!=null&&(r._data=o),r}function Ne(s,e,t,i,n="",r=0,o){return {element:s,triggerName:e,fromState:t,toState:i,phaseName:n,totalTime:r,disabled:!!o}}function k(s,e,t){let i=s.get(e);return i||s.set(e,i=t),i}function it(s){let e=s.indexOf(":"),t=s.substring(1,e),i=s.slice(e+1);return [t,i]}var Sn=typeof document>"u"?null:document.documentElement;function Ce(s){let e=s.parentNode||s.host||null;return e===Sn?null:e}function En(s){return s.substring(1,6)=="ebkit"}var Z=null,hi=false;function zi(s){Z||(Z=vn()||{},hi=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!En(s)&&(e=s in Z.style,!e&&hi&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Z.style)),e}function vn(){return typeof document<"u"?document.body:null}function nt(s,e){for(;e;){if(e===s)return true;e=Ce(e);}return false}function st(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let i=s.querySelector(e);return i?[i]:[]}var Tn=1e3,rt="{{",An="}}",ot="ng-enter",Me="ng-leave",ue="ng-trigger",he=".ng-trigger",at="ng-animating",De=".ng-animating";function U(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:Je(parseFloat(e[1]),e[2])}function Je(s,e){return e==="s"?s*Tn:s}function de(s,e,t){return s.hasOwnProperty("duration")?s:bn(s,e,t)}var wn=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function bn(s,e,t){let i,n=0,r="";if(typeof s=="string"){let o=s.match(wn);if(o===null)return e.push(ui()),{duration:0,delay:0,easing:""};i=Je(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(n=Je(parseFloat(a),o[4]));let l=o[5];l&&(r=l);}else i=s;if(!t){let o=false,a=e.length;i<0&&(e.push(mn()),o=true),n<0&&(e.push(fn()),o=true),o&&e.splice(a,0,ui());}return {duration:i,delay:n,easing:r}}function Ki(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function j(s,e,t){e.forEach((i,n)=>{let r=Re(n);t&&!t.has(n)&&t.set(n,s.style[r]),s.style[r]=i;});}function W(s,e){e.forEach((t,i)=>{let n=Re(i);s.style[n]="";});}function re(s){return Array.isArray(s)?s.length==1?s[0]:y$1(s):s}function ji(s,e,t){let i=e.params||{},n=lt(s);n.length&&n.forEach(r=>{i.hasOwnProperty(r)||t.push(pn());});}var et=new RegExp(`${rt}\\s*(.+?)\\s*${An}`,"g");function lt(s){let e=[];if(typeof s=="string"){let t;for(;t=et.exec(s);)e.push(t[1]);et.lastIndex=0;}return e}function oe(s,e,t){let i=`${s}`,n=i.replace(et,(r,o)=>{let a=e[o];return a==null&&(t.push(gn()),a=""),a.toString()});return n==i?s:n}var Pn=/-+([a-z0-9])/g;function Re(s){return s.replace(Pn,(...e)=>e[1].toUpperCase())}function Bi(s,e){return s===0||e===0}function qi(s,e,t){if(t.size&&e.length){let i=e[0],n=[];if(t.forEach((r,o)=>{i.has(o)||n.push(o),i.set(o,r);}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,ke(s,a)));}}return e}function O(s,e,t){switch(e.type){case r.Trigger:return s.visitTrigger(e,t);case r.State:return s.visitState(e,t);case r.Transition:return s.visitTransition(e,t);case r.Sequence:return s.visitSequence(e,t);case r.Group:return s.visitGroup(e,t);case r.Animate:return s.visitAnimate(e,t);case r.Keyframes:return s.visitKeyframes(e,t);case r.Style:return s.visitStyle(e,t);case r.Reference:return s.visitReference(e,t);case r.AnimateChild:return s.visitAnimateChild(e,t);case r.AnimateRef:return s.visitAnimateRef(e,t);case r.Query:return s.visitQuery(e,t);case r.Stagger:return s.visitStagger(e,t);default:throw yn(e.type)}}function ke(s,e){return window.getComputedStyle(s)[e]}var bt=(()=>{class s{validateStyleProperty(t){return zi(t)}containsElement(t,i){return nt(t,i)}getParentElement(t){return Ce(t)}query(t,i,n){return st(t,i,n)}computeStyle(t,i,n){return n||""}animate(t,i,n,r,o,a=[],l$1){return new l(n,r)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=x({token:s,factory:s.\u0275fac})}return s})(),ee=class{static NOOP=new bt},te=class{};var Nn=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"]),ze=class extends te{normalizePropertyName(e,t){return Re(e)}normalizeStyleValue(e,t,i,n){let r="",o=i.toString().trim();if(Nn.has(t)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else {let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(di());}return o+r}};var Ke="*";function Cn(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(i=>Mn(i,t,e)):t.push(s),t}function Mn(s,e,t){if(s[0]==":"){let l=Dn(s,t);if(typeof l=="function"){e.push(l);return}s=l;}let i=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(wi()),e;let n=i[1],r=i[2],o=i[3];e.push(Qi(n,o));let a=n==Ke&&o==Ke;r[0]=="<"&&!a&&e.push(Qi(o,n));}function Dn(s,e){switch(s){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,i)=>parseFloat(i)>parseFloat(t);case ":decrement":return (t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(bi()),"* => *"}}var Oe=new Set(["true","1"]),Ie=new Set(["false","0"]);function Qi(s,e){let t=Oe.has(s)||Ie.has(s),i=Oe.has(e)||Ie.has(e);return (n,r)=>{let o=s==Ke||s==n,a=e==Ke||e==r;return !o&&t&&typeof n=="boolean"&&(o=n?Oe.has(s):Ie.has(s)),!a&&i&&typeof r=="boolean"&&(a=r?Oe.has(e):Ie.has(e)),o&&a}}var Ji=":self",Rn=new RegExp(`s*${Ji}s*,?`,"g");function en(s,e,t,i){return new ft(s).build(e,t,i)}var Ui="",ft=class{_driver;constructor(e){this._driver=e;}build(e,t,i){let n=new pt(t);return this._resetContextStyleTimingState(n),O(this,re(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ui,e.collectedStyles=new Map,e.collectedStyles.set(Ui,new Map),e.currentTime=0;}visitTrigger(e,t){let i=t.queryCount=0,n=t.depCount=0,r$1=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(mi()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==r.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r$1.push(this.visitState(l,t));}),l.name=c;}else if(a.type==r.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,n+=l.depCount,o.push(l);}else t.errors.push(fi());}),{type:r.Trigger,name:e.name,states:r$1,transitions:o,queryCount:i,depCount:n,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(i.containsDynamicStyles){let r=new Set,o=n||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{lt(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c);});});}),r.size&&t.errors.push(pi(e.name,[...r.values()]));}return {type:r.State,name:e.name,style:i,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=O(this,re(e.animation),t),n=Cn(e.expr,t.errors);return {type:r.Transition,matchers:n,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:r.Sequence,steps:e.steps.map(i=>O(this,i,t)),options:J(e.options)}}visitGroup(e,t){let i=t.currentTime,n=0,r$1=e.steps.map(o=>{t.currentTime=i;let a=O(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:r.Group,steps:r$1,options:J(e.options)}}visitAnimate(e,t){let i=Fn(e.timings,t.errors);t.currentAnimateTimings=i;let n,r$1=e.styles?e.styles:F$4({});if(r$1.type==r.Keyframes)n=this.visitKeyframes(r$1,t);else {let o=e.styles,a=false;if(!o){a=true;let c={};i.easing&&(c.easing=i.easing),o=F$4(c);}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l;}return t.currentAnimateTimings=null,{type:r.Animate,timings:i,style:n,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===_$2?i.push(a):t.errors.push(gi()):i.push(new Map(Object.entries(a)));let r$1=false,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r$1)){for(let l of a.values())if(l.toString().indexOf(rt)>=0){r$1=true;break}}}),{type:r.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:r$1,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=true;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(yi(l,h.startTime,h.endTime)),u=false),r=h.startTime),u&&c.set(l,{startTime:r,endTime:n}),t.options&&ji(a,t.options,t.errors);});});}visitKeyframes(e,t){let i={type:r.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(_i()),i;let n=1,r$1=0,o=[],a=false,l=false,c=0,h=e.steps.map(w=>{let b=this._makeStyleAst(w,t),M=b.offset!=null?b.offset:In(b.styles),N=0;return M!=null&&(r$1++,N=b.offset=M),l=l||N<0||N>1,a=a||N<c,c=N,o.push(N),b});l&&t.errors.push(Si()),a&&t.errors.push(Ei());let u=e.steps.length,_=0;r$1>0&&r$1<u?t.errors.push(vi()):r$1==0&&(_=n/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((w,b)=>{let M=_>0?b==y?1:_*b:o[b],N=M*T;t.currentTime=m+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=M,i.styles.push(w);}),i}visitReference(e,t){return {type:r.Reference,animation:O(this,re(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:r.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:r.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r$1,o]=kn(e.selector);t.currentQuerySelector=i.length?i+" "+r$1:r$1,k(t.collectedStyles,t.currentQuerySelector,new Map);let a=O(this,re(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:r.Query,selector:r$1,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ti());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:de(e.timings,t.errors,true);return {type:r.Stagger,animation:O(this,re(e.animation),t),timings:i,options:null}}};function kn(s){let e=!!s.split(/\s*,\s*/).find(t=>t==Ji);return e&&(s=s.replace(Rn,"")),s=s.replace(/@\*/g,he).replace(/@\w+/g,t=>he+"-"+t.slice(1)).replace(/:animating/g,De),[s,e]}function On(s){return s?P$2({},s):null}var pt=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 In(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 i=t;e=parseFloat(i.get("offset")),i.delete("offset");}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Fn(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=de(s,e).duration;return ct(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ct(0,0,"");return r.dynamic=true,r.strValue=t,r}let n=de(t,e);return ct(n.duration,n.delay,n.easing)}function J(s){return s?(s=P$2({},s),s.params&&(s.params=On(s.params))):s={},s}function ct(s,e,t){return {duration:s,delay:e,easing:t}}function Pt(s,e,t,i,n,r,o=null,a=false){return {type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:i,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var fe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},Ln=1,zn=":enter",Kn=new RegExp(zn,"g"),jn=":leave",Bn=new RegExp(jn,"g");function tn(s,e,t,i,n,r=new Map,o=new Map,a,l,c=[]){return new gt().buildKeyframes(s,e,t,i,n,r,o,a,l,c)}var gt=class{buildKeyframes(e,t,i,n,r,o,a,l,c,h=[]){c=c||new fe;let u=new yt(e,t,c,n,r,h,[]);u.options=l;let _=l.delay?U(l.delay):0;u.currentTimeline.delayNextStep(_),u.currentTimeline.setStyles([o],null,u.errors,l),O(this,i,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&a.size){let m;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){m=T;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,u.errors,l);}return y.length?y.map(m=>m.buildKeyframes()):[Pt(t,[],[],[],0,_,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&t.transformIntoNewTimeline(o);}t.previousNode=e;}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,i){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:U(oe(r,n?.params??{},t.errors));i.delayNextStep(o);}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime,o=i.duration!=null?U(i.duration):null,a=i.delay!=null?U(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);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 i=t.subContextCount,n=t,r$1=e.options;if(r$1&&(r$1.params||r$1.delay)&&(n=t.createSubContext(r$1),n.transformIntoNewTimeline(),r$1.delay!=null)){n.previousNode.type==r.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=je);let o=U(r$1.delay);n.delayNextStep(o);}e.steps.length&&(e.steps.forEach(o=>O(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let i=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?U(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),O(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline);}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,n=t.params?oe(i,t.params,t.errors):i;return de(n,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());let r$1=e.style;r$1.type==r.Keyframes?this.visitKeyframes(r$1,t):(t.incrementTime(i.duration),this.visitStyle(r$1,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let i=t.currentAnimateTimings,n=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e;}visitQuery(e,t){let i=t.currentTimeline.currentTime,n=e.options||{},r$1=n.delay?U(n.delay):0;r$1&&(t.previousNode.type===r.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=je);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);r$1&&u.delayNextStep(r$1),c===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let _=u.currentTimeline.currentTime;o=Math.max(o,_);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let i=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=a-l;break;case "full":l=i.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;O(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime);}},je={},yt=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=je;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,i,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new Be(this._driver,t,0),a.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,n=this.options;i.duration!=null&&(n.duration=U(i.duration)),i.delay!=null&&(n.delay=U(i.delay));let r=i.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=oe(r[a],o,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(n=>{i[n]=t[n];});}}return e}createSubContext(e=null,t,i){let n=t||this.element,r=new s(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||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=je,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new _t(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,i,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Kn,"."+this._enterClassName),e=e.replace(Bn,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c);}return !r&&a.length==0&&o.push(Ai()),a}},Be=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,i,n){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=n,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+=Ln,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,i]of this._globalTimelineStyles)this._backFill.set(t,i||_$2),this._currentKeyframe.set(t,_$2);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,i,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=qn(e,this._globalTimelineStyles);for(let[a,l]of o){let c=oe(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??_$2),this._updateStyle(a,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,i)=>{let n=this._styleSummary.get(i);(!n||t.time>n.time)&&this._updateStyle(i,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===g$2?e.add(u):h===_$2&&t.add(u);}),i||c.set("offset",l/this.duration),n.push(c);});let r=[...e.values()],o=[...t.values()];if(i){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l];}return Pt(this.element,n,r,o,this.duration,this.startTime,this.easing,false)}},_t=class extends Be{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,i,n,r,o,a=false){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",Vi(a)),r.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let _=new Map(e[u]),y=_.get("offset"),m=t+y*i;_.set("offset",Vi(m/o)),r.push(_);}i=o,t=0,n="",e=r;}return Pt(this.element,e,this.preStyleProps,this.postStyleProps,i,t,n,true)}};function Vi(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function qn(s,e){let t=new Map,i;return s.forEach(n=>{if(n==="*"){i??=e.keys();for(let r of i)t.set(r,_$2);}else for(let[r,o]of n)t.set(r,o);}),t}function $i(s,e,t,i,n,r,o,a,l,c,h,u,_){return {type:0,element:s,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:_}}var ut={},qe=class{_triggerName;ast;_stateStyles;constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i;}match(e,t,i,n){return Qn(this.ast.matchers,e,t,i,n)}buildStyles(e,t,i){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,i):new Map}build(e,t,i,n,r,o,a,l,c,h){let u=[],_=this.ast.options&&this.ast.options.params||ut,y=a&&a.params||ut,m=this.buildStyles(i,y,u),g=l&&l.params||ut,T=this.buildStyles(n,g,u),w=new Set,b=new Map,M=new Map,N=n==="void",ne={params:nn(g,_),delay:this.ast.options?.delay},q=h?[]:tn(e,t,this.ast.animation,r,o,m,T,ne,c,u),D=0;return q.forEach(R=>{D=Math.max(R.duration+R.delay,D);}),u.length?$i(t,this._triggerName,i,n,N,m,T,[],[],b,M,D,u):(q.forEach(R=>{let H=R.element,se=k(b,H,new Set);R.preStyleProps.forEach(Y=>se.add(Y));let Nt=k(M,H,new Set);R.postStyleProps.forEach(Y=>Nt.add(Y)),H!==t&&w.add(H);}),$i(t,this._triggerName,i,n,N,m,T,q,[...w.values()],b,M,D))}};function Qn(s,e,t,i,n){return s.some(r=>r(e,t,i,n))}function nn(s,e){let t=P$2({},e);return Object.entries(s).forEach(([i,n])=>{n!=null&&(t[i]=n);}),t}var St=class{styles;defaultParams;normalizer;constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i;}buildStyles(e,t){let i=new Map,n=nn(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=oe(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o);});}),i}};function Un(s,e,t){return new Et(s,e,t)}var Et=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new St(n.style,r,i));}),Gi(this.states,"true","1"),Gi(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new qe(e,n,this.states));}),this.fallbackTransition=Vn(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,n){return this.transitionFactories.find(o=>o.match(e,t,i,n))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Vn(s,e,t){let i=[(o,a)=>true],n={type:r.Sequence,steps:[],options:null},r$1={type:r.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0};return new qe(s,r$1,e)}function Gi(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 $n=new fe,vt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i;}register(e,t){let i=[],n=[],r=en(this._driver,t,i,n);if(i.length)throw Ni();this._animations.set(e,r);}_buildPlayer(e,t,i){let n=e.element,r=tt(this._normalizer,e.keyframes,t,i);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],true)}create(e,t,i={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=tn(this._driver,t,r,ot,Me,new Map,new Map,i,$n,n),o.forEach(h=>{let u=k(a,h.element,new Map);h.postStyleProps.forEach(_=>u.set(_,null));})):(n.push(Ci()),o=[]),n.length)throw Mi();a.forEach((h,u)=>{h.forEach((_,y)=>{h.set(y,this._driver.computeStyle(u,y,_$2));});});let l=o.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),c=V(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 i=this.players.indexOf(t);i>=0&&this.players.splice(i,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Di();return t}listen(e,t,i,n){let r=Ne(t,"","","");return Pe(this._getPlayer(e),i,r,n),()=>{}}command(e,t,i,n){if(i=="register"){this.register(e,n[0]);return}if(i=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(i){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(n[0]));break;case "destroy":this.destroy(e);break}}},Wi="ng-animate-queued",Gn=".ng-animate-queued",ht="ng-animate-disabled",Wn=".ng-animate-disabled",Hn="ng-star-inserted",Yn=".ng-star-inserted",Xn=[],sn={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},xn={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},B="__ng_removed",pe=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),n=i?e.value:e;if(this.value=Jn(n),i){let r=e,{value:o}=r,a=td(r,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(n=>{i[n]==null&&(i[n]=t[n]);});}}},me="void",dt=new pe(me),Tt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+e,L(t,this._hostClassName);}listen(e,t,i,n){if(!this._triggers.has(t))throw Ri();if(i==null||i.length==0)throw ki();if(!es(i))throw Oi();let r=k(this._elementListeners,e,[]),o={name:t,phase:i,callback:n};r.push(o);let a=k(this._engine.statesByElement,e,new Map);return a.has(t)||(L(e,ue),L(e,ue+"-"+t),a.set(t,dt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.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 Ii();return t}trigger(e,t,i,n=true){let r=this._getTrigger(t),o=new ge(this.id,t,e),a=this._engine.statesByElement.get(e);a||(L(e,ue),L(e,ue+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new pe(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=dt),!(c.value===me)&&l.value===c.value){if(!ns(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{W(e,T),j(e,w);});}return}let _=k(this._engine.playersByElement,e,[]);_.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(!n)return;y=r.fallbackTransition,m=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(L(e,Wi),o.onStart(()=>{ae(e,Wi);})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(o);w>=0&&T.splice(w,1);}}),this.players.push(o),_.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(n=>n.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,he,true);i.forEach(n=>{if(n[B])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,false,true)):this.clearElementCache(n);}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)));}triggerLeaveAnimation(e,t,i,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,me,n);h&&a.push(h);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,true,t,o),i&&V(a).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||dt,h=new pe(me),u=new ge(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:true});});}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let n=false;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)n=true;else {let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){n=true;break}}}if(this.prepareLeaveAnimationListeners(e),n)i.markElementAsRemoved(this.id,e,false,t);else {let r=e[B];(!r||r===sn)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t));}}insertNode(e,t){L(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Ne(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Pe(i.player,a.phase,l,a.callback);}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy();}):t.push(i);}),this._queue=[],t.sort((i,n)=>{let r=i.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},At=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,i){this.bodyNode=e,this.driver=t,this._normalizer=i;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i);});}),e}createNamespace(e,t){let i=new Tt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let o=false,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=true;break}a=this.driver.getParentElement(a);}o||i.unshift(e);}else i.push(e);return n.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let n of i.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r);}}return t}trigger(e,t,i,n){if(Fe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,i,n),true}return false}insertNode(e,t,i,n){if(!Fe(t))return;let r=t[B];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1);}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,i);}n&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),L(e,ht)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ae(e,ht));}removeNode(e,t,i){if(Fe(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,i):this.markElementAsRemoved(e,t,false,i);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,i);}else this._onRemovalComplete(t,i);}markElementAsRemoved(e,t,i,n,r){this.collectedLeaveElements.push(t),t[B]={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,i,n,r){return Fe(t)?this._fetchNamespace(e).listen(t,i,n,r):()=>{}}_buildInstruction(e,t,i,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,he,true);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,De,true),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=true:i.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return V(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[B];if(t&&t.setForRemoval){if(e[B]=sn,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(ht)&&this.markElementAsDisabled(e,false),this.driver.query(e,Wn,true).forEach(i=>{this.markElementAsDisabled(i,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let n=this.collectedEnterElements[i];L(n,Hn);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e);}finally{for(let n=0;n<i.length;n++)i[n]();}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let n=this.collectedLeaveElements[i];this.processLeaveNode(n);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?V(t).onDone(()=>{i.forEach(n=>n());}):i.forEach(n=>n());}}reportError(e){throw Fi()}_flushAnimations(e,t){let i=new fe,n=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let f=this.driver.query(d,Gn,true);for(let p=0;p<f.length;p++)h.add(f[p]);});let u=this.bodyNode,_=Array.from(this.statesByElement.keys()),y=Xi(_,this.collectedEnterElements),m=new Map,g=0;y.forEach((d,f)=>{let p=ot+g++;m.set(f,p),d.forEach(E=>L(E,p));});let T=[],w=new Set,b=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let f=this.collectedLeaveElements[d],p=f[B];p&&p.setForRemoval&&(T.push(f),w.add(f),p.hasAnimation?this.driver.query(f,Yn,true).forEach(E=>w.add(E)):b.add(f));}let M=new Map,N=Xi(_,Array.from(w));N.forEach((d,f)=>{let p=Me+g++;M.set(f,p),d.forEach(E=>L(E,p));}),e.push(()=>{y.forEach((d,f)=>{let p=m.get(f);d.forEach(E=>ae(E,p));}),N.forEach((d,f)=>{let p=M.get(f);d.forEach(E=>ae(E,p));}),T.forEach(d=>{this.processLeaveNode(d);});});let ne=[],q=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(ne.push(E),this.collectedEnterElements.length){let C=P[B];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let X=C.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let ye=F.get(p.triggerName);ye.value=X,F.set(p.triggerName,ye);}}E.destroy();return}}let Q=!u||!this.driver.containsElement(u,P),I=M.get(P),$=m.get(P),A=this._buildInstruction(p,i,$,I,Q);if(A.errors&&A.errors.length){q.push(A);return}if(Q){E.onStart(()=>W(P,A.fromStyles)),E.onDestroy(()=>j(P,A.toStyles)),n.push(E);return}if(p.isFallbackTransition){E.onStart(()=>W(P,A.fromStyles)),E.onDestroy(()=>j(P,A.toStyles)),n.push(E);return}let Dt=[];A.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||Dt.push(C);}),A.timelines=Dt,i.append(P,A.timelines);let dn={instruction:A,player:E,element:P};o.push(dn),A.queriedElements.forEach(C=>k(a,C,[]).push(E)),A.preStyleProps.forEach((C,X)=>{if(C.size){let F=l.get(X);F||l.set(X,F=new Set),C.forEach((ye,He)=>F.add(He));}}),A.postStyleProps.forEach((C,X)=>{let F=c.get(X);F||c.set(X,F=new Set),C.forEach((ye,He)=>F.add(He));});});if(q.length){let d=[];q.forEach(f=>{d.push(Li(f.triggerName,f.errors));}),ne.forEach(f=>f.destroy()),this.reportError(d);}let D=new Map,R=new Map;o.forEach(d=>{let f=d.element;i.has(f)&&(R.set(f,f),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D));}),n.forEach(d=>{let f=d.element;this._getPreviousPlayers(f,false,d.namespaceId,d.triggerName,null).forEach(E=>{k(D,f,[]).push(E),E.destroy();});});let H=T.filter(d=>xi(d,l,c)),se=new Map;Yi(se,this.driver,b,c,_$2).forEach(d=>{xi(d,l,c)&&H.push(d);});let Y=new Map;y.forEach((d,f)=>{Yi(Y,this.driver,new Set(d),l,g$2);}),H.forEach(d=>{let f=se.get(d),p=Y.get(d);se.set(d,new Map([...f?.entries()??[],...p?.entries()??[]]));});let We=[],Ct=[],Mt={};o.forEach(d=>{let{element:f,player:p,instruction:E}=d;if(i.has(f)){if(h.has(f)){p.onDestroy(()=>j(f,E.toStyles)),p.disabled=true,p.overrideTotalTime(E.totalTime),n.push(p);return}let P=Mt;if(R.size>1){let I=f,$=[];for(;I=I.parentNode;){let A=R.get(I);if(A){P=A;break}$.push(I);}$.forEach(A=>R.set(A,P));}let Q=this._buildAnimation(p.namespaceId,E,D,r,Y,se);if(p.setRealPlayer(Q),P===Mt)We.push(p);else {let I=this.playersByElement.get(P);I&&I.length&&(p.parentPlayer=V(I)),n.push(p);}}else W(f,E.fromStyles),p.onDestroy(()=>j(f,E.toStyles)),Ct.push(p),h.has(f)&&n.push(p);}),Ct.forEach(d=>{let f=r.get(d.element);if(f&&f.length){let p=V(f);d.setRealPlayer(p);}}),n.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<T.length;d++){let f=T[d],p=f[B];if(ae(f,Me),p&&p.hasAnimation)continue;let E=[];if(a.size){let Q=a.get(f);Q&&Q.length&&E.push(...Q);let I=this.driver.query(f,De,true);for(let $=0;$<I.length;$++){let A=a.get(I[$]);A&&A.length&&E.push(...A);}}let P=E.filter(Q=>!Q.destroyed);P.length?ts(this,f,P):this.processLeaveNode(f);}return T.length=0,We.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let f=this.players.indexOf(d);this.players.splice(f,1);}),d.play();}),We}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,i,n,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a);}else {let a=this.playersByElement.get(e);if(a){let l=!r||r==me;a.forEach(c=>{c.queued||!l&&c.triggerName!=n||o.push(c);});}}return (i||n)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let c=l.element,h=c!==r,u=k(i,c,[]);this._getPreviousPlayers(c,h,o,a,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y);});}W(r,t.fromStyles);}_buildAnimation(e,t,i,n,r,o){let a=t.triggerName,l$1=t.element,c=[],h=new Set,u=new Set,_=t.timelines.map(m=>{let g=m.element;h.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new l(m.duration,m.delay);let w=g!==l$1,b=is((i.get(g)||Xn).map(D=>D.getRealPlayer())).filter(D=>{let R=D;return R.element?R.element===g:false}),M=r.get(g),N=o.get(g),ne=tt(this._normalizer,m.keyframes,M,N),q=this._buildPlayer(m,ne,b);if(m.subTimeline&&n&&u.add(g),w){let D=new ge(e,a,g);D.setRealPlayer(q),c.push(D);}return q});c.forEach(m=>{k(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Zn(this.playersByQueriedElement,m.element,m));}),h.forEach(m=>L(m,at));let y=V(_);return y.onDestroy(()=>{h.forEach(m=>ae(m,at)),j(l$1,t.toStyles);}),u.forEach(m=>{k(n,m,[]).push(y);}),y}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new l(e.duration,e.delay)}},ge=class{namespaceId;triggerName;element;_player=new l;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(n=>Pe(e,i,void 0,n));}),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){k(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 Zn(s,e,t){let i=s.get(e);if(i){if(i.length){let n=i.indexOf(t);i.splice(n,1);}i.length==0&&s.delete(e);}return i}function Jn(s){return s??null}function Fe(s){return s&&s.nodeType===1}function es(s){return s=="start"||s=="done"}function Hi(s,e){let t=s.style.display;return s.style.display=e??"none",t}function Yi(s,e,t,i,n){let r=[];t.forEach(l=>r.push(Hi(l)));let o=[];i.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let _=e.computeStyle(c,u,n);h.set(u,_),(!_||_.length==0)&&(c[B]=xn,o.push(c));}),s.set(c,h);});let a=0;return t.forEach(l=>Hi(l,r[a++])),o}function Xi(s,e){let t=new Map;if(s.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,n=new Set(e),r=new Map;function o(a){if(!a)return i;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:n.has(c)?l=i:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a);}),t}function L(s,e){s.classList?.add(e);}function ae(s,e){s.classList?.remove(e);}function ts(s,e,t){V(t).onDone(()=>s.processLeaveNode(e));}function is(s){let e=[];return rn(s,e),e}function rn(s,e){for(let t=0;t<s.length;t++){let i=s[t];i instanceof u$1?rn(i.players,e):e.push(i);}}function ns(s,e){let t=Object.keys(s),i=Object.keys(e);if(t.length!=i.length)return false;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||s[r]!==e[r])return false}return true}function xi(s,e,t){let i=t.get(s);if(!i)return false;let n=e.get(s);return n?i.forEach(r=>n.add(r)):e.set(s,i),t.delete(s),true}var le=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new At(e.body,t,i),this._timelineEngine=new vt(e.body,t,i),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r);}registerTrigger(e,t,i,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],c=[],h=en(this._driver,r,l,c);if(l.length)throw Pi();a=Un(n,h,this._normalizer),this._triggerCache[o]=a;}this._transitionEngine.registerTrigger(t,n,a);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n);}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,i,n){if(i.charAt(0)=="@"){let[r,o]=it(i),a=n;this._timelineEngine.command(r,t,o,a);}else this._transitionEngine.trigger(e,t,i,n);}listen(e,t,i,n,r){if(i.charAt(0)=="@"){let[o,a]=it(i);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,i,n,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 ss(s,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=mt(e[0]),e.length>1&&(i=mt(e[e.length-1]))):e instanceof Map&&(t=mt(e)),t||i?new rs(s,t,i):null}var rs=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,n){this._element=t,this._startStyles=i,this._endStyles=n;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&j(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(j(this._element,this._initialStyles),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),j(this._element,this._initialStyles),this._state=3);}}return s})();function mt(s){let e=null;return s.forEach((t,i)=>{os(i)&&(e=e||new Map,e.set(i,t));}),e}function os(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,i,n){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=n,this._duration=i.duration,this._delay=i.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 i=()=>this._onFinish();return t.addEventListener("finish",i),this.onDestroy(()=>{t.removeEventListener("finish",i);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(i=>{t.push(Object.fromEntries(i));}),t}_triggerWebAnimation(e,t,i){let n=this._convertKeyframesToObject(t);try{return e.animate(n,i)}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((i,n)=>{n!=="offset"&&e.set(n,this._finished?i:ke(this.element,n));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0;}},Ue=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return nt(e,t)}getParentElement(e){return Ce(e)}query(e,t,i){return st(e,t,i)}computeStyle(e,t,i){return ke(e,t)}animate(e,t,i,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:i,delay:n,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(y=>y instanceof Qe);Bi(i,n)&&h.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m));});let u=Ki(t).map(y=>new Map(y));u=qi(e,u,c);let _=ss(e,u);return new Qe(e,u,l,_)}};var Le="@",on="@.disabled",Ve=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,i,n){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=n;}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,i,n=true){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,n);}removeChild(e,t,i,n){if(n){this.delegate.removeChild(e,t,i,n);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,i,n){this.delegate.setAttribute(e,t,i,n);}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,i,n){this.delegate.setStyle(e,t,i,n);}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i);}setProperty(e,t,i){t.charAt(0)==Le&&t==on?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,i,n){return this.delegate.listen(e,t,i,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},wt=class extends Ve{factory;constructor(e,t,i,n,r){super(t,i,n,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,i){t.charAt(0)==Le?t.charAt(1)=="."&&t==on?(i=i===void 0?true:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i);}listen(e,t,i,n){if(t.charAt(0)==Le){let r=as(e),o=t.slice(1),a="";return o.charAt(0)!=Le&&([o,a]=ls(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l);})}return this.delegate.listen(e,t,i,n)}};function as(s){switch(s){case "body":return document.body;case "document":return document;case "window":return window;default:return s}}function ls(s){let e=s.indexOf("."),t=s.substring(0,e),i=s.slice(e+1);return [t,i]}var $e=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n);};}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(n);if(!h){let u=()=>c.delete(n);h=new Ve("",n,this.engine,u),c.set(n,h);}return h}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c);};return t.data.animation.forEach(a),new wt(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a);}),this._animationCallbacksBuffer=[];});}),n.push([t,i]);}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 us=(()=>{class s extends le{constructor(t,i,n){super(t,i,n);}ngOnDestroy(){this.flush();}static \u0275fac=function(i){return new(i||s)(b$1(U$6),b$1(ee),b$1(te))};static \u0275prov=x({token:s,factory:s.\u0275fac})}return s})();function hs(){return new ze}function ds(){return new $e(g$3(zl),g$3(le),g$3(G$2))}var an=[{provide:te,useFactory:hs},{provide:le,useClass:us},{provide:_n$3,useFactory:ds}],ms=[{provide:ee,useFactory:()=>new Ue},{provide:Zv,useFactory:()=>"BrowserAnimations"},...an];function ln(){return ut$3("NgEagerAnimations"),[...ms]}var ie=s=>dt$2(null,null,function*(){let e=g$3(P),t=s.params.projectName;return t?e.getSelectedProjectId()===t?true:(e.selectProject(t),(yield Gy(e.selectedProject$.pipe(Rd(n=>n?.name===t))))?.name===t):(console.log("[PROJECT GUARD] no project id in route"),false)});var cn=s=>dt$2(null,null,function*(){let e=g$3(U$4),t=g$3(pe$2),i=s.params.threadId;if(!t.getUsername())try{yield zy(t.fetchCurrentUser());}catch(n){console.error("[THREAD GUARD] Failed to load current user:",n);}if(!i)return console.log("[THREAD GUARD] no threadId in route"),false;if(console.log("[THREAD GUARD] Checking thread:",i),console.log("[THREAD GUARD] Current selected thread:",e.getSelectedThreadId()),e.getSelectedThreadId()===i)return console.log("[THREAD GUARD] Thread already selected, allowing navigation"),true;console.log("[THREAD GUARD] Selecting thread:",i),e.selectThread(i);try{let n=yield zy(jy([e.isLoading$,e.selectedThread$]).pipe(kd(([o,a])=>console.log(`\u{1F43C} [${o?"loading":"loaded"}]`,a?.id)),Ot$3(([o,a])=>!o&&!!a),an$2(1),ue$3(([o,a])=>a?.id))),r=n===i;return r?console.log("[THREAD GUARD] Thread validated, allowing navigation"):console.error("[THREAD GUARD] Thread ID mismatch - route:",i,"loaded:",n),r}catch(n){return console.error("[THREAD GUARD] Error loading thread:",n),false}});var un=[{path:"",loadComponent:()=>import('./chunk-HjD5Rk4C.js').then(s=>s.GlobalTaskControlComponent)},{path:"projects",loadComponent:()=>import('./chunk-B0vRsgnD.js').then(s=>s.ProjectListComponent)},{path:"oauth/callback",loadComponent:()=>Promise.resolve().then(function(){return chunkILOPQL6D}).then(s=>s.OAuthCallbackComponent)},{path:"project/new",loadComponent:()=>import('./chunk-izARvh_2.js').then(s=>s.ProjectNewComponent)},{path:"project/:projectName",loadComponent:()=>import('./chunk-CTuHnJP4.js').then(s=>s.MainAppComponent),canActivate:[ie]},{path:"project/:projectName/prompts",loadComponent:()=>import('./chunk-pH1k_bet.js').then(s=>s.PromptListComponent),canActivate:[ie]},{path:"project/:projectName/schedulers",loadComponent:()=>import('./chunk-Ci1jk71f.js').then(s=>s.SchedulerListComponent),canActivate:[ie]},{path:"project/:projectName/agents",loadComponent:()=>import('./chunk-iNIQR015.js').then(s=>s.AgentListComponent),canActivate:[ie]},{path:"project/:projectName/tasks",loadComponent:()=>import('./chunk-BEKR4Un_.js').then(s=>s.TaskControlComponent),canActivate:[ie]},{path:"project/:projectName/missions",redirectTo:"project/:projectName/tasks"},{path:"project/:projectName/thread/:threadId",loadComponent:()=>import('./chunk-CTuHnJP4.js').then(s=>s.MainAppComponent),canActivate:[ie,cn]},{path:"token-usage",loadComponent:()=>import('./chunk-CwaAd8kk.js').then(s=>s.TokenUsageComponent)},{path:"agentos",loadChildren:()=>dt$2(null,null,function*(){let{AGENTOS_ROUTES:s,THEME_PORT:e}=yield import('./chunk-BY7uKZAo.js').then(function(n){return n.c});return [{path:"",providers:[{provide:e,useFactory:t=>({theme:F(t.currentTheme$,{initialValue:t.getCurrentTheme()}),setTheme:i=>t.setTheme(i)}),deps:[me$1]}],children:s}]})},{path:"**",redirectTo:""}];function fs(s){return ()=>s.initializeDefaultProject()}function ps(s){return ()=>{console.log("[APP_INIT] OAuthService initialized");}}function gs(s){return ()=>dt$2(null,null,function*(){let{UserStateService:e}=yield import('./chunk-BY7uKZAo.js').then(function(n){return n.c}),t=s.get(e);yield Gy(t.loadMe().pipe(va(i=>(console.warn("Failed to load current user",i),br$1(null)))));})}var hn={providers:[Wv(),$B({eventCoalescing:true}),Xo(un),_S(),ln(),{provide:wt$1,useValue:{duration:3e3}},{provide:ul,useFactory:fs,deps:[P],multi:true},{provide:ul,useFactory:ps,deps:[O$1],multi:true},{provide:ul,useFactory:gs,deps:[pe$4],multi:true},wi$2({basePath:"/api/agentos"}),{provide:Ye,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};var Ge=class s{title="client";themeService=g$3(me$1);ngOnInit(){console.log("[APP] Application initialized with theme:",this.themeService.getCurrentTheme());}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=Fw({type:s,selectors:[["app-root"]],decls:1,vars:0,template:function(t,i){t&1&&Sg(0,"router-outlet");},dependencies:[ea,mr],encapsulation:2,changeDetection:1})};nS(Ge,hn).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));});var chunkILOPQL6D=/*#__PURE__*/Object.freeze({__proto__:null,OAUTH_CALLBACK_STORAGE_KEY:m$1,OAuthCallbackComponent:d});export{zt as $,Ug as A,gE as B,Pg as C,bC as D,ET as E,F,G,SC as H,fy as I,c as J,qy as K,L$1 as L,MC as M,N$1 as N,Ot$1 as O,P,QC as Q,Re$1 as R,Sg as S,Tg as T,U$4 as U,V$4 as V,Vy as W,br$1 as X,x as Y,z as Z,Ue$1 as _,Gi$2 as a,nT as a$,jt as a0,Vt as a1,Nt as a2,GI as a3,aC as a4,Dl as a5,qI as a6,va as a7,Yg as a8,gC as a9,an$2 as aA,fr as aB,bu as aC,jy as aD,W$2 as aE,A$1 as aF,fe$3 as aG,z$2 as aH,MS as aI,Tr as aJ,Ob as aK,Eo$1 as aL,qn$3 as aM,Nn$1 as aN,wt$3 as aO,G$2 as aP,$a as aQ,Fs as aR,K$1 as aS,Ut$1 as aT,Ue$2 as aU,U$6 as aV,w as aW,D as aX,ft$1 as aY,js as aZ,JT as a_,wf as aa,Cf as ab,EC as ac,Hg as ad,Ot$3 as ae,Eg as af,mT as ag,aT as ah,em as ai,tT as aj,Jg as ak,yt$5 as al,Wm as am,ce$3 as an,V$3 as ao,Hy as ap,a as aq,S$1 as ar,F$4 as as,c$1 as at,ov as au,dt$2 as av,gl as aw,ml as ax,O$1 as ay,Kt$2 as az,P$2 as b,BC as b$,Qg as b0,Rn$3 as b1,Lb as b2,Nb as b3,cT as b4,sT as b5,_g as b6,u as b7,B$3 as b8,T$2 as b9,wC as bA,CC as bB,bi$2 as bC,ge$1 as bD,vt$2 as bE,X$4 as bF,p$1 as bG,Pt$2 as bH,Ig as bI,dr$1 as bJ,fe$4 as bK,pe$4 as bL,mr$1 as bM,F$1 as bN,mt$1 as bO,Qy as bP,Yy as bQ,Sd as bR,Da as bS,pn$1 as bT,kd as bU,Xy as bV,Y as bW,Pt$1 as bX,po as bY,X$1 as bZ,xt$1 as b_,v as ba,m$3 as bb,R$2 as bc,h$1 as bd,A as be,dT as bf,pT as bg,Uy as bh,hT as bi,dE as bj,vh as bk,Mt as bl,_m as bm,Xt as bn,sC as bo,yl as bp,vl as bq,sn$1 as br,bl as bs,Qn$1 as bt,Ve$2 as bu,Fg as bv,St$3 as bw,on$1 as bx,cm as by,Oi$1 as bz,U$1 as c,kn$1 as c$,xg as c0,E as c1,RE as c2,kt as c3,On$1 as c4,Et$1 as c5,Rt as c6,_e as c7,eb as c8,Ff as c9,_n$3 as cA,sn$2 as cB,R$1 as cC,Ce$4 as cD,Od as cE,Bb as cF,gT as cG,nC as cH,Nt$3 as cI,Og as cJ,jB as cK,Cd as cL,xd as cM,On$3 as cN,us$1 as cO,Bt$1 as cP,q as cQ,X$2 as cR,Yt as cS,Wp as cT,pi$1 as cU,vg as cV,JI as cW,yr$1 as cX,tt$1 as cY,fn$1 as cZ,he$1 as c_,_e$1 as ca,LB as cb,PB as cc,Uf as cd,xb as ce,_$1 as cf,uT as cg,Ng as ch,me$1 as ci,Pn$1 as cj,Pf as ck,be$1 as cl,M as cm,F$3 as cn,H$3 as co,K$3 as cp,Se$1 as cq,BB as cr,HB as cs,vi$1 as ct,zB as cu,jg as cv,_C as cw,Lg as cx,si as cy,Jr as cz,b as d,Ia as d0,lt$1 as d1,wt$2 as d2,I as d3,y$2 as d4,N$2 as d5,F$5 as d6,U$5 as d7,B$4 as d8,He$3 as d9,ie$2 as dA,Kg as dB,se$1 as dC,mr as dD,te$3 as dE,le$4 as dF,Gy as dG,ye$1 as dH,jb as dI,Ae$2 as dJ,Td as dK,Y$1 as dL,nv as dM,iv as dN,_$3 as dO,Ea as dP,tv as dQ,di$2 as dR,VB as dS,kb as dT,ve$1 as dU,K$4 as dV,Xg as dW,ee$3 as dX,Ce$3 as da,xe$1 as db,ge$3 as dc,$$2 as dd,M$1 as de,z$3 as df,T as dg,J$4 as dh,pe$3 as di,ne$2 as dj,me$2 as dk,G$1 as dl,k$2 as dm,ge$4 as dn,_t$4 as dp,Do$1 as dq,Ke$2 as dr,Hw as ds,m$4 as dt,Se$3 as du,ke$3 as dv,vn$1 as dw,fi$3 as dx,Ta as dy,b$1 as dz,O$3 as e,f$1 as f,g$3 as g,Fw as h,hr as i,pr as j,Gn$1 as k,le$3 as l,ws as m,hl as n,Rg as o,pe$2 as p,oC as q,cC as r,si$1 as s,nI as t,ue$3 as u,bg as v,we$1 as w,iC as x,uC as y,z$4 as z};