@whoz-oss/coday-client 0.0.0-workstream-messaging.2 → 0.0.0-workstream-messaging.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/chunk-B7jX7zgs.js +1 -0
- package/browser/chunk-BDVgHP1k.js +1 -0
- package/browser/chunk-BITDsEPS.js +1 -0
- package/browser/chunk-BMfdBnfJ.js +1 -0
- package/browser/chunk-BT-f7pOo.js +1 -0
- package/browser/chunk-BUVHuntB.js +2 -0
- package/browser/chunk-BeJGuL-w.js +1 -0
- package/browser/chunk-BfmxY0U2.js +1 -0
- package/browser/chunk-BkHh71pt.js +1 -0
- package/browser/chunk-BvRDo1Xd.js +1 -0
- package/browser/chunk-BvgKYsgP.js +1 -0
- package/browser/chunk-Bvjz4EuH.js +2 -0
- package/browser/chunk-C1OYQ9z3.js +1 -0
- package/browser/chunk-CCUIsU71.js +1 -0
- package/browser/chunk-CCZ1b0na.js +674 -0
- package/browser/chunk-CEFBjtqS.js +1 -0
- package/browser/chunk-CVAz4Lko.js +1 -0
- package/browser/chunk-CYowS7ps.js +1 -0
- package/browser/{chunk-WwdM1pqC.js → chunk-C_m8f_OQ.js} +1 -1
- package/browser/chunk-CaLaUzUo.js +1 -0
- package/browser/chunk-CasQE1P8.js +1 -0
- package/browser/chunk-CfeR-40i.js +1 -0
- package/browser/chunk-Cvh22V1I.js +1 -0
- package/browser/{chunk-CfifMtwC.js → chunk-D6na643q.js} +1 -1
- package/browser/chunk-D7cDcWU_.js +1 -0
- package/browser/chunk-DJYg-Uvg.js +2 -0
- package/browser/chunk-DQEn5_2f.js +1 -0
- package/browser/chunk-DQRocvRJ.js +1 -0
- package/browser/chunk-DSeOF-b7.js +1 -0
- package/browser/chunk-DdcAhCFt.js +1 -0
- package/browser/chunk-Df_pypwY.js +1 -0
- package/browser/chunk-DloTeM9a.js +1 -0
- package/browser/chunk-DqQwkTmj.js +1 -0
- package/browser/chunk-Dyc4B4N5.js +1 -0
- package/browser/chunk-DyrGPeSh.js +1 -0
- package/browser/chunk-DzlYU9Mb.js +1 -0
- package/browser/{chunk-zfSbYfDB.js → chunk-Jcjs0qUP.js} +1 -1
- package/browser/chunk-L1iy-QYW.js +1 -0
- package/browser/chunk-MmNnob5o.js +1 -0
- package/browser/chunk-OGl61xgu.js +1 -0
- package/browser/chunk-XCYDtfAr.js +1 -0
- package/browser/chunk-YazOGc5y.js +1 -0
- package/browser/chunk-_4rWzEoG.js +1 -0
- package/browser/chunk-cAmP4Ess.js +1 -0
- package/browser/chunk-go60iT_m.js +1 -0
- package/browser/chunk-m2Qa9RC5.js +1 -0
- package/browser/chunk-ns52VA45.js +1 -0
- package/browser/chunk-tHzqEHGj.js +1 -0
- package/browser/chunk-xMNw9k_r.js +1 -0
- package/browser/index.html +1 -1
- package/browser/main-63IEQS3X.js +1254 -0
- package/package.json +1 -1
- package/browser/chunk-8SxX32rO.js +0 -1
- package/browser/chunk-B6rPUjlK.js +0 -1
- package/browser/chunk-BH7OLSx0.js +0 -1
- package/browser/chunk-BKnj9uiw.js +0 -1
- package/browser/chunk-BLR-ZTHh.js +0 -1
- package/browser/chunk-BMpFwNrL.js +0 -1
- package/browser/chunk-BbYQjxBb.js +0 -2
- package/browser/chunk-Bo2-yEbp.js +0 -1
- package/browser/chunk-BwqiXXvR.js +0 -1
- package/browser/chunk-Bz9_W213.js +0 -1
- package/browser/chunk-C1CvCiQs.js +0 -1
- package/browser/chunk-C2LkuBYd.js +0 -1
- package/browser/chunk-C3AaPoyZ.js +0 -1
- package/browser/chunk-C4CyLTkA.js +0 -2
- package/browser/chunk-C8Q6ccMm.js +0 -1
- package/browser/chunk-CBtsWofj.js +0 -1
- package/browser/chunk-CNBrzP9I.js +0 -1
- package/browser/chunk-CTrUVP-N.js +0 -1
- package/browser/chunk-CX2oEBf9.js +0 -1
- package/browser/chunk-C_TR3rI-.js +0 -1
- package/browser/chunk-CcI4CWl6.js +0 -1
- package/browser/chunk-CoWzfbqL.js +0 -1
- package/browser/chunk-CyIUjRWT.js +0 -1
- package/browser/chunk-D0jMQDes.js +0 -1
- package/browser/chunk-D8BMEvrt.js +0 -1
- package/browser/chunk-DAiaXy53.js +0 -1
- package/browser/chunk-DNefc5l8.js +0 -1
- package/browser/chunk-DV5IlfBq.js +0 -1
- package/browser/chunk-DbN0_APN.js +0 -1
- package/browser/chunk-DlJR_onX.js +0 -1
- package/browser/chunk-DtJYpVtU.js +0 -2
- package/browser/chunk-DwXfEpcA.js +0 -1
- package/browser/chunk-E81L_Bla.js +0 -1
- package/browser/chunk-GUDFMaEy.js +0 -1
- package/browser/chunk-GaJWiH82.js +0 -1
- package/browser/chunk-MZXI10vX.js +0 -1
- package/browser/chunk-RGb_eFD5.js +0 -1
- package/browser/chunk-Uf57QzfJ.js +0 -674
- package/browser/chunk-cIF5t9Db.js +0 -1
- package/browser/chunk-dgHw3CIi.js +0 -1
- package/browser/chunk-kO5zS3K9.js +0 -1
- package/browser/chunk-mgh7hiln.js +0 -1
- package/browser/chunk-ogAJa2CM.js +0 -1
- package/browser/main-DYDARBQQ.js +0 -1253
|
@@ -0,0 +1,1254 @@
|
|
|
1
|
+
var p$1=Object.create;var j$5=Object.defineProperty,q$2=Object.defineProperties,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertyNames,g$1=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,k$3=Object.prototype.hasOwnProperty,m$2=Object.prototype.propertyIsEnumerable;var l=(a,b,c)=>b in a?j$5(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,w$1=(a,b)=>{for(var c in b||={})k$3.call(b,c)&&l(a,c,b[c]);if(g$1)for(var c of g$1(b))m$2.call(b,c)&&l(a,c,b[c]);return a},x$1=(a,b)=>q$2(a,s(b));var y$2=(a,b)=>{var c={};for(var d in a)k$3.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&g$1)for(var d of g$1(a))b.indexOf(d)<0&&m$2.call(a,d)&&(c[d]=a[d]);return c};var z$3=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var v$2=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of t(b))!k$3.call(a,e)&&e!==c&&j$5(a,e,{get:()=>b[e],enumerable:!(d=r(b,e))||d.enumerable});return a};var A$3=(a,b,c)=>(c=a!=null?p$1(u(a)):{},v$2(!a||!a.__esModule?j$5(c,"default",{value:a,enumerable:true}):c,a));var B$2=(a,b,c)=>new Promise((d,e)=>{var n=f=>{try{h(c.next(f));}catch(i){e(i);}},o=f=>{try{h(c.throw(f));}catch(i){e(i);}},h=f=>f.done?d(f.value):Promise.resolve(f.value).then(n,o);h((c=c.apply(a,b)).next());});function b$3(e){return typeof e=="function"}function Ct$2(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 Co$1=Ct$2(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
|
+
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n;});function Zt$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var X$2=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(b$3(r))try{r();}catch(i){t=i instanceof Co$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ml(i);}catch(s){t=t??[],s instanceof Co$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Co$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ml(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)&&Zt$2(n,t);}remove(t){let{_finalizers:n}=this;n&&Zt$2(n,t),t instanceof e&&t._removeParent(this);}};X$2.EMPTY=(()=>{let e=new X$2;return e.closed=true,e})();var Vs$1=X$2.EMPTY;function bo$1(e){return e instanceof X$2||e&&"closed"in e&&b$3(e.remove)&&b$3(e.add)&&b$3(e.unsubscribe)}function ml(e){b$3(e)?e():e.unsubscribe();}var Ae$3={Promise:void 0};var Nn$3={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function To$1(e){Nn$3.setTimeout(()=>{throw e});}function it$3(){}function xn$3(e){e();}var Qt$2=class Qt extends X$2{constructor(t){super(),this.isStopped=false,t?(this.destination=t,bo$1(t)&&t.add(this)):this.destination=Cm;}static create(t,n,r){return new Re$4(t,n,r)}next(t){this.isStopped?$s$1():this._next(t);}error(t){this.isStopped?$s$1():(this.isStopped=true,this._error(t));}complete(){this.isStopped?$s$1():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,super.unsubscribe(),this.destination=null);}_next(t){this.destination.next(t);}_error(t){try{this.destination.error(t);}finally{this.unsubscribe();}}_complete(){try{this.destination.complete();}finally{this.unsubscribe();}}};var zs$1=class zs{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){_o$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){_o$1(r);}else _o$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){_o$1(n);}}},Re$4=class Re extends Qt$2{constructor(t,n,r){super();let o;if(b$3(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new zs$1(o);}};function _o$1(e){To$1(e);}function wm(e){throw e}function $s$1(e,t){}var Cm={closed:true,next:it$3,error:wm,complete:it$3};var An$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ce$1(e){return e}function bm(...e){return Gs$1(e)}function Gs$1(e){return e.length===0?ce$1:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var x=(()=>{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=_m(n)?n:new Re$4(n,r,o);return xn$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=Il(r),new r((o,i)=>{let s=new Re$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)}[An$3](){return this}pipe(...n){return Gs$1(n)(this)}toPromise(n){return n=Il(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 Il(e){var t;return (t=e??Ae$3.Promise)!==null&&t!==void 0?t:Promise}function Tm(e){return e&&b$3(e.next)&&b$3(e.error)&&b$3(e.complete)}function _m(e){return e&&e instanceof Qt$2||Tm(e)&&bo$1(e)}var wl=Ct$2(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ue$4=(()=>{class e extends x{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new So$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new wl}next(n){xn$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){xn$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(){xn$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?Vs$1:(this.currentObservers=null,i.push(n),new X$2(()=>{this.currentObservers=null,Zt$2(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new x;return n.source=this,n}}return e.create=(t,n)=>new So$1(t,n),e})(),So$1=class So extends ue$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:Vs$1}};var vr$1=class vr extends ue$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);}};var Kt$2=new x(e=>e.complete());function Mo$2(e){return e&&b$3(e.schedule)}function Ws$1(e){return e[e.length-1]}function No$1(e){return b$3(Ws$1(e))?e.pop():void 0}function Ge$3(e){return Mo$2(Ws$1(e))?e.pop():void 0}function Cl(e,t){return typeof Ws$1(e)=="number"?e.pop():t}function Tl(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 bl(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 Xt$1(e){return this instanceof Xt$1?(this.v=e,this):new Xt$1(e)}function _l(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(m){return new Promise(function(D,S){i.push([f,m,D,S])>1||c(f,m);})},h&&(o[f]=h(o[f])));}function c(f,h){try{u(r[f](h));}catch(m){p(i[0][3],m);}}function u(f){f.value instanceof Xt$1?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f);}function l(f){c("next",f);}function d(f){c("throw",f);}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function Sl(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 bl=="function"?bl(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 Rn$3=e=>e&&typeof e.length=="number"&&typeof e!="function";function xo$1(e){return b$3(e?.then)}function Ao$1(e){return b$3(e[An$3])}function Ro$1(e){return Symbol.asyncIterator&&b$3(e?.[Symbol.asyncIterator])}function Oo$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 Sm(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ko$1=Sm();function Fo$1(e){return b$3(e?.[ko$1])}function Po$1(e){return _l(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Xt$1(n.read());if(o)return yield Xt$1(void 0);yield yield Xt$1(r);}}finally{n.releaseLock();}})}function Lo$1(e){return b$3(e?.getReader)}function N$3(e){if(e instanceof x)return e;if(e!=null){if(Ao$1(e))return Mm(e);if(Rn$3(e))return Nm(e);if(xo$1(e))return xm(e);if(Ro$1(e))return Ml(e);if(Fo$1(e))return Am(e);if(Lo$1(e))return Rm(e)}throw Oo$1(e)}function Mm(e){return new x(t=>{let n=e[An$3]();if(b$3(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Nm(e){return new x(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function xm(e){return new x(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,To$1);})}function Am(e){return new x(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function Ml(e){return new x(t=>{Om(e,t).catch(n=>t.error(n));})}function Rm(e){return Ml(Po$1(e))}function Om(e,t){var n,r,o,i;return Tl(this,void 0,void 0,function*(){try{for(n=Sl(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 re$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 km(e){return b$3(e?.lift)}function w(e){return t=>{if(km(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 C(e,t,n,r,o){return new qs$2(e,t,n,r,o)}var qs$2=class qs extends Qt$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$2(e,t=0){return w((n,r)=>{n.subscribe(C(r,o=>re$3(r,e,()=>r.next(o),t),()=>re$3(r,e,()=>r.complete(),t),o=>re$3(r,e,()=>r.error(o),t)));})}function Bo$1(e,t=0){return w((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function Nl(e,t){return N$3(e).pipe(Bo$1(t),jo$2(t))}function xl(e,t){return N$3(e).pipe(Bo$1(t),jo$2(t))}function Al(e,t){return new x(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function Rl(e,t){return new x(n=>{let r;return re$3(n,t,()=>{r=e[ko$1](),re$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);}),()=>b$3(r?.return)&&r.return()})}function Vo$1(e,t){if(!e)throw new Error("Iterable cannot be null");return new x(n=>{re$3(n,t,()=>{let r=e[Symbol.asyncIterator]();re$3(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function Ol(e,t){return Vo$1(Po$1(e),t)}function kl(e,t){if(e!=null){if(Ao$1(e))return Nl(e,t);if(Rn$3(e))return Al(e,t);if(xo$1(e))return xl(e,t);if(Ro$1(e))return Vo$1(e,t);if(Fo$1(e))return Rl(e,t);if(Lo$1(e))return Ol(e,t)}throw Oo$1(e)}function We$2(e,t){return t?kl(e,t):N$3(e)}function Dr$1(...e){let t=Ge$3(e);return We$2(e,t)}var Jt$2=Ct$2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function Fm(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Re$4({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{n?r(t.defaultValue):o(new Jt$2);}});e.subscribe(i);})}function te$4(e,t){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:Pm}=Array,{getPrototypeOf:Lm,prototype:jm,keys:Bm}=Object;function Ho$1(e){if(e.length===1){let t=e[0];if(Pm(t))return {args:t,keys:null};if(Vm(t)){let n=Bm(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Vm(e){return e&&typeof e=="object"&&Lm(e)===jm}var{isArray:Hm}=Array;function Um(e,t){return Hm(t)?e(...t):e(t)}function On$3(e){return te$4(t=>Um(e,t))}function Uo$1(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function $m(...e){let t=Ge$3(e),n=No$1(e),{args:r,keys:o}=Ho$1(e);if(r.length===0)return We$2([],t);let i=new x(zm(r,t,o?s=>Uo$1(o,s):ce$1));return n?i.pipe(On$3(n)):i}function zm(e,t,n=ce$1){return r=>{Fl(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Fl(t,()=>{let u=We$2(e[c],t),l=false;u.subscribe(C(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function Fl(e,t,n){e?re$3(n,e,t):t();}function Gm(...e){let t=No$1(e),{args:n,keys:r}=Ho$1(e),o=new x(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;N$3(n[l]).subscribe(C(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Uo$1(r,a):a),i.complete());}));}});return t?o.pipe(On$3(t)):o}function $o$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=m=>u<r?h(m):c.push(m),h=m=>{i&&t.next(m),u++;let D=false;N$3(n(m,l++)).subscribe(C(t,S=>{i?f(S):t.next(S);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let S=c.shift();s?re$3(t,s,()=>h(S)):h(S);}p();}catch(S){t.error(S);}}));};return e.subscribe(C(t,f,()=>{d=true,p();})),()=>{}}function Oe$3(e,t,n=1/0){return b$3(t)?Oe$3((r,o)=>te$4((i,s)=>t(r,i,o,s))(N$3(e(r,o))),n):(typeof t=="number"&&(n=t),w((r,o)=>$o$1(r,o,e,n)))}function Er$1(e=1/0){return Oe$3(ce$1,e)}function Wm(...e){let t=Ge$3(e),n=Cl(e,1/0),r=e;return r.length?r.length===1?N$3(r[0]):Er$1(n)(We$2(r,t)):Kt$2}function bt$3(e,t){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>e.call(t,i,o++)&&r.next(i)));})}function Zs$1(e){return w((t,n)=>{let r=null,o=!1,i;r=t.subscribe(C(n,void 0,void 0,s=>{i=N$3(e(s,Zs$1(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var zo$1=class zo extends X$2{constructor(t,n){super();}schedule(t,n=0){return this}};var Ir$1={setInterval(e,t,...n){let{delegate:r}=Ir$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var Go$1=class Go extends zo$1{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Ir$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&&Ir$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,Zt$2(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var wr$1={now(){return (wr$1.delegate||Date).now()},delegate:void 0};var kn$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)}};kn$3.now=wr$1.now;var Wo$1=class Wo extends kn$3{constructor(t,n=kn$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 ke$5=new Wo$1(Go$1),Pl=ke$5;function Ll(e,t=ke$5){return w((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(C(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 qo$1(e){return w((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function jl(e){return bt$3((t,n)=>e<=n)}function Bl(){return Er$1(1)}function Tt$3(...e){return Bl()(We$2(e,Ge$3(e)))}function Vl(...e){let t=Ge$3(e);return w((n,r)=>{(t?Tt$3(e,n,t):Tt$3(e,n)).subscribe(r);})}function Ys$1(e,t){return w((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(C(r,c=>{o?.unsubscribe();let u=0,l=i++;N$3(e(c,l)).subscribe(o=C(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Hl(e,t,n){let r=b$3(e)||t||n?{next:e,error:t,complete:n}:e;return r?w((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(C(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);}));}):ce$1}var Cr$1=class Cr extends ue$4{constructor(t=1/0,n=1/0,r=wr$1){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};function qm(e,t){let n=b$3(e)?e:()=>e,r=o=>o.error(n());return new x(r)}function Zm(e){return !!e&&(e instanceof x||b$3(e.lift)&&b$3(e.subscribe))}function Zo$1(e){return e instanceof Date&&!isNaN(e)}var Ul=Ct$2(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function Ym(e,t){let{first:n,each:r,with:o=Qm,scheduler:i=ke$5,meta:s=null}=Zo$1(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return w((a,c)=>{let u,l,d=null,p=0,f=h=>{l=re$3(c,i,()=>{try{u.unsubscribe(),N$3(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(m){c.error(m);}},h);};u=a.subscribe(C(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 Qm(e){throw new Ul(e)}function Km(e){return new x(t=>{N$3(e()).subscribe(t);})}var Xm=["addListener","removeListener"],Jm=["addEventListener","removeEventListener"],ey=["on","off"];function Qs$1(e,t,n,r){if(b$3(n)&&(r=n,n=void 0),r)return Qs$1(e,t,n).pipe(On$3(r));let[o,i]=ry(e)?Jm.map(s=>a=>e[s](t,a,n)):ty(e)?Xm.map($l(e,t)):ny(e)?ey.map($l(e,t)):[];if(!o&&Rn$3(e))return Oe$3(s=>Qs$1(s,t,n))(N$3(e));if(!o)throw new TypeError("Invalid event target");return new x(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function $l(e,t){return n=>r=>e[n](t,r)}function ty(e){return b$3(e.addListener)&&b$3(e.removeListener)}function ny(e){return b$3(e.on)&&b$3(e.off)}function ry(e){return b$3(e.addEventListener)&&b$3(e.removeEventListener)}function st$1(e=0,t,n=Pl){let r=-1;return t!=null&&(Mo$2(t)?n=t:r=t),new x(o=>{let i=Zo$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 oy(e=0,t=ke$5){return e<0&&(e=0),st$1(e,e,t)}function zl(e){return w((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(C(n,u=>{r=!0,o=u,i||N$3(e(u)).subscribe(i=C(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function iy(e,t=ke$5){return zl(()=>st$1(e,t))}function Gl(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(C(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function Yo$1(e,t){return b$3(t)?Oe$3(e,t,1):Oe$3(e,1)}function Wl(e){return w((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function en$2(e){return e<=0?()=>Kt$2:w((t,n)=>{let r=0;t.subscribe(C(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function Ks$1(){return w((e,t)=>{e.subscribe(C(t,it$3));})}function Xs$1(e){return te$4(()=>e)}function Js$1(e,t){return t?n=>Tt$3(t.pipe(en$2(1),Ks$1()),n.pipe(Js$1(e))):Oe$3((n,r)=>N$3(e(n,r)).pipe(en$2(1),Xs$1(n)))}function sy(e,t=ke$5){let n=st$1(e,t);return Js$1(()=>n)}function ay(e,t){return w((n,r)=>{let o=new Set;n.subscribe(C(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&N$3(t).subscribe(C(r,()=>o.clear(),it$3));})}function ql(e,t=ce$1){return e=e??cy,w((n,r)=>{let o,i=!0;n.subscribe(C(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function cy(e,t){return e===t}function Zl(e=uy){return w((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function uy(){return new Jt$2}function ly(...e){return t=>Tt$3(t,Dr$1(...e))}function ea$1(e,t){return t?n=>n.pipe(ea$1((r,o)=>N$3(e(r,o)).pipe(te$4((i,s)=>t(r,i,o,s))))):w((n,r)=>{let o=0,i=null,s=!1;n.subscribe(C(r,a=>{i||(i=C(r,void 0,()=>{i=null,s&&r.complete();}),N$3(e(a,o++)).subscribe(i));},()=>{s=!0,!i&&r.complete();}));})}function dy(e,t=1/0,n){return t=(t||0)<1?1/0:t,w((r,o)=>$o$1(r,o,e,t,void 0,!0,n))}function fy(e,t){let n=arguments.length>=2;return r=>r.pipe(e?bt$3((o,i)=>e(o,i,r)):ce$1,en$2(1),n?Wl(t):Zl(()=>new Jt$2))}function py(e){return e<=0?()=>Kt$2:w((t,n)=>{let r=[];t.subscribe(C(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function hy(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=false}=t;return n<=0?ce$1:w((i,s)=>{let a=0,c,u=()=>{let l=!1;c=i.subscribe(C(s,d=>{o&&(a=0),s.next(d);},void 0,d=>{if(a++<n){let p=()=>{c?(c.unsubscribe(),c=null,u()):l=!0;};if(r!=null){let f=typeof r=="number"?st$1(r):N$3(r(d,a)),h=C(s,()=>{h.unsubscribe(),p();},()=>{s.complete();});f.subscribe(h);}else p();}else s.error(d);})),l&&(c.unsubscribe(),c=null,u());};u();})}function gy(e,t){return w(Gl(e,t,arguments.length>=2,!0))}function na$1(e={}){let{connector:t=()=>new ue$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 m=s;f(),m?.unsubscribe();};return w((m,D)=>{u++,!d&&!l&&p();let S=c=c??t();D.add(()=>{u--,u===0&&!d&&!l&&(a=ta$1(h,o));}),S.subscribe(D),!s&&u>0&&(s=new Re$4({next:U=>S.next(U),error:U=>{d=!0,p(),a=ta$1(f,n,U),S.error(U);},complete:()=>{l=!0,p(),a=ta$1(f,r),S.complete();}}),N$3(m).subscribe(s));})(i)}}function ta$1(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new Re$4({next:()=>{r.unsubscribe(),e();}});return N$3(t(...n)).subscribe(r)}function my(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,na$1({connector:()=>new Cr$1(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Yl(e){return w((t,n)=>{N$3(e).subscribe(C(n,()=>n.complete(),it$3)),!n.closed&&t.subscribe(n);})}function yy(e,t=false){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var le$3=null,Qo$1=false,tn$2=1,G$3=Symbol("SIGNAL");function I(e){let t=le$3;return le$3=e,t}function Ko$1(){return le$3}var _t$4={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 at$3(e){if(Qo$1)throw new Error("");if(le$3===null)return;le$3.consumerOnSignalRead(e);let t=le$3.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=le$3.recomputing;if(r&&(n=t!==void 0?t.nextProducer:le$3.producers,n!==void 0&&n.producer===e)){le$3.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=tn$2;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===le$3&&(!r||o.knownValidAtEpoch===tn$2))return;let i=Ln$3(le$3),s={producer:e,consumer:le$3,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:tn$2,lastReadVersion:e.version,nextConsumer:void 0};le$3.producersTail=s,t!==void 0?t.nextProducer=s:le$3.producers=s,i&&Jl(e,s);}function Ql(){tn$2++;}function on$2(e){if(!(Ln$3(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===tn$2)){if(!e.producerMustRecompute(e)&&!Pn$3(e)){Fn$3(e);return}e.producerRecomputeValue(e),Fn$3(e);}}function ra$1(e){if(e.consumers===void 0)return;let t=Qo$1;Qo$1=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Dy(r);}}finally{Qo$1=t;}}function oa$1(){return le$3?.consumerAllowSignalWrites!==false}function Dy(e){e.dirty=true,ra$1(e),e.consumerMarkedDirty?.(e);}function Fn$3(e){e.dirty=false,e.lastCleanEpoch=tn$2;}function ct$1(e){return e&&Kl(e),I(e)}function Kl(e){if(e.producersTail?.knownValidAtEpoch===tn$2){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function St$2(e,t){I(t),e&&Xl(e);}function Xl(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Ln$3(e))do n=ia$1(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Pn$3(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(on$2(n),r!==n.version))return true}return false}function Mt$2(e){if(Ln$3(e)){let t=e.producers;for(;t!==void 0;)t=ia$1(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Jl(e,t){let n=e.consumersTail,r=Ln$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)Jl(o.producer,o);}function ia$1(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,!Ln$3(t)){let i=t.producers;for(;i!==void 0;)i=ia$1(i);}return n}function Ln$3(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Tr$1(e,t){return Object.is(e,t)}function _r$1(e,t){let n=Object.create(Ey);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(on$2(n),at$3(n),n.value===qe$2)throw n.error;return n.value};return r[G$3]=n,r}var nn$2=Symbol("UNSET"),rn$2=Symbol("COMPUTING"),qe$2=Symbol("ERRORED"),Ey=x$1(w$1({},_t$4),{value:nn$2,dirty:true,error:null,equal:Tr$1,kind:"computed",producerMustRecompute(e){return e.value===nn$2||e.value===rn$2},producerRecomputeValue(e){if(e.value===rn$2)throw new Error("");let t=e.value;e.value=rn$2;let n=ct$1(e),r,o=false;try{r=e.computation(),I(null),o=t!==nn$2&&t!==qe$2&&r!==qe$2&&e.equal(t,r);}catch(i){r=qe$2,e.error=i;}finally{St$2(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Iy(){throw new Error}var ed=Iy;function td(e){ed(e);}function sa$1(e){ed=e;}function aa$1(e,t){let n=Object.create(Sr$1);n.value=e,t!==void 0&&(n.equal=t);let r=()=>nd(n);return r[G$3]=n,[r,s=>Nt$3(n,s),s=>Xo$1(n,s)]}function nd(e){return at$3(e),e.value}function Nt$3(e,t){oa$1()||td(e),e.equal(e.value,t)||(e.value=t,Cy(e));}function Xo$1(e,t){oa$1()||td(e),Nt$3(e,t(e.value));}var Sr$1=x$1(w$1({},_t$4),{equal:Tr$1,value:void 0,kind:"signal"});function Cy(e){e.version++,Ql(),ra$1(e);}var ca$1=x$1(w$1({},_t$4),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function ua$1(e){if(e.dirty=false,e.version>0&&!Pn$3(e))return;e.version++;let t=ct$1(e);try{e.cleanup(),e.fn();}finally{St$2(e,t);}}var la$1;function Jo$1(){return la$1}function Ze$2(e){let t=la$1;return la$1=e,t}var rd=Symbol("NotFound");function jn$3(e){return e===rd||e?.name==="\u0275NotFound"}function da(e,t,n){let r=Object.create(by);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(on$2(r),at$3(r),r.value===qe$2)throw r.error;return r.value};return i[G$3]=r,i}function od(e,t){on$2(e),Nt$3(e,t),Fn$3(e);}function id(e,t){if(on$2(e),e.value===qe$2)throw e.error;Xo$1(e,t),Fn$3(e);}var by=x$1(w$1({},_t$4),{value:nn$2,dirty:true,error:null,equal:Tr$1,kind:"linkedSignal",producerMustRecompute(e){return e.value===nn$2||e.value===rn$2},producerRecomputeValue(e){if(e.value===rn$2)throw new Error("");let t=e.value;e.value=rn$2;let n=ct$1(e),r,o=false;try{let i=e.source(),s=t!==nn$2&&t!==qe$2,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,I(null),o=s&&r!==qe$2&&e.equal(t,r);}catch(i){r=qe$2,e.error=i;}finally{St$2(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function sd(e){let t=I(null);try{return e()}finally{I(t);}}var si$3="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",v$1=class v extends Error{code;constructor(t,n){super(pt$4(t,n)),this.code=t;}};function Ty(e){return `NG0${Math.abs(e)}`}function pt$4(e,t){return `${Ty(e)}${t?": "+t:""}`}function R$3(e){for(let t in e)if(e[t]===R$3)return t;throw Error("")}function dd(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function Or(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(Or).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 ai$3(e,t){return e?t?`${e} ${t}`:e:t||""}var _y=R$3({__forward_ref__:R$3});function ci$3(e){return e.__forward_ref__=ci$3,e}function ne$3(e){return ba(e)?e():e}function ba(e){return typeof e=="function"&&e.hasOwnProperty(_y)&&e.__forward_ref__===ci$3}function k$2(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ui$3(e){return {providers:e.providers||[],imports:e.imports||[]}}function kr(e){return My(e,li$3)}function Sy(e){return kr(e)!==null}function My(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Ny(e){let t=e?.[li$3]??null;return t||null}function pa(e){return e&&e.hasOwnProperty(ti$3)?e[ti$3]:null}var li$3=R$3({\u0275prov:R$3}),ti$3=R$3({\u0275inj:R$3}),T$4=class T{_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=k$2({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function Ta(e){return e&&!!e.\u0275providers}var _a=R$3({\u0275cmp:R$3}),Sa=R$3({\u0275dir:R$3}),Ma=R$3({\u0275pipe:R$3}),Na=R$3({\u0275mod:R$3}),Nr$1=R$3({\u0275fac:R$3}),ln$1=R$3({__NG_ELEMENT_ID__:R$3}),ad=R$3({__NG_ENV_ID__:R$3});function fd(e){return di$3(e),e[Na]||null}function ht$4(e){return di$3(e),e[_a]||null}function xa(e){return di$3(e),e[Sa]||null}function pd(e){return di$3(e),e[Ma]||null}function di$3(e,t){if(e==null)throw new v$1(-919,false)}function W$4(e){return typeof e=="string"?e:e==null?"":String(e)}var hd=R$3({ngErrorCode:R$3}),xy=R$3({ngErrorMessage:R$3});R$3({ngTokenPath:R$3});function Aa(e,t){return gd$1("",-200)}function fi$3(e,t){throw new v$1(-201,false)}function gd$1(e,t,n){let r=new v$1(t,e);return r[hd]=t,r[xy]=e,r}function Ry(e){return e[hd]}var ha;function md(){return ha}function de$5(e){let t=ha;return ha=e,t}function Ra(e,t,n){let r=kr(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;fi$3();}var Ye$2=globalThis;var Oy={},sn$2=Oy,ky="__NG_DI_FLAG__",ga=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=an$2(n)||0;try{return this.injector.get(t,r&8?null:sn$2,r)}catch(o){if(jn$3(o))return o;throw o}}};function Fy(e,t=0){let n=Jo$1();if(n===void 0)throw new v$1(-203,false);if(n===null)return Ra(e,void 0,t);{let r=Py(t),o=n.retrieve(e,r);if(jn$3(o)){if(r.optional)return null;throw o}return o}}function B$1(e,t=0){return (md()||Fy)(ne$3(e),t)}function g(e,t){return B$1(e,an$2(t))}function an$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Py(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ma(e){let t=[];for(let n=0;n<e.length;n++){let r=ne$3(e[n]);if(Array.isArray(r)){if(r.length===0)throw new v$1(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Ly(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 Ly(e){return e[ky]}function xt$2(e,t){let n=e.hasOwnProperty(Nr$1);return n?e[Nr$1]:null}function yd(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 vd(e){return e.flat(Number.POSITIVE_INFINITY)}function pi$3(e,t){e.forEach(n=>Array.isArray(n)?pi$3(n,t):t(n));}function Oa(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Fr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Dd(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Ed(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 hi$3(e,t,n){let r=Hn$3(e,t);return r>=0?e[r|1]=n:(r=~r,Ed(e,r,t,n)),r}function gi$3(e,t){let n=Hn$3(e,t);if(n>=0)return e[n|1]}function Hn$3(e,t){return jy(e,t,1)}function jy(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 Rt$1={},oe$3=[],Ot$1=new T$4(""),Pr=new T$4("",-1),ka$1=new T$4(""),Vn$3=class Vn{get(t,n=sn$2){if(n===sn$2){let o=gd$1("",-201);throw o.name="\u0275NotFound",o}return n}};function kt$1(e){return {\u0275providers:e}}function Id(e){return kt$1([{provide:Ot$1,multi:true,useValue:e}])}function wd(...e){return {\u0275providers:Fa(true,e),\u0275fromNgModule:true}}function Fa(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return pi$3(t,s=>{let a=s;ni$3(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Cd(o,i),n}function Cd(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Pa(o,i=>{t(i,r);});}}function ni$3(e,t,n,r){if(e=ne$3(e),!e)return false;let o=null,i=pa(e),s=!i&&ht$4(e);if(!i&&!s){let c=e.ngModule;if(i=pa(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)ni$3(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;pi$3(i.imports,l=>{ni$3(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Cd(u,t);}if(!a){let u=xt$2(o)||(()=>new o);t({provide:o,useFactory:u,deps:oe$3},o),t({provide:ka$1,useValue:o,multi:true},o),t({provide:Ot$1,useValue:()=>B$1(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;Pa(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function Pa(e,t){for(let n of e)Ta(n)&&(n=n.\u0275providers),Array.isArray(n)?Pa(n,t):t(n);}var By=R$3({provide:String,useValue:R$3});function bd(e){return e!==null&&typeof e=="object"&&By in e}function Vy(e){return !!(e&&e.useExisting)}function Hy(e){return !!(e&&e.useFactory)}function cn$2(e){return typeof e=="function"}function Td(e){return !!e.useClass}var La=new T$4(""),ei$3={},cd={},fa;function Un$3(){return fa===void 0&&(fa=new Vn$3),fa}var fe$5=class fe{},un$2=class un extends fe$5{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(Pr,Bn$3(void 0,this)),o.has("environment")&&this.records.set(fe$5,Bn$3(void 0,this));let i=this.records.get(La);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ka$1,oe$3,{self:true}));}retrieve(t,n){let r=an$2(n)||0;try{return this.get(t,sn$2,r)}catch(o){if(jn$3(o))return o;throw o}}destroy(){Mr$1(this),this._destroyed=true;let t=I(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(t);}}onDestroy(t){return Mr$1(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Mr$1(this);let n=Ze$2(this),r=de$5(void 0);try{return t()}finally{Ze$2(n),de$5(r);}}get(t,n=sn$2,r){if(Mr$1(this),t.hasOwnProperty(ad))return t[ad](this);let o=an$2(r),s=Ze$2(this),a=de$5(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Wy(t)&&kr(t);l&&this.injectableDefInScope(l)?u=Bn$3(ya(t),ei$3):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Un$3():this.parent;return n=o&8&&n===sn$2?null:n,c.get(t,n)}catch(c){let u=Ry(c);throw u===-200||u===-201?new v$1(u,null):c}finally{de$5(a),Ze$2(s);}}resolveInjectorInitializers(){let t=I(null),n=Ze$2(this),r=de$5(void 0);try{let i=this.get(Ot$1,oe$3,{self:!0});for(let s of i)s();}finally{Ze$2(n),de$5(r),I(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=ne$3(t);let n=cn$2(t)?t:ne$3(t&&t.provide),r=$y(t);if(!cn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Bn$3(void 0,ei$3,true),o.factory=()=>ma(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(null);try{if(n.value===cd)throw Aa("");return n.value===ei$3&&(n.value=cd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Gy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=ne$3(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function ya(e){let t=kr(e),n=t!==null?t.factory:xt$2(e);if(n!==null)return n;if(e instanceof T$4)throw new v$1(-204,false);if(e instanceof Function)return Uy(e);throw new v$1(-204,false)}function Uy(e){if(e.length>0)throw new v$1(-204,false);let n=Ny(e);return n!==null?()=>n.factory(e):()=>new e}function $y(e){if(bd(e))return Bn$3(void 0,e.useValue);{let t=ja(e);return Bn$3(t,ei$3)}}function ja(e,t,n){let r;if(cn$2(e)){let o=ne$3(e);return xt$2(o)||ya(o)}else if(bd(e))r=()=>ne$3(e.useValue);else if(Hy(e))r=()=>e.useFactory(...ma(e.deps||[]));else if(Vy(e))r=(o,i)=>B$1(ne$3(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=ne$3(e&&(e.useClass||e.provide));if(zy(e))r=()=>new o(...ma(e.deps));else return xt$2(o)||ya(o)}return r}function Mr$1(e){if(e.destroyed)throw new v$1(-205,false)}function Bn$3(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function zy(e){return !!e.deps}function Gy(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Wy(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&&Ta(n)?va(n.\u0275providers,t):t(n);}function $n$3(e,t){let n;e instanceof un$2?(Mr$1(e),n=e):n=new ga(e);let o=Ze$2(n),i=de$5(void 0);try{return t()}finally{Ze$2(o),de$5(i);}}function _d(){return md()!==void 0||Jo$1()!=null}var Pe$2=0,E=1,_$3=2,J$2=3,be$5=4,ie$3=5,dn$3=6,zn$3=7,q$1=8,Qe$3=9,Le$3=10,F$5=11,Gn$3=12,Ba=13,Ft$2=14,se$2=15,Pt$3=16,fn$2=17,Ke$4=18,Xe=19,Va=20,lt$2=21,mi$3=22,At$2=23,De$4=24,pn$2=25,Je$3=26,H$2=27,Sd=1,Ha=6,Lt$2=7,Lr=8,hn$2=9,$$4=10;function gt$3(e){return Array.isArray(e)&&typeof e[Sd]=="object"}function Te$3(e){return Array.isArray(e)&&e[Sd]===true}function Ua(e){return (e.flags&4)!==0}function mt$4(e){return e.componentOffset>-1}function Wn$3(e){return (e.flags&1)===1}function et(e){return !!e.template}function qn$3(e){return (e[_$3]&512)!==0}function gn$2(e){return (e[_$3]&256)===256}var $a="svg",Md="math";function _e$5(e){for(;Array.isArray(e);)e=e[Pe$2];return e}function za(e,t){return _e$5(t[e])}function Se$3(e,t){return _e$5(t[e.index])}function yi$3(e,t){return e.data[t]}function vi$3(e,t){return e[t]}function Ga(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Me$3(e,t){let n=t[e];return gt$3(n)?n:n[Pe$2]}function Nd(e){return (e[_$3]&4)===4}function Di$3(e){return (e[_$3]&128)===128}function xd(e){return Te$3(e[J$2])}function Ee$3(e,t){return t==null?null:e[t]}function Wa(e){e[fn$2]=0;}function qa(e){e[_$3]&1024||(e[_$3]|=1024,Di$3(e)&&mn$2(e));}function Ad(e,t){for(;e>0;)t=t[Ft$2],e--;return t}function jr(e){return !!(e[_$3]&9216||e[De$4]?.dirty)}function Ei$2(e){e[Le$3].changeDetectionScheduler?.notify(8),e[_$3]&64&&(e[_$3]|=1024),jr(e)&&mn$2(e);}function mn$2(e){e[Le$3].changeDetectionScheduler?.notify(0);let t=dt$2(e);for(;t!==null&&!(t[_$3]&8192||(t[_$3]|=8192,!Di$3(t)));)t=dt$2(t);}function Ii$1(e,t){if(gn$2(e))throw new v$1(911,false);e[lt$2]===null&&(e[lt$2]=[]),e[lt$2].push(t);}function Rd(e,t){if(e[lt$2]===null)return;let n=e[lt$2].indexOf(t);n!==-1&&e[lt$2].splice(n,1);}function dt$2(e){let t=e[J$2];return Te$3(t)?t[J$2]:t}function Za(e){return e[zn$3]??=[]}function Ya(e){return e.cleanup??=[]}function Od(e,t,n,r){let o=Za(t);o.push(n),e.firstCreatePass&&Ya(e).push(r,o.length-1);}var M$1={lFrame:Wd(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Da=false;function kd(){return M$1.lFrame.elementDepthCount}function Fd(){M$1.lFrame.elementDepthCount++;}function Qa(){M$1.lFrame.elementDepthCount--;}function wi$3(){return M$1.bindingsEnabled}function Ka(){return M$1.skipHydrationRootTNode!==null}function Xa(e){return M$1.skipHydrationRootTNode===e}function Ja(){M$1.skipHydrationRootTNode=null;}function y$1(){return M$1.lFrame.lView}function P$3(){return M$1.lFrame.tView}function Pd(e){return M$1.lFrame.contextLView=e,e[q$1]}function Ld(e){return M$1.lFrame.contextLView=null,e}function Q$1(){let e=ec();for(;e!==null&&e.type===64;)e=e.parent;return e}function ec(){return M$1.lFrame.currentTNode}function jd(){let e=M$1.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Zn$3(e,t){let n=M$1.lFrame;n.currentTNode=e,n.isParent=t;}function tc(){return M$1.lFrame.isParent}function nc(){M$1.lFrame.isParent=false;}function Bd(){return M$1.lFrame.contextLView}function rc(){return Da}function xr(e){let t=Da;return Da=e,t}function jt$2(){let e=M$1.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Br(){return M$1.lFrame.bindingIndex}function Vd(e){return M$1.lFrame.bindingIndex=e}function Bt$1(){return M$1.lFrame.bindingIndex++}function yn$2(e){let t=M$1.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Hd(){return M$1.lFrame.inI18n}function Ud(e,t){let n=M$1.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ci$3(t);}function $d(){return M$1.lFrame.currentDirectiveIndex}function Ci$3(e){M$1.lFrame.currentDirectiveIndex=e;}function zd(e){let t=M$1.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function bi$3(){return M$1.lFrame.currentQueryIndex}function Vr(e){M$1.lFrame.currentQueryIndex=e;}function qy(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[ie$3]:null}function oc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=qy(i),o===null||(i=i[Ft$2],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=M$1.lFrame=Gd();return r.currentTNode=t,r.lView=e,true}function Ti$3(e){let t=Gd(),n=e[E];M$1.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function Gd(){let e=M$1.lFrame,t=e===null?null:e.child;return t===null?Wd(e):t}function Wd(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 qd(){let e=M$1.lFrame;return M$1.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ic=qd;function _i$3(){let e=qd();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 Zd(e){return (M$1.lFrame.contextLView=Ad(e,M$1.lFrame.contextLView))[q$1]}function Ie$2(){return M$1.lFrame.selectedIndex}function Vt$1(e){M$1.lFrame.selectedIndex=e;}function Yn$3(){let e=M$1.lFrame;return yi$3(e.tView,e.selectedIndex)}function Yd(){M$1.lFrame.currentNamespace=$a;}function Qd(){Zy();}function Zy(){M$1.lFrame.currentNamespace=null;}function sc(){return M$1.lFrame.currentNamespace}var Kd=true;function Si$3(){return Kd}function Hr(e){Kd=e;}function Ea$1(e,t=null,n=null,r){let o=ac(e,t,n);return o.resolveInjectorInitializers(),o}function ac(e,t=null,n=null,r,o=new Set){let i=[n||oe$3,wd(e)];return new un$2(i,t||Un$3(),null,o)}var pe$5=class e{static THROW_IF_NOT_FOUND=sn$2;static NULL=new Vn$3;static create(t,n){if(Array.isArray(t))return Ea$1({name:""},n,t);{let r=t.name??"";return Ea$1({name:r},t.parent,t.providers)}}static \u0275prov=k$2({token:e,providedIn:"any",factory:()=>B$1(Pr)});static __NG_ELEMENT_ID__=-1},he$6=new T$4(""),we$4=(()=>{class e{static __NG_ELEMENT_ID__=Yy;static __NG_ENV_ID__=n=>n}return e})(),ri$3=class ri extends we$4{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return gn$2(this._lView)}onDestroy(t){let n=this._lView;return Ii$1(n,t),()=>Rd(n,t)}};function Yy(){return new ri$3(y$1())}var cc=false,Xd=new T$4(""),Ht$1=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new vr$1(false);debugTaskTracker=g(Xd,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new x(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=k$2({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ia=class extends ue$4{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,_d()&&(this.destroyRef=g(we$4,{optional:true})??void 0,this.pendingTasks=g(Ht$1,{optional:true})??void 0);}emit(t){let n=I(null);try{super.next(t);}finally{I(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$2&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},ut$2=Ia;function oi$3(...e){}function uc(e){let t,n;function r(){e=oi$3;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 Jd(e){return queueMicrotask(()=>e()),()=>{e=oi$3;}}var lc="isAngularZone",Ar$1=lc+"_ID",Qy=0,ee$5=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new ut$2(false);onMicrotaskEmpty=new ut$2(false);onStable=new ut$2(false);onError=new ut$2(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=cc}=t;if(typeof Zone>"u")throw new v$1(908,false);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=false,s.scheduleInRootZone=i,Jy(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(lc)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new v$1(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v$1(909,false)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Ky,oi$3,oi$3);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)}},Ky={};function dc(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 Xy(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){uc(()=>{e.callbackScheduled=false,wa(e),e.isCheckStableRunning=true,dc(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),wa(e);}function Jy(e){let t=()=>{Xy(e);},n=Qy++;e._inner=e._inner.fork({name:"angular",properties:{[lc]:true,[Ar$1]:n,[Ar$1+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(ev(c))return r.invokeTask(i,s,a,c);try{return ud(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),ld(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return ud(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!tv(c)&&t(),ld(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,wa(e),dc(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 wa(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function ud(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function ld(e){e._nesting--,dc(e);}var Rr$1=class Rr{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new ut$2;onMicrotaskEmpty=new ut$2;onStable=new ut$2;onError=new ut$2;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function ev(e){return ef(e,"__ignore_ng_zone__")}function tv(e){return ef(e,"__scheduler_tick__")}function ef(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var ft$4=class ft{_console=console;handleError(t){this._console.error("ERROR",t);}},tt$1=new T$4("",{factory:()=>{let e=g(ee$5),t=g(fe$5),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(ft$4),n.handleError(r));});}}}),tf={provide:Ot$1,useValue:()=>{g(ft$4,{optional:true});},multi:true},nv=new T$4("",{factory:()=>{let e=g(he$6).defaultView;if(!e)return;let t=g(tt$1),n=i=>{t(i.reason),i.preventDefault();},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault();},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r);};typeof Zone<"u"?Zone.root.run(o):o(),g(we$4).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function rv(){return kt$1([Id(()=>{g(nv);})])}function Mi$3(e,t){let [n,r,o]=aa$1(e,t?.equal),i=n;i[G$3];return i.set=r,i.update=o,i.asReadonly=Ur.bind(i),i}function Ur(){let e=this[G$3];if(e.readonlyFn===void 0){let t=()=>this();t[G$3]=e,e.readonlyFn=t;}return e.readonlyFn}var nf=new T$4("",{factory:()=>ov}),ov="ng";var rf=new T$4(""),iv=new T$4("",{providedIn:"platform",factory:()=>"unknown"}),sv=new T$4(""),of=new T$4("",{factory:()=>g(he$6).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Qn$3=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=av}return e})();function av(){return new Qn$3(y$1(),Q$1())}var Fe$4=class Fe{},Kn$3=new T$4("",{factory:()=>true});var Ni$3=new T$4(""),xi$2=(()=>{class e{static \u0275prov=k$2({token:e,providedIn:"root",factory:()=>new Ca})}return e})(),Ca=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$3=class ii{[G$3];constructor(t){this[G$3]=t;}destroy(){this[G$3].destroy();}};function sf(e,t){let n=t?.injector??g(pe$5),r=t?.manualCleanup!==true?n.get(we$4):null,o,i=n.get(Qn$3,null,{optional:true}),s=n.get(Fe$4);return i!==null?(o=lv(i.view,s,e),r instanceof ri$3&&r._lView===i.view&&(r=null)):o=dv(e,n.get(xi$2),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new ii$3(o)}var af=x$1(w$1({},ca$1),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=xr(false);try{ua$1(this);}finally{xr(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=I(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],I(e);}}}),cv=x$1(w$1({},af),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Mt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),uv=x$1(w$1({},af),{consumerMarkedDirty(){this.view[_$3]|=8192,mn$2(this.view),this.notifier.notify(13);},destroy(){if(Mt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[At$2]?.delete(this);}});function lv(e,t,n){let r=Object.create(uv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=cf(r,n),e[At$2]??=new Set,e[At$2].add(r),r.consumerMarkedDirty(r),r}function dv(e,t,n){let r=Object.create(cv);return r.fn=cf(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 cf(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function $r(e){return typeof e=="function"&&e[G$3]!==void 0}function Ai$3(e){return $r(e)&&typeof e.set=="function"}var zr=(()=>{class e{internalPendingTasks=g(Ht$1);scheduler=g(Fe$4);errorHandler=g(tt$1);add(){let n=this.internalPendingTasks.add();return ()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n));}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=k$2({token:e,providedIn:"root",factory:()=>new e})}return e})();function ro$1(e){return {toString:e}.toString()}var A$2=(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})(A$2||{}),Vi$2=class Vi{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function qf(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var Zf=null,ou=(()=>{Zf=uf;let e=()=>uf;return e.ngInherit=true,e})();function wv(){return Zf}function uf(e){return e.type.prototype.ngOnChanges&&(e.setInput=bv),Cv}function Cv(){let e=Yf(this),t=e?.current;if(t){let n=e.previous;if(n===Rt$1)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function bv(e,t,n,r,o){let i=this.declaredInputs[r],s=Yf(e)||Tv(e,{previous:Rt$1,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Vi$2(u&&u.currentValue,n,c===Rt$1),qf(e,t,o,n);}var Cc="__ngSimpleChanges__";function Yf(e){return Object.hasOwn(e,Cc)&&e[Cc]||null}function Tv(e,t){return e[Cc]=t}var lf=[];var O$2=function(e,t=null,n){for(let r=0;r<lf.length;r++){let o=lf[r];o(e,t,n);}};function _v(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=wv()(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 Qf(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 Pi$3(e,t,n){Kf(e,t,3,n);}function Li$2(e,t,n,r){(e[_$3]&3)===n&&Kf(e,t,n,r);}function fc(e,t){let n=e[_$3];(n&3)===t&&(n&=16383,n+=1,e[_$3]=n);}function Kf(e,t,n,r){let o=r!==void 0?e[fn$2]&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[fn$2]+=65536),(a<i||i==-1)&&(Sv(e,n,t,c),e[fn$2]=(e[fn$2]&4294901760)+c+2),c++;}function df(e,t){O$2(A$2.LifecycleHookStart,e,t);let n=I(null);try{t.call(e);}finally{I(n),O$2(A$2.LifecycleHookEnd,e,t);}}function Sv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[_$3]>>14<e[fn$2]>>16&&(e[_$3]&3)===t&&(e[_$3]+=16384,df(a,i)):df(a,i);}var Jn$2=-1,Dn$3=class Dn{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 Mv(e){return (e.flags&8)!==0}function Nv(e){return (e.flags&16)!==0}function xv(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];Av(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Xf(e){return e===3||e===4||e===6}function Av(e){return e.charCodeAt(0)===64}function er$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?ff(e,n,o,null,t[++r]):ff(e,n,o,null,null));}}return e}function ff(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 Jf(e){return e!==Jn$2}function Hi$1(e){return e&32767}function Rv(e){return e>>16}function Ui$1(e,t){let n=Rv(e),r=t;for(;n>0;)r=r[Ft$2],n--;return r}var bc=true;function $i$1(e){let t=bc;return bc=e,t}var Ov=256,ep=Ov-1,tp=5,kv=0,nt$1={};function Fv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ln$1)&&(r=n[ln$1]),r==null&&(r=n[ln$1]=kv++);let o=r&ep,i=1<<o;t.data[e+(o>>tp)]|=i;}function zi$2(e,t){let n=np(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,pc(r.data,e),pc(t,null),pc(r.blueprint,null));let o=iu(e,t),i=e.injectorIndex;if(Jf(o)){let s=Hi$1(o),a=Ui$1(o,t),c=a[E].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function pc(e,t){e.push(0,0,0,0,0,0,0,0,t);}function np(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function iu(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=cp(o),r===null)return Jn$2;if(n++,o=o[Ft$2],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Jn$2}function Tc(e,t,n){Fv(e,t,n);}function Pv(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(Xf(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 rp(e,t,n){if(n&8||e!==void 0)return e;fi$3();}function op(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Qe$3],i=de$5(void 0);try{return o?o.get(t,r,n&8):Ra(t,r,n&8)}finally{de$5(i);}}return rp(r,t,n)}function ip(e,t,n,r=0,o){if(e!==null){if(t[_$3]&2048&&!(r&2)){let s=Vv(e,t,n,r,nt$1);if(s!==nt$1)return s}let i=sp(e,t,n,r,nt$1);if(i!==nt$1)return i}return op(t,n,r,o)}function sp(e,t,n,r,o){let i=jv(n);if(typeof i=="function"){if(!oc(t,e,r))return r&1?rp(o,n,r):op(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))fi$3(n);else return s}finally{ic();}}else if(typeof i=="number"){let s=null,a=np(e,t),c=Jn$2,u=r&1?t[se$2][ie$3]:null;for((a===-1||r&4)&&(c=a===-1?iu(e,t):t[a+8],c===Jn$2||!hf(r,false)?a=-1:(s=t[E],a=Hi$1(c),t=Ui$1(c,t)));a!==-1;){let l=t[E];if(pf(i,a,l.data)){let d=Lv(a,t,n,s,r,u);if(d!==nt$1)return d}c=t[a+8],c!==Jn$2&&hf(r,t[E].data[a+8]===u)&&pf(i,a,t)?(s=l,a=Hi$1(c),t=Ui$1(c,t)):a=-1;}}return o}function Lv(e,t,n,r,o,i){let s=t[E],a=s.data[e+8],c=r==null?mt$4(a)&&bc:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=ji$1(a,s,n,c,u);return l!==null?Yr(t,s,l,a,o):nt$1}function ji$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&&et(f)&&f.type===n)return c}return null}function Yr(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Dn$3){let a=i;if(a.resolving)throw Aa();let c=$i$1(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?de$5(a.injectImpl):null;oc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&_v(n,s[n],t);}finally{d!==null&&de$5(d),$i$1(c),a.resolving=false,ic();}}return i}function jv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ln$1)?e[ln$1]:void 0;return typeof t=="number"?t>=0?t&ep:Bv:t}function pf(e,t,n){let r=1<<e;return !!(n[t+(e>>tp)]&r)}function hf(e,t){return !(e&2)&&!(e&1&&t)}var Ut$3=class Ut{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return ip(this._tNode,this._lView,t,an$2(r),n)}};function Bv(){return new Ut$3(Q$1(),y$1())}function ap(e){return ro$1(()=>{let t=e.prototype.constructor,n=t[Nr$1]||_c(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Nr$1]||_c(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function _c(e){return ba(e)?()=>{let t=_c(ne$3(e));return t&&t()}:xt$2(e)}function Vv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[_$3]&2048&&!qn$3(s);){let a=sp(i,s,n,r|2,nt$1);if(a!==nt$1)return a;let c=i.parent;if(!c){let u=s[Va];if(u){let l=u.get(n,nt$1,r&-5);if(l!==nt$1)return l}c=cp(s),s=s[Ft$2];}i=c;}return o}function cp(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[ie$3]:null}function su(e){return Pv(Q$1(),e)}function Ve$3(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function Hv(){return cr$1(Q$1(),y$1())}function cr$1(e,t){return new Tn$3(Se$3(e,t))}var Tn$3=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=Hv}return e})();function up(e){return e instanceof Tn$3?e.nativeElement:e}function Uv(){return this._results[Symbol.iterator]()}var Gi$1=class Gi{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ue$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=vd(t);(this._changesDetected=!yd(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]=Uv};function lp(e){return (e.flags&128)===128}var au=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(au||{}),dp=new Map,$v=0;function zv(){return $v++}function Gv(e){dp.set(e[Xe],e);}function Sc(e){dp.delete(e[Xe]);}var gf="__ngContext__";function tr$1(e,t){gt$3(t)?(e[gf]=t[Xe],Gv(t)):e[gf]=t;}function fp(e){return hp(e[Gn$3])}function pp(e){return hp(e[be$5])}function hp(e){for(;e!==null&&!Te$3(e);)e=e[be$5];return e}var Mc;function Wv(e){Mc=e;}function cu(){if(Mc!==void 0)return Mc;if(typeof document<"u")return document;throw new v$1(210,false)}var gp="r";var mp="di";var qv=new T$4(""),yp=false,vp=new T$4("",{factory:()=>yp});var Zv=new T$4("");var mf=new WeakMap;function Yv(e,t){if(e==null||typeof e!="object")return;let n=mf.get(e);n||(n=new WeakSet,mf.set(e,n)),n.add(t);}function ss(e){return (e.flags&32)===32}var Xv=()=>null;function Dp(e,t,n=false){return Xv()}function Ep(e,t){let n=e.contentQueries;if(n!==null){let r=I(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];Vr(i),a.contentQueries(2,t[s],s);}}}finally{I(r);}}}function Nc(e,t,n){Vr(0);let r=I(null);try{t(e,n);}finally{I(r);}}function uu(e,t,n){if(Ua(t)){let r=I(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(r);}}}var En$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})(En$3||{});var Ri$3;function Jv(){if(Ri$3===void 0&&(Ri$3=null,Ye$2.trustedTypes))try{Ri$3=Ye$2.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Ri$3}function as(e){return Jv()?.createHTML(e)||e}var Oi$2;function Ip(){if(Oi$2===void 0&&(Oi$2=null,Ye$2.trustedTypes))try{Oi$2=Ye$2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Oi$2}function yf(e){return Ip()?.createHTML(e)||e}function vf(e){return Ip()?.createScriptURL(e)||e}var yt$3=class yt{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${si$3})`}},xc=class extends yt$3{getTypeName(){return "HTML"}},Ac=class extends yt$3{getTypeName(){return "Style"}},Rc=class extends yt$3{getTypeName(){return "Script"}},Oc=class extends yt$3{getTypeName(){return "URL"}},kc=class extends yt$3{getTypeName(){return "ResourceURL"}};function _n$3(e){return e instanceof yt$3?e.changingThisBreaksApplicationSecurity:e}function cs(e,t){let n=wp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${si$3})`)}return n===t}function wp(e){return e instanceof yt$3&&e.getTypeName()||null}function eD(e){return new xc(e)}function tD(e){return new Ac(e)}function nD(e){return new Rc(e)}function rD(e){return new Oc(e)}function oD(e){return new kc(e)}function iD(e){let t=new Pc(e);return sD()?new Fc(t):t}var Fc=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(as(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},Pc=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=as(t),n}};function sD(){try{return !!new window.DOMParser().parseFromString(as(""),"text/html")}catch(e){return false}}var aD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function lu(e){return e=String(e),e.match(aD)?e:"unsafe:"+e}function vt$3(e){let t={};for(let n of e.split(","))t[n]=true;return t}function oo$1(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Cp=vt$3("area,br,col,hr,img,wbr"),bp=vt$3("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Tp=vt$3("rp,rt"),cD=oo$1(Tp,bp),uD=oo$1(bp,vt$3("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")),lD=oo$1(Tp,vt$3("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")),Df=oo$1(Cp,uD,lD,cD),_p=vt$3("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dD=vt$3("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"),fD=vt$3("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"),pD=oo$1(_p,dD,fD),hD=vt$3("script,style,template"),Lc=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=mD(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=Ef(t).toLowerCase();if(!Df.hasOwnProperty(n))return this.sanitizedSomething=true,!hD.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(!pD.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;_p[a]&&(c=lu(c)),this.buf.push(" ",s,'="',If(c),'"');}return this.buf.push(">"),true}endElement(t){let n=Ef(t).toLowerCase();Df.hasOwnProperty(n)&&!Cp.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(If(t));}};function gD(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function mD(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Sp(t);return t}function yD(e){let t=e.firstChild;if(t&&gD(e,t))throw Sp(t);return t}function Ef(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Sp(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var vD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,DD=/([^\#-~ |!])/g;function If(e){return e.replace(/&/g,"&").replace(vD,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(DD,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var ki$3;function Mp(e,t){let n=null;try{ki$3=ki$3||iD(e);let r=t?String(t):"";n=ki$3.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$3.getInertBodyElement(r);}while(r!==i);let a=new Lc().sanitizeChildren(wf(n)||n);return as(a)}finally{if(n){let r=wf(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function wf(e){return "content"in e&&ED(e)?e.content:null}function ED(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var ID=/^>|^->|<!--|-->|--!>|<!-$/g,wD=/(<|>)/g,CD="\u200B$1\u200B";function bD(e){return e.replace(ID,t=>t.replace(wD,CD))}function TD(e,t){return e.createText(t)}function _D(e,t,n){e.setValue(t,n);}function SD(e,t){return e.createComment(bD(t))}function Np(e,t,n){return e.createElement(t,n)}function Wi$1(e,t,n,r,o){e.insertBefore(t,n,r,o);}function xp(e,t,n){e.appendChild(t,n);}function Cf(e,t,n,r,o){r!==null?Wi$1(e,t,n,r,o):xp(e,t,n);}function Ap(e,t,n,r){e.removeChild(null,t,n,r);}function MD(e,t,n){e.setAttribute(t,"style",n);}function ND(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function Rp(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&xv(e,t,r),o!==null&&ND(e,t,o),i!==null&&MD(e,t,i);}var io$1=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(io$1||{});function xD(e){let t=du();return t?yf(t.sanitize(io$1.HTML,e)||""):cs(e,"HTML")?yf(_n$3(e)):Mp(cu(),W$4(e))}function Op(e){let t=du();return t?t.sanitize(io$1.URL,e)||"":cs(e,"URL")?_n$3(e):lu(W$4(e))}function kp(e){let t=du();if(t)return vf(t.sanitize(io$1.RESOURCE_URL,e)||"");if(cs(e,"ResourceURL"))return vf(_n$3(e));throw new v$1(904,false)}var AD={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function RD(e,t){return AD[e.toLowerCase()]?.[t.toLowerCase()]===true?kp:Op}function OD(e,t,n){return RD(t,n)(e)}function du(){let e=y$1();return e&&e[Le$3].sanitizer}function kD(e){return e instanceof Function?e():e}function FD(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 Fp="ng-template";function PD(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&FD(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(fu(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 fu(e){return e.type===4&&e.value!==Fp}function LD(e,t,n){let r=e.type===4&&!n?Fp:e.value;return t===r}function jD(e,t,n){let r=4,o=e.attrs,i=o!==null?HD(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!je$4(r)&&!je$4(c))return false;if(s&&je$4(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!LD(e,c,n)||c===""&&t.length===1){if(je$4(r))return false;s=true;}}else if(r&8){if(o===null||!PD(e,o,c,n)){if(je$4(r))return false;s=true;}}else {let u=t[++a],l=BD(c,o,fu(e),n);if(l===-1){if(je$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(je$4(r))return false;s=true;}}}}return je$4(r)||s}function je$4(e){return (e&1)===0}function BD(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 UD(t,e)}function Pp(e,t,n=false){for(let r=0;r<t.length;r++)if(jD(e,t[r],n))return true;return false}function VD(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function HD(e){for(let t=0;t<e.length;t++){let n=e[t];if(Xf(n))return t}return e.length}function UD(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 $D(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 bf(e,t){return e?":not("+t.trim()+")":t}function zD(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!==""&&!je$4(s)&&(t+=bf(i,o),o=""),r=s,i=i||!je$4(r);n++;}return o!==""&&(t+=bf(i,o)),t}function GD(e){return e.map(zD).join(",")}function WD(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(!je$4(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var Z$1={},Qr=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Qr||{}),qD;function pu(e,t){return qD(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var jc=new WeakMap;function Lp(e){return e?e[Ft$2]??e:null}var Wr=new WeakSet;function ZD(e,t,n){let r=jc.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=Lp(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),Wr.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 YD(e,t,n){let r=Lp(n),o=jc.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):jc.set(e,[{el:t,declarationView:r}]);}var nr$1=new Set,us=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(us||{}),zt$1=new T$4(""),Tf=new Set;function rt$2(e){Tf.has(e)||(Tf.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var ls=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=k$2({token:e,providedIn:"root",factory:()=>new e})}return e})(),hu=[0,1,2,3],gu=(()=>{class e{ngZone=g(ee$5);scheduler=g(Fe$4);errorHandler=g(ft$4,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g(zt$1,{optional:true});}execute(){let n=this.sequences.size>0;n&&O$2(A$2.AfterRenderHooksStart),this.executing=true;for(let r of hu)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&&O$2(A$2.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[pn$2]??=[]).push(n),mn$2(r),r[_$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(us.AFTER_NEXT_RENDER,n):n()}static \u0275prov=k$2({token:e,providedIn:"root",factory:()=>new e})}return e})(),Kr=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[pn$2];t&&(this.view[pn$2]=t.filter(n=>n!==this));}};function QD(e,t){let n=t?.injector??g(pe$5);return rt$2("NgAfterNextRender"),XD(e,n,t,true)}function KD(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function XD(e,t,n,r){let o=t.get(ls);o.impl??=t.get(gu);let i=t.get(zt$1,null,{optional:true}),s=n?.manualCleanup!==true?t.get(we$4):null,a=t.get(Qn$3,null,{optional:true}),c=new Kr(o.impl,KD(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var mu=new T$4("",{factory:()=>{let e=g(fe$5),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function jp(e,t,n){let r=e.get(mu);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 JD(e,t){let n=e.get(mu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function eE(e,t){let n=e.get(mu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function tE(e,t){for(let[n,r]of t)jp(e,r.animateFns);}function _f(e,t,n,r){let o=e?.[Je$3]?.enter;t!==null&&o&&o.has(n.index)&&tE(r,o);}function Sf(e,t,n,r){try{n.get(Pr);}catch(s){return r(false)}let o=e?.[Je$3];o?.enter?.has(t.index)&&JD(n,o.enter.get(t.index).animateFns);let i=nE(e,t,o);if(i.size===0){let s=false;if(e){let a=[];ds(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&nr$1.add(e[Xe]),jp(n,()=>rE(e,t,o||void 0,i,r),o||void 0);}function nE(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[E].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function rE(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&&ds(e,t,i),i.length>0){let s=n||e?.[Je$3];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),iE(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&nr$1.delete(e[Xe]),o(true);});}else e&&nr$1.delete(e[Xe]),o(false);}function ds(e,t,n){if(t.type&12){let o=e[t.index];if(Te$3(o))for(let i=$$4;i<o.length;i++){let s=o[i];s[E].type===2&&oE(s,n);}}let r=t.child;for(;r;)ds(e,r,n),r=r.next;}function oE(e,t){let n=e[Je$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].firstChild;for(;r;)ds(e,r,t),r=r.next;}function iE(e,t,n){t.then(()=>{e[Je$3]?.running===t&&(e[Je$3].running=void 0,nr$1.delete(e[Xe])),n(true);});}function Xn$3(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Te$3(o)?c=o:gt$3(o)&&(u=true,o=o[Pe$2]);let l=_e$5(o);e===0&&r!==null?(_f(a,r,i,n),s==null?xp(t,r,l):Wi$1(t,r,l,s||null,true)):e===1&&r!==null?(_f(a,r,i,n),Wi$1(t,r,l,s||null,true),ZD(i,l,a)):e===2?(a?.[Je$3]?.leave?.has(i.index)&&YD(i,l,a),Wr.delete(l),Sf(a,i,n,d=>{if(Wr.has(l)){Wr.delete(l);return}Ap(t,l,u,d);})):e===3&&(Wr.delete(l),Sf(a,i,n,()=>{t.destroyNode(l);})),c!=null&&gE(t,e,n,c,i,r,s);}}function sE(e,t){Bp(e,t),t[Pe$2]=null,t[ie$3]=null;}function aE(e,t,n,r,o,i){r[Pe$2]=o,r[ie$3]=t,ps(e,r,n,1,o,i);}function Bp(e,t){t[Le$3].changeDetectionScheduler?.notify(9),ps(e,t,t[F$5],2,null,null);}function cE(e){let t=e[Gn$3];if(!t)return hc(e[E],e);for(;t;){let n=null;if(gt$3(t))n=t[Gn$3];else {let r=t[$$4];r&&(n=r);}if(!n){for(;t&&!t[be$5]&&t!==e;)gt$3(t)&&hc(t[E],t),t=t[J$2];t===null&&(t=e),gt$3(t)&&hc(t[E],t),n=t&&t[be$5];}t=n;}}function yu(e,t){let n=e[hn$2],r=n.indexOf(t);n.splice(r,1);}function fs(e,t){if(gn$2(t))return;let n=t[F$5];n.destroyNode&&ps(e,t,n,3,null,null),cE(t);}function hc(e,t){if(gn$2(t))return;let n=I(null);try{t[_$3]&=-129,t[_$3]|=256,t[De$4]&&Mt$2(t[De$4]),lE(e,t),uE(e,t),t[E].type===1&&t[F$5].destroy();let r=t[Pt$3];if(r!==null&&Te$3(t[J$2])){r!==t[J$2]&&yu(r,t);let o=t[Ke$4];o!==null&&o.detachView(e);}Sc(t);}finally{I(n);}}function uE(e,t){let n=e.cleanup,r=t[zn$3];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2;}else {let a=r[n[s+1]];n[s].call(a);}r!==null&&(t[zn$3]=null);let o=t[lt$2];if(o!==null){t[lt$2]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[At$2];if(i!==null){t[At$2]=null;for(let s of i)s.destroy();}}function lE(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 Dn$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];O$2(A$2.LifecycleHookStart,a,c);try{c.call(a);}finally{O$2(A$2.LifecycleHookEnd,a,c);}}else {O$2(A$2.LifecycleHookStart,o,i);try{i.call(o);}finally{O$2(A$2.LifecycleHookEnd,o,i);}}}}}function Vp(e,t,n){return dE(e,t.parent,n)}function dE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Pe$2];if(mt$4(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===En$3.None||o===En$3.Emulated)return null}return Se$3(r,n)}function Hp(e,t,n){return pE(e,t,n)}function fE(e,t,n){return e.type&40?Se$3(e,n):null}var pE=fE;function vu(e,t,n,r){let o=Vp(e,r,t),i=t[F$5],s=r.parent||t[ie$3],a=Hp(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Cf(i,o,n[c],a,false);else Cf(i,o,n,a,false);}function qr(e,t){if(t!==null){let n=t.type;if(n&3)return Se$3(t,e);if(n&4)return Bc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return qr(e,r);{let o=e[t.index];return Te$3(o)?Bc(-1,o):_e$5(o)}}else {if(n&128)return qr(e,t.next);if(n&32)return pu(t,e)()||_e$5(e[t.index]);{let r=Up(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=dt$2(e[se$2]);return qr(o,r)}else return qr(e,t.next)}}}return null}function Up(e,t){if(t!==null){let r=e[se$2][ie$3],o=t.projection;return r.projection[o]}return null}function Bc(e,t){let n=$$4+e+1;if(n<t.length){let r=t[n],o=r[E].firstChild;if(o!==null)return qr(r,o)}return t[Lt$2]}function Du(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Qe$3];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&tr$1(_e$5(c),r),n.flags|=2),!ss(n))if(u&8)Du(e,t,n.child,r,o,i,false),Xn$3(t,e,a,o,c,n,i,r);else if(u&32){let l=pu(n,r),d;for(;d=l();)Xn$3(t,e,a,o,d,n,i,r);Xn$3(t,e,a,o,c,n,i,r);}else u&16?$p(e,t,r,n,o,i):Xn$3(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function ps(e,t,n,r,o,i){Du(n,r,e.firstChild,t,o,i,false);}function hE(e,t,n){let r=t[F$5],o=Vp(e,n,t),i=n.parent||t[ie$3],s=Hp(i,n,t);$p(r,0,t,n,o,s);}function $p(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];Xn$3(t,e,n[Qe$3],o,l,r,i,n);}else {let u=c,l=s[J$2];lp(r)&&(u.flags|=128),Du(e,t,u,l,o,i,true);}}function gE(e,t,n,r,o,i,s){let a=r[Lt$2],c=_e$5(r);a!==c&&Xn$3(t,e,n,i,a,o,s);for(let u=$$4;u<r.length;u++){let l=r[u];ps(l[E],l,e,t,i,a);}}function mE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:Qr.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Qr.Important),e.setStyle(n,r,o,i));}}function Eu(e,t,n,r,o,i,s,a,c,u,l){let d=H$2+r,p=d+o,f=yE(d,p),h=typeof u=="function"?u():u;return f[E]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:false,ssrId:l}}function yE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Z$1);return n}function vE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Eu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Iu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Pe$2]=o,d[_$3]=r|4|128|8|64|1024,(u!==null||e&&e[_$3]&2048)&&(d[_$3]|=2048),Wa(d),d[J$2]=d[Ft$2]=e,d[q$1]=n,d[Le$3]=s||e&&e[Le$3],d[F$5]=a||e&&e[F$5],d[Qe$3]=c||e&&e[Qe$3]||null,d[ie$3]=i,d[Xe]=zv(),d[dn$3]=l,d[Va]=u,d[se$2]=t.type==2?e[se$2]:d,d}function DE(e,t,n){let r=Se$3(t,e),o=vE(n),i=e[Le$3].rendererFactory,s=wu(e,Iu(e,o,null,zp(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function zp(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Gp(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 wu(e,t){return e[Gn$3]?e[Ba][be$5]=t:e[Gn$3]=t,e[Ba]=t,t}function EE(e=1){Wp(P$3(),y$1(),Ie$2()+e);}function Wp(e,t,n,r){if((t[_$3]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Pi$3(t,i,n);}else {let i=e.preOrderHooks;i!==null&&Li$2(t,i,0,n);}Vt$1(n);}var hs=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(hs||{});function In$3(e,t,n,r){let o=I(null);try{let[i,s,a]=e.inputs[n],c=null;(s&hs.SignalBased)!==0&&(c=t[i][G$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):qf(t,c,i,r);}finally{I(o);}}function qp(e,t,n,r,o){let i=Ie$2(),s=r&2;try{Vt$1(-1),s&&t.length>H$2&&Wp(e,t,H$2,!1);let a=s?A$2.TemplateUpdateStart:A$2.TemplateCreateStart;O$2(a,o,n),n(r,o);}finally{Vt$1(i);let a=s?A$2.TemplateUpdateEnd:A$2.TemplateCreateEnd;O$2(a,o,n);}}function gs(e,t,n){_E(e,t,n),(n.flags&64)===64&&SE(e,t,n);}function so$1(e,t,n=Se$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 IE(e,t,n,r){let i=r.get(vp,yp)||n===En$3.ShadowDom||n===En$3.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function bE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Zp(e,t,n,r,o,i){let s=t[E];if(_u(e,s,t,n,r)){mt$4(e)&&TE(t,e.index);return}e.type&3&&(n=bE(n)),Yp(e,t,n,r,o,i);}function Yp(e,t,n,r,o,i){if(e.type&3){let s=Se$3(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function TE(e,t){let n=Me$3(t,e);n[_$3]&16||(n[_$3]|=64);}function _E(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mt$4(n)&&DE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||zi$2(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Yr(t,e,s,n);if(tr$1(c,t),i!==null&&AE(t,s-r,c,a,n,i),et(a)){let u=Me$3(n.index,t);u[q$1]=Yr(t,e,s,n);}}}function SE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=$d();try{Vt$1(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Ci$3(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&ME(c,u);}}finally{Vt$1(-1),Ci$3(s);}}function ME(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function Cu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Pp(t,i.selectors,false)&&(r??=[],et(i)?r.unshift(i):r.push(i));}return r}function NE(e,t,n,r,o,i){let s=Se$3(e,t);xE(t[F$5],s,i,e.value,n,r,o);}function xE(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?W$4(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function AE(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];In$3(r,n,c,u);}}function bu(e,t,n,r,o){let i=H$2+n,s=t[E],a=o(s,t,e,r,n);t[i]=a,Zn$3(e,true);let c=e.type===2;return c?(Rp(t[F$5],a,e),(kd()===0||Wn$3(e))&&tr$1(a,t),Fd()):tr$1(a,t),Si$3()&&(!c||!ss(e))&&vu(s,t,a,e),e}function Tu(e){let t=e;return tc()?nc():(t=t.parent,Zn$3(t,false)),t}function RE(e,t){let n=e[Qe$3];if(!n)return;let r;try{r=n.get(tt$1,null);}catch(o){r=null;}r?.(t);}function _u(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];In$3(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];In$3(l,u,r,o),a=true;}return a}function OE(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],m=d[p+1];In$3(h,n[f],m,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(In$3(r,n[s],o,i),u=true),u}function kE(e,t){let n=Me$3(t,e),r=n[E];FE(r,n);let o=n[Pe$2];o!==null&&n[dn$3]===null&&(n[dn$3]=Dp(o,n[Qe$3])),O$2(A$2.ComponentStart);try{Su(r,n,n[q$1]);}finally{O$2(A$2.ComponentEnd,n[q$1]);}}function FE(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function Su(e,t,n){Ti$3(t);try{let r=e.viewQuery;r!==null&&Nc(1,r,n);let o=e.template;o!==null&&qp(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ke$4]?.finishViewCreation(e),e.staticContentQueries&&Ep(e,t),e.staticViewQueries&&Nc(2,e.viewQuery,n);let i=e.components;i!==null&&PE(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[_$3]&=-5,_i$3();}}function PE(e,t){for(let n=0;n<t.length;n++)kE(e,t[n]);}function ao$1(e,t,n,r){let o=I(null);try{let i=t.tView,a=e[_$3]&4096?4096:16,c=Iu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Pt$3]=u;let l=e[Ke$4];return l!==null&&(c[Ke$4]=l.createEmbeddedView(i)),Su(i,c,n),c}finally{I(o);}}function rr$1(e,t){return !t||t.firstChild===null||lp(e)}function Xr(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(_e$5(i)),Te$3(i)&&Qp(i,r);let s=n.type;if(s&8)Xr(e,t,n.child,r);else if(s&32){let a=pu(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=Up(t,n);if(Array.isArray(a))r.push(...a);else {let c=dt$2(t[se$2]);Xr(c[E],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Qp(e,t){for(let n=$$4;n<e.length;n++){let r=e[n],o=r[E].firstChild;o!==null&&Xr(r[E],r,o,t);}e[Lt$2]!==e[Pe$2]&&t.push(e[Lt$2]);}function Kp(e){if(e[pn$2]!==null){for(let t of e[pn$2])t.impl.addSequence(t);e[pn$2].length=0;}}var Xp=[];function LE(e){return e[De$4]??jE(e)}function jE(e){let t=Xp.pop()??Object.create(VE);return t.lView=e,t}function BE(e){e.lView[De$4]!==e&&(e.lView=null,Xp.push(e));}var VE=x$1(w$1({},_t$4),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{mn$2(e.lView);},consumerOnSignalRead(){this.lView[De$4]=this;}});function HE(e){let t=e[De$4]??Object.create(UE);return t.lView=e,t}var UE=x$1(w$1({},_t$4),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=dt$2(e.lView);for(;t&&!Jp(t[E]);)t=dt$2(t);t&&qa(t);},consumerOnSignalRead(){this.lView[De$4]=this;}});function Jp(e){return e.type!==2}function eh(e){if(e[At$2]===null)return;let t=true;for(;t;){let n=false;for(let r of e[At$2])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[_$3]&8192);}}var $E=100;function th(e,t=0){let r=e[Le$3].rendererFactory;r.begin?.();try{zE(e,t);}finally{r.end?.();}}function zE(e,t){let n=rc();try{xr(!0),Vc(e,t);let r=0;for(;jr(e);){if(r===$E)throw new v$1(103,!1);r++,Vc(e,1);}}finally{xr(n);}}function GE(e,t,n,r){if(gn$2(t))return;let o=t[_$3],i=false,s=false;Ti$3(t);let a=true,c=null,u=null;(Jp(e)?(u=LE(t),c=ct$1(u)):Ko$1()===null?(a=false,u=HE(t),c=ct$1(u)):t[De$4]&&(Mt$2(t[De$4]),t[De$4]=null));try{Wa(t),Vd(e.bindingStartIndex),n!==null&&qp(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Pi$3(t,f,null);}else {let f=e.preOrderHooks;f!==null&&Li$2(t,f,0,null),fc(t,0);}if(s||WE(t),eh(t),nh(t,0),e.contentQueries!==null&&Ep(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Pi$3(t,f);}else {let f=e.contentHooks;f!==null&&Li$2(t,f,1),fc(t,1);}ZE(e,t);let d=e.components;d!==null&&oh(t,d,0);let p=e.viewQuery;if(p!==null&&Nc(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Pi$3(t,f);}else {let f=e.viewHooks;f!==null&&Li$2(t,f,2),fc(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[mi$3]){for(let f of t[mi$3])f();t[mi$3]=null;}i||(Kp(t),t[_$3]&=-73);}catch(l){throw mn$2(t),l}finally{u!==null&&(St$2(u,c),a&&BE(u)),_i$3();}}function nh(e,t){for(let n=fp(e);n!==null;n=pp(n))for(let r=$$4;r<n.length;r++){let o=n[r];rh(o,t);}}function WE(e){for(let t=fp(e);t!==null;t=pp(t)){if(!(t[_$3]&2))continue;let n=t[hn$2];for(let r=0;r<n.length;r++){let o=n[r];qa(o);}}}function qE(e,t,n){O$2(A$2.ComponentStart);let r=Me$3(t,e);try{rh(r,n);}finally{O$2(A$2.ComponentEnd,r[q$1]);}}function rh(e,t){Di$3(e)&&Vc(e,t);}function Vc(e,t){let r=e[E],o=e[_$3],i=e[De$4],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Pn$3(i)),s||=false,i&&(i.dirty=false),e[_$3]&=-9217,s)GE(r,e,r.template,e[q$1]);else if(o&8192){let a=I(null);try{eh(e),nh(e,1);let c=r.components;c!==null&&oh(e,c,1),Kp(e);}finally{I(a);}}}function oh(e,t,n){for(let r=0;r<t.length;r++)qE(e,t[r],n);}function ZE(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)Vt$1(~o);else {let i=o,s=n[++r],a=n[++r];Ud(s,i);let c=t[i];O$2(A$2.HostBindingsUpdateStart,c);try{a(2,c);}finally{O$2(A$2.HostBindingsUpdateEnd,c);}}}}finally{Vt$1(-1);}}function Mu(e,t){let n=rc()?64:1088;for(e[Le$3].changeDetectionScheduler?.notify(t);e;){e[_$3]|=n;let r=dt$2(e);if(qn$3(e)&&!r)return e;e=r;}return null}function ih(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function sh(e,t){let n=$$4+t;if(n<e.length)return e[n]}function co$1(e,t,n,r=true){let o=t[E];if(YE(o,t,e,n),r){let s=Bc(n,e),a=t[F$5],c=a.parentNode(e[Lt$2]);c!==null&&aE(o,e[ie$3],a,t,c,s);}let i=t[dn$3];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function ah(e,t){let n=Jr(e,t);return n!==void 0&&fs(n[E],n),n}function Jr(e,t){if(e.length<=$$4)return;let n=$$4+t,r=e[n];if(r){let o=r[Pt$3];o!==null&&o!==e&&yu(o,r),t>0&&(e[n-1][be$5]=r[be$5]);let i=Fr(e,$$4+t);sE(r[E],r);let s=i[Ke$4];s!==null&&s.detachView(i[E]),r[J$2]=null,r[be$5]=null,r[_$3]&=-129;}return r}function YE(e,t,n,r){let o=$$4+r,i=n.length;r>0&&(n[o-1][be$5]=t),r<i-$$4?(t[be$5]=n[o],Oa(n,$$4+r,t)):(n.push(t),t[be$5]=null),t[J$2]=n;let s=t[Pt$3];s!==null&&n!==s&&ch(s,t);let a=t[Ke$4];a!==null&&a.insertView(e),Ei$2(t),t[_$3]|=128;}function ch(e,t){let n=e[hn$2],r=t[J$2];if(gt$3(r))e[_$3]|=2;else {let o=r[J$2][se$2];t[se$2]!==o&&(e[_$3]|=2);}n===null?e[hn$2]=[t]:n.push(t);}var $t$4=class $t{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E];return Xr(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[q$1]}set context(t){this._lView[q$1]=t;}get destroyed(){return gn$2(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[J$2];if(Te$3(t)){let n=t[Lr],r=n?n.indexOf(this):-1;r>-1&&(Jr(t,r),Fr(n,r));}this._attachedToViewContainer=false;}fs(this._lView[E],this._lView);}onDestroy(t){Ii$1(this._lView,t);}markForCheck(){Mu(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[_$3]&=-129;}reattach(){Ei$2(this._lView),this._lView[_$3]|=128;}detectChanges(){this._lView[_$3]|=1024,th(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v$1(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=qn$3(this._lView),n=this._lView[Pt$3];n!==null&&!t&&yu(n,this._lView),Bp(this._lView[E],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new v$1(902,false);this._appRef=t;let n=qn$3(this._lView),r=this._lView[Pt$3];r!==null&&!n&&ch(r,this._lView),Ei$2(this._lView);}};var or$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=QE;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=ao$1(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new $t$4(i)}}return e})();function QE(){return ms(Q$1(),y$1())}function ms(e,t){return e.type&4?new or$1(t,e,cr$1(e,t)):null}function ur$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=KE(e,t,n,r,o),Hd()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=jd();i.injectorIndex=s===null?-1:s.injectorIndex;}return Zn$3(i,true),i}function KE(e,t,n,r,o){let i=ec(),s=tc(),a=s?i:i&&i.parent,c=e.data[t]=JE(e,a,n,t,r,o);return XE(e,c,i,s),c}function XE(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 JE(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Ka()&&(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 eI(e){let t=e[Ha]??[],r=e[J$2][F$5],o=[];for(let i of t)i.data[mp]!==void 0?o.push(i):tI(i,r);e[Ha]=o;}function tI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[gp];for(;n<o;){let i=r.nextSibling;Ap(t,r,false),r=i,n++;}}}var nI=()=>null,rI=()=>null;function qi$1(e,t){return nI()}function uh(e,t,n){return rI()}var lh=class{},eo$1=class eo{},Nu=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>oI()}return e})();function oI(){let e=y$1(),t=Q$1(),n=Me$3(t.index,e);return (gt$3(n)?n:e)[F$5]}var dh=(()=>{class e{static \u0275prov=k$2({token:e,providedIn:"root",factory:()=>null})}return e})();function fh(e){return e.debugInfo?.className||e.type.name||null}var Bi$2={},Zi$1=class Zi{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,Bi$2,r);return o!==Bi$2||n===Bi$2?o:this.parentInjector.get(t,n,r)}};function uo$1(e,t,n){return e[t]=n}function iI(e,t){return e[t]}function ge$5(e,t,n){if(n===Z$1)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function ir$1(e,t,n,r){let o=ge$5(e,t,n);return ge$5(e,t+1,r)||o}function sI(e,t,n,r,o){let i=ir$1(e,t,n,r);return ge$5(e,t+2,o)||i}function ys(e,t,n,r,o,i){let s=ir$1(e,t,n,r);return ir$1(e,t+2,o,i)||s}function vn$2(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&Yv(o,i);let s=mt$4(e)?Me$3(e.index,t):t;Mu(s,5);let a=t[q$1],c=Nf(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=Nf(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function Nf(e,t,n,r){let o=I(null);try{return O$2(A$2.OutputStart,t,n),n(r)!==!1}catch(i){return RE(e,i),false}finally{O$2(A$2.OutputEnd,t,n),I(o);}}function xu(e,t,n,r,o,i,s,a){let c=Wn$3(e),u=false,l=null;if(!r&&c&&(l=cI(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=Se$3(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!aI(i)){let h=r?m=>r(_e$5(m[e.index])):e.index;ph(h,t,n,i,a,f,false);}}return u}function aI(e){return e.startsWith("animation")||e.startsWith("transition")}function cI(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[zn$3],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function ph(e,t,n,r,o,i,s){let a=t.firstCreatePass?Ya(t):null,c=Za(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function xf(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,Yi$1(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,Yi$1(e,t,i,r,r,o)),c}function Yi$1(e,t,n,r,o,i){let s=t[n],a=t[E],u=a.data[n].outputs[r],d=s[u].subscribe(i);ph(e.index,a,t,o,i,d,true);}function uI(){lI();}function lI(){let e=y$1(),t=P$3(),n=Q$1();if(t.firstCreatePass&&pI(t,n),n.controlDirectiveIndex===-1)return;rt$2("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Qi$1(e,t,n));}function dI(){fI();}function fI(){let e=y$1(),t=P$3(),n=Yn$3();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Qi$1(e,t,n));}var Qi$1=class Qi{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 Se$3(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];xf(this.tNode,this.lView,r,t,vn$2(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];xf(this.tNode,this.lView,r,n,vn$2(this.tNode,this.lView,t));}listenToDom(t,n){xu(this.tNode,this.tView,this.lView,void 0,this.lView[F$5],t,n,vn$2(this.tNode,this.lView,n));}setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return false;let i=false;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];In$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];In$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";OE(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=Af(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=Af(i.directive);s!==null&&r.push(...s);}}}return n}};function Af(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function pI(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}hI(e,t);}function hI(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(Rf(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Rf(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 Rf(e,t){return gI(e,t)&&mI(e,t+"Change")}function gI(e,t){return t in e.inputs}function mI(e,t){return t in e.outputs}var Hc=Symbol("BINDING");var hh=new T$4("");function Ki$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=ai$3(o,a);else if(i==2){let c=a,u=t[++s];r=ai$3(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function He$3(e,t=0){let n=y$1();if(n===null)return B$1(e,t);let r=Q$1();return ip(r,n,ne$3(e),t)}function yI(){let e="invalid";throw new Error(e)}function gh(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}EI(e,t,n,a,i,c,u);}i!==null&&r!==null&&vI(n,r,i);}function vI(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 v$1(-301,false);r.push(t[o],i);}}function DI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function EI(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&&et(f)&&(c=f,DI(e,n,p)),Tc(zi$2(n,t),e,f.type);}_I(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let u=false,l=false,d=Gp(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=er$1(n.mergedAttrs,f.hostAttrs),wI(e,n,t,d,f),TI(d,f,o),s!==null&&s.has(f)){let[m,D]=s.get(f);n.directiveToIndex.set(f.type,[d,m+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++;}II(e,n,i);}function II(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Of(0,t,o,r),Of(1,t,o,r),Ff(t,r,false);else {let i=n.get(o);kf(0,t,i,r),kf(1,t,i,r),Ff(t,r,true);}}}function Of(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),mh(t,i);}}function kf(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),mh(t,s);}}function mh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function Ff(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||fu(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 wI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=xt$2(o.type)),s=new Dn$3(i,et(o),He$3,null);e.blueprint[r]=s,n[r]=s,CI(e,t,r,Gp(e,n,o.hostVars,Z$1),o);}function CI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;bI(s)!=a&&s.push(a),s.push(n,r,i);}}function bI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function TI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;et(t)&&(n[""]=e);}}function _I(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function Au(e,t,n,r,o,i,s,a){let c=t[E],u=c.consts,l=Ee$3(u,s),d=ur$1(c,e,n,r,l);return gh(c,t,d,Ee$3(u,a),o),d.mergedAttrs=er$1(d.mergedAttrs,d.attrs),d.attrs!==null&&Ki$1(d,d.attrs,false),d.mergedAttrs!==null&&Ki$1(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function Ru(e,t){Qf(e,t),Ua(t)&&e.queries.elementEnd(t);}function SI(e,t,n,r,o,i){let s=t.consts,a=Ee$3(s,o),c=ur$1(t,e,n,r,a);if(c.mergedAttrs=er$1(c.mergedAttrs,c.attrs),i!=null){let u=Ee$3(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&Ki$1(c,c.attrs,false),c.mergedAttrs!==null&&Ki$1(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var yh=typeof ShadowRoot<"u",MI=typeof Document<"u";function NI(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&hs.SignalBased)!==0};return o&&(i.transform=o),i})}function xI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function AI(e,t,n){let r=t instanceof fe$5?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Zi$1(n,r):n}function RI(e){let t=e.get(eo$1,null);if(t===null)throw new v$1(407,false);let n=e.get(dh,null),r=e.get(Fe$4,null),o=e.get(zt$1,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function OI(e,t){let n=vh(e);return Np(t,n,n==="svg"?$a:n==="math"?Md:null)}function kI(e){if(e?.toLowerCase()==="script")throw new v$1(905,false)}function vh(e){return (e.selectors[0][0]||"div").toLowerCase()}var wn$3=class wn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=NI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=xI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=GD(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){O$2(A$2.DynamicComponentStart);let a=I(null);try{let c=this.componentDef,u=AI(c,o||this.ngModule,t),l=RI(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(fh(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{I(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=FI(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?IE(u,o,a.encapsulation,n):OI(a,u);kI(l?.tagName);let d=n.get(hh,null),p=PI(l,()=>n.get(he$6,null)??cu());d&&d.addHost(p);let f=s?.some(Pf)||i?.some(D=>typeof D!="function"&&D.bindings.some(Pf)),h=Iu(null,c,null,512|zp(a),null,null,t,u,n,null,Dp(l,n,true));d&&yh&&p instanceof ShadowRoot&&Ii$1(h,()=>{d.removeHost(p);}),h[H$2]=l,Ti$3(h);let m=null;try{let D=Au(H$2,h,2,"#host",()=>c.directiveRegistry,!0,0);Rp(u,l,D),tr$1(l,h),gs(c,h,D),uu(c,D,h),Ru(c,D),r!==void 0&&jI(D,this.ngContentSelectors,r),m=Me$3(D.index,h),h[q$1]=m[q$1],Su(c,h,null);}catch(D){throw m!==null&&Sc(m),Sc(h),D}finally{O$2(A$2.DynamicComponentEnd),_i$3();}return new Xi$1(this.componentType,h,!!f)}};function FI(e,t,n,r){let o=e?["ng-version","22.0.8"]:WD(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[Hc].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[Hc].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=xa(d);c.push(p);}return Eu(0,null,LI(i,s),1,a,c,null,null,null,[o],null)}function PI(e,t){let n=e.getRootNode?.();return MI&&n instanceof Document?n.head:n&&yh&&n instanceof ShadowRoot?n:t().head}function LI(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 Pf(e){let t=e[Hc].kind;return t==="input"||t==="twoWay"}var Xi$1=class Xi extends lh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=yi$3(n[E],H$2),this.location=cr$1(this._tNode,n),this.instance=Me$3(this._tNode.index,n)[q$1],this.hostView=this.changeDetectorRef=new $t$4(n,void 0),this.componentType=t;}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;_u(r,o[E],o,t,n);this.previousInputValues.set(t,n);let s=Me$3(r.index,o);Mu(s,1);}get injector(){return new Ut$3(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function jI(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 lr$1=(()=>{class e{static __NG_ELEMENT_ID__=BI}return e})();function BI(){let e=Q$1();return Dh(e,y$1())}var Uc=class e extends lr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return cr$1(this._hostTNode,this._hostLView)}get injector(){return new Ut$3(this._hostTNode,this._hostLView)}get parentInjector(){let t=iu(this._hostTNode,this._hostLView);if(Jf(t)){let n=Ui$1(t,this._hostLView),r=Hi$1(t),o=n[E].data[r+8];return new Ut$3(o,n)}else return new Ut$3(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=Lf(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-$$4}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=qi$1(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,rr$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 wn$3(ht$4(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let S=this.parentInjector.get(fe$5,null);S&&(i=S);}let p=ht$4(l.componentType??{}),f=qi$1(this._lContainer,p?.id??null),h=null,m=l.create(d,o,h,i,s,a);return this.insertImpl(m.hostView,c,rr$1(this._hostTNode,f)),m}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(xd(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[J$2],u=new e(c,c[ie$3],c[J$2]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return co$1(s,o,i,r),t.attachToViewContainerRef(),Oa(gc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Lf(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Jr(this._lContainer,n);r&&(Fr(gc(this._lContainer),n),fs(r[E],r));}detach(t){let n=this._adjustIndex(t,-1),r=Jr(this._lContainer,n);return r&&Fr(gc(this._lContainer),n)!=null?new $t$4(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Lf(e){return e[Lr]}function gc(e){return e[Lr]||(e[Lr]=[])}function Dh(e,t){let n,r=t[e.index];return Te$3(r)?n=r:(n=ih(r,t,null,e),t[e.index]=n,wu(t,n)),HI(n,t,e,r),new Uc(n,e,t)}function VI(e,t){let n=e[F$5],r=n.createComment(""),o=Se$3(t,e),i=n.parentNode(o);return Wi$1(n,i,r,n.nextSibling(o),false),r}var HI=zI;function zI(e,t,n,r){if(e[Lt$2])return;let o;n.type&8?o=_e$5(r):o=VI(t,n),e[Lt$2]=o;}var $c=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},zc=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++)ku(t,n).matches!==null&&this.queries[n].setDirty();}},Ji$1=class Ji{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=YI(t):this.predicate=t;}},Gc=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);}},Wc=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,GI(n,i)),this.matchTNodeWithReadOption(t,n,ji$1(n,t,i,false,false));}else r===or$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ji$1(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Tn$3||o===lr$1||o===or$1&&n.type&4)this.addMatch(n.index,-2);else {let i=ji$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 GI(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 WI(e,t){return e.type&11?cr$1(e,t):e.type&4?ms(e,t):null}function qI(e,t,n,r){return n===-1?WI(t,e):n===-2?ZI(e,t,r):Yr(e,e[E],n,t)}function ZI(e,t,n){if(n===Tn$3)return cr$1(t,e);if(n===or$1)return ms(t,e);if(n===lr$1)return Dh(t,e)}function Eh(e,t,n,r){let o=t[Ke$4].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(qI(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function qc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Eh(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=$$4;d<l.length;d++){let p=l[d];p[Pt$3]===p[J$2]&&qc(p[E],p,u,r);}if(l[hn$2]!==null){let d=l[hn$2];for(let p=0;p<d.length;p++){let f=d[p];qc(f[E],f,u,r);}}}}}return r}function Ou(e,t){return e[Ke$4].queries[t].queryList}function Ih(e,t,n){let r=new Gi$1((n&4)===4);return Od(e,t,r,r.destroy),(t[Ke$4]??=new zc).queries.push(new $c(r))-1}function wh(e,t,n){let r=P$3();return r.firstCreatePass&&(bh(r,new Ji$1(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Ih(r,y$1(),t)}function Ch(e,t,n,r){let o=P$3();if(o.firstCreatePass){let i=Q$1();bh(o,new Ji$1(t,n,r),i.index),QI(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Ih(o,y$1(),n)}function YI(e){return e.split(",").map(t=>t.trim())}function bh(e,t,n){e.queries===null&&(e.queries=new Gc),e.queries.track(new Wc(t,n));}function QI(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 ku(e,t){return e.queries.getByIndex(t)}function Th(e,t){let n=e[E],r=ku(n,t);return r.crossesNgTemplate?qc(n,e,t,[]):Eh(n,e,r,t)}function Fu(e,t,n){let r,o=_r$1(()=>{r._dirtyCounter();let i=KI(r,e);if(t&&i===void 0)throw new v$1(-951,false);return i});return r=o[G$3],r._dirtyCounter=Mi$3(0),r._flatValue=void 0,o}function Pu(e){return Fu(true,false)}function Lu(e){return Fu(true,true)}function _h(e){return Fu(false,false)}function Sh(e,t){let n=e[G$3];n._lView=y$1(),n._queryIndex=t,n._queryList=Ou(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function KI(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[_$3]&4)return t?void 0:oe$3;let o=Ou(n,r),i=Th(n,r);return o.reset(i,up),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function vs$1(e){return !!e&&typeof e.then=="function"}function ju(e){return !!e&&typeof e.subscribe=="function"}var Cn$3=class Cn{},Mh=class{};var es=class extends Cn$3{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=fd(t);this._bootstrapComponents=kD(i.bootstrap),this._r3Injector=ac(t,n,[{provide:Cn$3,useValue:this},...r],Or(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);}},ts=class extends Mh{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new es(this.moduleType,t,[])}};var to$1=class to extends Cn$3{injector;instance=null;constructor(t){super();let n=new un$2([...t.providers,{provide:Cn$3,useValue:this}],t.parent||Un$3(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function Nh(e,t,n=null){return new to$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var XI=(()=>{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=Fa(false,n.type),o=r.length>0?Nh([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=k$2({token:e,providedIn:"environment",factory:()=>new e(B$1(fe$5))})}return e})();function JI(e){return ro$1(()=>{let t=xh(e),n=x$1(w$1({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==au.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(XI).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||En$3.Emulated,styles:e.styles||oe$3,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&rt$2("NgStandalone"),Ah(n);let r=e.dependencies;return n.directiveDefs=jf(r,ew),n.pipeDefs=jf(r,pd),n.id=rw(n),n})}function ew(e){return ht$4(e)||xa(e)}function Bu(e){return ro$1(()=>({type:e.type,bootstrap:e.bootstrap||oe$3,declarations:e.declarations||oe$3,imports:e.imports||oe$3,exports:e.exports||oe$3,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function tw(e,t){if(e==null)return Rt$1;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=hs.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function nw(e){if(e==null)return Rt$1;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Vu(e){return ro$1(()=>{let t=xh(e);return Ah(t),t})}function dr$1(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function xh(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||Rt$1,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||oe$3,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:tw(e.inputs,t),outputs:nw(e.outputs),debugInfo:null}}function Ah(e){e.features?.forEach(t=>t(e));}function jf(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 rw(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 Hu=new T$4("");function ow(e){return kt$1([{provide:Hu,multi:true,useValue:e}])}var Uu=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g(Hu,{optional:true})??[];injector=g(pe$5);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=$n$3(this.injector,o);if(vs$1(i))n.push(i);else if(ju(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=Ve$3({token:e,factory:e.\u0275fac})}return e})();function iw(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function sw(e){return Object.getPrototypeOf(e.prototype).constructor}function Rh(e){let t=sw(e.type),n=true,r=[e];for(;t;){let o;if(et(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new v$1(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=mc(e.inputs),s.declaredInputs=mc(e.declaredInputs),s.outputs=mc(e.outputs);let a=o.hostBindings;a&&dw(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&uw(e,c),u&&lw(e,u),aw(e,o),dd(e.outputs,o.outputs),et(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===Rh&&(n=false);}}t=Object.getPrototypeOf(t);}cw(r);}function aw(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 cw(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=er$1(o.hostAttrs,n=er$1(n,o.hostAttrs));}}function mc(e){return e===Rt$1?{}:e===oe$3?[]:e}function uw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function lw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function dw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function Oh(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=er$1(e.mergedAttrs,e.attrs);let l=e.tView=Eu(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e));}a&&(e.flags|=a),Zn$3(e,false);let c=pw(n,t);Si$3()&&vu(n,t,c,e),tr$1(c,t);let u=ih(c,t,c,e);t[r+H$2]=u,wu(t,u);}function fw(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$2,p;return t.firstCreatePass?(p=ur$1(t,d,4,s||null,a||null),gh(t,e,p,Ee$3(t.consts,u),Cu),Qf(t,p)):p=t.data[d],Oh(p,e,t,n,r,o,i,c),Wn$3(p)&&gs(t,e,p),u!=null&&so$1(e,p,l),p}function sr$1(e,t,n,r,o,i,s,a,c,u,l){let d=n+H$2,p;if(t.firstCreatePass){if(p=ur$1(t,d,4,s||null,a||null),u!=null){let f=Ee$3(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return Oh(p,e,t,n,r,o,i,c),u!=null&&so$1(e,p,l),p}function kh(e,t,n,r,o,i,s,a){let c=y$1(),u=P$3(),l=Ee$3(u.consts,i);return fw(c,u,e,t,n,r,o,l,void 0,s,a),kh}function Fh(e,t,n,r,o,i,s,a){let c=y$1(),u=P$3(),l=Ee$3(u.consts,i);return sr$1(c,u,e,t,n,r,o,l,void 0,s,a),Fh}var pw=hw;function hw(e,t,n,r){return Hr(true),t[F$5].createComment("")}var gw=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k$2({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Ph=new T$4("");var Lh=new T$4("");function jh(){sa$1(()=>{let e="";throw new v$1(600,e)});}var mw=10;var lo$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g(tt$1);afterRenderManager=g(ls);zonelessEnabled=g(Kn$3);rootEffectScheduler=g(xi$2);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ue$4;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(Ht$1);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(te$4(n=>!n))}constructor(){g(zt$1,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g(fe$5);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=pe$5.NULL){return this._injector.get(ee$5).run(()=>{if(O$2(A$2.BootstrapComponentStart),!this._injector.get(Uu).done){let S="";throw new v$1(405,S)}let a=ht$4(n),c=this._injector.get(Cn$3),u=new wn$3(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=yw(r),f=l||u.selector,h=u.create(o,[],f,c.injector,d,p),m=h.location.nativeElement,D=h.injector.get(Ph,null);return D?.registerApplication(m),h.onDestroy(()=>{this.detachView(h.hostView),Zr(this.components,h),D?.unregisterApplication(m);}),this._loadComponent(h),O$2(A$2.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){O$2(A$2.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(us.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw O$2(A$2.ChangeDetectionEnd),new v$1(101,false);let n=I(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I(n),this.afterTick.next(),O$2(A$2.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(eo$1,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<mw;){O$2(A$2.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{O$2(A$2.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&&!jr(o))continue;let i=r&&!this.zonelessEnabled?0:1;th(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})=>jr(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;Zr(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(Lh,[]).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),()=>Zr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v$1(406,false);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy();}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ve$3({token:e,factory:e.\u0275fac})}return e})();function yw(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Zr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function Bh(e,t,n,r){let o=y$1(),i=Bt$1();if(ge$5(o,i,t)){P$3();let a=Yn$3();NE(a,o,e,t,n,r);}return Bh}function vw(){return y$1()[se$2][q$1]}var Zc=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 yc(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Dw(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){I(r);let u=t.length-1;for(I(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=yc(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],m=yc(a,f,u,h,n);if(m!==0){m<0&&e.updateValue(a,h),a--,u--;continue}let D=n(s,l),S=n(a,f),U=n(s,d);if(Object.is(U,S)){let Ce=n(u,h);Object.is(Ce,D)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new ns,i??=Vf(e,s,a,n),Yc(e,o,s,U))e.updateValue(s,d),s++,a++;else if(i.has(U))o.set(D,e.detach(s)),a--;else {let Ce=e.create(s,t[s]);e.attach(s,Ce),s++,a++;}}for(;s<=u;)Bf(e,o,n,s,t[s]),s++;}else if(t!=null){I(r);let u=t[Symbol.iterator]();I(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=yc(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new ns,i??=Vf(e,s,a,n);let h=n(s,p);if(Yc(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 m=n(s,d);o.set(m,e.detach(s)),a--;}}}for(;!l.done;)Bf(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 Yc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function Bf(e,t,n,r,o){if(Yc(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function Vf(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 ns=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 Ew(e,t,n,r,o,i,s,a){rt$2("NgControlFlow");let c=y$1(),u=P$3(),l=Ee$3(u.consts,i);return sr$1(c,u,e,t,n,r,o,l,256,s,a),$u}function $u(e,t,n,r,o,i,s,a){rt$2("NgControlFlow");let c=y$1(),u=P$3(),l=Ee$3(u.consts,i);return sr$1(c,u,e,t,n,r,o,l,512,s,a),$u}function Iw(e,t){rt$2("NgControlFlow");let n=y$1(),r=Bt$1(),o=n[r]!==Z$1?n[r]:-1,i=o!==-1?rs(n,H$2+o):void 0,s=0;if(ge$5(n,r,e)){let a=I(null);try{if(i!==void 0&&ah(i,s),e!==-1){let c=H$2+e,u=rs(n,c),l=Jc(n[E],c),d=uh(u,l,n),p=ao$1(n,l,t,{dehydratedView:d});co$1(u,p,s,rr$1(l,d));}}finally{I(a);}}else if(i!==void 0){let a=sh(i,s);a!==void 0&&(a[q$1]=t);}}var Qc=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-$$4}};function ww(e){return e}function Cw(e,t){return t}var Kc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function bw(e,t,n,r,o,i,s,a,c,u,l,d,p){rt$2("NgControlFlow");let f=y$1(),h=P$3(),m=c!==void 0,D=y$1(),S=a?s.bind(D[se$2][q$1]):s,U=new Kc(m,S);D[H$2+e]=U,sr$1(f,h,e+1,t,n,r,o,Ee$3(h.consts,i),256),m&&sr$1(f,h,e+2,c,u,l,d,Ee$3(h.consts,p),512);}var Xc=class extends Zc{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-$$4}at(t){return this.getLView(t)[q$1].$implicit}attach(t,n){let r=n[dn$3];this.needsIndexUpdate||=t!==this.length,co$1(this.lContainer,n,t,rr$1(this.templateTNode,r)),_w(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Sw(this.lContainer,t),Mw(this.lContainer,t)}create(t,n){let r=qi$1(this.lContainer,this.templateTNode.tView.ssrId);return ao$1(this.hostLView,this.templateTNode,new Qc(this.lContainer,n,t),{dehydratedView:r})}destroy(t){fs(t[E],t);}updateValue(t,n){this.getLView(t)[q$1].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[q$1].$index=t;}getLView(t){return Nw(this.lContainer,t)}};function Tw(e){let t=I(null),n=Ie$2();try{let r=y$1(),o=r[E],i=r[n],s=n+1,a=rs(r,s);if(i.liveCollection===void 0){let u=Jc(o,s);i.liveCollection=new Xc(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(Dw(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Bt$1(),l=c.length===0;if(ge$5(r,u,l)){let d=n+2,p=rs(r,d);if(l){let f=Jc(o,d),h=uh(p,f,r),m=ao$1(r,f,void 0,{dehydratedView:h});co$1(p,m,0,rr$1(f,h));}else o.firstUpdatePass&&eI(p),ah(p,0);}}}finally{I(t);}}function rs(e,t){return e[t]}function _w(e,t){if(e.length<=$$4)return;let n=$$4+t,r=e[n],o=r?r[Je$3]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Qe$3];eE(i,o),nr$1.delete(r[Xe]),o.detachedLeaveAnimationFns=void 0;}}function Sw(e,t){if(e.length<=$$4)return;let n=$$4+t,r=e[n],o=r?r[Je$3]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function Mw(e,t){return Jr(e,t)}function Nw(e,t){return sh(e,t)}function Jc(e,t){return yi$3(e,t)}function Vh(e,t,n){let r=y$1(),o=Bt$1();if(ge$5(r,o,t)){P$3();let s=Yn$3();Zp(s,r,e,t,r[F$5],n);}return Vh}function eu(e,t,n,r,o){_u(t,e,n,o?"class":"style",r);}function os(e,t,n,r){let o=y$1(),i=o[E],s=e+H$2,a=i.firstCreatePass?Au(s,o,2,t,Cu,wi$3(),n,r):i.data[s];if(mt$4(a)){let c=o[Le$3].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(fh(u),()=>(Hf(e,t,o,a,r),os))}}return Hf(e,t,o,a,r),os}function Hf(e,t,n,r,o){if(bu(r,n,e,t,$h),Wn$3(r)){let i=n[E];gs(i,n,r),uu(i,r,n);}o!=null&&so$1(n,r);}function zu(){let e=P$3(),t=Q$1(),n=Tu(t);return e.firstCreatePass&&Ru(e,n),Xa(n)&&Ja(),Qa(),n.classesWithoutHost!=null&&Mv(n)&&eu(e,n,y$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&Nv(n)&&eu(e,n,y$1(),n.stylesWithoutHost,false),zu}function Hh(e,t,n,r){return os(e,t,n,r),zu(),Hh}function Gu(e,t,n,r){let o=y$1(),i=o[E],s=e+H$2,a=i.firstCreatePass?SI(s,i,2,t,n,r):i.data[s];return bu(a,o,e,t,$h),r!=null&&so$1(o,a),Gu}function Wu(){let e=Q$1(),t=Tu(e);return Xa(t)&&Ja(),Qa(),Wu}function Uh(e,t,n,r){return Gu(e,t,n,r),Wu(),Uh}var $h=(e,t,n,r,o)=>(Hr(true),Np(t[F$5],r,sc()));function qu(e,t,n){let r=y$1(),o=r[E],i=e+H$2,s=o.firstCreatePass?Au(i,r,8,"ng-container",Cu,wi$3(),t,n):o.data[i];if(bu(s,r,e,"ng-container",xw),Wn$3(s)){let a=r[E];gs(a,r,s),uu(a,s,r);}return n!=null&&so$1(r,s),qu}function Zu(){let e=P$3(),t=Q$1(),n=Tu(t);return e.firstCreatePass&&Ru(e,n),Zu}function zh(e,t,n){return qu(e,t,n),Zu(),zh}var xw=(e,t,n,r,o)=>(Hr(true),SD(t[F$5],""));function Aw(){return y$1()}function Gh(e,t,n){let r=y$1(),o=Bt$1();if(ge$5(r,o,t)){P$3();let s=Yn$3();Yp(s,r,e,t,r[F$5],n);}return Gh}var Gr=void 0;function Rw(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Ow=["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"]],Gr,[["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"]],Gr,[["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}",Gr,Gr,Gr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Rw],vc=Object.create(null);function me$5(e){let t=kw(e),n=Uf(t);if(n)return n;let r=t.split("-")[0];if(n=Uf(r),n)return n;if(r==="en")return Ow;throw new v$1(701,false)}function Uf(e){if(!(e in vc)){let t=Ye$2.ng&&Ye$2.ng.common&&Ye$2.ng.common.locales&&Ye$2.ng.common.locales[e];return t!==void 0&&(vc[e]=t),t}return vc[e]}var Y$4={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 kw(e){return e.toLowerCase().replace(/_/g,"-")}var fo$1="en-US";function Wh(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function qh(e,t,n){let r=y$1(),o=P$3(),i=Q$1();return Yh(o,r,r[F$5],i,e,t,n),qh}function Zh(e,t,n){let r=y$1(),o=P$3(),i=Q$1();return (i.type&3||n)&&xu(i,o,r,n,r[F$5],e,t,vn$2(i,r,t)),Zh}function Yh(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=vn$2(r,t,i),xu(r,e,t,s,n,o,i,c)&&(a=false)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let p=l[d],f=l[d+1];c??=vn$2(r,t,i),Yi$1(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=vn$2(r,t,i),Yi$1(r,t,d,o,o,c);}}function Pw(e=1){return Zd(e)}function Lw(e,t){let n=null,r=VD(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Pp(e,i,true):$D(r,i))return o}return n}function jw(e){let t=y$1()[se$2][ie$3];if(!t.projection){let n=e?e.length:1,r=t.projection=Dd(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?Lw(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function Bw(e,t=0,n,r,o,i){let s=y$1(),a=P$3(),c=null;let u=ur$1(a,H$2+e,16,null,null);u.projection===null&&(u.projection=t),nc();let d=!s[dn$3]||Ka();s[se$2][ie$3].projection[u.projection]===null&&c!==null?Vw(s,a,c):d&&!ss(u)&&hE(a,s,u);}function Vw(e,t,n){let r=H$2+n,o=t.data[r],i=e[r],s=qi$1(i,o.tView.ssrId),a=ao$1(e,o,void 0,{dehydratedView:s});co$1(i,a,0,rr$1(o,s));}function Qh(e,t,n,r){return Ch(e,t,n,r),Qh}function Kh(e,t,n){return wh(e,t,n),Kh}function Hw(e){let t=y$1(),n=P$3(),r=bi$3();Vr(r+1);let o=ku(n,r);if(e.dirty&&Nd(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Th(t,r);e.reset(i,up),e.notifyOnChanges();}return true}return false}function Uw(){return Ou(y$1(),bi$3())}function Xh(e,t,n,r,o){return Sh(t,Ch(e,n,r,o)),Xh}function Jh(e,t,n,r){return Sh(e,wh(t,n,r)),Jh}function $w(e=1){Vr(bi$3()+e);}function zw(e){let t=Bd();return vi$3(t,H$2+e)}function Fi$3(e,t){return e<<17|t<<2}function bn$2(e){return e>>17&32767}function Gw(e){return (e&2)==2}function Ww(e,t){return e&131071|t<<17}function tu(e){return e|2}function ar$1(e){return (e&131068)>>2}function Dc(e,t){return e&-131069|t<<2}function qw(e){return (e&1)===1}function nu(e){return e|1}function Zw(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=bn$2(s),c=ar$1(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Hn$3(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=bn$2(e[a+1]);e[r+1]=Fi$3(p,a),p!==0&&(e[p+1]=Dc(e[p+1],r)),e[a+1]=Ww(e[a+1],r);}else e[r+1]=Fi$3(a,0),a!==0&&(e[a+1]=Dc(e[a+1],r)),a=r;else e[r+1]=Fi$3(c,0),a===0?a=r:e[c+1]=Dc(e[c+1],r),c=r;u&&(e[r+1]=tu(e[r+1])),$f(e,l,r,true),$f(e,l,r,false),Yw(t,l,e,r,i),s=Fi$3(a,c),i?t.classBindings=s:t.styleBindings=s;}function Yw(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Hn$3(i,t)>=0&&(n[r+1]=nu(n[r+1]));}function $f(e,t,n,r){let o=e[n+1],i=t===null,s=r?bn$2(o):ar$1(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];Qw(c,t)&&(a=true,e[s+1]=r?nu(u):tu(u)),s=r?bn$2(u):ar$1(u);}a&&(e[n+1]=r?tu(o):nu(o));}function Qw(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Hn$3(e,t)>=0:false}var Be$4={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Kw(e){return e.substring(Be$4.key,Be$4.keyEnd)}function Xw(e){return Jw(e),eg(e,tg(e,0,Be$4.textEnd))}function eg(e,t){let n=Be$4.textEnd;return n===t?-1:(t=Be$4.keyEnd=eC(e,Be$4.key=t,n),tg(e,t,n))}function Jw(e){Be$4.key=0,Be$4.keyEnd=0,Be$4.value=0,Be$4.valueEnd=0,Be$4.textEnd=e.length;}function tg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function eC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function ng(e,t,n){return og(e,t,n,false),ng}function rg(e,t){return og(e,t,null,true),rg}function tC(e){rC(uC,nC,e,true);}function nC(e,t){for(let n=Xw(t);n>=0;n=eg(t,n))hi$3(e,Kw(t),true);}function og(e,t,n,r){let o=y$1(),i=P$3(),s=yn$2(2);if(i.firstUpdatePass&&sg(i,e,s,r),t!==Z$1&&ge$5(o,s,t)){let a=i.data[Ie$2()];ag(i,a,o,o[F$5],e,o[s+1]=dC(t,n),r,s);}}function rC(e,t,n,r){let o=P$3(),i=yn$2(2);o.firstUpdatePass&&sg(o,null,i,r);let s=y$1();if(n!==Z$1&&ge$5(s,i,n)){let a=o.data[Ie$2()];if(cg(a,r)&&!ig(o,i)){let c=a.classesWithoutHost;c!==null&&(n=ai$3(c,n||"")),eu(o,a,s,n,r);}else lC(o,a,s,s[F$5],s[i+1],s[i+1]=cC(e,t,n),r,i);}}function ig(e,t){return t>=e.expandoStartIndex}function sg(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ie$2()],s=ig(e,n);cg(i,r)&&t===null&&!s&&(t=false),t=oC(o,i,t,r),Zw(o,i,t,n,s,r);}}function oC(e,t,n,r){let o=zd(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ec(null,e,t,n,r),n=no$1(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ec(o,e,t,n,r),i===null){let c=iC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ec(null,e,t,c[1],r),c=no$1(c,t.attrs,r),sC(e,t,r,c));}else i=aC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function iC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(ar$1(r)!==0)return e[bn$2(r)]}function sC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[bn$2(o)]=r;}function aC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=no$1(r,s,n);}return no$1(r,t.attrs,n)}function Ec(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=no$1(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function no$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]),hi$3(e,s,n?true:t[++i]));}return e===void 0?null:e}function cC(e,t,n){if(n==null||n==="")return oe$3;let r=[],o=_n$3(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 uC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&hi$3(e,r,n);}function lC(e,t,n,r,o,i,s,a){o===Z$1&&(o=oe$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,m;l===d?(c+=2,u+=2,p!==f&&(h=d,m=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,m=f),h!==null&&ag(e,t,n,r,h,m,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function ag(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=qw(u)?zf(c,t,n,o,ar$1(u),s):void 0;if(!is(l)){is(i)||Gw(u)&&(i=zf(c,null,n,o,a,s));let d=za(Ie$2(),n);mE(r,s,d,o,i);}}function zf(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===Z$1&&(p=d?oe$3:void 0);let f=d?gi$3(p,r):l===r?p:void 0;if(u&&!is(f)&&(f=gi$3(c,r)),is(f)&&(a=f,s))return a;let h=e[o+1];o=s?bn$2(h):ar$1(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=gi$3(c,r));}return a}function is(e){return e!==void 0}function dC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Or(_n$3(e)))),e}function cg(e,t){return (e.flags&(t?8:16))!==0}function fC(e,t=""){let n=y$1(),r=P$3(),o=e+H$2,i=r.firstCreatePass?ur$1(r,o,1,t,null):r.data[o],s=pC(r,n,i,t);n[o]=s,Si$3()&&vu(r,n,s,i),Zn$3(i,false);}var pC=(e,t,n,r)=>(Hr(true),TD(t[F$5],r));function ug(e,t,n,r=""){return ge$5(e,Bt$1(),n)?t+W$4(n)+r:Z$1}function hC(e,t,n,r,o,i=""){let s=Br(),a=ir$1(e,s,n,o);return yn$2(2),a?t+W$4(n)+r+W$4(o)+i:Z$1}function gC(e,t,n,r,o,i,s,a,c,u=""){let l=Br(),d=ys(e,l,n,o,s,c);return yn$2(4),d?t+W$4(n)+r+W$4(o)+i+W$4(s)+a+W$4(c)+u:Z$1}function mC(e,t,n,r,o,i,s,a,c,u,l,d=""){let p=Br(),f=ys(e,p,n,o,s,c);return f=ge$5(e,p+4,l)||f,yn$2(5),f?t+W$4(n)+r+W$4(o)+i+W$4(s)+a+W$4(c)+u+W$4(l)+d:Z$1}function yC(e,t,n,r,o,i,s,a,c,u,l,d,p,f=""){let h=Br(),m=ys(e,h,n,o,s,c);return m=ir$1(e,h+4,l,p)||m,yn$2(6),m?t+W$4(n)+r+W$4(o)+i+W$4(s)+a+W$4(c)+u+W$4(l)+d+W$4(p)+f:Z$1}function lg(e){return Yu("",e),lg}function Yu(e,t,n){let r=y$1(),o=ug(r,e,t,n);return o!==Z$1&&po$1(r,Ie$2(),o),Yu}function dg(e,t,n,r,o){let i=y$1(),s=hC(i,e,t,n,r,o);return s!==Z$1&&po$1(i,Ie$2(),s),dg}function fg(e,t,n,r,o,i,s,a,c){let u=y$1(),l=gC(u,e,t,n,r,o,i,s,a,c);return l!==Z$1&&po$1(u,Ie$2(),l),fg}function pg(e,t,n,r,o,i,s,a,c,u,l){let d=y$1(),p=mC(d,e,t,n,r,o,i,s,a,c,u,l);return p!==Z$1&&po$1(d,Ie$2(),p),pg}function hg(e,t,n,r,o,i,s,a,c,u,l,d,p){let f=y$1(),h=yC(f,e,t,n,r,o,i,s,a,c,u,l,d,p);return h!==Z$1&&po$1(f,Ie$2(),h),hg}function po$1(e,t,n){let r=za(t,e);_D(e[F$5],r,n);}function gg(e,t,n){Ai$3(t)&&(t=t());let r=y$1(),o=Bt$1();if(ge$5(r,o,t)){P$3();let s=Yn$3();Zp(s,r,e,t,r[F$5],n);}return gg}function vC(e,t){let n=Ai$3(e);return n&&e.set(t),n}function mg(e,t){let n=y$1(),r=P$3(),o=Q$1();return Yh(r,n,n[F$5],o,e,t),mg}function DC(e,t,n=""){return ug(y$1(),e,t,n)}function Gf(e,t,n){let r=P$3();r.firstCreatePass&&yg(t,r.data,r.blueprint,et(e),n);}function yg(e,t,n,r,o){if(e=ne$3(e),Array.isArray(e))for(let i=0;i<e.length;i++)yg(e[i],t,n,r,o);else {let i=P$3(),s=y$1(),a=Q$1(),c=cn$2(e)?e:ne$3(e.provide),u=ja(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(cn$2(e)||!e.multi){let f=new Dn$3(u,o,He$3,null),h=wc(c,t,l+p,d);h===-1?(Tc(zi$2(a,s),i,c),Ic(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=wc(c,t,l+p,d),h=wc(c,t,l,l+p),m=f>=0&&n[f],D=h>=0&&n[h];if(!m){Tc(zi$2(a,s),i,c);let S=wC(EC,n.length,o,r,u);D&&(n[h].providerFactory=S),Ic(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(S),s.push(S);}else {let S=vg(n[f],u,r);Ic(i,e,f>-1?f:h,S);}r&&D&&n[h].componentProviders++;}}}function Ic(e,t,n,r){let o=cn$2(t),i=Td(t);if(o||i){let c=(i?ne$3(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c);}else u.push(n,c);}}}function vg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function EC(e,t,n,r,o){return ru(this.multi,[])}function ru(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function wC(e,t,n,r,o,i){let s=new Dn$3(e,n,He$3,null);return s.multi=[],s.index=t,s.componentProviders=0,vg(s,o,r&&!n),s}function CC(e,t){return n=>{n.providersResolver=(r,o)=>Gf(r,o?o(e):e,false);}}function bC(e,t){let n=jt$2()+e,r=y$1();return r[n]===Z$1?uo$1(r,n,t()):iI(r,n)}function TC(e,t,n){return Dg(y$1(),jt$2(),e,t,n)}function _C(e,t,n,r){return Eg(y$1(),jt$2(),e,t,n,r)}function SC(e,t,n,r,o){return NC(y$1(),jt$2(),e,t,n,r,o)}function MC(e,t,n,r,o,i,s){return xC(y$1(),jt$2(),e,t,n,r,o,i)}function Ds$1(e,t){let n=e[t];return n===Z$1?void 0:n}function Dg(e,t,n,r,o,i){let s=t+n;return ge$5(e,s,o)?uo$1(e,s+1,i?r.call(i,o):r(o)):Ds$1(e,s+1)}function Eg(e,t,n,r,o,i,s){let a=t+n;return ir$1(e,a,o,i)?uo$1(e,a+2,s?r.call(s,o,i):r(o,i)):Ds$1(e,a+2)}function NC(e,t,n,r,o,i,s,a){let c=t+n;return sI(e,c,o,i,s)?uo$1(e,c+3,r(o,i,s)):Ds$1(e,c+3)}function xC(e,t,n,r,o,i,s,a,c){let u=t+n;return ys(e,u,o,i,s,a)?uo$1(e,u+4,r(o,i,s,a)):Ds$1(e,u+4)}function AC(e,t){let n=P$3(),r,o=e+H$2;n.firstCreatePass?(r=RC(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=xt$2(r.type)),a=de$5(He$3);try{let c=$i$1(!1),u=i();return $i$1(c),Ga(n,y$1(),o,u),u}finally{de$5(a);}}function RC(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function OC(e,t,n){let r=e+H$2,o=y$1(),i=vi$3(o,r);return Ig(o,r)?Dg(o,jt$2(),t,i.transform,n,i):i.transform(n)}function kC(e,t,n,r){let o=e+H$2,i=y$1(),s=vi$3(i,o);return Ig(i,o)?Eg(i,jt$2(),t,s.transform,n,r,s):s.transform(n,r)}function Ig(e,t){return e[E].data[t].pure}function FC(e,t){return ms(e,t)}var wg=(()=>{class e{applicationErrorHandler=g(tt$1);appRef=g(lo$1);taskService=g(Ht$1);ngZone=g(ee$5);zonelessEnabled=g(Kn$3);tracing=g(zt$1,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new X$2;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ar$1):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Ni$3,{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?Jd:uc;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(Ar$1+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ve$3({token:e,factory:e.\u0275fac})}return e})();function Cg(){return [{provide:Fe$4,useExisting:wg},{provide:ee$5,useClass:Rr$1},{provide:Kn$3,useValue:true}]}var PC=(()=>{class e{compileModuleSync(n){return new ts(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ve$3({token:e,factory:e.\u0275fac})}return e})();function LC(){return typeof $localize<"u"&&$localize.locale||fo$1}var fr$1=new T$4("",{factory:()=>g(fr$1,{optional:true,skipSelf:true})||LC()});var ho$1=class ho{destroyed=false;listeners=null;errorHandler=g(ft$4,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=g(we$4);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new v$1(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=true,this.listeners[n]=null):this.listeners.splice(n,1));}}}emit(t){if(this.destroyed){console.warn(pt$4(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=I(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&&jC(this.listeners)),I(n),this.isEmitting=false;}}};function jC(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function BC(e,t){return _r$1(e,t?.equal)}function go$1(e){return sd(e)}var VC=e=>e;function HC(e,t){if(typeof e=="function"){let n=da(e,VC,t?.equal);return bg(n)}else {let n=da(e.source,e.computation,e.equal);return bg(n,e.debugName)}}function bg(e,t){let n=e[G$3],r=e;return r.set=o=>od(n,o),r.update=o=>id(n,o),r.asReadonly=Ur.bind(e),r}var Is$1=Symbol("InputSignalNode#UNSET"),Rg=x$1(w$1({},Sr$1),{transformFn:void 0,applyValueToInputSignal(e,t){Nt$3(e,t);}});function Og(e,t){let n=Object.create(Rg);n.value=e,n.transformFn=t?.transform;function r(){if(at$3(n),n.value===Is$1){let o=null;throw new v$1(-950,o)}return n.value}return r[G$3]=n,r}var Tg=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>su(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function iB(e){return QC(e)?e.default:e}function QC(e){return e&&typeof e=="object"&&"default"in e}function sB(e){return new ho$1}function _g(e,t){return Og(e,t)}function KC(e){return Og(Is$1,e)}var aB=(_g.required=KC,_g);function kg(e,t){let n=Object.create(Rg),r=new ho$1;n.value=e;function o(){return at$3(n),Sg(n.value),n.value}return o[G$3]=n,o.asReadonly=Ur.bind(o),o.set=i=>{n.equal(n.value,i)||(Nt$3(n,i),r.emit(i));},o.update=i=>{Sg(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function Sg(e){if(e===Is$1)throw new v$1(952,false)}function Mg(e,t){return kg(e)}function XC(e){return kg(Is$1)}var cB=(Mg.required=XC,Mg);function Ng(e,t){return Pu()}function JC(e,t){return Lu()}var uB=(Ng.required=JC,Ng);function lB(e,t){return _h()}function xg(e,t){return Pu()}function eb(e,t){return Lu()}var dB=(xg.required=eb,xg);var Fg=(()=>{class e{static __NG_ELEMENT_ID__=nb}return e})();function nb(e){return rb(Q$1(),y$1(),(e&16)===16)}function rb(e,t,n){if(mt$4(e)&&!n){let r=Me$3(e.index,t);return new $t$4(r,r)}else if(e.type&175){let r=t[se$2];return new $t$4(r,t)}return null}var ob=(()=>{class e{zone=g(ee$5);changeDetectionScheduler=g(Fe$4);applicationRef=g(lo$1);applicationErrorHandler=g(tt$1);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick();}catch(n){this.applicationErrorHandler(n);}});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ve$3({token:e,factory:e.\u0275fac})}return e})(),ib=new T$4("",{factory:()=>false});function sb({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new ee$5(x$1(w$1({},Pg()),{scheduleInRootZone:t})),[{provide:Kn$3,useValue:false},{provide:ee$5,useFactory:e},{provide:Ot$1,multi:true,useFactory:()=>{let n=g(ob,{optional:true});return ()=>n.initialize()}},{provide:Ot$1,multi:true,useFactory:()=>{let n=g(ab);return ()=>{n.initialize();}}},{provide:Ni$3,useValue:t??cc}]}function pB(e){let t=e?.scheduleInRootZone,n=sb({ngZoneFactory:()=>{let r=Pg(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&rt$2("NgZone_CoalesceEvent"),new ee$5(r)},scheduleInRootZone:t});return kt$1([{provide:ib,useValue:true},n])}function Pg(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var ab=(()=>{class e{subscription=new X$2;initialized=false;zone=g(ee$5);pendingTasks=g(Ht$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(()=>{ee$5.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ee$5.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ve$3({token:e,factory:e.\u0275fac})}return e})();var Ku=new T$4(""),cb=new T$4("");function mo$1(e){return !e.moduleRef}function ub(e){let t=mo$1(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ee$5);return n.run(()=>{mo$1(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(tt$1),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),mo$1(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ku);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ku);s.add(i),e.moduleRef.onDestroy(()=>{Zr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return db(r,n,()=>{let i=t.get(Ht$1),s=i.add(),a=t.get(Uu);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(fr$1,fo$1);if(Wh(c||fo$1),!t.get(cb,!0))return mo$1(e)?t.get(lo$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(mo$1(e)){let l=t.get(lo$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return lb?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var lb;function db(e,t,n){try{let r=n();return vs$1(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Es$1=null;function fb(e=[],t){return pe$5.create({name:t,providers:[{provide:La,useValue:"platform"},{provide:Ku,useValue:new Set([()=>Es$1=null])},...e]})}function pb(e=[]){if(Es$1)return Es$1;let t=fb(e);return Es$1=t,jh(),hb(t),t}function hb(e){let t=e.get(rf,null);$n$3(e,()=>{t?.forEach(n=>n());});}function hB(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;O$2(A$2.BootstrapApplicationStart);try{let i=o?.injector??pb(r),s=[Cg(),tf,...n||[]],a=new to$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return ub({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{O$2(A$2.BootstrapApplicationEnd);}}function gb(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function mb(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Qu=Symbol("NOT_SET"),Lg=new Set,yb=x$1(w$1({},Sr$1),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Qu,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!==Qu&&!Pn$3(this))return this.signal;try{for(let o of this.cleanup??Lg)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=ct$1(this),r;try{r=this.userFn.apply(null,t);}finally{St$2(this,n);}return (this.value===Qu||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Xu=class extends Kr{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$4),s),this.scheduler=o;for(let a of hu){let c=n[a];if(c===void 0)continue;let u=Object.create(yb);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(at$3(u),u.value),u.signal[G$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??Lg)n();}finally{Mt$2(t);}}};function gB(e,t){let n=g(pe$5),r=n.get(Fe$4),o=n.get(ls),i=n.get(zt$1,null,{optional:true});o.impl??=n.get(gu);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(Qn$3,null,{optional:true}),c=new Xu(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function mB(e,t){let n=ht$4(e),r=t.elementInjector||Un$3();return new wn$3(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function yB(e){let t=ht$4(e);if(!t)return null;let n=new wn$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 jg=null;function Cs$1(){return jg}function vb(e){jg??=e;}var Ju=class{},Gt$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k$2({token:e,factory:()=>g(Bg),providedIn:"platform"})}return e})(),Db=new T$4(""),Bg=(()=>{class e extends Gt$1{_location;_history;_doc=g(he$6);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return Cs$1().getBaseHref(this._doc)}onPopState(n){let r=Cs$1().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Cs$1().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,false),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n;}pushState(n,r,o){this._history.pushState(n,r,o);}replaceState(n,r,o){this._history.replaceState(n,r,o);}forward(){this._history.forward();}back(){this._history.back();}historyGo(n=0){this._history.go(n);}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k$2({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function bs$1(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Vg(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Ue$3(e){return e&&e[0]!=="?"?`?${e}`:e}var pr$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=k$2({token:e,factory:()=>g(Ug),providedIn:"root"})}return e})(),Ts$1=new T$4(""),Ug=(()=>{class e extends pr$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(he$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 bs$1(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+Ue$3(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ue$3(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ue$3(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(Gt$1),B$1(Ts$1,8))};static \u0275prov=k$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var $g=(()=>{class e{_subject=new ue$4;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=wb(Vg(Hg(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+Ue$3(r))}normalize(n){return e.stripTrailingSlash(Ib(this._basePath,Hg(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+Ue$3(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Ue$3(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=Ue$3;static joinWithSlash=bs$1;static stripTrailingSlash=Vg;static \u0275fac=function(r){return new(r||e)(B$1(pr$1))};static \u0275prov=k$2({token:e,factory:()=>Eb(),providedIn:"root"})}return e})();function Eb(){return new $g(B$1(pr$1))}function Ib(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Hg(e){return e.replace(/\/index\.html$/,"")}function wb(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Cb=(()=>{class e extends pr$1{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n));}getBaseHref(){return this._baseHref}path(n=false){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=bs$1(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Ue$3(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Ue$3(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(Gt$1),B$1(Ts$1,8))};static \u0275prov=k$2({token:e,factory:e.\u0275fac})}return e})();var il=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(il||{});var ae$3=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ae$3||{}),L$4=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(L$4||{}),ye$5=(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$5||{}),ve$3={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function Wg(e){return me$5(e)[Y$4.LocaleId]}function qg(e,t,n){let r=me$5(e),o=[r[Y$4.DayPeriodsFormat],r[Y$4.DayPeriodsStandalone]],i=Ne$4(o,t);return Ne$4(i,n)}function Zg(e,t,n){let r=me$5(e),o=[r[Y$4.DaysFormat],r[Y$4.DaysStandalone]],i=Ne$4(o,t);return Ne$4(i,n)}function Yg(e,t,n){let r=me$5(e),o=[r[Y$4.MonthsFormat],r[Y$4.MonthsStandalone]],i=Ne$4(o,t);return Ne$4(i,n)}function Qg(e,t){let r=me$5(e)[Y$4.Eras];return Ne$4(r,t)}function yo$1(e,t){let n=me$5(e);return Ne$4(n[Y$4.DateFormat],t)}function vo$1(e,t){let n=me$5(e);return Ne$4(n[Y$4.TimeFormat],t)}function Do$1(e,t){let r=me$5(e)[Y$4.DateTimeFormat];return Ne$4(r,t)}function ot$2(e,t){let n=me$5(e),r=n[Y$4.NumberSymbols][t];if(typeof r>"u"){if(t===ve$3.CurrencyDecimal)return n[Y$4.NumberSymbols][ve$3.Decimal];if(t===ve$3.CurrencyGroup)return n[Y$4.NumberSymbols][ve$3.Group]}return r}function Kg(e,t){return me$5(e)[Y$4.NumberFormats][t]}function Xg(e){if(!e[Y$4.ExtraData])throw new v$1(2303,false)}function Jg(e){let t=me$5(e);return Xg(t),(t[Y$4.ExtraData][2]||[]).map(r=>typeof r=="string"?el(r):[el(r[0]),el(r[1])])}function em(e,t,n){let r=me$5(e);Xg(r);let o=[r[Y$4.ExtraData][0],r[Y$4.ExtraData][1]],i=Ne$4(o,t)||[];return Ne$4(i,n)||[]}function Ne$4(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new v$1(2304,false)}function el(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var bb=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_s$1=Object.create(null),Tb=/((?:[^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]*)/,_b=256;function tm(e,t,n,r){let o=Pb(e);Sb(t),t=Dt$2(n,t)||t;let s=[],a;for(;t;)if(a=Tb.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=rm(r,c),o=Fb(o,r));let u="";return s.forEach(l=>{let d=Ob(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function Sb(e){if(e.length>_b)throw new v$1(2300,false)}function As$1(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Dt$2(e,t){let n=Wg(e);if(_s$1[n]??=Object.create(null),_s$1[n][t])return _s$1[n][t];let r="";switch(t){case "shortDate":r=yo$1(e,ye$5.Short);break;case "mediumDate":r=yo$1(e,ye$5.Medium);break;case "longDate":r=yo$1(e,ye$5.Long);break;case "fullDate":r=yo$1(e,ye$5.Full);break;case "shortTime":r=vo$1(e,ye$5.Short);break;case "mediumTime":r=vo$1(e,ye$5.Medium);break;case "longTime":r=vo$1(e,ye$5.Long);break;case "fullTime":r=vo$1(e,ye$5.Full);break;case "short":let o=Dt$2(e,"shortTime"),i=Dt$2(e,"shortDate");r=Ss$1(Do$1(e,ye$5.Short),[o,i]);break;case "medium":let s=Dt$2(e,"mediumTime"),a=Dt$2(e,"mediumDate");r=Ss$1(Do$1(e,ye$5.Medium),[s,a]);break;case "long":let c=Dt$2(e,"longTime"),u=Dt$2(e,"longDate");r=Ss$1(Do$1(e,ye$5.Long),[c,u]);break;case "full":let l=Dt$2(e,"fullTime"),d=Dt$2(e,"fullDate");r=Ss$1(Do$1(e,ye$5.Full),[l,d]);break}return r&&(_s$1[n][t]=r),r}function Ss$1(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function $e$4(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 Mb(e,t){return $e$4(e,3).substring(0,t)}function K$4(e,t,n=0,r=false,o=false){return function(i,s){let a=Nb(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return Mb(a,t);let c=ot$2(s,ve$3.MinusSign);return $e$4(a,t,c,r,o)}}function Nb(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 v$1(2301,false)}}function V$3(e,t,n=ae$3.Format,r=false){return function(o,i){return xb(o,i,e,t,n,r)}}function xb(e,t,n,r,o,i){switch(n){case 2:return Yg(t,o,r)[e.getMonth()];case 1:return Zg(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Jg(t),l=em(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,m=s>=f.hours&&a>=f.minutes,D=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(m&&D)return true}else if(m||D)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return qg(t,o,r)[s<12?0:1];case 3:return Qg(t,r)[e.getFullYear()<=0?0:1];default:throw new v$1(2302,false)}}function Ms$1(e){return function(t,n,r){let o=-1*r,i=ot$2(n,ve$3.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+$e$4(s,2,i)+$e$4(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+$e$4(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+$e$4(s,2,i)+":"+$e$4(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+$e$4(s,2,i)+":"+$e$4(Math.abs(o%60),2,i);default:throw new v$1(2310,false)}}}var Ab=0,xs$1=4;function Rb(e){let t=As$1(e,Ab,1).getDay();return As$1(e,0,1+(t<=xs$1?xs$1:xs$1+7)-t)}function nm(e){let t=e.getDay(),n=t===0?-3:xs$1-t;return As$1(e.getFullYear(),e.getMonth(),e.getDate()+n)}function tl$1(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=nm(n),s=Rb(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return $e$4(o,e,ot$2(r,ve$3.MinusSign))}}function Ns$1(e,t=false){return function(n,r){let i=nm(n).getFullYear();return $e$4(i,e,ot$2(r,ve$3.MinusSign),t)}}var nl=Object.create(null);function Ob(e){if(nl[e])return nl[e];let t;switch(e){case "G":case "GG":case "GGG":t=V$3(3,L$4.Abbreviated);break;case "GGGG":t=V$3(3,L$4.Wide);break;case "GGGGG":t=V$3(3,L$4.Narrow);break;case "y":t=K$4(0,1,0,false,true);break;case "yy":t=K$4(0,2,0,true,true);break;case "yyy":t=K$4(0,3,0,false,true);break;case "yyyy":t=K$4(0,4,0,false,true);break;case "Y":t=Ns$1(1);break;case "YY":t=Ns$1(2,true);break;case "YYY":t=Ns$1(3);break;case "YYYY":t=Ns$1(4);break;case "M":case "L":t=K$4(1,1,1);break;case "MM":case "LL":t=K$4(1,2,1);break;case "MMM":t=V$3(2,L$4.Abbreviated);break;case "MMMM":t=V$3(2,L$4.Wide);break;case "MMMMM":t=V$3(2,L$4.Narrow);break;case "LLL":t=V$3(2,L$4.Abbreviated,ae$3.Standalone);break;case "LLLL":t=V$3(2,L$4.Wide,ae$3.Standalone);break;case "LLLLL":t=V$3(2,L$4.Narrow,ae$3.Standalone);break;case "w":t=tl$1(1);break;case "ww":t=tl$1(2);break;case "W":t=tl$1(1,true);break;case "d":t=K$4(2,1);break;case "dd":t=K$4(2,2);break;case "c":case "cc":t=K$4(7,1);break;case "ccc":t=V$3(1,L$4.Abbreviated,ae$3.Standalone);break;case "cccc":t=V$3(1,L$4.Wide,ae$3.Standalone);break;case "ccccc":t=V$3(1,L$4.Narrow,ae$3.Standalone);break;case "cccccc":t=V$3(1,L$4.Short,ae$3.Standalone);break;case "E":case "EE":case "EEE":t=V$3(1,L$4.Abbreviated);break;case "EEEE":t=V$3(1,L$4.Wide);break;case "EEEEE":t=V$3(1,L$4.Narrow);break;case "EEEEEE":t=V$3(1,L$4.Short);break;case "a":case "aa":case "aaa":t=V$3(0,L$4.Abbreviated);break;case "aaaa":t=V$3(0,L$4.Wide);break;case "aaaaa":t=V$3(0,L$4.Narrow);break;case "b":case "bb":case "bbb":t=V$3(0,L$4.Abbreviated,ae$3.Standalone,true);break;case "bbbb":t=V$3(0,L$4.Wide,ae$3.Standalone,true);break;case "bbbbb":t=V$3(0,L$4.Narrow,ae$3.Standalone,true);break;case "B":case "BB":case "BBB":t=V$3(0,L$4.Abbreviated,ae$3.Format,true);break;case "BBBB":t=V$3(0,L$4.Wide,ae$3.Format,true);break;case "BBBBB":t=V$3(0,L$4.Narrow,ae$3.Format,true);break;case "h":t=K$4(3,1,-12);break;case "hh":t=K$4(3,2,-12);break;case "H":t=K$4(3,1);break;case "HH":t=K$4(3,2);break;case "m":t=K$4(4,1);break;case "mm":t=K$4(4,2);break;case "s":t=K$4(5,1);break;case "ss":t=K$4(5,2);break;case "S":t=K$4(6,1);break;case "SS":t=K$4(6,2);break;case "SSS":t=K$4(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Ms$1(0);break;case "ZZZZZ":t=Ms$1(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Ms$1(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Ms$1(2);break;default:return null}return nl[e]=t,t}function rm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function kb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Fb(e,t,n){let o=e.getTimezoneOffset(),i=rm(t,o);return kb(e,-1*(i-o))}function Pb(e){if(zg(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 As$1(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(bb))return Lb(r)}let t=new Date(e);if(!zg(t))throw new v$1(2311,false);return t}function Lb(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 zg(e){return e instanceof Date&&!isNaN(e.valueOf())}var jb=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Gg=22,Rs$1=".",Eo$1="0",Bb=";",Vb=",",rl="#";function Hb(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=ot$2(n,ve$3.Infinity);else {let u=zb(e);s&&(u=$b(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let U=i.match(jb);if(U===null)throw new v$1(2306,false);let Ce=U[1],ze=U[3],wt=U[5];Ce!=null&&(l=ol(Ce)),ze!=null&&(d=ol(ze)),wt!=null?p=ol(wt):ze!=null&&d>p&&(p=d);let xe=100;if(l>xe||d>xe||p>xe)throw new v$1(2306,false)}Gb(u,d,p);let f=u.digits,h=u.integerLen,m=u.exponent,D=[];for(c=f.every(U=>!U);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 S=[];for(f.length>=t.lgSize&&S.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)S.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&S.unshift(f.join("")),a=S.join(ot$2(n,r)),D.length&&(a+=ot$2(n,o)+D.join("")),m&&(a+=ot$2(n,ve$3.Exponential)+"+"+m);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function om(e,t,n){let r=Kg(t,il.Decimal),o=Ub(r,ot$2(t,ve$3.MinusSign));return Hb(e,o,t,ve$3.Group,ve$3.Decimal,n)}function Ub(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(Bb),o=r[0],i=r[1],s=o.indexOf(Rs$1)!==-1?o.split(Rs$1):[o.substring(0,o.lastIndexOf(Eo$1)+1),o.substring(o.lastIndexOf(Eo$1)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(rl));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Eo$1?n.minFrac=n.maxFrac=l+1:d===rl?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(Vb);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(rl);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 $b(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 zb(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Rs$1))>-1&&(t=t.replace(Rs$1,"")),(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)===Eo$1;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===Eo$1;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>Gg&&(r=r.splice(0,Gg-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function Gb(e,t,n){if(t>n)throw new v$1(2307,false);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,p,f,h){return p=p+d,h[f]=p<10?p:p-10,c&&(h[f]===0&&f>=u?h.pop():c=false),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function ol(e){let t=parseInt(e);if(isNaN(t))throw new v$1(2305,false);return t}var Wb=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g(pe$5);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)(He$3(lr$1))};static \u0275dir=Vu({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[ou]})}return e})();function sl(e,t){return new v$1(2100,false)}var qb=(()=>{class e{transform(n){return n==null?null:(Zb(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=dr$1({name:"lowercase",type:e,pure:true})}return e})();function Zb(e,t){if(typeof t!="string")throw sl()}var Yb="mediumDate",im=new T$4(""),sm=new T$4(""),Qb=(()=>{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??Yb,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return tm(n,s,i||this.locale,a)}catch(s){throw sl(e,s.message)}}static \u0275fac=function(r){return new(r||e)(He$3(fr$1,16),He$3(im,24),He$3(sm,24))};static \u0275pipe=dr$1({name:"date",type:e,pure:true})}return e})();var Kb=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=dr$1({name:"json",type:e,pure:false})}return e})();var Xb=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!Jb(n))return null;o||=this._locale;try{let i=eT(n);return om(i,o,r)}catch(i){throw sl(e,i.message)}}static \u0275fac=function(r){return new(r||e)(He$3(fr$1,16))};static \u0275pipe=dr$1({name:"number",type:e,pure:true})}return e})();function Jb(e){return !(e==null||e===""||e!==e)}function eT(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new v$1(2309,false);return e}function al(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 rT="browser";function UV(e){return e===rT}var $V=(()=>{class e{static \u0275prov=k$2({token:e,providedIn:"root",factory:()=>new cl(g(he$6),window)})}return e})(),cl=class{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n;}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(t,n){this.window.scrollTo(x$1(w$1({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=oT(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(pt$4(2400,false));}}scrollToElement(t,n){let r=t.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(x$1(w$1({},n),{left:o-s[0],top:i-s[1]}));}};function oT(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 It$2=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i);}});}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n);})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r);});}:this.headers=new Map;}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t);}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null));}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n));});}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case "a":case "s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case "d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else {let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s);}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n]);}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o);}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)));}};var ks$1=class ks{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()}},Fs$1=class Fs{encodeKey(t){return am(t)}encodeValue(t){return am(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function iT(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 sT=/%(\d[a-f0-9])/gi,aT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function am(e){return encodeURIComponent(e).replace(sT,(t,n)=>aT[n]??t)}function Os$2(e){return `${e}`}var Et$2=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Fs$1,t.fromString){if(t.fromObject)throw new v$1(2805,false);this.map=iT(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(Os$2):[Os$2(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(Os$2(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(Os$2(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 cT(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function cm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function um(e){return typeof Blob<"u"&&e instanceof Blob}function lm(e){return typeof FormData<"u"&&e instanceof FormData}function uT(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var ul="Content-Type",dm="Accept",pm="text/plain",hm="application/json",lT=`${hm}, ${pm}, */*`,hr$1=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(cT(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 v$1(2822,"");this.timeout=i.timeout;}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache;}if(this.headers??=new It$2,this.context??=new ks$1,!this.params)this.params=new Et$2,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"||cm(this.body)||um(this.body)||lm(this.body)||uT(this.body)?this.body:this.body instanceof Et$2?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||lm(this.body)?null:um(this.body)?this.body.type||null:cm(this.body)?null:typeof this.body=="string"?pm:this.body instanceof Et$2?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?hm: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,m=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,S=t.withCredentials??this.withCredentials,U=t.reportProgress??this.reportProgress,Ce=t.reportUploadProgress??this.reportUploadProgress,ze=t.reportDownloadProgress??this.reportDownloadProgress,wt=t.headers||this.headers,xe=t.params||this.params,wo=t.context??this.context;return t.setHeaders!==void 0&&(wt=Object.keys(t.setHeaders).reduce((Mn,Wt)=>Mn.set(Wt,t.setHeaders[Wt]),wt)),t.setParams&&(xe=Object.keys(t.setParams).reduce((Mn,Wt)=>Mn.set(Wt,t.setParams[Wt]),xe)),new e(n,r,D,{params:xe,headers:wt,context:wo,reportProgress:U,reportUploadProgress:Ce,reportDownloadProgress:ze,responseType:o,withCredentials:S,transferCache:h,keepalive:i,cache:a,priority:s,timeout:m,mode:c,redirect:u,credentials:l,referrer:d,integrity:p,referrerPolicy:f})}},gr$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})(gr$1||{}),mr$1=class mr{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new It$2,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;}},Ps$1=class e extends mr$1{constructor(t={}){super(t);}type=gr$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})}},Io$1=class e extends mr$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=gr$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})}},Sn$3=class Sn extends mr$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;}},dT=200;var fT=/^\)\]\}',?\n/,gm=new T$4("",{factory:()=>null}),Ls$1=(()=>{class e{fetchImpl=g(dl,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g(ee$5);destroyRef=g(we$4);maxResponseSize=g(gm);handle(n){return new x(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(fl,s=>r.error(new Sn$3({error:s})));let i;return n.timeout&&(i=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"));},n.timeout))),()=>{i!==void 0&&clearTimeout(i),o.abort();}})}doRequest(n,r,o){return B$2(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));pT(D),o.next({type:gr$1.Sent}),s=yield D;}catch(D){o.error(new Sn$3({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new It$2(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 Ps$1({headers:a,status:l,statusText:c,url:u})),s.body){let D=s.headers.get("content-length"),S=D!==null?Number(D):NaN;this.maxResponseSize!==null&&Number.isFinite(S)&&S>this.maxResponseSize&&fm(this.maxResponseSize);let U=[],Ce=s.body.getReader(),ze=0,wt,xe,wo=typeof Zone<"u"&&Zone.current,Mn=false;if(yield this.ngZone.runOutsideAngular(()=>B$2(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield Ce.cancel(),Mn=true;break}let{done:yr,value:Bs}=yield Ce.read();if(yr)break;if(U.push(Bs),ze+=Bs.length,this.maxResponseSize!==null&&ze>this.maxResponseSize&&(yield Ce.cancel(),fm(this.maxResponseSize)),p){xe=n.responseType==="text"?(xe??"")+(wt??=new TextDecoder).decode(Bs,{stream:true}):void 0;let gl=()=>o.next({type:gr$1.DownloadProgress,total:Number.isFinite(S)?S:void 0,loaded:ze,partialText:xe});wo?wo.run(gl):gl();}}})),Mn){o.complete();return}let Wt=this.concatChunks(U,ze);try{let yr=s.headers.get(ul)??"";d=this.parseBody(n,Wt,yr,l);}catch(yr){o.error(new Sn$3({error:yr,headers:new It$2(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?dT:0);let f=l>=200&&l<300,h=s.redirected,m=s.type;f?(o.next(new Io$1({body:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:m})),o.complete()):o.error(new Sn$3({error:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:m}));})}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(fT,"");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 v$1(2824,false);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(dm)||(r[dm]=lT),!n.headers.has(ul)){let i=n.detectContentTypeHeader();i!==null&&(r[ul]=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=Ve$3({token:e,factory:e.\u0275fac})}return e})(),dl=class{};function fl(){}function pT(e){e.then(fl,fl);}function fm(e){throw new v$1(-2825,false)}function hT(e,t){return t(e)}function gT(e,t,n){return (r,o)=>$n$3(n,()=>t(r,i=>e(i,o)))}var mm=new T$4("",{factory:()=>[]}),ym=new T$4(""),vm=new T$4("",{factory:()=>true});var pl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=k$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=B$1(Ls$1),o},providedIn:"root"})}return e})();var js$1=(()=>{class e{backend;injector;chain=null;pendingTasks=g(zr);contributeToStability=g(vm);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(mm),...this.injector.get(ym,[])]));this.chain=o.reduceRight((i,s)=>gT(i,s,this.injector),hT);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return go$1(()=>r(n,i=>this.backend.handle(i))).pipe(qo$1(o))}else return go$1(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(B$1(pl),B$1(fe$5))};static \u0275prov=k$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=k$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=B$1(js$1),o},providedIn:"root"})}return e})();function ll(e,t){return w$1({body:t},e)}var Dm=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof hr$1)i=n;else {let c;o.headers instanceof It$2?c=o.headers:c=new It$2(o.headers);let u;o.params&&(o.params instanceof Et$2?u=o.params:u=new Et$2({fromObject:o.params})),i=new hr$1(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let s=Dr$1(i).pipe(Yo$1(c=>this.handler.handle(c)));if(n instanceof hr$1||o.observe==="events")return s;let a=s.pipe(bt$3(c=>c instanceof Io$1));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(te$4(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new v$1(2806,false);return c.body}));case "blob":return a.pipe(te$4(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new v$1(2807,false);return c.body}));case "text":return a.pipe(te$4(c=>{if(c.body!==null&&typeof c.body!="string")throw new v$1(2808,false);return c.body}));default:return a.pipe(te$4(c=>c.body))}case "response":return a;default:throw new v$1(2809,false)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Et$2().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,ll(o,r))}post(n,r,o={}){return this.request("POST",n,ll(o,r))}put(n,r,o={}){return this.request("PUT",n,ll(o,r))}static \u0275fac=function(r){return new(r||e)(B$1(hl))};static \u0275prov=k$2({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var mT=new T$4("",{factory:()=>true}),yT="XSRF-TOKEN",vT=new T$4("",{factory:()=>yT}),DT="X-XSRF-TOKEN",ET=new T$4("",{factory:()=>DT}),IT=(()=>{class e{cookieName=g(vT);doc=g(he$6);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=al(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ve$3({token:e,factory:e.\u0275fac})}return e})(),Em=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=k$2({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=B$1(IT),o},providedIn:"root"})}return e})();function wT(e,t){if(!g(mT)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g(Gt$1).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=g(Em).getToken(),r=g(ET);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function CT(...e){let t=[Dm,Ls$1,js$1,{provide:hl,useExisting:js$1},{provide:pl,useFactory:()=>g(Ls$1)},{provide:mm,useValue:wT,multi:true}];for(let n of e)t.push(...n.\u0275providers);return kt$1(t)}var y=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:m,apiKeys:n,basePath:r,credentials:c,encodeParam:o,encoder:t,password:e,username:s,withCredentials:p}={}){n&&(this.apiKeys=n),s!==void 0&&(this.username=s),e!==void 0&&(this.password=e),m!==void 0&&(this.accessToken=m),r!==void 0&&(this.basePath=r),p!==void 0&&(this.withCredentials=p),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=c??{};}selectHeaderContentType(m){if(m.length===0)return;let n=m.find(r=>this.isJsonMime(r));return n===void 0?m[0]:n}selectHeaderAccept(m){if(m.length===0)return;let n=m.find(r=>this.isJsonMime(r));return n===void 0?m[0]:n}isJsonMime(m){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return m!==null&&(n.test(m)||m.toLowerCase()==="application/json-patch+json")}lookupCredential(m){let n=this.credentials[m];return typeof n=="function"?n():n}addCredentialToHeaders(m,n,r,c){let o=this.lookupCredential(m);return o?r.set(n,(c??"")+o):r}addCredentialToQuery(m,n,r){let c=this.lookupCredential(m);return c?r.set(n,c):r}defaultEncodeParam(m){let n=m.dataFormat==="date-time"&&m.value instanceof Date?m.value.toISOString():m.value;return encodeURIComponent(String(n))}};var P$2=new T$4("basePath");var $$3=class ${encodeKey(m){return encodeURIComponent(m)}encodeValue(m){return encodeURIComponent(m)}decodeKey(m){return decodeURIComponent(m)}decodeValue(m){return decodeURIComponent(m)}};var j$4=class j{basePath="http://localhost:18124";defaultHeaders=new It$2;configuration;encoder;constructor(m,n){if(this.configuration=n||new y,typeof this.configuration.basePath!="string"){let r=Array.isArray(m)?m[0]:void 0;r!=null&&(m=r),typeof m!="string"&&(m=this.basePath),this.configuration.basePath=m;}this.encoder=this.configuration.encoder||new $$3;}canConsumeForm(m){return m.indexOf("multipart/form-data")!==-1}addToHttpParams(m,n,r,c=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(m,n,c?r:void 0,c):this.addToHttpParamsRecursive(m,n,r)}addToHttpParamsRecursive(m,n,r,c=false){if(n==null)return m;if(typeof n=="object"){if(r!=null)return c?Object.keys(n).reduce((o,t)=>o.append(`${r}[${t}]`,n[t]),m):m.append(r,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>m=this.addToHttpParamsRecursive(m,o,r));else if(n instanceof Date)if(r!=null)m=m.append(r,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=r?`${r}.${o}`:o;m=this.addToHttpParamsRecursive(m,n[o],t);});return m}else if(r!=null)return m.append(r,n);throw Error("key may not be null if value is not object or array")}};var U$4=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter agentConfig was null or undefined when calling createAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/agent-configs",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteAgentConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}disableAgentConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}enableAgentConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}exportAgentConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdAgentConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsAgentConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/agent-configs/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getDefinitionAgentConfig(n,r,c,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let s=new Et$2({encoder:this.encoder});s=this.addToHttpParams(s,r,"withUserOverlay"),s=this.addToHttpParams(s,c,"namespaceId");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new ks$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let b=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/definition`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("get",`${f}${b}`,x$1(w$1({context:d,params:s,responseType:l},x?{withCredentials:x}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAgentConfig.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"withDisabled");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/agent-configs/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",c=false,o){let t=new Et$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"withDisabled");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new ks$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/agent-configs/platform",{basePath:l,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:p,params:t,responseType:d},b?{withCredentials:b}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}searchAgentConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter agentConfigSearchRequest was null or undefined when calling searchAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/agent-configs/search",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateAgentConfig(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAgentConfig.");if(r==null)throw new Error("Required parameter agentConfig was null or undefined when calling updateAgentConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var N$2=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/agent-configs/defaults",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var k$1=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAiModel(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter aiModel was null or undefined when calling createAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-models",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteAiModel(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdAiModel(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsAiModel(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-models/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByNamespaceIdAiModel(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listByNamespaceIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-namespaceId/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByParentAiModel(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listPlatformLevelAiModel(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/ai-models/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(r==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$4=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createAiProvider(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter aiProvider was null or undefined when calling createAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-providers",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteAiProvider(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdAiProvider(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsAiProvider(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/ai-providers/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listAiProvider(n,r,c="body",o=false,t){let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l="/api/ai-providers",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(r==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var D$2=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;addMessageCase(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(r==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messages`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling countUnreadCase.");let t=new Et$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new ks$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/cases/unread-count",{basePath:l,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:p,params:t,responseType:d},b?{withCredentials:b}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}createCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter _case was null or undefined when calling createCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}interruptCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling interruptCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}killCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling killCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByParentCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByUserCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter userId was null or undefined when calling listByUserCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/${this.configuration.encodeParam({name:"userId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByUserExternalIdCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling listByUserExternalIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/external/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByUserInNamespaceCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter listByUserInNamespaceRequest was null or undefined when calling listByUserInNamespaceCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases/by-user/in-namespace",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listMineByParentCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listMineByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/mine`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}markCaseRead(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling markCaseRead.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/read`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}reopenCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling reopenCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reopen`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}setModelCase(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setModelCase.");if(r==null)throw new Error("Required parameter caseModelRequest was null or undefined when calling setModelCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/model`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}setReasoningEffortCase(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setReasoningEffortCase.");if(r==null)throw new Error("Required parameter caseReasoningEffortRequest was null or undefined when calling setReasoningEffortCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reasoning-effort`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}starCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling starCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("put",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}unstarCase(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling unstarCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateCase(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(r==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var W$3=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;listEffectiveConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/admin/configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var G$2=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter integrationConfig was null or undefined when calling createIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/integration-configs",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteIntegrationConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}exportIntegrationConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdIntegrationConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsIntegrationConfig(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/integration-configs/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listIntegrationConfig(n,r,c="body",o=false,t){let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l="/api/integration-configs",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(r==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$2=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter type was null or undefined when calling getTypeIntegrationType.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-types/${this.configuration.encodeParam({name:"type",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listTypesIntegrationType(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var L$3=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createNamespace(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespace was null or undefined when calling createNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteNamespace(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deployAgentsNamespace(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling deployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/deploy-agents`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsNamespace(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listAllNamespace(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces/by-external-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}undeployAgentsNamespace(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling undeployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling undeployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/undeploy-agents`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}updateNamespace(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(r==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$1=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}removeAssociationNamespaceGit(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling removeAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}setAssociationNamespaceGit(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling setAssociationNamespaceGit.");if(r==null)throw new Error("Required parameter namespaceGitRequest was null or undefined when calling setAssociationNamespaceGit.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y$3=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,c,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByAgentUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByAgentUsageRecord.");if(c==null)throw new Error("Required parameter to was null or undefined when calling aggregateByAgentUsageRecord.");let s=new Et$2({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,c,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new ks$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let b="/api/usage-records/aggregate/by-agent",{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("get",`${f}${b}`,x$1(w$1({context:d,params:s,responseType:l},x?{withCredentials:x}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling aggregateByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}aggregateByCaseTreeUsageRecord(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter rootCaseId was null or undefined when calling aggregateByCaseTreeUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case-tree/${this.configuration.encodeParam({name:"rootCaseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}aggregateByModelUsageRecord(n,r,c,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByModelUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByModelUsageRecord.");if(c==null)throw new Error("Required parameter to was null or undefined when calling aggregateByModelUsageRecord.");let s=new Et$2({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,c,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new ks$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let b="/api/usage-records/aggregate/by-model",{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("get",`${f}${b}`,x$1(w$1({context:d,params:s,responseType:l},x?{withCredentials:x}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,c,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter userId was null or undefined when calling aggregateByUserUsageRecord.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByUserUsageRecord.");if(c==null)throw new Error("Required parameter from was null or undefined when calling aggregateByUserUsageRecord.");if(o==null)throw new Error("Required parameter to was null or undefined when calling aggregateByUserUsageRecord.");let p=new Et$2({encoder:this.encoder});p=this.addToHttpParams(p,n,"userId"),p=this.addToHttpParams(p,r,"namespaceId"),p=this.addToHttpParams(p,c,"from"),p=this.addToHttpParams(p,o,"to");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new ks$1,l=s?.transferCache??true,b="json";d&&(d.startsWith("text")?b="text":this.configuration.isJsonMime(d)?b="json":b="blob");let f="/api/usage-records/aggregate/by-user",{basePath:x,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${x}${f}`,x$1(w$1({context:i,params:p,responseType:b},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var Be$3=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(Be$3||{});var $e$3=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))($e$3||{});var Ue$2=(n=>(n.ENVIRONMENT="ENVIRONMENT",n.PROPERTY="PROPERTY",n))(Ue$2||{});var Ne$3=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Ne$3||{});var ke$4=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))(ke$4||{});var K$3=class C{http=g(Dm);config=g(y);exportAsYaml(m){let n=`${this.config.basePath}/api/agent-configs/${encodeURIComponent(m)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var Q=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(Q||{});var z$2=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(z$2||{});var Fe$3=Q,De$3=z$2;var We$1={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},Ge$2={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var X$1=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;connectAuthSetting(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling connectAuthSetting.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/connect`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}createAuthSetting(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling createAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/auth-settings",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteAuthSetting(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdAuthSetting(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsAuthSetting(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/auth-settings/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getConnectionAuthSetting(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling getConnectionAuthSetting.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/connection`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}listAuthSetting(n,r,c="body",o=false,t){let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l="/api/auth-settings",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}resetMyCredentialAuthSetting(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling resetMyCredentialAuthSetting.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/credential`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAuthSetting.");if(r==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling updateAuthSetting.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsCaseEventRest(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/case-events/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByCaseCaseEventRest(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var ee$4=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersCaseMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateMembersCaseMembership(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersCaseMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersCaseMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var te$3=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling changesCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/changes`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}diffCaseWorkspace(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling diffCaseWorkspace.");if(r==null)throw new Error("Required parameter path was null or undefined when calling diffCaseWorkspace.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/diff`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listCaseWorkspace(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspaces`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}refreshCaseWorkspace(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling refreshCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/refresh`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}retryCaseWorkspace(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling retryCaseWorkspace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/retry`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne$2=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;applyConfigChange(n,r,c,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling applyConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling applyConfigChange.");if(c==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new ks$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let b="json";p&&(p.startsWith("text")?b="text":this.configuration.isJsonMime(p)?b="json":b="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/apply`,{basePath:x,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${x}${f}`,x$1(w$1({context:a,body:c,responseType:b},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,c,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling rejectConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling rejectConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new ks$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let b="json";p&&(p.startsWith("text")?b="text":this.configuration.isJsonMime(p)?b="json":b="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reject`,{basePath:x,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${x}${f}`,x$1(w$1({context:a,body:c,responseType:b},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling viewConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling viewConfigChange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:p,responseType:d},b?{withCredentials:b}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var oe$2=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,c,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let p=new Et$2({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,c,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new ks$1,l=s?.transferCache??true,b="json";d&&(d.startsWith("text")?b="text":this.configuration.isJsonMime(d)?b="json":b="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:x,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${x}${f}`,x$1(w$1({context:i,params:p,responseType:b},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}browseNamespaceFilesExchange(n,r,c,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let p=new Et$2({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,c,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new ks$1,l=s?.transferCache??true,b="json";d&&(d.startsWith("text")?b="text":this.configuration.isJsonMime(d)?b="json":b="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:x,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${x}${f}`,x$1(w$1({context:i,params:p,responseType:b},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}deleteCaseFileExchange(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling deleteCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteCaseFileExchange.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deleteNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteNamespaceFileExchange.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling downloadCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadCaseFileExchange.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling downloadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadNamespaceFileExchange.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getCaseFileContentExchange.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getNamespaceFileContentExchange(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getNamespaceFileContentExchange.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}uploadCaseFileExchange(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling uploadCaseFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadCaseFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),l,b=false;b=i,b?l=new FormData:l=new Et$2({encoder:this.encoder}),r!==void 0&&(l=l.append("file",r)||l);let x="json";s&&(s.startsWith("text")?x="text":this.configuration.isJsonMime(s)?x="json":x="blob");let E=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:O,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${O}${E}`,x$1(w$1({context:p,body:l,responseType:x},S?{withCredentials:S}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling uploadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadNamespaceFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),l,b=false;b=i,b?l=new FormData:l=new Et$2({encoder:this.encoder}),r!==void 0&&(l=l.append("file",r)||l);let x="json";s&&(s.startsWith("text")?x="text":this.configuration.isJsonMime(s)?x="json":x="blob");let E=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:O,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${O}${E}`,x$1(w$1({context:p,body:l,responseType:x},S?{withCredentials:S}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createFeedback(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter feedbackInput was null or undefined when calling createFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/feedbacks",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByCaseEventFeedback(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseEventId was null or undefined when calling listByCaseEventFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-case-event/${this.configuration.encodeParam({name:"caseEventId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByCaseFeedback(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var ae$2=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/git-workspaces-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var se$1=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;attachMessagingBot(n,r,c,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling attachMessagingBot.");if(r==null)throw new Error("Required parameter agentId was null or undefined when calling attachMessagingBot.");if(c==null)throw new Error("Required parameter messagingBotAttachRequest was null or undefined when calling attachMessagingBot.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new ks$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let b="json";p&&(p.startsWith("text")?b="text":this.configuration.isJsonMime(p)?b="json":b="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/agent-configs/${this.configuration.encodeParam({name:"agentId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messaging-bots`,{basePath:x,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${x}${f}`,x$1(w$1({context:a,body:c,responseType:b},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}deleteMessagingBot(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter botId was null or undefined when calling deleteMessagingBot.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/messaging/bots/${this.configuration.encodeParam({name:"botId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteMessagingBotManager(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter platform was null or undefined when calling deleteMessagingBotManager.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/messaging/bot-managers/${this.configuration.encodeParam({name:"platform",value:n,in:"path",style:"simple",explode:false,dataType:"MessagingPlatform",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getMessagingBotAppManifest(n,r,c,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getMessagingBotAppManifest.");if(r==null)throw new Error("Required parameter agentId was null or undefined when calling getMessagingBotAppManifest.");if(c==null)throw new Error("Required parameter platform was null or undefined when calling getMessagingBotAppManifest.");let s=new Et$2({encoder:this.encoder});s=this.addToHttpParams(s,c,"platform");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new ks$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/agent-configs/${this.configuration.encodeParam({name:"agentId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messaging-bots/manifest`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("get",`${f}${b}`,x$1(w$1({context:d,params:s,responseType:l},x?{withCredentials:x}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}listAgentMessagingBots(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listAgentMessagingBots.");if(r==null)throw new Error("Required parameter agentId was null or undefined when calling listAgentMessagingBots.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/agent-configs/${this.configuration.encodeParam({name:"agentId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messaging-bots`,{basePath:l,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:p,responseType:d},b?{withCredentials:b}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}listMessagingBotManagers(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/messaging/bot-managers",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}requestMessagingBotCreation(n,r,c,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling requestMessagingBotCreation.");if(r==null)throw new Error("Required parameter agentId was null or undefined when calling requestMessagingBotCreation.");if(c==null)throw new Error("Required parameter messagingBotCreationRequest was null or undefined when calling requestMessagingBotCreation.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new ks$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let b="json";p&&(p.startsWith("text")?b="text":this.configuration.isJsonMime(p)?b="json":b="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/agent-configs/${this.configuration.encodeParam({name:"agentId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messaging-bots/creation`,{basePath:x,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${x}${f}`,x$1(w$1({context:a,body:c,responseType:b},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}setMessagingBotManager(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter messagingBotManagerRequest was null or undefined when calling setMessagingBotManager.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/messaging/bot-managers",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateMessagingBot(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter botId was null or undefined when calling updateMessagingBot.");if(r==null)throw new Error("Required parameter messagingBotUpdateRequest was null or undefined when calling updateMessagingBot.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/messaging/bots/${this.configuration.encodeParam({name:"botId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ie$2=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;continueCaseInMessaging(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling continueCaseInMessaging.");if(r==null)throw new Error("Required parameter messagingContinueRequest was null or undefined when calling continueCaseInMessaging.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messaging/continue`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}createMessagingLink(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter botId was null or undefined when calling createMessagingLink.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/messaging/bots/${this.configuration.encodeParam({name:"botId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/link`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteMessagingIdentity(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter identityId was null or undefined when calling deleteMessagingIdentity.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/messaging/identities/${this.configuration.encodeParam({name:"identityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getMessagingCapabilities(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/messaging/capabilities",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listMessagingBots(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/messaging/bots",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listMessagingIdentities(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/messaging/identities",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var pe$4=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersNamespaceMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateMembersNamespaceMembership(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersNamespaceMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersNamespaceMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("patch",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;grantAdmin(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:b}=this.configuration;return this.httpClient.request("put",`${l}${i}`,x$1(w$1({context:p,responseType:d},b?{withCredentials:b}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}grantMember(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:b}=this.configuration;return this.httpClient.request("put",`${l}${i}`,x$1(w$1({context:p,responseType:d},b?{withCredentials:b}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${l}${i}`,x$1(w$1({context:p,responseType:d},b?{withCredentials:b}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}revokeMember(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:l,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${l}${i}`,x$1(w$1({context:p,responseType:d},b?{withCredentials:b}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter syncUserRolesRequest was null or undefined when calling updateRolesByExternalId.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces/update-roles-by-external-id",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter oAuthCallbackRequest was null or undefined when calling handleCallbackOAuthCallback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/oauth/callback",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var de$4=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling debugPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/debug`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getAllPlugins(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling getPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}reloadAllAgentsPlugin(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling reloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/reload`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}startPlugin(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling startPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/start`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}stopPlugin(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling stopPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/stop`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}unloadPlugin(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling unloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}uploadPlugin(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var be$4=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter prompt was null or undefined when calling createPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deletePrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deletePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}exportPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}resolveEffectivePrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter promptEffectiveRequest was null or undefined when calling resolveEffectivePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts/effective",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}searchPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter promptSearchRequest was null or undefined when calling searchPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/prompts/search",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}translateBatchPrompt(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter languageCode was null or undefined when calling translateBatchPrompt.");if(r==null)throw new Error("Required parameter promptBatchTranslateRequest was null or undefined when calling translateBatchPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/prompts/translations/${this.configuration.encodeParam({name:"languageCode",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}translatePrompt(n,r,c,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling translatePrompt.");if(r==null)throw new Error("Required parameter languageCode was null or undefined when calling translatePrompt.");if(c==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new ks$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let b="json";p&&(p.startsWith("text")?b="text":this.configuration.isJsonMime(p)?b="json":b="blob");let f=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/translations/${this.configuration.encodeParam({name:"languageCode",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:x,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${x}${f}`,x$1(w$1({context:a,body:c,responseType:b},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updatePrompt.");if(r==null)throw new Error("Required parameter prompt was null or undefined when calling updatePrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var fe$4=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling continueCostRunRunCost.");if(r==null)throw new Error("Required parameter continueCostRequest was null or undefined when calling continueCostRunRunCost.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/continue`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}stopCostRunRunCost(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling stopCostRunRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/stop`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ue$3=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling createScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteScheduledPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}disableScheduledPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}enableScheduledPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdScheduledPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsScheduledPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}resolveEffectiveScheduledPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter scheduledPromptEffectiveRequest was null or undefined when calling resolveEffectiveScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts/effective",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}searchScheduledPrompt(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter scheduledPromptSearchRequest was null or undefined when calling searchScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/scheduled-prompts/search",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateScheduledPrompt(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateScheduledPrompt.");if(r==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling updateScheduledPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var he$5=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createSkill(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter skill was null or undefined when calling createSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/skills",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteSkill(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdSkill(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsSkill(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/skills/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listByParentSkill(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listEffectiveSkill(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listEffectiveSkill.");let t=new Et$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new ks$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/skills/effective",{basePath:l,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:p,params:t,responseType:d},b?{withCredentials:b}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}listPlatformSkill(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/skills/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateSkill.");if(r==null)throw new Error("Required parameter skill was null or undefined when calling updateSkill.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;streamCaseInvalidationsNamespaceCaseInvalidationSse(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseInvalidationsNamespaceCaseInvalidationSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-invalidation`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}streamCaseListUpdatesNamespaceCaseListUpdateSse(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseListUpdatesNamespaceCaseListUpdateSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-list-updates`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}streamEventsCaseEventSse(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"includePreviousEvents");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}streamMyEventsGlobalCaseEventSse(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/cases/events/mine",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter toolInvokeRequest was null or undefined when calling invokeToolInvoke.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/tools/invoke",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}listToolInvoke(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listToolInvoke.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l="/api/tools",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var He$2=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/usage-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var xe$3=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createUser(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter user was null or undefined when calling createUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteUser(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdUser(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getByIdsUser(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users/by-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getGroupsByExternalIdsUser(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter groupsByExternalIdsRequest was null or undefined when calling getGroupsByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users/groups-by-external-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getMeUser(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users/by-external-ids",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}revokeNamespaceAccessByExternalIdUser(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/users/by-external-id/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/access`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling revokeNamespaceAccessUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessUser.");let e=new Et$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new ks$1,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let l=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/access`,{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${b}${l}`,x$1(w$1({context:a,params:e,responseType:i},f?{withCredentials:f}:{}),{headers:s,observe:c,transferCache:d,reportProgress:o}))}updateUser(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(r==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("put",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var me$4=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;createUserGroup(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter userGroupCreateRequest was null or undefined when calling createUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/user-groups",{basePath:b,withCredentials:f}=this.configuration;return this.httpClient.request("post",`${b}${l}`,x$1(w$1({context:s,body:n,responseType:i},f?{withCredentials:f}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}deleteUserGroup(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling deleteUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}findByNamespaceIdUserGroup(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling findByNamespaceIdUserGroup.");let t=new Et$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new ks$1,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/user-groups",{basePath:l,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:p,params:t,responseType:d},b?{withCredentials:b}:{}),{headers:e,observe:r,transferCache:a,reportProgress:c}))}getByIdUserGroup(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getByIdUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}getMembersUserGroup(n,r="body",c=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getMembersUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ks$1,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:p,reportProgress:c}))}updateUserGroup(n,r,c="body",o=false,t){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling updateUserGroup.");if(r==null)throw new Error("Required parameter userGroupUpdateRequest was null or undefined when calling updateUserGroup.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new ks$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let b=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:x}=this.configuration;return this.httpClient.request("post",`${f}${b}`,x$1(w$1({context:p,body:r,responseType:l},x?{withCredentials:x}:{}),{headers:e,observe:c,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var ye$4=class C extends j$4{constructor(n,r,c){super(r,c);this.httpClient=n;}httpClient;capabilityVoiceMessage(n="body",r=false,c){let o=this.defaultHeaders,t=c?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=c?.context??new ks$1,s=c?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/voice-messages/capability",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}postVoiceMessage(n,r,c,o,t,e,s="body",p=false,a){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling postVoiceMessage.");if(r==null)throw new Error("Required parameter audio was null or undefined when calling postVoiceMessage.");let d=new Et$2({encoder:this.encoder});d=this.addToHttpParams(d,c,"answerToEventId"),d=this.addToHttpParams(d,o,"durationMs");let i=this.defaultHeaders,l=a?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);l!==void 0&&(i=i.set("Accept",l));let b=a?.context??new ks$1,f=a?.transferCache??true,x=["multipart/form-data"],E=this.canConsumeForm(x),O,S=false;S=E,S?O=new FormData:O=new Et$2({encoder:this.encoder}),t!==void 0&&(O=O.append("answerToEventId",t)||O),r!==void 0&&(O=O.append("audio",r)||O),e!==void 0&&(O=O.append("durationMs",e)||O);let B="json";l&&(l.startsWith("text")?B="text":this.configuration.isJsonMime(l)?B="json":B="blob");let Me=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/voice-messages`,{basePath:qe,withCredentials:Re}=this.configuration;return this.httpClient.request("post",`${qe}${Me}`,x$1(w$1({context:b,body:O,params:d,responseType:B},Re?{withCredentials:Re}:{}),{headers:i,observe:s,transferCache:f,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(B$1(Dm),B$1(P$2,8),B$1(y,8))};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var _e$4=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(_e$4||{});var Le$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(Le$2||{});var Je$2=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Je$2||{});var Ye$1=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))(Ye$1||{}),Ke$3=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Ke$3||{});var Qe$2=(n=>(n.TELEGRAM="TELEGRAM",n.SLACK="SLACK",n))(Qe$2||{});var ze$2=(c=>(c.FREE_TEXT="FREE_TEXT",c.SINGLE_CHOICE="SINGLE_CHOICE",c.OPEN_CHOICE="OPEN_CHOICE",c.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",c))(ze$2||{});function gd(C){return kt$1([typeof C=="string"?{provide:P$2,useValue:C}:{provide:y,useValue:new y(w$1({},C))}])}(class C{config=g(y);zone=g(ee$5);connect(m){let n=`${this.config.basePath}/api/cases/${m}/events`;return new x(r=>{let c=this.zone.runOutsideAngular(()=>new EventSource(n)),o=t=>{try{let e=JSON.parse(t.data);this.zone.run(()=>r.next(e));}catch(e){this.zone.run(()=>r.error(new Error(`Failed to parse SSE event: ${e}`)));}};return c.addEventListener("case-event",o),c.onerror=()=>{},()=>c.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var Oe$2="namespace-case-list-updated";(class C{config=g(y);zone=g(ee$5);connect(m){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(m)}/case-list-updates`;return new x(r=>{let c=this.zone.runOutsideAngular(()=>new EventSource(n));return c.onopen=()=>this.zone.run(()=>r.next("connected")),c.addEventListener(Oe$2,()=>this.zone.run(()=>r.next("updated"))),c.onerror=()=>{},()=>c.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=g(y);zone=g(ee$5);connect(m){let n=`${this.config.basePath}/api/namespaces/${m}/case-invalidation`;return new x(r=>{let c=this.zone.runOutsideAngular(()=>new EventSource(n));return c.onopen=()=>this.zone.run(()=>r.next("connected")),c.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),c.onerror=()=>{},()=>c.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})});var je$3=class C{http=g(Dm);config=g(y);exportAsYaml(m){let n=`${this.config.basePath}/api/integration-configs/${encodeURIComponent(m)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var we$3=class C{http=g(Dm);config=g(y);exportAsYaml(m){let n=`${this.config.basePath}/api/prompts/${encodeURIComponent(m)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};var Te$2=class C{http=g(Dm);config=g(y);invoke(m){let n=`${this.config.basePath}/api/tools/invoke`;return this.http.post(n,m)}static \u0275fac=function(n){return new(n||C)};static \u0275prov=k$2({token:C,factory:C.\u0275fac,providedIn:"root"})};
|
|
6
|
+
var b$2=class i{http=g(Dm);base="/api/setup";getStatus(){return this.http.get(`${this.base}/status`)}saveIdentity(e){return this.http.post(`${this.base}/identity`,{email:e})}browse(e,t=false){let r=new Et$2;return e&&(r=r.set("path",e)),t&&(r=r.set("hidden","true")),this.http.get(`${this.base}/browse`,{params:r})}mkdir(e,t){return this.http.post(`${this.base}/mkdir`,{path:e,name:t})}apply(e){return this.http.post(`${this.base}/apply`,e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=k$2({token:i,factory:i.\u0275fac,providedIn:"root"})};var A$1=["email","providers","folder","progress"],ee$3=i=>i==="fresh"||i==="nofresh"?i:null,T$3=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,j$3=1500,U$3=8,O$1=2e4,m$1=(i,e,t)=>({key:i,label:e,state:t.state,percent:t.percent,message:t.message??(i==="java"?t.version:void 0)}),R$2=i=>{let e=[i?.agentos?`AgentOS ${i.agentos}`:null,i?.factory?`Factory ${i.factory}`:null].filter(t=>!!t);return e.length>0?`Downloading ${e.join(" and ")}`:"Downloading AgentOS"},f$1=(i,e)=>{if(i instanceof Sn$3){let t=i.error;if(t&&typeof t=="object"&&t.error)return t.error;if(i.status===0)return "Cannot reach the Coday server."}return e},V$2=class i{api=g(b$2);users=g(xe$3);namespaces=g(L$3);aiProviders=g(F$4);destroyRef=g(we$4);status=Mi$3(null);statusError=Mi$3(null);step=Mi$3("email");email=Mi$3("");providers=Mi$3([{id:"anthropic",enabled:false,apiKey:""},{id:"openai",enabled:false,apiKey:""},{id:"requesty",enabled:false,apiKey:""}]);folder=Mi$3("");mode=Mi$3("wizard");preview=Mi$3(null);factoryGraceElapsed=Mi$3(false);factoryGraceTimer=null;busy=Mi$3(false);error=Mi$3(null);profileEmail=Mi$3("");needsEmail=Mi$3(false);userKeys=Mi$3([]);userKeysChecked=Mi$3(false);userKeysCheck=null;me=null;emailValid=BC(()=>T$3.test(this.email().trim()));enabledProviders=BC(()=>this.providers().filter(e=>e.enabled));providersValid=BC(()=>{let e=this.enabledProviders();return e.length>0&&e.every(t=>t.apiKey.trim().length>=U$3)});needsUserKeys=BC(()=>this.userKeys().length>0);needsProfile=BC(()=>this.needsEmail()||this.needsUserKeys());userKeysValid=BC(()=>{let e=this.userKeys().filter(t=>t.apiKey.trim().length>0);return e.length>0&&e.every(t=>t.apiKey.trim().length>=U$3)});profileEmailValid=BC(()=>T$3.test(this.profileEmail().trim()));profileValid=BC(()=>(!this.needsEmail()||this.profileEmailValid())&&(!this.needsUserKeys()||this.userKeysValid()));folderValid=BC(()=>this.folder().startsWith("/")||/^[A-Za-z]:[\\/]/.test(this.folder()));stepIndex=BC(()=>A$1.indexOf(this.step()));checklist=BC(()=>{let e=this.status()?.steps;return e?[m$1("download",R$2(e.download.versions),e.download),m$1("java","Checking Java 25",e.java),m$1("agentos","Starting AgentOS",e.agentos),m$1("providers","Configuring your AI providers",e.providers),m$1("models","Registering the models",e.models),m$1("namespace","Creating your personal workspace",e.namespace),m$1("agent","Deploying the Coday agent",e.agent)]:[]});loadingChecklist=BC(()=>{let e=this.status()?.steps;return e?[m$1("download",R$2(e.download.versions),e.download),m$1("java","Checking Java 25",e.java),m$1("agentos","Starting AgentOS",e.agentos),...e.factory?[m$1("factory","Waiting for the Factory",e.factory)]:[]]:[]});loadingReady=BC(()=>{let e=this.status()?.steps;return !e||e.agentos.state!=="done"||this.status()?.mode==="managed"&&(!this.userKeysChecked()||this.needsProfile())?false:e.factory?e.factory.state==="done"||e.factory.state==="error"||this.factoryGraceElapsed():true});javaBlocked=BC(()=>this.status()?.steps.java.state==="blocked");ready=BC(()=>{let e=this.status();return !!e&&e.apply.status==="done"&&!!e.namespaceId});failed=BC(()=>this.status()?.apply.status==="error");emailLocked=BC(()=>!this.preview()&&(this.status()?.apply.status??"idle")!=="idle");namespaceId=BC(()=>this.status()?.namespaceId??null);poller=null;constructor(){this.destroyRef.onDestroy(()=>this.stopPolling());}setStatus(e){this.status.set(e),this.statusError.set(null),this.mode()==="loading"&&e.steps.agentos.state==="done"&&!this.factoryGraceTimer&&(this.factoryGraceTimer=setTimeout(()=>this.factoryGraceElapsed.set(true),O$1)),this.maybeCheckUserKeys();}refreshStatus(){return B$2(this,null,function*(){try{let e=yield Fm(this.api.getStatus());return this.setStatus(e),e}catch(e){return this.statusError.set(f$1(e,"Cannot read the setup status.")),null}})}startPolling(){this.poller||(this.poller=st$1(0,j$3).pipe(ea$1(()=>this.api.getStatus().pipe(Zs$1(()=>Dr$1(null))))).subscribe(e=>{e?this.setStatus(e):this.statusError.set("Lost contact with the Coday server, retrying...");}));}stopPolling(){this.poller?.unsubscribe(),this.poller=null,this.factoryGraceTimer&&clearTimeout(this.factoryGraceTimer),this.factoryGraceTimer=null;}init(e=null){return B$2(this,null,function*(){this.preview.set(e);let t=yield this.refreshStatus();if(!t)return;if(t.defaults?.sharedExchangePath&&!this.folder()&&this.folder.set(t.defaults.sharedExchangePath),t.identity&&!this.email()&&this.email.set(t.identity.email),this.startPolling(),!(e?e==="fresh":t.mode==="unmanaged"&&t.setupEnabled&&!t.setupDone)){this.mode.set("loading"),this.step.set("progress"),this.maybeCheckUserKeys();return}!e&&["running","error","done"].includes(t.apply.status)&&this.step.set("progress");})}back(){let e=this.stepIndex(),t=this.step()==="providers"&&this.emailLocked();e>0&&this.step()!=="progress"&&!t&&this.step.set(A$1[e-1]),this.error.set(null);}editAfterFailure(e){!this.failed()||this.step()!=="progress"||(this.error.set(e==="providers"&&!this.providersValid()?"Enter your API keys again: they are not kept when the page is reloaded.":null),this.step.set(e));}submitEmail(){return B$2(this,null,function*(){if(!(!this.emailValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("providers");return}this.busy.set(true);try{yield Fm(this.api.saveIdentity(this.email().trim())),yield this.refreshStatus(),this.step.set("providers");}catch(e){this.error.set(f$1(e,"Could not save your email."));}finally{this.busy.set(false);}}})}submitProviders(){this.providersValid()&&(this.error.set(null),this.step.set("folder"));}toggleProvider(e){this.providers.update(t=>{let r=t.find(a=>a.id===e);if(!r)return t;let s=t.map(a=>a.id===e?x$1(w$1({},a),{enabled:!a.enabled}):a);if(!r.enabled){let a=s.find(u=>u.id===e);return [...s.filter(u=>u.id!==e),a]}return s});}setApiKey(e,t){this.providers.update(r=>r.map(s=>s.id===e?x$1(w$1({},s),{apiKey:t}):s));}moveProvider(e,t){this.providers.update(r=>{let s=r.filter(p=>p.enabled),a=s.findIndex(p=>p.id===e),u=a+t;if(a<0||u<0||u>=s.length)return r;let o=[...s],[P]=o.splice(a,1);return o.splice(u,0,P),[...o,...r.filter(p=>!p.enabled)]});}moveProviderTo(e,t){e!==t&&this.providers.update(r=>{let s=r.filter(p=>p.enabled),a=s.findIndex(p=>p.id===e),u=s.findIndex(p=>p.id===t);if(a<0||u<0)return r;let o=[...s],[P]=o.splice(a,1);return o.splice(u,0,P),[...o,...r.filter(p=>!p.enabled)]});}rankOf(e){let t=this.enabledProviders().findIndex(r=>r.id===e);return t<0?null:t+1}browse(e,t=false){return Fm(this.api.browse(e,t))}mkdir(e,t){return Fm(this.api.mkdir(e,t))}selectFolder(e){this.folder.set(e);}submitFolderAndApply(){return B$2(this,null,function*(){if(!(!this.providersValid()||!this.folderValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("progress");return}this.busy.set(true);try{yield Fm(this.api.apply({providers:this.applyProviders(),sharedExchangePath:this.folder()})),this.step.set("progress"),this.startPolling();}catch(e){this.error.set(f$1(e,"Could not start the setup."));}finally{this.busy.set(false);}}})}retry(){return B$2(this,null,function*(){if(!this.providersValid()){this.step.set("providers"),this.error.set("Enter your API keys again: they are not kept when the page is reloaded.");return}yield this.submitFolderAndApply();})}maybeCheckUserKeys(){let e=this.status();this.mode()!=="loading"||this.preview()||e?.mode!=="managed"||e.steps.agentos.state==="done"&&this.checkUserKeys();}checkUserKeys(){return this.userKeysCheck??=this.loadProfileRequirements(),this.userKeysCheck}loadProfileRequirements(){return B$2(this,null,function*(){try{let[e,t,r]=yield Promise.all([Fm(this.aiProviders.listAiProvider("none")),Fm(this.aiProviders.listAiProvider("none","me")),Fm(this.users.getMeUser())]);if(e.length===0)return;this.me=r,this.needsEmail.set(!r.email?.trim());let s=new Map(t.map(o=>[o.name.toLowerCase(),o])),a=new Set(e.map(o=>o.name.toLowerCase()));t.some(o=>!!o.apiKey&&a.has(o.name.toLowerCase()))||this.userKeys.set(e.map(o=>({name:o.name,apiType:o.apiType,apiKey:"",existingId:s.get(o.name.toLowerCase())?.id})));}catch(e){console.warn("Could not check the profile requirements of the platform",e);}finally{this.userKeysChecked.set(true);}})}setProfileEmail(e){this.profileEmail.set(e);}setUserKey(e,t){this.userKeys.update(r=>r.map(s=>s.name===e?x$1(w$1({},s),{apiKey:t}):s));}submitProfile(){return B$2(this,null,function*(){if(!(!this.profileValid()||this.busy())){this.error.set(null),this.busy.set(true);try{if(this.needsEmail()&&!(yield this.saveProfileEmail()))return;this.needsUserKeys()&&(yield this.saveUserKeys());}finally{this.busy.set(false);}}})}saveProfileEmail(){return B$2(this,null,function*(){try{let e=yield this.currentUser();return yield Fm(this.users.updateUser(e.id,x$1(w$1({},e),{email:this.profileEmail().trim().toLowerCase()}))),this.needsEmail.set(!1),!0}catch(e){return console.warn("Could not save the email of the user",e),this.error.set(f$1(e,"Could not save your email.")),false}})}saveUserKeys(){return B$2(this,null,function*(){try{let e=yield this.currentUser(),t=[];for(let r of this.userKeys()){let s=r.apiKey.trim();if(!s)continue;let a={name:r.name,apiType:r.apiType,apiKey:s,userId:e.id};try{yield Fm(r.existingId?this.aiProviders.updateAiProvider(r.existingId,a):this.aiProviders.createAiProvider(a));}catch(u){console.warn(`Could not save the key of ${r.name}`,u),t.push(r);}}this.userKeys.set(t),t.length>0&&this.error.set(`Could not save the key of ${t.map(r=>r.name).join(", ")}. Check it and try again.`);}catch(e){this.error.set(f$1(e,"Could not save your keys."));}})}currentUser(){return B$2(this,null,function*(){if(this.me??=yield Fm(this.users.getMeUser()),!this.me.id)throw new Error("The current user has no id");return this.me})}applyProviders(){return this.enabledProviders().map((e,t)=>({id:e.id,apiKey:e.apiKey.trim(),rank:t+1}))}loadingTarget(){return B$2(this,null,function*(){let e=this.namespaceId()??(yield this.personalNamespaceId());return {path:"/home",queryParams:e?{ns:e}:{}}})}personalNamespaceId(){return B$2(this,null,function*(){try{let{externalId:e}=yield Fm(this.users.getMeUser());if(!e)return null;let t=`user:${e}`;return (yield Fm(this.namespaces.listByExternalIdsNamespace([t]))).find(s=>s.externalId===t)?.id??null}catch(e){return console.warn("Could not look up the personal namespace",e),null}})}landingCommands(){let e=this.namespaceId();return e?{path:"/home",queryParams:{ns:e}}:null}static \u0275fac=function(t){return new(t||i)};static \u0275prov=k$2({token:i,factory:i.\u0275fac,providedIn:"root"})};var _$1=class _{_doc;constructor(n){this._doc=n;}manager},b$1=(()=>{class o extends _$1{constructor(e){super(e);}supports(e){return true}addEventListener(e,t,r,s){return e.addEventListener(t,r,s),()=>this.removeEventListener(e,t,r,s)}removeEventListener(e,t,r,s){return e.removeEventListener(t,r,s)}static \u0275fac=function(t){return new(t||o)(B$1(he$6))};static \u0275prov=k$2({token:o,factory:o.\u0275fac})}return o})(),H$1=new T$4(""),z$1=(()=>{class o{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this;});let r=e.filter(i=>!(i instanceof b$1));this._plugins=r.slice().reverse();let s=e.find(i=>i instanceof b$1);s&&this._plugins.push(s);}addEventListener(e,t,r,s){return this._findPluginFor(t).addEventListener(e,t,r,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new v$1(-5101,false);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||o)(B$1(H$1),B$1(ee$5))};static \u0275prov=k$2({token:o,factory:o.\u0275fac})}return o})(),j$2="ng-app-id";function he$4(o){for(let n of o)n.remove();}function me$3(o,n){let e=n.createElement("style");return e.textContent=o,e}function we$2(o,n,e,t){let r=o.head?.querySelectorAll(`style[${j$2}="${n}"],link[${j$2}="${n}"]`);if(!r||r.length===0)return false;for(let s of r)s.removeAttribute(j$2),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]});return true}function F$3(o,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",o),e}var $$2=(()=>{class o{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,r,s={}){this.doc=e,this.appId=t,this.nonce=r,we$2(e,t,this.inline,this.external)&&this.hosts.add(e.head);}addStyles(e,t){for(let r of e)this.addUsage(r,this.inline,me$3);t?.forEach(r=>this.addUsage(r,this.external,F$3));}removeStyles(e,t){for(let r of e)this.removeUsage(r,this.inline);t?.forEach(r=>this.removeUsage(r,this.external));}addUsage(e,t,r){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,r(e,this.doc)))});}removeUsage(e,t){let r=t.get(e);r&&(r.usage--,r.usage<=0&&(he$4(r.elements),t.delete(e)));}ngOnDestroy(){for(let[,{elements:e}]of [...this.inline,...this.external])he$4(e);this.hosts.clear();}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[t,{elements:r}]of this.inline)r.push(this.addElement(e,me$3(t,this.doc)));for(let[t,{elements:r}]of this.external)r.push(this.addElement(e,F$3(t,this.doc)));}}removeHost(e){this.hosts.delete(e);for(let t of [...this.inline.values(),...this.external.values()]){let r=[];for(let s of t.elements)s.parentNode===e?s.remove():r.push(s);t.elements=r;}}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||o)(B$1(he$6),B$1(nf),B$1(of,8),B$1(iv))};static \u0275prov=k$2({token:o,factory:o.\u0275fac})}return o})(),V$1={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},G$1=/%COMP%/g;var Ee$2="%COMP%",_e$3=`_nghost-${Ee$2}`,Me$2=`_ngcontent-${Ee$2}`,Re$3=true,De$2=new T$4("",{factory:()=>Re$3});function Ae$2(o){return Me$2.replace(G$1,o)}function Ce$4(o){return _e$3.replace(G$1,o)}function ve$2(o,n){return n.map(e=>e.replace(G$1,o))}var Y$2=(()=>{class o{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,t,r,s,i,c,d=null,l=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=i,this.ngZone=c,this.nonce=d,this.tracingService=l,this.defaultRenderer=new M(e,i,c,this.tracingService);}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,t);return r instanceof L$2?r.applyToHost(e):r instanceof R$1&&r.applyStyles(),r}getOrCreateRenderer(e,t){let r=this.rendererByCompId,s=r.get(t.id);if(!s){let i=this.doc,c=this.ngZone,d=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,h=this.tracingService;switch(t.encapsulation){case En$3.Emulated:s=new L$2(d,l,t,this.appId,p,i,c,h);break;case En$3.ShadowDom:return new N$1(d,e,t,i,c,this.nonce,h,l);case En$3.ExperimentalIsolatedShadowDom:return new N$1(d,e,t,i,c,this.nonce,h);default:s=new R$1(d,l,t,p,i,c,h);break}r.set(t.id,s);}return s}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(e){this.rendererByCompId.delete(e);}static \u0275fac=function(t){return new(t||o)(B$1(z$1),B$1(hh),B$1(nf),B$1(De$2),B$1(he$6),B$1(ee$5),B$1(of),B$1(zt$1,8))};static \u0275prov=k$2({token:o,factory:o.\u0275fac})}return o})(),M=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(n,e,t,r){this.eventManager=n,this.doc=e,this.ngZone=t,this.tracingService=r;}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(V$1[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ge$4(n)?n.content:n).appendChild(e);}insertBefore(n,e,t){n&&(ge$4(n)?n.content:n).insertBefore(e,t);}removeChild(n,e){e.remove();}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new v$1(-5104,false);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,r){if(r){e=r+":"+e;let s=V$1[r];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t);}else n.setAttribute(e,t);}removeAttribute(n,e,t){if(t){let r=V$1[t];r?n.removeAttributeNS(r,e):n.removeAttribute(`${t}:${e}`);}else n.removeAttribute(e);}addClass(n,e){n.classList.add(e);}removeClass(n,e){n.classList.remove(e);}setStyle(n,e,t,r){r&(Qr.DashCase|Qr.Important)?n.style.setProperty(e,t,r&Qr.Important?"important":""):n.style[e]=t;}removeStyle(n,e,t){t&Qr.DashCase?n.style.removeProperty(e):n.style[e]="";}setProperty(n,e,t){n!=null&&(n[e]=t);}setValue(n,e){n.nodeValue=e;}listen(n,e,t,r){if(typeof n=="string"&&(n=Cs$1().getGlobalEventTarget(this.doc,n),!n))throw new v$1(-5102,false);let s=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===false&&e.preventDefault();}}};function ge$4(o){return o.tagName==="TEMPLATE"&&o.content!==void 0}var N$1=class N extends M{hostEl;sharedStylesHost;shadowRoot;constructor(n,e,t,r,s,i,c,d){super(n,r,s,c),this.hostEl=e,this.sharedStylesHost=d,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=t.styles;l=ve$2(t.id,l);for(let h of l){let y=document.createElement("style");i&&y.setAttribute("nonce",i),y.textContent=h,this.shadowRoot.appendChild(y);}let p=t.getExternalStyles?.();if(p)for(let h of p){let y=F$3(h,r);i&&y.setAttribute("nonce",i),this.shadowRoot.appendChild(y);}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},R$1=class R extends M{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,r,s,i,c,d){super(n,s,i,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r;let l=t.styles;this.styles=d?ve$2(d,l):l,this.styleUrls=t.getExternalStyles?.(d);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&nr$1.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},L$2=class L extends R$1{contentAttr;hostAttr;constructor(n,e,t,r,s,i,c,d){let l=r+"-"+t.id;super(n,e,t,s,i,c,d,l),this.contentAttr=Ae$2(l),this.hostAttr=Ce$4(l);}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"");}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}};var P$1=class o extends Ju{supportsDOMEvents=true;static makeCurrent(){vb(new o);}onAndCancel(n,e,t,r){return n.addEventListener(e,t,r),()=>{n.removeEventListener(e,t,r);}}dispatchEvent(n,e){n.dispatchEvent(e);}remove(n){n.remove();}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Oe$1();return e==null?null:be$3(e)}resetBaseElement(){D$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(n){return al(document.cookie,n)}},D$1=null;function Oe$1(){return D$1=D$1||document.head.querySelector("base"),D$1?D$1.getAttribute("href"):null}function be$3(o){return new URL(o,document.baseURI).pathname}var Se$2=["alt","control","meta","shift"],Ne$2={"\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"},Le$1={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey},Te$1=(()=>{class o extends _$1{constructor(e){super(e);}supports(e){return o.parseEventName(e)!=null}addEventListener(e,t,r,s){let i=o.parseEventName(t),c=o.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Cs$1().onAndCancel(e,i.domEventName,c,s))}static parseEventName(e){let t=e.toLowerCase().split("."),r=t.shift();if(t.length===0||!(r==="keydown"||r==="keyup"))return null;let s=o._normalizeKey(t.pop()),i="",c=t.indexOf("code");if(c>-1&&(t.splice(c,1),i="code."),Se$2.forEach(l=>{let p=t.indexOf(l);p>-1&&(t.splice(p,1),i+=l+".");}),i+=s,t.length!=0||s.length===0)return null;let d={};return d.domEventName=r,d.fullKey=i,d}static matchEventFullKeyCode(e,t){let r=Ne$2[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(r=e.code,s="code."),r==null||!r?false:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Se$2.forEach(i=>{if(i!==r){let c=Le$1[i];c(e)&&(s+=i+".");}}),s+=r,s===t)}static eventCallback(e,t,r){return s=>{o.matchEventFullKeyCode(s,e)&&r.runGuarded(()=>t(s));}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||o)(B$1(he$6))};static \u0275prov=k$2({token:o,factory:o.\u0275fac})}return o})();function He$1(o,n,e){return B$2(this,null,function*(){let t=w$1({rootComponent:o},Pe$1(n,e));return hB(t)})}function Pe$1(o,n){return {platformRef:n?.platformRef,appProviders:[...je$2,...o?.providers??[]],platformProviders:Be$2}}function ke$3(){P$1.makeCurrent();}function Ue$1(){return new ft$4}function xe$2(){return Wv(document),document}var Be$2=[{provide:iv,useValue:rT},{provide:rf,useValue:ke$3,multi:true},{provide:he$6,useFactory:xe$2}];var je$2=[{provide:La,useValue:"root"},{provide:ft$4,useFactory:Ue$1},{provide:H$1,useClass:b$1,multi:true},{provide:H$1,useClass:Te$1,multi:true},Y$2,{provide:hh,useClass:$$2},{provide:$$2,useExisting:hh},z$1,{provide:eo$1,useExisting:Y$2},[]];var $t$3=(()=>{class o{_doc;constructor(e){this._doc=e;}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||"";}static \u0275fac=function(t){return new(t||o)(B$1(he$6))};static \u0275prov=k$2({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Ve$2=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=k$2({token:o,factory:function(t){let r=null;return t?r=new(t||o):r=B$1(Fe$2),r},providedIn:"root"})}return o})(),Fe$2=(()=>{class o extends Ve$2{_doc=g(he$6);sanitize(e,t){if(t==null)return null;switch(e){case io$1.NONE:return t;case io$1.HTML:return cs(t,"HTML")?_n$3(t):Mp(this._doc,String(t)).toString();case io$1.STYLE:return cs(t,"Style")?_n$3(t):t;case io$1.SCRIPT:if(cs(t,"Script"))return _n$3(t);throw new v$1(5200,false);case io$1.URL:return cs(t,"URL")?_n$3(t):lu(String(t));case io$1.RESOURCE_URL:if(cs(t,"ResourceURL"))return _n$3(t);throw new v$1(-5201,false);default:throw new v$1(5202,false)}}bypassSecurityTrustHtml(e){return eD(e)}bypassSecurityTrustStyle(e){return tD(e)}bypassSecurityTrustScript(e){return nD(e)}bypassSecurityTrustUrl(e){return rD(e)}bypassSecurityTrustResourceUrl(e){return oD(e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=Ve$3({token:o,factory:o.\u0275fac})}return o})();
|
|
7
|
+
var de$3;try{de$3=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(i){de$3=false;}var v=(()=>{class i{_platformId=g(iv);isBrowser=this._platformId?UV(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||de$3)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();function Ke$2(i,e=0){return Ze$1(i)?Number(i):arguments.length===2?e:0}function Ze$1(i){return !isNaN(parseFloat(i))&&!isNaN(Number(i))}function N(i){return i instanceof Tn$3?i.nativeElement:i}var qn$2=new T$4("cdk-dir-doc",{providedIn:"root",factory:()=>g(he$6)}),Qn$2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Ge$1(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Qn$2.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var mt$3=(()=>{class i{get value(){return this.valueSignal()}valueSignal=Mi$3("ltr");change=new ut$2;constructor(){let t=g(qn$2,{optional:true});if(t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Ge$1(n||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();var W$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Bu({type:i});static \u0275inj=ui$3({})}return i})();var F$2=(function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i})(F$2||{}),It$1,Y$1;function Tt$2(){if(Y$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Y$1=false,Y$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Y$1=true;else {let i=Element.prototype.scrollTo;i?Y$1=!/\{\s*\[native code\]\s*\}/.test(i.toString()):Y$1=false;}}return Y$1}function it$2(){if(typeof document!="object"||!document)return F$2.NORMAL;if(It$1==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",i.appendChild(t),document.body.appendChild(i),It$1=F$2.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,It$1=i.scrollLeft===0?F$2.NEGATED:F$2.INVERTED),i.remove();}return It$1}var ti$2=20,Pt$2=(()=>{class i{_ngZone=g(ee$5);_platform=g(v);_renderer=g(eo$1).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ue$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 n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=ti$2){return this._platform.isBrowser?new x(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(iy(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):Dr$1()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete();}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(bt$3(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,r)=>{this._targetContainsElement(r,t)&&n.push(r);}),n}_targetContainsElement(t,n){let o=N(n),r=t.getElementRef().nativeElement;do if(o==r)return true;while(o=o.parentElement);return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})(),Mo$1=(()=>{class i{elementRef=g(Tn$3);scrollDispatcher=g(Pt$2);ngZone=g(ee$5);dir=g(mt$3,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ue$4;_renderer=g(Nu);_cleanupScroll;_elementScrolled=new ue$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 n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&it$2()!=F$2.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),it$2()==F$2.INVERTED?t.left=t.right:it$2()==F$2.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Tt$2()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left));}measureScrollOffset(t){let n="left",o="right",r=this.elementRef.nativeElement;if(t=="top")return r.scrollTop;if(t=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?o:n:t=="end"&&(t=a?n:o),a&&it$2()==F$2.INVERTED?t==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&it$2()==F$2.NEGATED?t==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:t==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||i)};static \u0275dir=Vu({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return i})(),ei$2=20,ht$3=(()=>{class i{_platform=g(v);_listeners;_viewportSize=null;_change=new ue$4;_document=g(he$6);constructor(){let t=g(ee$5),n=g(eo$1).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,r=o.getBoundingClientRect(),a=-r.top||t.body?.scrollTop||n.scrollY||o.scrollTop||0,l=-r.left||t.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return {top:a,left:l}}change(t=ei$2){return t>0?this._change.pipe(iy(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();var $e$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Bu({type:i});static \u0275inj=ui$3({})}return i})(),ue$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Bu({type:i});static \u0275inj=ui$3({imports:[W$2,$e$2,W$2,$e$2]})}return i})();var Je$1=new Map,pt$3=class i{_appId=g(nf);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=false){this._appId!=="ng"&&(e+=this._appId);let n=Je$1.get(e);return n===void 0?n=0:n++,Je$1.set(e,n),`${e}${t?i._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})};var ft$3=class ft{_attachedHost=null;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e;}},me$2=class me extends ft$3{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,n,o,r,a){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=o,this.bindings=r||null,this.directives=a||null;}},Ft$1=class Ft extends ft$3{templateRef;viewContainerRef;context;injector;constructor(e,t,n,o){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=o;}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},he$3=class he extends ft$3{element;constructor(e){super(),this.element=e instanceof Tn$3?e.nativeElement:e;}},Nt$2=class Nt{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof me$2)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ft$1)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof he$3)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(e){this._disposeFn=e;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},Lt$1=class Lt extends Nt$2{outletElement;_appRef;_defaultInjector;constructor(e,t,n){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=n;}attachComponentPortal(e){let t;if(e.viewContainerRef){let n=e.injector||e.viewContainerRef.injector,o=n.get(Cn$3,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let n=this._appRef,o=e.injector||this._defaultInjector||pe$5.NULL,r=o.get(fe$5,n.injector);t=mB(e.component,{elementInjector:o,environmentInjector:r,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),n.attachView(t.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(n);o!==-1&&t.remove(o);}),this._attachedPortal=e,n}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var jo$1=(()=>{class i extends Nt$2{_moduleRef=g(Cn$3,{optional:true});_document=g(he$6);_viewContainerRef=g(lr$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 ut$2;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=n.createComponent(t.component,{index:n.length,injector:t.injector||n.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=t=>{let n=t.element;n.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(o){return (t||(t=ap(i)))(o||i)}})();static \u0275dir=Vu({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Rh]})}return i})(),tn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Bu({type:i});static \u0275inj=ui$3({})}return i})();function en$1(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var pe$3;function nn$1(){if(pe$3==null){let i=typeof document<"u"?document.head:null;pe$3=!!(i&&(i.createShadowRoot||i.attachShadow));}return pe$3}function fe$3(i){if(nn$1()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ni$2(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e;}return i}function D(i){if(i.composedPath)try{return i.composedPath()[0]}catch(e){}return i.target}function be$2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Bt=new WeakMap,L$1=(()=>{class i{_appRef;_injector=g(pe$5);_environmentInjector=g(fe$5);load(t){let n=this._appRef=this._appRef||this._injector.get(lo$1),o=Bt.get(n);o||(o={loaders:new Set,refs:[]},Bt.set(n,o),n.onDestroy(()=>{Bt.get(n)?.refs.forEach(r=>r.destroy()),Bt.delete(n);})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push(mB(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();function b(i){return i==null?"":typeof i=="string"?i:`${i}px`}function ot$1(i){return Array.isArray(i)?i:[i]}var on$1=Tt$2();function un$1(i){return new zt(i.get(ht$3),i.get(he$6))}var zt=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=false;_document;constructor(e,t){this._viewportRuler=e,this._document=t;}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=b(-this._previousScrollPosition.left),e.style.top=b(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,n=e.style,o=t.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=false,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),on$1&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),on$1&&(n.scrollBehavior=r,o.scrollBehavior=a);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,n=this._viewportRuler.getViewportSize();return t.scrollHeight>n.height||t.scrollWidth>n.width}};function mn$1(i,e){return new Vt(i.get(Pt$2),i.get(ee$5),i.get(ht$3),e)}var Vt=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,n,o){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=o;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(bt$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 bt$2=class bt{enable(){}disable(){}attach(){}};function _e$2(i,e){return e.some(t=>{let n=i.bottom<t.top,o=i.top>t.bottom,r=i.right<t.left,a=i.left>t.right;return n||o||r||a})}function rn$1(i,e){return e.some(t=>{let n=i.top<t.top,o=i.bottom>t.bottom,r=i.left<t.left,a=i.right>t.right;return n||o||r||a})}function hn$1(i,e){return new jt$1(i.get(Pt$2),i.get(ht$3),i.get(ee$5),e)}var jt$1=class jt{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,n,o){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=o;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();_e$2(t,[{width:n,height:o,bottom:o,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},pn$1=(()=>{class i{_injector=g(pe$5);noop=()=>new bt$2;close=t=>mn$1(this._injector,t);block=()=>un$1(this._injector);reposition=t=>hn$1(this._injector,t);static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})(),Ht=class{positionStrategy;scrollStrategy=new bt$2;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let n of t)e[n]!==void 0&&(this[n]=e[n]);}}};var Ut$2=class Ut{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var fn$1=(()=>{class i{_attachedOverlays=[];_document=g(he$6);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,n,o){return o.observers.length<1?false:t.eventPredicate?t.eventPredicate(n):true}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})(),bn$1=(()=>{class i extends fn$1{_ngZone=g(ee$5);_renderer=g(eo$1).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=t=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,t,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(t));break}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})(),_n$2=(()=>{class i extends fn$1{_platform=g(v);_ngZone=g(ee$5);_renderer=g(eo$1).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let n=this._document.body,o={capture:true},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=D(t);};_clickListener=t=>{let n=D(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let l=r[a],d=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,t,d))){if(an$1(l.overlayElement,n)||an$1(l.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>d.next(t)):d.next(t);}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();function an$1(i,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===i)return true;n=t&&n instanceof ShadowRoot?n.host:n.parentNode;}return false}var gn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=JI({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
height: 100%;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cdk-overlay-container {
|
|
16
|
+
position: fixed;
|
|
17
|
+
}
|
|
18
|
+
@layer cdk-overlay {
|
|
19
|
+
.cdk-overlay-container {
|
|
20
|
+
z-index: 1000;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.cdk-overlay-container:empty {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cdk-global-overlay-wrapper {
|
|
28
|
+
display: flex;
|
|
29
|
+
position: absolute;
|
|
30
|
+
}
|
|
31
|
+
@layer cdk-overlay {
|
|
32
|
+
.cdk-global-overlay-wrapper {
|
|
33
|
+
z-index: 1000;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.cdk-overlay-pane {
|
|
38
|
+
position: absolute;
|
|
39
|
+
pointer-events: auto;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
display: flex;
|
|
42
|
+
max-width: 100%;
|
|
43
|
+
max-height: 100%;
|
|
44
|
+
}
|
|
45
|
+
@layer cdk-overlay {
|
|
46
|
+
.cdk-overlay-pane {
|
|
47
|
+
z-index: 1000;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.cdk-overlay-backdrop {
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 0;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
left: 0;
|
|
56
|
+
right: 0;
|
|
57
|
+
pointer-events: auto;
|
|
58
|
+
-webkit-tap-highlight-color: transparent;
|
|
59
|
+
opacity: 0;
|
|
60
|
+
touch-action: manipulation;
|
|
61
|
+
}
|
|
62
|
+
@layer cdk-overlay {
|
|
63
|
+
.cdk-overlay-backdrop {
|
|
64
|
+
z-index: 1000;
|
|
65
|
+
transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@media (prefers-reduced-motion) {
|
|
69
|
+
.cdk-overlay-backdrop {
|
|
70
|
+
transition-duration: 1ms;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cdk-overlay-backdrop-showing {
|
|
75
|
+
opacity: 1;
|
|
76
|
+
}
|
|
77
|
+
@media (forced-colors: active) {
|
|
78
|
+
.cdk-overlay-backdrop-showing {
|
|
79
|
+
opacity: 0.6;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@layer cdk-overlay {
|
|
84
|
+
.cdk-overlay-dark-backdrop {
|
|
85
|
+
background: rgba(0, 0, 0, 0.32);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cdk-overlay-transparent-backdrop {
|
|
90
|
+
transition: visibility 1ms linear, opacity 1ms linear;
|
|
91
|
+
visibility: hidden;
|
|
92
|
+
opacity: 1;
|
|
93
|
+
}
|
|
94
|
+
.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop {
|
|
95
|
+
opacity: 0;
|
|
96
|
+
visibility: visible;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.cdk-overlay-backdrop-noop-animation {
|
|
100
|
+
transition: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.cdk-overlay-connected-position-bounding-box {
|
|
104
|
+
position: absolute;
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
min-width: 1px;
|
|
108
|
+
min-height: 1px;
|
|
109
|
+
}
|
|
110
|
+
@layer cdk-overlay {
|
|
111
|
+
.cdk-overlay-connected-position-bounding-box {
|
|
112
|
+
z-index: 1000;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.cdk-global-scrollblock {
|
|
117
|
+
position: fixed;
|
|
118
|
+
width: 100%;
|
|
119
|
+
overflow-y: scroll;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.cdk-overlay-popover {
|
|
123
|
+
background: none;
|
|
124
|
+
border: none;
|
|
125
|
+
padding: 0;
|
|
126
|
+
outline: 0;
|
|
127
|
+
overflow: visible;
|
|
128
|
+
position: fixed;
|
|
129
|
+
pointer-events: none;
|
|
130
|
+
white-space: normal;
|
|
131
|
+
color: inherit;
|
|
132
|
+
text-decoration: none;
|
|
133
|
+
width: 100%;
|
|
134
|
+
height: 100%;
|
|
135
|
+
inset: auto;
|
|
136
|
+
top: 0;
|
|
137
|
+
left: 0;
|
|
138
|
+
}
|
|
139
|
+
.cdk-overlay-popover::backdrop {
|
|
140
|
+
display: none;
|
|
141
|
+
}
|
|
142
|
+
.cdk-overlay-popover .cdk-overlay-backdrop {
|
|
143
|
+
position: fixed;
|
|
144
|
+
z-index: auto;
|
|
145
|
+
}
|
|
146
|
+
`],encapsulation:2})}return i})(),vn$1=(()=>{class i{_platform=g(v);_containerElement;_document=g(he$6);_styleLoader=g(L$1);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||be$2()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove();}let n=this._document.createElement("div");n.classList.add(t),be$2()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n;}_loadStyles(){this._styleLoader.load(gn$1);}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})(),ge$3=class ge{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,n,o){this._renderer=t,this._ngZone=n,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o);}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function ve$1(i){return i&&i.nodeType===1}var Wt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ue$4;_attachments=new ue$4;_detachments=new ue$4;_positionStrategy;_scrollStrategy;_locationChanges=X$2.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new ue$4;_outsidePointerEvents=new ue$4;_afterNextRenderRef;constructor(e,t,n,o,r,a,l,d,u,c=false,m,C){this._portalOutlet=e,this._host=t,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=l,this._location=d,this._outsideClickDispatcher=u,this._animationsDisabled=c,this._injector=m,this._renderer=C,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=QD(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){if(this._disposed)return;let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()));}updateSize(e){this._config=w$1(w$1({},this._config),e),this._updateElementSize();}setDirection(e){this._config=x$1(w$1({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=b(this._config.width),e.height=b(this._config.height),e.minWidth=b(this._config.minWidth),e.minHeight=b(this._config.minHeight),e.maxWidth=b(this._config.maxWidth),e.maxHeight=b(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none";}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;ve$1(e)?e.after(this._host):e?.type==="parent"?e.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch(e){}}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new ge$3(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e));}):this._backdropRef.element.classList.add(e);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(e,t,n){let o=ot$1(t||[]).filter(r=>!!r);o.length&&(n?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=QD(()=>{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?.();}},sn$1="cdk-overlay-connected-position-bounding-box",ii$2=/([A-Za-z%]+)$/;function yn$1(i,e){return new Yt$1(e,i.get(ht$3),i.get(he$6),i.get(v),i.get(vn$1))}var Yt$1=class Yt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=false;_lastBoundingBoxSize={width:0,height:0};_isPushed=false;_canPush=true;_growAfterOpen=false;_hasFlexibleDimensions=true;_positionLocked=false;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=false;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new ue$4;_resizeSubscription=X$2.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,n,o,r){this._viewportRuler=t,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(sn$1),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let e=this._originRect,t=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let l of this._preferredPositions){let d=this._getOriginPoint(e,o,l),u=this._getOverlayPoint(d,t,l),c=this._getOverlayFit(u,t,n,l);if(c.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(l,d);return}if(this._canFitWithFlexibleDimensions(c,u,n)){r.push({position:l,origin:d,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(d,l)});continue}(!a||a.overlayFit.visibleArea<c.visibleArea)&&(a={overlayFit:c,overlayPoint:u,originPoint:d,position:l,overlayRect:t});}if(r.length){let l=null,d=-1;for(let u of r){let c=u.boundingBoxRect.width*u.boundingBoxRect.height*(u.position.weight||1);c>d&&(d=c,l=u);}this._isPushed=false,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&X(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(sn$1),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=true);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;e?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(e,this._getOriginPoint(this._originRect,this._containerRect,e))):this.apply();}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=true){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=true){return this._growAfterOpen=e,this}withPush(e=true){return this._canPush=e,this}withLockedPosition(e=true){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}withPopoverLocation(e){return this._popoverLocation=e,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof Tn$3?this._origin.nativeElement:ve$1(this._origin)?this._origin:null}_getOriginPoint(e,t,n){let o;if(n.originX=="center")o=e.left+e.width/2;else {let a=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;o=n.originX=="start"?a:l;}t.left<0&&(o-=t.left);let r;return n.originY=="center"?r=e.top+e.height/2:r=n.originY=="top"?e.top:e.bottom,t.top<0&&(r-=t.top),{x:o,y:r}}_getOverlayPoint(e,t,n){let o;n.overlayX=="center"?o=-t.width/2:n.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let r;return n.overlayY=="center"?r=-t.height/2:r=n.overlayY=="top"?0:-t.height,{x:e.x+o,y:e.y+r}}_getOverlayFit(e,t,n,o){let r=cn$1(t),{x:a,y:l}=e,d=this._getOffset(o,"x"),u=this._getOffset(o,"y");d&&(a+=d),u&&(l+=u);let c=0-a,m=a+r.width-n.width,C=0-l,S=l+r.height-n.height,w=this._subtractOverflows(r.width,c,m),y=this._subtractOverflows(r.height,C,S),V=w*y;return {visibleArea:V,isCompletelyWithinViewport:r.width*r.height===V,fitsInViewportVertically:y===r.height,fitsInViewportHorizontally:w==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let o=n.bottom-t.y,r=n.right-t.x,a=ln(this._overlayRef.getConfig().minHeight),l=ln(this._overlayRef.getConfig().minWidth),d=e.fitsInViewportVertically||a!=null&&a<=o,u=e.fitsInViewportHorizontally||l!=null&&l<=r;return d&&u}return false}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let o=cn$1(t),r=this._viewportRect,a=Math.max(e.x+o.width-r.width,0),l=Math.max(e.y+o.height-r.height,0),d=Math.max(r.top-n.top-e.y,0),u=Math.max(r.left-n.left-e.x,0),c=0,m=0;return o.width<=r.width?c=u||-a:c=e.x<this._getViewportMarginStart()?r.left-n.left-e.x:0,o.height<=r.height?m=d||-l:m=e.y<this._getViewportMarginTop()?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:m},{x:e.x+c,y:e.y+m}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!oi$2(this._lastScrollVisibility,n)){let o=new Ut$2(e,n);this._positionChanges.next(o);}this._lastScrollVisibility=n;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,o=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${n} ${o}`;}_calculateBoundingBoxRect(e,t){let n=this._viewportRect,o=this._isRtl(),r,a,l;if(t.overlayY==="top")a=e.y,r=n.height-a+this._getViewportMarginBottom();else if(t.overlayY==="bottom")l=n.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=n.height-l+this._getViewportMarginTop();else {let S=Math.min(n.bottom-e.y+n.top,e.y),w=this._lastBoundingBoxSize.height;r=S*2,a=e.y-S,r>w&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-w/2);}let d=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,u=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,c,m,C;if(u)C=n.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),c=e.x-this._getViewportMarginStart();else if(d)m=e.x,c=n.right-e.x-this._getViewportMarginEnd();else {let S=Math.min(n.right-e.x+n.left,e.x),w=this._lastBoundingBoxSize.width;c=S*2,m=e.x-S,c>w&&!this._isInitialRender&&!this._growAfterOpen&&(m=e.x-w/2);}return {top:a,left:m,bottom:l,right:C,width:c,height:r}}_setBoundingBoxStyles(e,t){let n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else {let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.width=b(n.width),o.height=b(n.height),o.top=b(n.top)||"auto",o.bottom=b(n.bottom)||"auto",o.left=b(n.left)||"auto",o.right=b(n.right)||"auto",t.overlayX==="center"?o.alignItems="center":o.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?o.justifyContent="center":o.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=b(r)),a&&(o.maxWidth=b(a));}this._lastBoundingBoxSize=n,X(this._boundingBox.style,o);}_resetBoundingBoxStyles(){X(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){X(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let c=this._viewportRuler.getViewportScrollPosition();X(n,this._getExactOverlayY(t,e,c)),X(n,this._getExactOverlayX(t,e,c));}else n.position="static";let l="",d=this._getOffset(t,"x"),u=this._getOffset(t,"y");d&&(l+=`translateX(${d}px) `),u&&(l+=`translateY(${u}px)`),n.transform=l.trim(),a.maxHeight&&(o?n.maxHeight=b(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=b(a.maxWidth):r&&(n.maxWidth="")),X(this._pane.style,n);}_getExactOverlayY(e,t,n){let o={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),e.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`;}else o.top=b(r.y);return o}_getExactOverlayX(e,t,n){let o={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(r.x+this._overlayRect.width)}px`;}else o.left=b(r.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:rn$1(e,n),isOriginOutsideView:_e$2(e,n),isOverlayClipped:rn$1(t,n),isOverlayOutsideView:_e$2(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,o)=>n-Math.max(o,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return {top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+e-this._getViewportMarginEnd(),bottom:n.top+t-this._getViewportMarginBottom(),width:e-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&ot$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 Tn$3)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,n=e.height||0;return {top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let n=t.getBoundingClientRect();return e&&(t.style.display=""),n}};function X(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function ln(i){if(typeof i!="number"&&i!=null){let[e,t]=i.split(ii$2);return !t||t==="px"?parseFloat(e):null}return i||null}function cn$1(i){return {top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function oi$2(i,e){return i===e?true:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var dn$2="cdk-global-overlay-wrapper";function wn$2(i){return new Xt}var Xt=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=false;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(dn$2),this._isDisposed=false;}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:l}=n,d=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,m=this._xOffset,C=this._overlayRef.getConfig().direction==="rtl",S="",w="",y="";d?y="flex-start":c==="center"?(y="center",C?w=m:S=m):C?c==="left"||c==="end"?(y="flex-end",S=m):(c==="right"||c==="start")&&(y="flex-start",w=m):c==="left"||c==="start"?(y="flex-start",S=m):(c==="right"||c==="end")&&(y="flex-end",w=m),e.position=this._cssPosition,e.marginLeft=d?"0":S,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=d?"0":w,t.justifyContent=y,t.alignItems=u?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(dn$2),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},xn$2=(()=>{class i{_injector=g(pe$5);global(){return wn$2()}flexibleConnectedTo(t){return yn$1(this._injector,t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})(),En$2=new T$4("OVERLAY_DEFAULT_CONFIG");function Cn$2(i,e){i.get(L$1).load(gn$1);let t=i.get(vn$1),n=i.get(he$6),o=i.get(pt$3),r=i.get(lo$1),a=i.get(mt$3),l=i.get(Nu,null,{optional:true})||i.get(eo$1).createRenderer(null,null),d=new Ht(e),u=i.get(En$2,null,{optional:true})?.usePopover??true;d.direction=d.direction||a.value,!n.body||!("showPopover"in n.body)?d.usePopover=false:d.usePopover=e?.usePopover??u;let c=n.createElement("div"),m=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),m.appendChild(c),d.usePopover&&(m.setAttribute("popover","manual"),m.classList.add("cdk-overlay-popover"));let C=d.usePopover?d.positionStrategy?.getPopoverInsertionPoint?.():null;return ve$1(C)?C.after(m):C?.type==="parent"?C.element.appendChild(m):t.getContainerElement().appendChild(m),new Wt(new Lt$1(c,r,i),m,c,d,i.get(ee$5),i.get(bn$1),n,i.get($g),i.get(_n$2),e?.disableAnimations??i.get(sv,null,{optional:true})==="NoopAnimations",i.get(fe$5),l)}var Sn$2=(()=>{class i{scrollStrategies=g(pn$1);_positionBuilder=g(xn$2);_injector=g(pe$5);create(t){return Cn$2(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();var ri$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Bu({type:i});static \u0275inj=ui$3({providers:[Sn$2],imports:[W$2,tn$1,ue$2,ue$2]})}return i})();var kn$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=JI({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden {
|
|
147
|
+
border: 0;
|
|
148
|
+
clip: rect(0 0 0 0);
|
|
149
|
+
height: 1px;
|
|
150
|
+
margin: -1px;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
padding: 0;
|
|
153
|
+
position: absolute;
|
|
154
|
+
width: 1px;
|
|
155
|
+
white-space: nowrap;
|
|
156
|
+
outline: 0;
|
|
157
|
+
-webkit-appearance: none;
|
|
158
|
+
-moz-appearance: none;
|
|
159
|
+
left: 0;
|
|
160
|
+
}
|
|
161
|
+
[dir=rtl] .cdk-visually-hidden {
|
|
162
|
+
left: auto;
|
|
163
|
+
right: 0;
|
|
164
|
+
}
|
|
165
|
+
`],encapsulation:2})}return i})(),Kt$1;function ai$2(){if(Kt$1===void 0&&(Kt$1=null,typeof window<"u")){let i=window;if(i.trustedTypes!==void 0)try{Kt$1=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e});}catch(e){console.error(e);}}return Kt$1}function si$2(i){return ai$2()?.createHTML(i)||i}function Rn$2(i,e,t){let n=t.sanitize(io$1.HTML,e);i.innerHTML=si$2(n||"");}var Dn$2=new Set,K$2,Zt$1=(()=>{class i{_platform=g(v);_nonce=g(of,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ci$2;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&li$2(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();function li$2(i,e){if(!Dn$2.has(i))try{K$2||(K$2=document.createElement("style"),e&&K$2.setAttribute("nonce",e),K$2.setAttribute("type","text/css"),document.head.appendChild(K$2)),K$2.sheet&&(K$2.sheet.insertRule(`@media ${i.replace(/[{}]/g,"")} {body{ }}`,0),Dn$2.add(i));}catch(t){console.error(t);}}function ci$2(i){return {matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var di$2=(()=>{class i{_mediaMatcher=g(Zt$1);_zone=g(ee$5);_queries=new Map;_destroySubject=new ue$4;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return On$2(ot$1(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=On$2(ot$1(t)).map(a=>this._registerQuery(a).observable),r=$m(o);return r=Tt$3(r.pipe(en$2(1)),r.pipe(jl(1),Ll(0))),r.pipe(te$4(a=>{let l={matches:false,breakpoints:{}};return a.forEach(({matches:d,query:u})=>{l.matches=l.matches||d,l.breakpoints[u]=d;}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),r={observable:new x(a=>{let l=d=>this._zone.run(()=>a.next(d));return n.addListener(l),()=>{n.removeListener(l);}}).pipe(Vl(n),te$4(({matches:a})=>({query:t,matches:a})),Yl(this._destroySubject)),mql:n};return this._queries.set(t,r),r}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();function On$2(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function _t$3(i){return i.buttons===0||i.detail===0}function gt$2(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return !!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var vt$2;function An$2(){if(vt$2==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>vt$2=!0}));}finally{vt$2=vt$2||false;}return vt$2}function rt$1(i){return An$2()?i:!!i.capture}var Mn$3=new T$4("cdk-input-modality-detector-options"),In$2={ignoreKeys:[18,17,224,91,16]},Tn$2=650,ye$3={passive:true,capture:true},Pn$2=(()=>{class i{_platform=g(v);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new vr$1(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=D(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<Tn$2||(this._modality.next(_t$3(t)?"keyboard":"mouse"),this._mostRecentTarget=D(t));};_onTouchstart=t=>{if(gt$2(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=D(t);};constructor(){let t=g(ee$5),n=g(he$6),o=g(Mn$3,{optional:true});if(this._options=w$1(w$1({},In$2),o),this.modalityDetected=this._modality.pipe(jl(1)),this.modalityChanged=this.modalityDetected.pipe(ql()),this._platform.isBrowser){let r=g(eo$1).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,ye$3),r.listen(n,"mousedown",this._onMousedown,ye$3),r.listen(n,"touchstart",this._onTouchstart,ye$3)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})(),yt$2=(function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i})(yt$2||{}),Fn$2=new T$4("cdk-focus-monitor-default-options"),Gt=rt$1({passive:true,capture:true}),we$1=(()=>{class i{_ngZone=g(ee$5);_platform=g(v);_inputModalityDetector=g(Pn$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(he$6);_stopInputModalityDetector=new ue$4;constructor(){let t=g(Fn$2,{optional:true});this._detectionMode=t?.detectionMode||yt$2.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=D(t);for(let o=n;o;o=o.parentElement)t.type==="focus"?this._onFocus(t,o):this._onBlur(t,o);};monitor(t,n=false){let o=N(t);if(!this._platform.isBrowser||o.nodeType!==1)return Dr$1();let r=fe$3(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=true),a.subject;let l={checkChildren:n,subject:new ue$4,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=N(t),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o));}focusVia(t,n,o){let r=N(t),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([l,d])=>this._originChanged(l,n,d)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o));}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===yt$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===yt$2.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?Tn$2:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(t,n){let o=this._elementInfo.get(n),r=D(t);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o);}_onBlur(t,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null));}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n));}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Gt),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Gt);}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Yl(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,true);}));}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Gt),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Gt),this._rootNodeFocusListenerCount.delete(n));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(t,n,o){this._setClasses(t,n),this._emitOrigin(o,n),this._lastFocusOrigin=n;}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((o,r)=>{(r===t||o.checkChildren&&r.contains(t))&&n.push([r,o]);}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return false;let r=t.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(n))return true}return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();var Ln$2=(()=>{class i{_platform=g(v);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return mi$2(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=ui$2(yi$2(t));if(n&&(Nn$2(n)===-1||!this.isVisible(n)))return false;let o=t.nodeName.toLowerCase(),r=Nn$2(t);return t.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!gi$2(t)?false:o==="audio"?t.hasAttribute("controls")?r!==-1:false:o==="video"?r===-1?false:r!==null?true:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return vi$2(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();function ui$2(i){try{return i.frameElement}catch(e){return null}}function mi$2(i){return !!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function hi$2(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function pi$2(i){return bi$2(i)&&i.type=="hidden"}function fi$2(i){return _i$2(i)&&i.hasAttribute("href")}function bi$2(i){return i.nodeName.toLowerCase()=="input"}function _i$2(i){return i.nodeName.toLowerCase()=="a"}function Bn$2(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return false;let e=i.getAttribute("tabindex");return !!(e&&!isNaN(parseInt(e,10)))}function Nn$2(i){if(!Bn$2(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function gi$2(i){let e=i.nodeName.toLowerCase(),t=e==="input"&&i.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function vi$2(i){return pi$2(i)?false:hi$2(i)||fi$2(i)||i.hasAttribute("contenteditable")||Bn$2(i)}function yi$2(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var $t$2=class $t{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_enabled=true;constructor(e,t,n,o,r=false,a){this._element=e,this._checker=t,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors();}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false;}attachAnchors(){return this._hasAttached?true:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener));}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=true),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)));})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)));})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)));})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),true}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=0;n<t.length;n++){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(o)return o}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=t.length-1;n>=0;n--){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(o)return o}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex");}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_executeOnStable(e){QD(e,{injector:this._injector});}},wi$2=(()=>{class i{_checker=g(Ln$2);_ngZone=g(ee$5);_document=g(he$6);_injector=g(pe$5);constructor(){g(L$1).load(kn$2);}create(t,n=false){return new $t$2(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();var zn$2=new T$4("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),Vn$2=new T$4("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),xi$1=0,Ei$1=(()=>{class i{_ngZone=g(ee$5);_defaultOptions=g(Vn$2,{optional:true});_liveElement;_document=g(he$6);_sanitizer=g(Ve$2);_previousTimeout;_currentPromise;_currentResolve;constructor(){let t=g(zn$2,{optional:true});this._liveElement=t||this._createLiveElement();}announce(t,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!t||typeof t=="string"?this._liveElement.textContent=t:Rn$2(this._liveElement,t,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),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),o=this._document.createElement("div");for(let r=0;r<n.length;r++)n[r].remove();return o.classList.add(t),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id=`cdk-live-announcer-${xi$1++}`,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(t){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<n.length;o++){let r=n[o],a=r.getAttribute("aria-owns");a?a.indexOf(t)===-1&&r.setAttribute("aria-owns",a+" "+t):r.setAttribute("aria-owns",t);}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();function Ea(i){return i!=null&&`${i}`!="false"}var ka={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};var Ci$2=new T$4("MATERIAL_ANIMATIONS"),jn$2=null;function Si$2(){return g(Ci$2,{optional:true})?.animationsDisabled||g(sv,{optional:true})==="NoopAnimations"?"di-disabled":(jn$2??=g(Zt$1).matchMedia("(prefers-reduced-motion)").matches,jn$2?"reduced-motion":"enabled")}function at$2(){return Si$2()!=="enabled"}var ki$2=200,qt=class{_letterKeyStream=new ue$4;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ue$4;selectedItem=this._selectedItem;constructor(e,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:ki$2;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(e),this._setupKeyHandler(n);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e;}setItems(e){this._items=e;}handleKey(e){let t=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(e){this._letterKeyStream.pipe(Hl(t=>this._pressedLetters.push(t)),Ll(e),bt$3(()=>this._pressedLetters.length>0),te$4(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let n=1;n<this._items.length+1;n++){let o=(this._selectedItemIndex+n)%this._items.length,r=this._items[o];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(r);break}}this._pressedLetters=[];});}};var Qt$1=class Qt{_items;_activeItemIndex=Mi$3(-1);_activeItem=Mi$3(null);_wrap=false;_typeaheadSubscription=X$2.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=e=>e.disabled;constructor(e,t){this._items=e,e instanceof Gi$1?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):$r(e)&&(this._effectRef=sf(()=>this._itemsChanged(e()),{injector:t}));}tabOut=new ue$4;change=new ue$4;skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=true){return this._wrap=e,this}withVerticalOrientation(e=true){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new qt(t,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=true){return this._homeAndEnd=e,this}withPageUpDown(e=true,t=10){return this._pageUpAndDown={enabled:e,delta:t},this}setActiveItem(e){let t=this._activeItem();this.updateActiveItem(e),this._activeItem()!==t&&this.change.next(this._activeItemIndex());}onKeydown(e){let t=e.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(o||en$1(e,"shiftKey"))&&this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.preventDefault();}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return !!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1);}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1);}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1);}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1);}updateActiveItem(e){let t=this._getItemsArray(),n=typeof e=="number"?e:t.indexOf(e),o=t[n];this._activeItem.set(o??null),this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e);}_setActiveInWrapMode(e){let t=this._getItemsArray();for(let n=1;n<=t.length;n++){let o=(this._activeItemIndex()+e*n+t.length)%t.length,r=t[o];if(!this._skipPredicateFn(r)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex()+e,e);}_setActiveItemByIndex(e,t){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=t,!n[e])return;this.setActiveItem(e);}}_getItemsArray(){return $r(this._items)?this._items():this._items instanceof Gi$1?this._items.toArray():this._items}_itemsChanged(e){this._typeahead?.setItems(e);let t=this._activeItem();if(t){let n=e.indexOf(t);n>-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n));}}};var xe$1=class xe extends Qt$1{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin);}};var T$2=(function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i})(T$2||{}),Ee$1=class Ee{_renderer;element;config;_animationForciblyDisabledThroughCss;state=T$2.HIDDEN;constructor(e,t,n,o=false){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},Hn$2=rt$1({passive:true,capture:true}),Ce$3=class Ce{_events=new Map;addHandler(e,t,n,o){let r=this._events.get(t);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]));}else this._events.set(t,new Map([[n,new Set([o])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,Hn$2);});}removeHandler(e,t,n){let o=this._events.get(e);if(!o)return;let r=o.get(t);r&&(r.delete(n),r.size===0&&o.delete(t),o.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,Hn$2)));}_delegateEventHandler=e=>{let t=D(e);t&&this._events.get(e.type)?.forEach((n,o)=>{(o===t||o.contains(t))&&n.forEach(r=>r.handleEvent(e));});}},wt$2={enterDuration:225,exitDuration:150},Ri$2=800,Un$2=rt$1({passive:true,capture:true}),Wn$2=["mousedown","touchstart"],Yn$2=["mouseup","mouseleave","touchend","touchcancel"],Di$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=JI({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple {
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
position: relative;
|
|
168
|
+
}
|
|
169
|
+
.mat-ripple:not(:empty) {
|
|
170
|
+
transform: translateZ(0);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.mat-ripple.mat-ripple-unbounded {
|
|
174
|
+
overflow: visible;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.mat-ripple-element {
|
|
178
|
+
position: absolute;
|
|
179
|
+
border-radius: 50%;
|
|
180
|
+
pointer-events: none;
|
|
181
|
+
transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1);
|
|
182
|
+
transform: scale3d(0, 0, 0);
|
|
183
|
+
background-color: var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent));
|
|
184
|
+
}
|
|
185
|
+
@media (forced-colors: active) {
|
|
186
|
+
.mat-ripple-element {
|
|
187
|
+
display: none;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
.cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element {
|
|
191
|
+
display: none;
|
|
192
|
+
}
|
|
193
|
+
`],encapsulation:2})}return i})(),xt$1=class i{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new Ce$3;constructor(e,t,n,o,r){this._target=e,this._ngZone=t,this._platform=o,o.isBrowser&&(this._containerElement=N(n)),r&&r.get(L$1).load(Di$2);}fadeInRipple(e,t,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=w$1(w$1({},wt$2),n.animation);n.centered&&(e=o.left+o.width/2,t=o.top+o.height/2);let a=n.radius||Oi$1(e,t,o),l=e-o.left,d=t-o.top,u=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${l-a}px`,c.style.top=`${d-a}px`,c.style.height=`${a*2}px`,c.style.width=`${a*2}px`,n.color!=null&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c);let m=window.getComputedStyle(c),C=m.transitionProperty,S=m.transitionDuration,w=C==="none"||S==="0s"||S==="0s, 0s"||o.width===0&&o.height===0,y=new Ee$1(this,c,n,w);c.style.transform="scale3d(1, 1, 1)",y.state=T$2.FADING_IN,n.persistent||(this._mostRecentTransientRipple=y);let V=null;return !w&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Oe=()=>{V&&(V.fallbackTimer=null),clearTimeout(Ae),this._finishRippleTransition(y);},te=()=>this._destroyRipple(y),Ae=setTimeout(te,u+100);c.addEventListener("transitionend",Oe),c.addEventListener("transitioncancel",te),V={onTransitionEnd:Oe,onTransitionCancel:te,fallbackTimer:Ae};}),this._activeRipples.set(y,V),(w||!u)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===T$2.FADING_OUT||e.state===T$2.HIDDEN)return;let t=e.element,n=w$1(w$1({},wt$2),e.config.animation);t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",e.state=T$2.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e);}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut();});}setupTriggerEvents(e){let t=N(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Wn$2.forEach(n=>{i._eventManager.addHandler(this._ngZone,n,t,this);}));}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Yn$2.forEach(t=>{this._triggerElement.addEventListener(t,this,Un$2);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(e){e.state===T$2.FADING_IN?this._startFadeOutTransition(e):e.state===T$2.FADING_OUT&&this._destroyRipple(e);}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=T$2.VISIBLE,!n&&(!t||!this._isPointerDown)&&e.fadeOut();}_destroyRipple(e){let t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=T$2.HIDDEN,t!==null&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),e.element.remove();}_onMousedown(e){let t=_t$3(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Ri$2;!this._target.rippleDisabled&&!t&&!n&&(this._isPointerDown=true,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig));}_onTouchStart(e){if(!this._target.rippleDisabled&&!gt$2(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let t=e.changedTouches;if(t)for(let n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(e=>{let t=e.state===T$2.VISIBLE||e.config.terminateOnPointerUp&&e.state===T$2.FADING_IN;!e.config.persistent&&t&&e.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Wn$2.forEach(t=>i._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(Yn$2.forEach(t=>e.removeEventListener(t,this,Un$2)),this._pointerUpEventsRegistered=false));}};function Oi$1(i,e,t){let n=Math.max(Math.abs(i-t.left),Math.abs(i-t.right)),o=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(n*n+o*o)}var Se$1=new T$4("mat-ripple-global-options"),Os$1=(()=>{class i{_elementRef=g(Tn$3);_animationsDisabled=at$2();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(ee$5),n=g(v),o=g(Se$1,{optional:true}),r=g(pe$5);this._globalOptions=o||{},this._rippleRenderer=new xt$1(this,t,this._elementRef,n,r);}ngOnInit(){this._isInitialized=true,this._setupTriggerEventsIfEnabled();}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents();}fadeOutAll(){this._rippleRenderer.fadeOutAll();}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent();}get rippleConfig(){return {centered:this.centered,radius:this.radius,color:this.color,animation:w$1(w$1(w$1({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger);}launch(t,n=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,w$1(w$1({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,w$1(w$1({},this.rippleConfig),t))}static \u0275fac=function(n){return new(n||i)};static \u0275dir=Vu({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&rg("mat-ripple-unbounded",o.unbounded);},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return i})();var Ai$2={capture:true},Mi$2=["focus","mousedown","mouseenter","touchstart"],ke$2="mat-ripple-loader-uninitialized",Re$2="mat-ripple-loader-class-name",Xn$2="mat-ripple-loader-centered",Jt$1="mat-ripple-loader-disabled",Kn$2=(()=>{class i{_document=g(he$6);_animationsDisabled=at$2();_globalRippleOptions=g(Se$1,{optional:true});_platform=g(v);_ngZone=g(ee$5);_injector=g(pe$5);_eventCleanups;_hosts=new Map;constructor(){let t=g(eo$1).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Mi$2.map(n=>t.listen(this._document,n,this._onInteraction,Ai$2)));}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);this._eventCleanups.forEach(n=>n());}configureRipple(t,n){t.setAttribute(ke$2,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(Re$2))&&t.setAttribute(Re$2,n.className||""),n.centered&&t.setAttribute(Xn$2,""),n.disabled&&t.setAttribute(Jt$1,"");}setDisabled(t,n){let o=this._hosts.get(t);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=true,o.renderer.setupTriggerEvents(t))):n?t.setAttribute(Jt$1,""):t.removeAttribute(Jt$1);}_onInteraction=t=>{let n=D(t);if(n instanceof HTMLElement){let o=n.closest(`[${ke$2}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o);}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",t.getAttribute(Re$2)),t.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??wt$2.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??wt$2.exitDuration,l={rippleDisabled:this._animationsDisabled||o?.disabled||t.hasAttribute(Jt$1),rippleConfig:{centered:t.hasAttribute(Xn$2),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},d=new xt$1(l,this._ngZone,n,this._platform,this._injector),u=!l.rippleDisabled;u&&d.setupTriggerEvents(t),this._hosts.set(t,{target:l,renderer:d,hasSetUpEvents:u}),t.removeAttribute(ke$2);}destroyRipple(t){let n=this._hosts.get(t);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(t));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();var Zn$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=JI({type:i,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator {
|
|
194
|
+
position: relative;
|
|
195
|
+
}
|
|
196
|
+
.mat-focus-indicator::before {
|
|
197
|
+
top: 0;
|
|
198
|
+
left: 0;
|
|
199
|
+
right: 0;
|
|
200
|
+
bottom: 0;
|
|
201
|
+
position: absolute;
|
|
202
|
+
box-sizing: border-box;
|
|
203
|
+
pointer-events: none;
|
|
204
|
+
display: var(--mat-focus-indicator-display, none);
|
|
205
|
+
border-width: var(--mat-focus-indicator-border-width, 3px);
|
|
206
|
+
border-style: var(--mat-focus-indicator-border-style, solid);
|
|
207
|
+
border-color: var(--mat-focus-indicator-border-color, transparent);
|
|
208
|
+
border-radius: var(--mat-focus-indicator-border-radius, 4px);
|
|
209
|
+
}
|
|
210
|
+
.mat-focus-indicator:focus-visible::before {
|
|
211
|
+
content: "";
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@media (forced-colors: active) {
|
|
215
|
+
html {
|
|
216
|
+
--mat-focus-indicator-display: block;
|
|
217
|
+
--mat-focus-indicator-fallback-border-style: none;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
`],encapsulation:2})}return i})();var Ii=["*",[["","progressIndicator",""]]],Ti$2=["*","[progressIndicator]"];function Pi$2(i,e){i&1&&(Gu(0,"div",1),Bw(1,1),Wu());}var Fi$2=new T$4("MAT_BUTTON_CONFIG");function Gn$2(i){return i==null?void 0:mb(i)}var De$1=(()=>{class i{_elementRef=g(Tn$3);_ngZone=g(ee$5);_animationsDisabled=at$2();_config=g(Fi$2,{optional:true});_focusMonitor=g(we$1);_cleanupClick;_renderer=g(Nu);_rippleLoader=g(Kn$2);_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=aB(false,{transform:gb});constructor(){g(L$1).load(Zn$2);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??false,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true),this._isAnchor&&this._setupAsAnchor();}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?true:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:true}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation());}));}static \u0275fac=function(n){return new(n||i)};static \u0275dir=Vu({type:i,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(n,o){n&2&&(Bh("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),tC(o.color?"mat-"+o.color:""),rg("mat-mdc-button-progress-indicator-shown",o.showProgress())("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled));},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",gb],disabled:[2,"disabled","disabled",gb],ariaDisabled:[2,"aria-disabled","ariaDisabled",gb],disabledInteractive:[2,"disabledInteractive","disabledInteractive",gb],tabIndex:[2,"tabIndex","tabIndex",Gn$2],_tabindex:[2,"tabindex","_tabindex",Gn$2],showProgress:[1,"showProgress"]}})}return i})(),Ni$2=(()=>{class i extends De$1{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:true});}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=JI({type:i,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[Rh],ngContentSelectors:Ti$2,decls:5,vars:1,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(jw(Ii),Uh(0,"span",0),Bw(1),Ew(2,Pi$2,2,0,"div",1),Uh(3,"span",2)(4,"span",3)),n&2&&(EE(2),Iw(o.showProgress()?2:-1));},styles:[`.mat-mdc-icon-button {
|
|
221
|
+
-webkit-user-select: none;
|
|
222
|
+
user-select: none;
|
|
223
|
+
display: inline-block;
|
|
224
|
+
position: relative;
|
|
225
|
+
box-sizing: border-box;
|
|
226
|
+
border: none;
|
|
227
|
+
outline: none;
|
|
228
|
+
background-color: transparent;
|
|
229
|
+
fill: currentColor;
|
|
230
|
+
text-decoration: none;
|
|
231
|
+
cursor: pointer;
|
|
232
|
+
z-index: 0;
|
|
233
|
+
overflow: visible;
|
|
234
|
+
border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));
|
|
235
|
+
flex-shrink: 0;
|
|
236
|
+
text-align: center;
|
|
237
|
+
width: var(--mat-icon-button-state-layer-size, 40px);
|
|
238
|
+
height: var(--mat-icon-button-state-layer-size, 40px);
|
|
239
|
+
padding: calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);
|
|
240
|
+
font-size: var(--mat-icon-button-icon-size, 24px);
|
|
241
|
+
color: var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));
|
|
242
|
+
-webkit-tap-highlight-color: transparent;
|
|
243
|
+
}
|
|
244
|
+
.mat-mdc-icon-button .mat-mdc-button-ripple,
|
|
245
|
+
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,
|
|
246
|
+
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
|
|
247
|
+
top: 0;
|
|
248
|
+
left: 0;
|
|
249
|
+
right: 0;
|
|
250
|
+
bottom: 0;
|
|
251
|
+
position: absolute;
|
|
252
|
+
pointer-events: none;
|
|
253
|
+
border-radius: inherit;
|
|
254
|
+
}
|
|
255
|
+
.mat-mdc-icon-button .mat-mdc-button-ripple {
|
|
256
|
+
overflow: hidden;
|
|
257
|
+
}
|
|
258
|
+
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
|
|
259
|
+
content: "";
|
|
260
|
+
opacity: 0;
|
|
261
|
+
}
|
|
262
|
+
.mat-mdc-icon-button .mdc-button__label,
|
|
263
|
+
.mat-mdc-icon-button .mat-icon {
|
|
264
|
+
z-index: 1;
|
|
265
|
+
position: relative;
|
|
266
|
+
}
|
|
267
|
+
.mat-mdc-icon-button .mat-focus-indicator {
|
|
268
|
+
top: 0;
|
|
269
|
+
left: 0;
|
|
270
|
+
right: 0;
|
|
271
|
+
bottom: 0;
|
|
272
|
+
position: absolute;
|
|
273
|
+
border-radius: inherit;
|
|
274
|
+
}
|
|
275
|
+
.mat-mdc-icon-button:focus-visible > .mat-focus-indicator::before {
|
|
276
|
+
content: "";
|
|
277
|
+
border-radius: inherit;
|
|
278
|
+
}
|
|
279
|
+
.mat-mdc-icon-button .mat-ripple-element {
|
|
280
|
+
background-color: var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
281
|
+
}
|
|
282
|
+
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
|
|
283
|
+
background-color: var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant));
|
|
284
|
+
}
|
|
285
|
+
.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
286
|
+
background-color: var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
|
|
287
|
+
}
|
|
288
|
+
.mat-mdc-icon-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
289
|
+
opacity: var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
|
|
290
|
+
}
|
|
291
|
+
.mat-mdc-icon-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
292
|
+
opacity: var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
|
|
293
|
+
}
|
|
294
|
+
.mat-mdc-icon-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
295
|
+
opacity: var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
|
|
296
|
+
}
|
|
297
|
+
.mat-mdc-icon-button .mat-mdc-button-touch-target {
|
|
298
|
+
position: absolute;
|
|
299
|
+
top: 50%;
|
|
300
|
+
height: var(--mat-icon-button-touch-target-size, 48px);
|
|
301
|
+
display: var(--mat-icon-button-touch-target-display, block);
|
|
302
|
+
left: 50%;
|
|
303
|
+
width: var(--mat-icon-button-touch-target-size, 48px);
|
|
304
|
+
transform: translate(-50%, -50%);
|
|
305
|
+
}
|
|
306
|
+
.mat-mdc-icon-button._mat-animation-noopable {
|
|
307
|
+
transition: none !important;
|
|
308
|
+
animation: none !important;
|
|
309
|
+
}
|
|
310
|
+
.mat-mdc-icon-button[disabled], .mat-mdc-icon-button.mat-mdc-button-disabled {
|
|
311
|
+
cursor: default;
|
|
312
|
+
pointer-events: none;
|
|
313
|
+
color: var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
314
|
+
}
|
|
315
|
+
.mat-mdc-icon-button.mat-mdc-button-disabled-interactive {
|
|
316
|
+
pointer-events: auto;
|
|
317
|
+
}
|
|
318
|
+
.mat-mdc-icon-button img,
|
|
319
|
+
.mat-mdc-icon-button svg {
|
|
320
|
+
width: var(--mat-icon-button-icon-size, 24px);
|
|
321
|
+
height: var(--mat-icon-button-icon-size, 24px);
|
|
322
|
+
vertical-align: baseline;
|
|
323
|
+
}
|
|
324
|
+
.mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__determinate-circle-graphic {
|
|
325
|
+
width: inherit;
|
|
326
|
+
height: inherit;
|
|
327
|
+
}
|
|
328
|
+
.mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__indeterminate-circle-graphic {
|
|
329
|
+
height: 100%;
|
|
330
|
+
}
|
|
331
|
+
.mat-mdc-icon-button .mat-mdc-button-persistent-ripple {
|
|
332
|
+
border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));
|
|
333
|
+
}
|
|
334
|
+
.mat-mdc-icon-button[hidden] {
|
|
335
|
+
display: none;
|
|
336
|
+
}
|
|
337
|
+
.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before {
|
|
338
|
+
background: transparent;
|
|
339
|
+
opacity: 1;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.mat-mdc-button-progress-indicator-container {
|
|
343
|
+
position: absolute;
|
|
344
|
+
inset-inline-start: 0;
|
|
345
|
+
inset-block-start: 0;
|
|
346
|
+
display: flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
justify-content: center;
|
|
349
|
+
width: 100%;
|
|
350
|
+
height: 100%;
|
|
351
|
+
box-sizing: border-box;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.mat-mdc-button-progress-indicator-shown mat-icon {
|
|
355
|
+
visibility: hidden;
|
|
356
|
+
}
|
|
357
|
+
`,`@media (forced-colors: active) {
|
|
358
|
+
.mat-mdc-button:not(.mdc-button--outlined),
|
|
359
|
+
.mat-mdc-unelevated-button:not(.mdc-button--outlined),
|
|
360
|
+
.mat-mdc-raised-button:not(.mdc-button--outlined),
|
|
361
|
+
.mat-mdc-outlined-button:not(.mdc-button--outlined),
|
|
362
|
+
.mat-mdc-button-base.mat-tonal-button,
|
|
363
|
+
.mat-mdc-icon-button.mat-mdc-icon-button,
|
|
364
|
+
.mat-mdc-outlined-button .mdc-button__ripple {
|
|
365
|
+
outline: solid 1px;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
`],encapsulation:2})}return i})();var qs$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Bu({type:i});static \u0275inj=ui$3({imports:[W$2]})}return i})();var Li$1=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]],[["","progressIndicator",""]]],Bi$1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]","[progressIndicator]"];function zi$1(i,e){i&1&&(Gu(0,"div",2),Bw(1,3),Wu());}var $n$2=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"]]]),tl=(()=>{class i extends De$1{get appearance(){return this._appearance}set appearance(t){this.setAppearance(t||this._config?.defaultAppearance||"text");}_appearance=null;constructor(){super();let t=Vi$1(this._elementRef.nativeElement);t&&this.setAppearance(t);}setAppearance(t){if(t===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?$n$2.get(this._appearance):null,r=$n$2.get(t);o&&n.remove(...o),n.add(...r),this._appearance=t;}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=JI({type:i,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:[Rh],ngContentSelectors:Bi$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,o){n&1&&(jw(Li$1),Uh(0,"span",0),Bw(1),Gu(2,"span",1),Bw(3,1),Wu(),Bw(4,2),Ew(5,zi$1,2,0,"div",2),Uh(6,"span",3)(7,"span",4)),n&2&&(rg("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab),EE(5),Iw(o.showProgress()?5:-1));},styles:[`.mat-mdc-button-base {
|
|
369
|
+
text-decoration: none;
|
|
370
|
+
}
|
|
371
|
+
.mat-mdc-button-base .mat-icon {
|
|
372
|
+
min-height: fit-content;
|
|
373
|
+
flex-shrink: 0;
|
|
374
|
+
}
|
|
375
|
+
@media (hover: none) {
|
|
376
|
+
.mat-mdc-button-base:hover > span.mat-mdc-button-persistent-ripple::before {
|
|
377
|
+
opacity: 0;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.mdc-button {
|
|
382
|
+
-webkit-user-select: none;
|
|
383
|
+
user-select: none;
|
|
384
|
+
position: relative;
|
|
385
|
+
display: inline-flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
justify-content: center;
|
|
388
|
+
box-sizing: border-box;
|
|
389
|
+
min-width: 64px;
|
|
390
|
+
border: none;
|
|
391
|
+
outline: none;
|
|
392
|
+
line-height: inherit;
|
|
393
|
+
-webkit-appearance: none;
|
|
394
|
+
overflow: visible;
|
|
395
|
+
vertical-align: middle;
|
|
396
|
+
background: transparent;
|
|
397
|
+
padding: 0 8px;
|
|
398
|
+
}
|
|
399
|
+
.mdc-button::-moz-focus-inner {
|
|
400
|
+
padding: 0;
|
|
401
|
+
border: 0;
|
|
402
|
+
}
|
|
403
|
+
.mdc-button:active {
|
|
404
|
+
outline: none;
|
|
405
|
+
}
|
|
406
|
+
.mdc-button:hover {
|
|
407
|
+
cursor: pointer;
|
|
408
|
+
}
|
|
409
|
+
.mdc-button:disabled {
|
|
410
|
+
cursor: default;
|
|
411
|
+
pointer-events: none;
|
|
412
|
+
}
|
|
413
|
+
.mdc-button[hidden] {
|
|
414
|
+
display: none;
|
|
415
|
+
}
|
|
416
|
+
.mdc-button .mdc-button__label {
|
|
417
|
+
position: relative;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.mat-mdc-button {
|
|
421
|
+
padding: 0 var(--mat-button-text-horizontal-padding, 12px);
|
|
422
|
+
height: var(--mat-button-text-container-height, 40px);
|
|
423
|
+
font-family: var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));
|
|
424
|
+
font-size: var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));
|
|
425
|
+
letter-spacing: var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));
|
|
426
|
+
text-transform: var(--mat-button-text-label-text-transform);
|
|
427
|
+
font-weight: var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight));
|
|
428
|
+
}
|
|
429
|
+
.mat-mdc-button, .mat-mdc-button .mdc-button__ripple {
|
|
430
|
+
border-radius: var(--mat-button-text-container-shape, var(--mat-sys-corner-full));
|
|
431
|
+
}
|
|
432
|
+
.mat-mdc-button:not(:disabled) {
|
|
433
|
+
color: var(--mat-button-text-label-text-color, var(--mat-sys-primary));
|
|
434
|
+
}
|
|
435
|
+
.mat-mdc-button[disabled], .mat-mdc-button.mat-mdc-button-disabled {
|
|
436
|
+
cursor: default;
|
|
437
|
+
pointer-events: none;
|
|
438
|
+
color: var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
439
|
+
}
|
|
440
|
+
.mat-mdc-button.mat-mdc-button-disabled-interactive {
|
|
441
|
+
pointer-events: auto;
|
|
442
|
+
}
|
|
443
|
+
.mat-mdc-button:has(.material-icons, mat-icon, [matButtonIcon]) {
|
|
444
|
+
padding: 0 var(--mat-button-text-with-icon-horizontal-padding, 16px);
|
|
445
|
+
}
|
|
446
|
+
.mat-mdc-button > .mat-icon {
|
|
447
|
+
margin-right: var(--mat-button-text-icon-spacing, 8px);
|
|
448
|
+
margin-left: var(--mat-button-text-icon-offset, -4px);
|
|
449
|
+
}
|
|
450
|
+
[dir=rtl] .mat-mdc-button > .mat-icon {
|
|
451
|
+
margin-right: var(--mat-button-text-icon-offset, -4px);
|
|
452
|
+
margin-left: var(--mat-button-text-icon-spacing, 8px);
|
|
453
|
+
}
|
|
454
|
+
.mat-mdc-button .mdc-button__label + .mat-icon {
|
|
455
|
+
margin-right: var(--mat-button-text-icon-offset, -4px);
|
|
456
|
+
margin-left: var(--mat-button-text-icon-spacing, 8px);
|
|
457
|
+
}
|
|
458
|
+
[dir=rtl] .mat-mdc-button .mdc-button__label + .mat-icon {
|
|
459
|
+
margin-right: var(--mat-button-text-icon-spacing, 8px);
|
|
460
|
+
margin-left: var(--mat-button-text-icon-offset, -4px);
|
|
461
|
+
}
|
|
462
|
+
.mat-mdc-button .mat-ripple-element {
|
|
463
|
+
background-color: var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
464
|
+
}
|
|
465
|
+
.mat-mdc-button .mat-mdc-button-persistent-ripple::before {
|
|
466
|
+
background-color: var(--mat-button-text-state-layer-color, var(--mat-sys-primary));
|
|
467
|
+
}
|
|
468
|
+
.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
469
|
+
background-color: var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
|
|
470
|
+
}
|
|
471
|
+
.mat-mdc-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
472
|
+
opacity: var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
|
|
473
|
+
}
|
|
474
|
+
.mat-mdc-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
475
|
+
opacity: var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
|
|
476
|
+
}
|
|
477
|
+
.mat-mdc-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
478
|
+
opacity: var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
|
|
479
|
+
}
|
|
480
|
+
.mat-mdc-button .mat-mdc-button-touch-target {
|
|
481
|
+
position: absolute;
|
|
482
|
+
top: 50%;
|
|
483
|
+
height: var(--mat-button-text-touch-target-size, 48px);
|
|
484
|
+
display: var(--mat-button-text-touch-target-display, block);
|
|
485
|
+
left: 0;
|
|
486
|
+
right: 0;
|
|
487
|
+
transform: translateY(-50%);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.mat-mdc-unelevated-button {
|
|
491
|
+
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
492
|
+
height: var(--mat-button-filled-container-height, 40px);
|
|
493
|
+
font-family: var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));
|
|
494
|
+
font-size: var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));
|
|
495
|
+
letter-spacing: var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));
|
|
496
|
+
text-transform: var(--mat-button-filled-label-text-transform);
|
|
497
|
+
font-weight: var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));
|
|
498
|
+
padding: 0 var(--mat-button-filled-horizontal-padding, 24px);
|
|
499
|
+
}
|
|
500
|
+
.mat-mdc-unelevated-button > .mat-icon {
|
|
501
|
+
margin-right: var(--mat-button-filled-icon-spacing, 8px);
|
|
502
|
+
margin-left: var(--mat-button-filled-icon-offset, -8px);
|
|
503
|
+
}
|
|
504
|
+
[dir=rtl] .mat-mdc-unelevated-button > .mat-icon {
|
|
505
|
+
margin-right: var(--mat-button-filled-icon-offset, -8px);
|
|
506
|
+
margin-left: var(--mat-button-filled-icon-spacing, 8px);
|
|
507
|
+
}
|
|
508
|
+
.mat-mdc-unelevated-button .mdc-button__label + .mat-icon {
|
|
509
|
+
margin-right: var(--mat-button-filled-icon-offset, -8px);
|
|
510
|
+
margin-left: var(--mat-button-filled-icon-spacing, 8px);
|
|
511
|
+
}
|
|
512
|
+
[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label + .mat-icon {
|
|
513
|
+
margin-right: var(--mat-button-filled-icon-spacing, 8px);
|
|
514
|
+
margin-left: var(--mat-button-filled-icon-offset, -8px);
|
|
515
|
+
}
|
|
516
|
+
.mat-mdc-unelevated-button .mat-ripple-element {
|
|
517
|
+
background-color: var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
518
|
+
}
|
|
519
|
+
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before {
|
|
520
|
+
background-color: var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary));
|
|
521
|
+
}
|
|
522
|
+
.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
523
|
+
background-color: var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
|
|
524
|
+
}
|
|
525
|
+
.mat-mdc-unelevated-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
526
|
+
opacity: var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
|
|
527
|
+
}
|
|
528
|
+
.mat-mdc-unelevated-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
529
|
+
opacity: var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
|
|
530
|
+
}
|
|
531
|
+
.mat-mdc-unelevated-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
532
|
+
opacity: var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
|
|
533
|
+
}
|
|
534
|
+
.mat-mdc-unelevated-button .mat-mdc-button-touch-target {
|
|
535
|
+
position: absolute;
|
|
536
|
+
top: 50%;
|
|
537
|
+
height: var(--mat-button-filled-touch-target-size, 48px);
|
|
538
|
+
display: var(--mat-button-filled-touch-target-display, block);
|
|
539
|
+
left: 0;
|
|
540
|
+
right: 0;
|
|
541
|
+
transform: translateY(-50%);
|
|
542
|
+
}
|
|
543
|
+
.mat-mdc-unelevated-button:not(:disabled) {
|
|
544
|
+
color: var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));
|
|
545
|
+
background-color: var(--mat-button-filled-container-color, var(--mat-sys-primary));
|
|
546
|
+
}
|
|
547
|
+
.mat-mdc-unelevated-button, .mat-mdc-unelevated-button .mdc-button__ripple {
|
|
548
|
+
border-radius: var(--mat-button-filled-container-shape, var(--mat-sys-corner-full));
|
|
549
|
+
}
|
|
550
|
+
.mat-mdc-unelevated-button .mat-mdc-button-progress-indicator-container {
|
|
551
|
+
--mat-progress-spinner-active-indicator-color: var(--mat-button-filled-progress-active-indicator-color, var(--mat-sys-on-primary));
|
|
552
|
+
}
|
|
553
|
+
.mat-mdc-unelevated-button[disabled], .mat-mdc-unelevated-button.mat-mdc-button-disabled {
|
|
554
|
+
cursor: default;
|
|
555
|
+
pointer-events: none;
|
|
556
|
+
color: var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
557
|
+
background-color: var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
|
|
558
|
+
}
|
|
559
|
+
.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive {
|
|
560
|
+
pointer-events: auto;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.mat-mdc-raised-button {
|
|
564
|
+
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
565
|
+
box-shadow: var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));
|
|
566
|
+
height: var(--mat-button-protected-container-height, 40px);
|
|
567
|
+
font-family: var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));
|
|
568
|
+
font-size: var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));
|
|
569
|
+
letter-spacing: var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));
|
|
570
|
+
text-transform: var(--mat-button-protected-label-text-transform);
|
|
571
|
+
font-weight: var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));
|
|
572
|
+
padding: 0 var(--mat-button-protected-horizontal-padding, 24px);
|
|
573
|
+
}
|
|
574
|
+
.mat-mdc-raised-button > .mat-icon {
|
|
575
|
+
margin-right: var(--mat-button-protected-icon-spacing, 8px);
|
|
576
|
+
margin-left: var(--mat-button-protected-icon-offset, -8px);
|
|
577
|
+
}
|
|
578
|
+
[dir=rtl] .mat-mdc-raised-button > .mat-icon {
|
|
579
|
+
margin-right: var(--mat-button-protected-icon-offset, -8px);
|
|
580
|
+
margin-left: var(--mat-button-protected-icon-spacing, 8px);
|
|
581
|
+
}
|
|
582
|
+
.mat-mdc-raised-button .mdc-button__label + .mat-icon {
|
|
583
|
+
margin-right: var(--mat-button-protected-icon-offset, -8px);
|
|
584
|
+
margin-left: var(--mat-button-protected-icon-spacing, 8px);
|
|
585
|
+
}
|
|
586
|
+
[dir=rtl] .mat-mdc-raised-button .mdc-button__label + .mat-icon {
|
|
587
|
+
margin-right: var(--mat-button-protected-icon-spacing, 8px);
|
|
588
|
+
margin-left: var(--mat-button-protected-icon-offset, -8px);
|
|
589
|
+
}
|
|
590
|
+
.mat-mdc-raised-button .mat-ripple-element {
|
|
591
|
+
background-color: var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
592
|
+
}
|
|
593
|
+
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before {
|
|
594
|
+
background-color: var(--mat-button-protected-state-layer-color, var(--mat-sys-primary));
|
|
595
|
+
}
|
|
596
|
+
.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
597
|
+
background-color: var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
|
|
598
|
+
}
|
|
599
|
+
.mat-mdc-raised-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
600
|
+
opacity: var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
|
|
601
|
+
}
|
|
602
|
+
.mat-mdc-raised-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
603
|
+
opacity: var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
|
|
604
|
+
}
|
|
605
|
+
.mat-mdc-raised-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
606
|
+
opacity: var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
|
|
607
|
+
}
|
|
608
|
+
.mat-mdc-raised-button .mat-mdc-button-touch-target {
|
|
609
|
+
position: absolute;
|
|
610
|
+
top: 50%;
|
|
611
|
+
height: var(--mat-button-protected-touch-target-size, 48px);
|
|
612
|
+
display: var(--mat-button-protected-touch-target-display, block);
|
|
613
|
+
left: 0;
|
|
614
|
+
right: 0;
|
|
615
|
+
transform: translateY(-50%);
|
|
616
|
+
}
|
|
617
|
+
.mat-mdc-raised-button:not(:disabled) {
|
|
618
|
+
color: var(--mat-button-protected-label-text-color, var(--mat-sys-primary));
|
|
619
|
+
background-color: var(--mat-button-protected-container-color, var(--mat-sys-surface));
|
|
620
|
+
}
|
|
621
|
+
.mat-mdc-raised-button, .mat-mdc-raised-button .mdc-button__ripple {
|
|
622
|
+
border-radius: var(--mat-button-protected-container-shape, var(--mat-sys-corner-full));
|
|
623
|
+
}
|
|
624
|
+
@media (hover: hover) {
|
|
625
|
+
.mat-mdc-raised-button:hover {
|
|
626
|
+
box-shadow: var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2));
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
.mat-mdc-raised-button:focus {
|
|
630
|
+
box-shadow: var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1));
|
|
631
|
+
}
|
|
632
|
+
.mat-mdc-raised-button:active, .mat-mdc-raised-button:focus:active {
|
|
633
|
+
box-shadow: var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1));
|
|
634
|
+
}
|
|
635
|
+
.mat-mdc-raised-button[disabled], .mat-mdc-raised-button.mat-mdc-button-disabled {
|
|
636
|
+
cursor: default;
|
|
637
|
+
pointer-events: none;
|
|
638
|
+
color: var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
639
|
+
background-color: var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
|
|
640
|
+
}
|
|
641
|
+
.mat-mdc-raised-button[disabled].mat-mdc-button-disabled, .mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled {
|
|
642
|
+
box-shadow: var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0));
|
|
643
|
+
}
|
|
644
|
+
.mat-mdc-raised-button.mat-mdc-button-disabled-interactive {
|
|
645
|
+
pointer-events: auto;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.mat-mdc-outlined-button {
|
|
649
|
+
border-style: solid;
|
|
650
|
+
transition: border 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
651
|
+
height: var(--mat-button-outlined-container-height, 40px);
|
|
652
|
+
font-family: var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));
|
|
653
|
+
font-size: var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));
|
|
654
|
+
letter-spacing: var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));
|
|
655
|
+
text-transform: var(--mat-button-outlined-label-text-transform);
|
|
656
|
+
font-weight: var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));
|
|
657
|
+
border-radius: var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));
|
|
658
|
+
border-width: var(--mat-button-outlined-outline-width, 1px);
|
|
659
|
+
padding: 0 var(--mat-button-outlined-horizontal-padding, 24px);
|
|
660
|
+
}
|
|
661
|
+
.mat-mdc-outlined-button > .mat-icon {
|
|
662
|
+
margin-right: var(--mat-button-outlined-icon-spacing, 8px);
|
|
663
|
+
margin-left: var(--mat-button-outlined-icon-offset, -8px);
|
|
664
|
+
}
|
|
665
|
+
[dir=rtl] .mat-mdc-outlined-button > .mat-icon {
|
|
666
|
+
margin-right: var(--mat-button-outlined-icon-offset, -8px);
|
|
667
|
+
margin-left: var(--mat-button-outlined-icon-spacing, 8px);
|
|
668
|
+
}
|
|
669
|
+
.mat-mdc-outlined-button .mdc-button__label + .mat-icon {
|
|
670
|
+
margin-right: var(--mat-button-outlined-icon-offset, -8px);
|
|
671
|
+
margin-left: var(--mat-button-outlined-icon-spacing, 8px);
|
|
672
|
+
}
|
|
673
|
+
[dir=rtl] .mat-mdc-outlined-button .mdc-button__label + .mat-icon {
|
|
674
|
+
margin-right: var(--mat-button-outlined-icon-spacing, 8px);
|
|
675
|
+
margin-left: var(--mat-button-outlined-icon-offset, -8px);
|
|
676
|
+
}
|
|
677
|
+
.mat-mdc-outlined-button .mat-ripple-element {
|
|
678
|
+
background-color: var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
679
|
+
}
|
|
680
|
+
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before {
|
|
681
|
+
background-color: var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary));
|
|
682
|
+
}
|
|
683
|
+
.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
684
|
+
background-color: var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
|
|
685
|
+
}
|
|
686
|
+
.mat-mdc-outlined-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
687
|
+
opacity: var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
|
|
688
|
+
}
|
|
689
|
+
.mat-mdc-outlined-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
690
|
+
opacity: var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
|
|
691
|
+
}
|
|
692
|
+
.mat-mdc-outlined-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
693
|
+
opacity: var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
|
|
694
|
+
}
|
|
695
|
+
.mat-mdc-outlined-button .mat-mdc-button-touch-target {
|
|
696
|
+
position: absolute;
|
|
697
|
+
top: 50%;
|
|
698
|
+
height: var(--mat-button-outlined-touch-target-size, 48px);
|
|
699
|
+
display: var(--mat-button-outlined-touch-target-display, block);
|
|
700
|
+
left: 0;
|
|
701
|
+
right: 0;
|
|
702
|
+
transform: translateY(-50%);
|
|
703
|
+
}
|
|
704
|
+
.mat-mdc-outlined-button:not(:disabled) {
|
|
705
|
+
color: var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));
|
|
706
|
+
border-color: var(--mat-button-outlined-outline-color, var(--mat-sys-outline));
|
|
707
|
+
}
|
|
708
|
+
.mat-mdc-outlined-button[disabled], .mat-mdc-outlined-button.mat-mdc-button-disabled {
|
|
709
|
+
cursor: default;
|
|
710
|
+
pointer-events: none;
|
|
711
|
+
color: var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
712
|
+
border-color: var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
|
|
713
|
+
}
|
|
714
|
+
.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive {
|
|
715
|
+
pointer-events: auto;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.mat-tonal-button {
|
|
719
|
+
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
720
|
+
height: var(--mat-button-tonal-container-height, 40px);
|
|
721
|
+
font-family: var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));
|
|
722
|
+
font-size: var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));
|
|
723
|
+
letter-spacing: var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));
|
|
724
|
+
text-transform: var(--mat-button-tonal-label-text-transform);
|
|
725
|
+
font-weight: var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));
|
|
726
|
+
padding: 0 var(--mat-button-tonal-horizontal-padding, 24px);
|
|
727
|
+
}
|
|
728
|
+
.mat-tonal-button:not(:disabled) {
|
|
729
|
+
color: var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));
|
|
730
|
+
background-color: var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container));
|
|
731
|
+
}
|
|
732
|
+
.mat-tonal-button, .mat-tonal-button .mdc-button__ripple {
|
|
733
|
+
border-radius: var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full));
|
|
734
|
+
}
|
|
735
|
+
.mat-tonal-button[disabled], .mat-tonal-button.mat-mdc-button-disabled {
|
|
736
|
+
cursor: default;
|
|
737
|
+
pointer-events: none;
|
|
738
|
+
color: var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
739
|
+
background-color: var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
|
|
740
|
+
}
|
|
741
|
+
.mat-tonal-button.mat-mdc-button-disabled-interactive {
|
|
742
|
+
pointer-events: auto;
|
|
743
|
+
}
|
|
744
|
+
.mat-tonal-button > .mat-icon {
|
|
745
|
+
margin-right: var(--mat-button-tonal-icon-spacing, 8px);
|
|
746
|
+
margin-left: var(--mat-button-tonal-icon-offset, -8px);
|
|
747
|
+
}
|
|
748
|
+
[dir=rtl] .mat-tonal-button > .mat-icon {
|
|
749
|
+
margin-right: var(--mat-button-tonal-icon-offset, -8px);
|
|
750
|
+
margin-left: var(--mat-button-tonal-icon-spacing, 8px);
|
|
751
|
+
}
|
|
752
|
+
.mat-tonal-button .mdc-button__label + .mat-icon {
|
|
753
|
+
margin-right: var(--mat-button-tonal-icon-offset, -8px);
|
|
754
|
+
margin-left: var(--mat-button-tonal-icon-spacing, 8px);
|
|
755
|
+
}
|
|
756
|
+
[dir=rtl] .mat-tonal-button .mdc-button__label + .mat-icon {
|
|
757
|
+
margin-right: var(--mat-button-tonal-icon-spacing, 8px);
|
|
758
|
+
margin-left: var(--mat-button-tonal-icon-offset, -8px);
|
|
759
|
+
}
|
|
760
|
+
.mat-tonal-button .mat-ripple-element {
|
|
761
|
+
background-color: var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
|
|
762
|
+
}
|
|
763
|
+
.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
|
|
764
|
+
background-color: var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container));
|
|
765
|
+
}
|
|
766
|
+
.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
|
|
767
|
+
background-color: var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
|
|
768
|
+
}
|
|
769
|
+
.mat-tonal-button:hover > .mat-mdc-button-persistent-ripple::before {
|
|
770
|
+
opacity: var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
|
|
771
|
+
}
|
|
772
|
+
.mat-tonal-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
|
|
773
|
+
opacity: var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
|
|
774
|
+
}
|
|
775
|
+
.mat-tonal-button:active > .mat-mdc-button-persistent-ripple::before {
|
|
776
|
+
opacity: var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
|
|
777
|
+
}
|
|
778
|
+
.mat-tonal-button .mat-mdc-button-touch-target {
|
|
779
|
+
position: absolute;
|
|
780
|
+
top: 50%;
|
|
781
|
+
height: var(--mat-button-tonal-touch-target-size, 48px);
|
|
782
|
+
display: var(--mat-button-tonal-touch-target-display, block);
|
|
783
|
+
left: 0;
|
|
784
|
+
right: 0;
|
|
785
|
+
transform: translateY(-50%);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.mat-mdc-button,
|
|
789
|
+
.mat-mdc-unelevated-button,
|
|
790
|
+
.mat-mdc-raised-button,
|
|
791
|
+
.mat-mdc-outlined-button,
|
|
792
|
+
.mat-tonal-button {
|
|
793
|
+
-webkit-tap-highlight-color: transparent;
|
|
794
|
+
}
|
|
795
|
+
.mat-mdc-button .mat-mdc-button-ripple,
|
|
796
|
+
.mat-mdc-button .mat-mdc-button-persistent-ripple,
|
|
797
|
+
.mat-mdc-button .mat-mdc-button-persistent-ripple::before,
|
|
798
|
+
.mat-mdc-unelevated-button .mat-mdc-button-ripple,
|
|
799
|
+
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,
|
|
800
|
+
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,
|
|
801
|
+
.mat-mdc-raised-button .mat-mdc-button-ripple,
|
|
802
|
+
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,
|
|
803
|
+
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,
|
|
804
|
+
.mat-mdc-outlined-button .mat-mdc-button-ripple,
|
|
805
|
+
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,
|
|
806
|
+
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,
|
|
807
|
+
.mat-tonal-button .mat-mdc-button-ripple,
|
|
808
|
+
.mat-tonal-button .mat-mdc-button-persistent-ripple,
|
|
809
|
+
.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
|
|
810
|
+
top: 0;
|
|
811
|
+
left: 0;
|
|
812
|
+
right: 0;
|
|
813
|
+
bottom: 0;
|
|
814
|
+
position: absolute;
|
|
815
|
+
pointer-events: none;
|
|
816
|
+
border-radius: inherit;
|
|
817
|
+
}
|
|
818
|
+
.mat-mdc-button .mat-mdc-button-ripple,
|
|
819
|
+
.mat-mdc-unelevated-button .mat-mdc-button-ripple,
|
|
820
|
+
.mat-mdc-raised-button .mat-mdc-button-ripple,
|
|
821
|
+
.mat-mdc-outlined-button .mat-mdc-button-ripple,
|
|
822
|
+
.mat-tonal-button .mat-mdc-button-ripple {
|
|
823
|
+
overflow: hidden;
|
|
824
|
+
}
|
|
825
|
+
.mat-mdc-button .mat-mdc-button-persistent-ripple::before,
|
|
826
|
+
.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,
|
|
827
|
+
.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,
|
|
828
|
+
.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,
|
|
829
|
+
.mat-tonal-button .mat-mdc-button-persistent-ripple::before {
|
|
830
|
+
content: "";
|
|
831
|
+
opacity: 0;
|
|
832
|
+
}
|
|
833
|
+
.mat-mdc-button .mdc-button__label,
|
|
834
|
+
.mat-mdc-button .mat-icon,
|
|
835
|
+
.mat-mdc-unelevated-button .mdc-button__label,
|
|
836
|
+
.mat-mdc-unelevated-button .mat-icon,
|
|
837
|
+
.mat-mdc-raised-button .mdc-button__label,
|
|
838
|
+
.mat-mdc-raised-button .mat-icon,
|
|
839
|
+
.mat-mdc-outlined-button .mdc-button__label,
|
|
840
|
+
.mat-mdc-outlined-button .mat-icon,
|
|
841
|
+
.mat-tonal-button .mdc-button__label,
|
|
842
|
+
.mat-tonal-button .mat-icon {
|
|
843
|
+
z-index: 1;
|
|
844
|
+
position: relative;
|
|
845
|
+
}
|
|
846
|
+
.mat-mdc-button .mat-focus-indicator,
|
|
847
|
+
.mat-mdc-unelevated-button .mat-focus-indicator,
|
|
848
|
+
.mat-mdc-raised-button .mat-focus-indicator,
|
|
849
|
+
.mat-mdc-outlined-button .mat-focus-indicator,
|
|
850
|
+
.mat-tonal-button .mat-focus-indicator {
|
|
851
|
+
top: 0;
|
|
852
|
+
left: 0;
|
|
853
|
+
right: 0;
|
|
854
|
+
bottom: 0;
|
|
855
|
+
position: absolute;
|
|
856
|
+
border-radius: inherit;
|
|
857
|
+
}
|
|
858
|
+
.mat-mdc-button:focus-visible > .mat-focus-indicator::before,
|
|
859
|
+
.mat-mdc-unelevated-button:focus-visible > .mat-focus-indicator::before,
|
|
860
|
+
.mat-mdc-raised-button:focus-visible > .mat-focus-indicator::before,
|
|
861
|
+
.mat-mdc-outlined-button:focus-visible > .mat-focus-indicator::before,
|
|
862
|
+
.mat-tonal-button:focus-visible > .mat-focus-indicator::before {
|
|
863
|
+
content: "";
|
|
864
|
+
border-radius: inherit;
|
|
865
|
+
}
|
|
866
|
+
.mat-mdc-button._mat-animation-noopable,
|
|
867
|
+
.mat-mdc-unelevated-button._mat-animation-noopable,
|
|
868
|
+
.mat-mdc-raised-button._mat-animation-noopable,
|
|
869
|
+
.mat-mdc-outlined-button._mat-animation-noopable,
|
|
870
|
+
.mat-tonal-button._mat-animation-noopable {
|
|
871
|
+
transition: none !important;
|
|
872
|
+
animation: none !important;
|
|
873
|
+
}
|
|
874
|
+
.mat-mdc-button > .mat-icon,
|
|
875
|
+
.mat-mdc-unelevated-button > .mat-icon,
|
|
876
|
+
.mat-mdc-raised-button > .mat-icon,
|
|
877
|
+
.mat-mdc-outlined-button > .mat-icon,
|
|
878
|
+
.mat-tonal-button > .mat-icon {
|
|
879
|
+
display: inline-block;
|
|
880
|
+
position: relative;
|
|
881
|
+
vertical-align: top;
|
|
882
|
+
font-size: 1.125rem;
|
|
883
|
+
height: 1.125rem;
|
|
884
|
+
width: 1.125rem;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.mat-mdc-outlined-button .mat-mdc-button-ripple,
|
|
888
|
+
.mat-mdc-outlined-button .mdc-button__ripple {
|
|
889
|
+
top: -1px;
|
|
890
|
+
left: -1px;
|
|
891
|
+
bottom: -1px;
|
|
892
|
+
right: -1px;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.mat-mdc-unelevated-button .mat-focus-indicator::before,
|
|
896
|
+
.mat-tonal-button .mat-focus-indicator::before,
|
|
897
|
+
.mat-mdc-raised-button .mat-focus-indicator::before {
|
|
898
|
+
margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.mat-mdc-outlined-button .mat-focus-indicator::before {
|
|
902
|
+
margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
.mat-mdc-button-progress-indicator-container {
|
|
906
|
+
position: absolute;
|
|
907
|
+
inset-inline-start: 0;
|
|
908
|
+
inset-block-start: 0;
|
|
909
|
+
display: flex;
|
|
910
|
+
align-items: center;
|
|
911
|
+
justify-content: center;
|
|
912
|
+
width: 100%;
|
|
913
|
+
height: 100%;
|
|
914
|
+
box-sizing: border-box;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.mat-mdc-button-progress-indicator-shown mat-icon,
|
|
918
|
+
.mat-mdc-button-progress-indicator-shown [matButtonIcon],
|
|
919
|
+
.mat-mdc-button-progress-indicator-shown .mdc-button__label {
|
|
920
|
+
visibility: hidden;
|
|
921
|
+
}
|
|
922
|
+
`,`@media (forced-colors: active) {
|
|
923
|
+
.mat-mdc-button:not(.mdc-button--outlined),
|
|
924
|
+
.mat-mdc-unelevated-button:not(.mdc-button--outlined),
|
|
925
|
+
.mat-mdc-raised-button:not(.mdc-button--outlined),
|
|
926
|
+
.mat-mdc-outlined-button:not(.mdc-button--outlined),
|
|
927
|
+
.mat-mdc-button-base.mat-tonal-button,
|
|
928
|
+
.mat-mdc-icon-button.mat-mdc-icon-button,
|
|
929
|
+
.mat-mdc-outlined-button .mdc-button__ripple {
|
|
930
|
+
outline: solid 1px;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
`],encapsulation:2})}return i})();function Vi$1(i){return i.hasAttribute("mat-raised-button")?"elevated":i.hasAttribute("mat-stroked-button")?"outlined":i.hasAttribute("mat-flat-button")?"filled":i.hasAttribute("mat-button")?"text":null}function Jt(i,o){}var f=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 ht$2=(()=>{class i extends Nt$2{_elementRef=g(Tn$3);_focusTrapFactory=g(wi$2);_config;_interactivityChecker=g(Ln$2);_ngZone=g(ee$5);_focusMonitor=g(we$1);_renderer=g(Nu);_changeDetectorRef=g(Fg);_injector=g(pe$5);_platform=g(v);_document=g(he$6);_portalOutlet;_focusTrapped=new ue$4;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g(f,{optional:true})||new f,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(t){let e=this._ariaLabelledByQueue.indexOf(t);e>-1&&(this._ariaLabelledByQueue.splice(e,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),e}attachTemplatePortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),e}attachDomPortal=t=>{this._portalOutlet.hasAttached();let e=this._portalOutlet.attachDomPortal(t);return this._contentAttached(),e};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(t,e){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{a(),s(),t.removeAttribute("tabindex");},a=this._renderer.listen(t,"blur",n),s=this._renderer.listen(t,"mousedown",n);})),t.focus(e);}_focusByCssSelector(t,e){let n=this._elementRef.nativeElement.querySelector(t);n&&this._forceFocus(n,e);}_trapFocus(t){this._isDestroyed||QD(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||e.focus(t);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(t)||this._focusDialogContainer(t);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',t);break;default:this._focusByCssSelector(this._config.autoFocus,t);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let t=this._config.restoreFocus,e=null;if(typeof t=="string"?e=this._document.querySelector(t):typeof t=="boolean"?e=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(e=t),this._config.restoreFocus&&e&&typeof e.focus=="function"){let n=ni$2(),a=this._elementRef.nativeElement;(!n||n===this._document.body||n===a||a.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(t){this._elementRef.nativeElement.focus?.(t);}_containsFocus(){let t=this._elementRef.nativeElement,e=ni$2();return t===e||t.contains(e)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ni$2()));}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=JI({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(e&1&&Kh(jo$1,7),e&2){let a;Hw(a=Uw())&&(n._portalOutlet=a.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){e&2&&Bh("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:[Rh],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){e&1&&kh(0,Jt,0,0,"ng-template",0);},dependencies:[jo$1],styles:[`.cdk-dialog-container {
|
|
934
|
+
display: block;
|
|
935
|
+
width: 100%;
|
|
936
|
+
height: 100%;
|
|
937
|
+
min-height: inherit;
|
|
938
|
+
max-height: inherit;
|
|
939
|
+
}
|
|
940
|
+
`],encapsulation:2,changeDetection:1})}return i})(),L=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new ue$4;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(o,t){this.overlayRef=o,this.config=t,this.disableClose=t.disableClose,this.backdropClick=o.backdropClick(),this.keydownEvents=o.keydownEvents(),this.outsidePointerEvents=o.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(e=>{e.keyCode===27&&!this.disableClose&&!en$1(e)&&(e.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=o.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==false&&this.close();});}close(o,t){if(this._canClose(o)){let e=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(o),e.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(o="",t=""){return this.overlayRef.updateSize({width:o,height:t}),this}addPanelClass(o){return this.overlayRef.addPanelClass(o),this}removePanelClass(o){return this.overlayRef.removePanelClass(o),this}_canClose(o){let t=this.config;return !!this.containerInstance&&(!t.closePredicate||t.closePredicate(o,t,this.componentInstance))}},te$2=new T$4("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=g(pe$5);return ()=>un$1(i)}}),ee$2=new T$4("DialogData"),ne$1=new T$4("DefaultDialogConfig");function ie$1(i){let o=Mi$3(i),t=new ut$2;return {valueSignal:o,get value(){return o()},change:t,ngOnDestroy(){t.complete();}}}var Qt=(()=>{class i{_injector=g(pe$5);_defaultOptions=g(ne$1,{optional:true});_parentDialog=g(i,{optional:true,skipSelf:true});_overlayContainer=g(vn$1);_idGenerator=g(pt$3);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ue$4;_afterOpenedAtThisLevel=new ue$4;_ariaHiddenElements=new Map;_scrollStrategy=g(te$2);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Km(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vl(void 0)));open(t,e){let n=this._defaultOptions||new f;e=w$1(w$1({},n),e),e.id=e.id||this._idGenerator.getId("cdk-dialog-"),e.id&&this.getDialogById(e.id);let a=this._getOverlayConfig(e),s=Cn$2(this._injector,a),l=new L(s,e),c=this._attachContainer(s,l,e);if(l.containerInstance=c,!this.openDialogs.length){let O=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(en$2(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(O);}):this._hideNonDialogContentFromAssistiveTechnology(O);}return this._attachDialogContent(t,l,c,e),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,true)),this.afterOpened.next(l),l}closeAll(){mt$2(this.openDialogs,t=>t.close());}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){mt$2(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===false&&this._removeOpenDialog(t,false);}),mt$2(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(t){let e=new Ht({positionStrategy:t.positionStrategy||wn$2().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation,disableAnimations:t.disableAnimations});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachContainer(t,e,n){let a=n.injector||n.viewContainerRef?.injector,s=[{provide:f,useValue:n},{provide:L,useValue:e},{provide:Wt,useValue:t}],l;n.container?typeof n.container=="function"?l=n.container:(l=n.container.type,s.push(...n.container.providers(n))):l=ht$2;let c=new me$2(l,n.viewContainerRef,pe$5.create({parent:a||this._injector,providers:s}));return t.attach(c).instance}_attachDialogContent(t,e,n,a){if(t instanceof or$1){let s=this._createInjector(a,e,n,void 0),l={$implicit:a.data,dialogRef:e};a.templateContext&&(l=w$1(w$1({},l),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),n.attachTemplatePortal(new Ft$1(t,null,l,s));}else {let s=this._createInjector(a,e,n,this._injector),l=n.attachComponentPortal(new me$2(t,a.viewContainerRef,s,null,a.bindings));e.componentRef=l,e.componentInstance=l.instance;}}_createInjector(t,e,n,a){let s=t.injector||t.viewContainerRef?.injector,l=[{provide:ee$2,useValue:t.data},{provide:L,useValue:e}];return t.providers&&(typeof t.providers=="function"?l.push(...t.providers(e,t,n)):l.push(...t.providers)),t.direction&&(!s||!s.get(mt$3,null,{optional:true}))&&l.push({provide:mt$3,useValue:ie$1(t.direction)}),pe$5.create({parent:s||a,providers:l})}_removeOpenDialog(t,e){let n=this.openDialogs.indexOf(t);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(t){if(t.parentElement){let e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let a=e[n];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&!a.hasAttribute("popover")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();function mt$2(i,o){let t=i.length;for(;t--;)o(i[t]);}function ae$1(i,o){}var at$1=class at{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},ut$1="mdc-dialog--open",Zt="mdc-dialog--opening",Ut$1="mdc-dialog--closing",oe$1=150,se=75,re$2=(()=>{class i extends ht$2{_animationStateChanged=new ut$2;_animationsEnabled=!at$2();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Yt(this._config.enterAnimationDuration)??oe$1:0;_exitAnimationDuration=this._animationsEnabled?Yt(this._config.exitAnimationDuration)??se:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty($t$1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Zt,ut$1)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(ut$1),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(ut$1),this._animationsEnabled?(this._hostElement.style.setProperty($t$1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ut$1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(t){this._actionSectionCount+=t,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(Zt,Ut$1);}_waitForAnimationToComplete(t,e){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(e,t);}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(t){let e=super.attachComponentPortal(t);return e.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),e}static \u0275fac=(()=>{let t;return function(n){return (t||(t=ap(i)))(n||i)}})();static \u0275cmp=JI({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(e,n){e&2&&(Gh("id",n._config.id),Bh("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),rg("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0));},features:[Rh],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(e,n){e&1&&(os(0,"div",0)(1,"div",1),kh(2,ae$1,0,0,"ng-template",2),zu()());},dependencies:[jo$1],styles:[`.mat-mdc-dialog-container {
|
|
941
|
+
width: 100%;
|
|
942
|
+
height: 100%;
|
|
943
|
+
display: block;
|
|
944
|
+
box-sizing: border-box;
|
|
945
|
+
max-height: inherit;
|
|
946
|
+
min-height: inherit;
|
|
947
|
+
min-width: inherit;
|
|
948
|
+
max-width: inherit;
|
|
949
|
+
outline: 0;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.cdk-overlay-pane.mat-mdc-dialog-panel {
|
|
953
|
+
max-width: var(--mat-dialog-container-max-width, 560px);
|
|
954
|
+
min-width: var(--mat-dialog-container-min-width, 280px);
|
|
955
|
+
}
|
|
956
|
+
@media (max-width: 599px) {
|
|
957
|
+
.cdk-overlay-pane.mat-mdc-dialog-panel {
|
|
958
|
+
max-width: var(--mat-dialog-container-small-max-width, calc(100vw - 32px));
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.mat-mdc-dialog-inner-container {
|
|
963
|
+
display: flex;
|
|
964
|
+
flex-direction: row;
|
|
965
|
+
align-items: center;
|
|
966
|
+
justify-content: space-around;
|
|
967
|
+
box-sizing: border-box;
|
|
968
|
+
height: 100%;
|
|
969
|
+
opacity: 0;
|
|
970
|
+
transition: opacity linear var(--mat-dialog-transition-duration, 0ms);
|
|
971
|
+
max-height: inherit;
|
|
972
|
+
min-height: inherit;
|
|
973
|
+
min-width: inherit;
|
|
974
|
+
max-width: inherit;
|
|
975
|
+
}
|
|
976
|
+
.mdc-dialog--closing .mat-mdc-dialog-inner-container {
|
|
977
|
+
transition: opacity 75ms linear;
|
|
978
|
+
transform: none;
|
|
979
|
+
}
|
|
980
|
+
.mdc-dialog--open .mat-mdc-dialog-inner-container {
|
|
981
|
+
opacity: 1;
|
|
982
|
+
}
|
|
983
|
+
._mat-animation-noopable .mat-mdc-dialog-inner-container {
|
|
984
|
+
transition: none;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.mat-mdc-dialog-surface {
|
|
988
|
+
display: flex;
|
|
989
|
+
flex-direction: column;
|
|
990
|
+
flex-grow: 0;
|
|
991
|
+
flex-shrink: 0;
|
|
992
|
+
box-sizing: border-box;
|
|
993
|
+
width: 100%;
|
|
994
|
+
height: 100%;
|
|
995
|
+
position: relative;
|
|
996
|
+
overflow-y: auto;
|
|
997
|
+
outline: 0;
|
|
998
|
+
transform: scale(0.8);
|
|
999
|
+
transition: transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);
|
|
1000
|
+
max-height: inherit;
|
|
1001
|
+
min-height: inherit;
|
|
1002
|
+
min-width: inherit;
|
|
1003
|
+
max-width: inherit;
|
|
1004
|
+
box-shadow: var(--mat-dialog-container-elevation-shadow, none);
|
|
1005
|
+
border-radius: var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));
|
|
1006
|
+
background-color: var(--mat-dialog-container-color, var(--mat-sys-surface, white));
|
|
1007
|
+
}
|
|
1008
|
+
[dir=rtl] .mat-mdc-dialog-surface {
|
|
1009
|
+
text-align: right;
|
|
1010
|
+
}
|
|
1011
|
+
.mdc-dialog--open .mat-mdc-dialog-surface, .mdc-dialog--closing .mat-mdc-dialog-surface {
|
|
1012
|
+
transform: none;
|
|
1013
|
+
}
|
|
1014
|
+
._mat-animation-noopable .mat-mdc-dialog-surface {
|
|
1015
|
+
transition: none;
|
|
1016
|
+
}
|
|
1017
|
+
.mat-mdc-dialog-surface::before {
|
|
1018
|
+
position: absolute;
|
|
1019
|
+
box-sizing: border-box;
|
|
1020
|
+
width: 100%;
|
|
1021
|
+
height: 100%;
|
|
1022
|
+
top: 0;
|
|
1023
|
+
left: 0;
|
|
1024
|
+
border: 2px solid transparent;
|
|
1025
|
+
border-radius: inherit;
|
|
1026
|
+
content: "";
|
|
1027
|
+
pointer-events: none;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.mat-mdc-dialog-title {
|
|
1031
|
+
display: block;
|
|
1032
|
+
position: relative;
|
|
1033
|
+
flex-shrink: 0;
|
|
1034
|
+
box-sizing: border-box;
|
|
1035
|
+
margin: 0 0 1px;
|
|
1036
|
+
padding: var(--mat-dialog-headline-padding, 6px 24px 13px);
|
|
1037
|
+
}
|
|
1038
|
+
.mat-mdc-dialog-title::before {
|
|
1039
|
+
display: inline-block;
|
|
1040
|
+
width: 0;
|
|
1041
|
+
height: 40px;
|
|
1042
|
+
content: "";
|
|
1043
|
+
vertical-align: 0;
|
|
1044
|
+
}
|
|
1045
|
+
[dir=rtl] .mat-mdc-dialog-title {
|
|
1046
|
+
text-align: right;
|
|
1047
|
+
}
|
|
1048
|
+
.mat-mdc-dialog-container .mat-mdc-dialog-title {
|
|
1049
|
+
color: var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
|
|
1050
|
+
font-family: var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));
|
|
1051
|
+
line-height: var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));
|
|
1052
|
+
font-size: var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));
|
|
1053
|
+
font-weight: var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));
|
|
1054
|
+
letter-spacing: var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em));
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
.mat-mdc-dialog-content {
|
|
1058
|
+
display: block;
|
|
1059
|
+
flex-grow: 1;
|
|
1060
|
+
box-sizing: border-box;
|
|
1061
|
+
margin: 0;
|
|
1062
|
+
overflow: auto;
|
|
1063
|
+
max-height: 65vh;
|
|
1064
|
+
}
|
|
1065
|
+
.mat-mdc-dialog-content > :first-child {
|
|
1066
|
+
margin-top: 0;
|
|
1067
|
+
}
|
|
1068
|
+
.mat-mdc-dialog-content > :last-child {
|
|
1069
|
+
margin-bottom: 0;
|
|
1070
|
+
}
|
|
1071
|
+
.mat-mdc-dialog-container .mat-mdc-dialog-content {
|
|
1072
|
+
color: var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));
|
|
1073
|
+
font-family: var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));
|
|
1074
|
+
line-height: var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));
|
|
1075
|
+
font-size: var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));
|
|
1076
|
+
font-weight: var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));
|
|
1077
|
+
letter-spacing: var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em));
|
|
1078
|
+
}
|
|
1079
|
+
.mat-mdc-dialog-container .mat-mdc-dialog-content {
|
|
1080
|
+
padding: var(--mat-dialog-content-padding, 20px 24px);
|
|
1081
|
+
}
|
|
1082
|
+
.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content {
|
|
1083
|
+
padding: var(--mat-dialog-with-actions-content-padding, 20px 24px 0);
|
|
1084
|
+
}
|
|
1085
|
+
.mat-mdc-dialog-container .mat-mdc-dialog-title + .mat-mdc-dialog-content {
|
|
1086
|
+
padding-top: 0;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.mat-mdc-dialog-actions {
|
|
1090
|
+
display: flex;
|
|
1091
|
+
position: relative;
|
|
1092
|
+
flex-shrink: 0;
|
|
1093
|
+
flex-wrap: wrap;
|
|
1094
|
+
align-items: center;
|
|
1095
|
+
box-sizing: border-box;
|
|
1096
|
+
min-height: 52px;
|
|
1097
|
+
margin: 0;
|
|
1098
|
+
border-top: 1px solid transparent;
|
|
1099
|
+
padding: var(--mat-dialog-actions-padding, 16px 24px);
|
|
1100
|
+
justify-content: var(--mat-dialog-actions-alignment, flex-end);
|
|
1101
|
+
}
|
|
1102
|
+
@media (forced-colors: active) {
|
|
1103
|
+
.mat-mdc-dialog-actions {
|
|
1104
|
+
border-top-color: CanvasText;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start, .mat-mdc-dialog-actions[align=start] {
|
|
1108
|
+
justify-content: start;
|
|
1109
|
+
}
|
|
1110
|
+
.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center, .mat-mdc-dialog-actions[align=center] {
|
|
1111
|
+
justify-content: center;
|
|
1112
|
+
}
|
|
1113
|
+
.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end, .mat-mdc-dialog-actions[align=end] {
|
|
1114
|
+
justify-content: flex-end;
|
|
1115
|
+
}
|
|
1116
|
+
.mat-mdc-dialog-actions .mat-button-base + .mat-button-base,
|
|
1117
|
+
.mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base {
|
|
1118
|
+
margin-left: 8px;
|
|
1119
|
+
}
|
|
1120
|
+
[dir=rtl] .mat-mdc-dialog-actions .mat-button-base + .mat-button-base,
|
|
1121
|
+
[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base {
|
|
1122
|
+
margin-left: 0;
|
|
1123
|
+
margin-right: 8px;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
.mat-mdc-dialog-component-host {
|
|
1127
|
+
display: contents;
|
|
1128
|
+
}
|
|
1129
|
+
`],encapsulation:2,changeDetection:1})}return i})(),$t$1="--mat-dialog-transition-duration";function Yt(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?Ke$2(i.substring(0,i.length-2)):i.endsWith("s")?Ke$2(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var it$1=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(it$1||{}),pt$2=class pt{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Cr$1(1);_beforeClosed=new Cr$1(1);_result;_closeFallbackTimeout;_state=it$1.OPEN;_closeInteractionType;constructor(o,t,e){this._ref=o,this._config=t,this._containerInstance=e,this.disableClose=t.disableClose,this.id=o.id,o.addPanelClass("mat-mdc-dialog-panel"),e._animationStateChanged.pipe(bt$3(n=>n.state==="opened"),en$2(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),e._animationStateChanged.pipe(bt$3(n=>n.state==="closed"),en$2(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Wm(this.backdropClick(),this.keydownEvents().pipe(bt$3(n=>n.keyCode===27&&!this.disableClose&&!en$1(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),le$2(this,n.type==="keydown"?"keyboard":"mouse"));});}close(o){let t=this._config.closePredicate;t&&!t(o,this._config,this.componentInstance)||(this._result=o,this._containerInstance._animationStateChanged.pipe(bt$3(e=>e.state==="closing"),en$2(1)).subscribe(e=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100);}),this._state=it$1.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(o){let t=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?t.left(o.left):t.right(o.right):t.centerHorizontally(),o&&(o.top||o.bottom)?o.top?t.top(o.top):t.bottom(o.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",t=""){return this._ref.updateSize(o,t),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=it$1.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function le$2(i,o,t){return i._closeInteractionType=o,i.close(t)}var ce=new T$4("MatMdcDialogData"),de$2=new T$4("mat-mdc-dialog-default-options"),me$1=new T$4("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=g(pe$5);return ()=>un$1(i)}}),dn$1=(()=>{class i{_defaultOptions=g(de$2,{optional:true});_scrollStrategy=g(me$1);_parentDialog=g(i,{optional:true,skipSelf:true});_idGenerator=g(pt$3);_injector=g(pe$5);_dialog=g(Qt);_animationsDisabled=at$2();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ue$4;_afterOpenedAtThisLevel=new ue$4;dialogConfigClass=at$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 t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Km(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vl(void 0)));constructor(){this._dialogRefConstructor=pt$2,this._dialogContainerType=re$2,this._dialogDataToken=ce;}open(t,e){let n;e=w$1(w$1({},this._defaultOptions||new at$1),e),e.id=e.id||this._idGenerator.getId("mat-mdc-dialog-"),e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,x$1(w$1({},e),{positionStrategy:wn$2(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||e.enterAnimationDuration?.toLocaleString()==="0"||e.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:e},{provide:f,useValue:e}]},templateContext:()=>({dialogRef:n}),providers:(s,l,c)=>(n=new this._dialogRefConstructor(s,e,c),n.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=a.componentRef,n.componentInstance=a.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(n);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next());}),n}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close();}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();function he$2(i,o){if(i&1){let t=Aw();os(0,"div",1)(1,"button",2),qh("click",function(){Pd(t);let n=Pw();return Ld(n.action())}),fC(2),zu()();}if(i&2){let t=Pw();EE(2),Yu(" ",t.data.action," ");}}var ue$1=["label"];function pe$2(i,o){}var fe$2=Math.pow(2,31)-1,j$1=class j{_overlayRef;instance;containerInstance;_afterDismissed=new ue$4;_afterOpened=new ue$4;_onAction=new ue$4;_durationTimeoutId;_dismissedByAction=false;constructor(o,t){this._overlayRef=t,this.containerInstance=o,o._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(o){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(o,fe$2));}_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}},Kt=new T$4("MatSnackBarData"),S$1=class S{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},_e$1=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=Vu({type:i,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return i})(),ge$2=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=Vu({type:i,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return i})(),be$1=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=Vu({type:i,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return i})(),ve=(()=>{class i{snackBarRef=g(j$1);data=g(Kt);action(){this.snackBarRef.dismissWithAction();}get hasAction(){return !!this.data.action}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=JI({type:i,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&&(os(0,"div",0),fC(1),zu(),Ew(2,he$2,3,1,"div",1)),e&2&&(EE(),Yu(" ",n.data.message,`
|
|
1130
|
+
`),EE(),Iw(n.hasAction?2:-1));},dependencies:[tl,_e$1,ge$2,be$1],styles:[`.mat-mdc-simple-snack-bar {
|
|
1131
|
+
display: flex;
|
|
1132
|
+
}
|
|
1133
|
+
.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label {
|
|
1134
|
+
max-height: 50vh;
|
|
1135
|
+
overflow: auto;
|
|
1136
|
+
}
|
|
1137
|
+
`],encapsulation:2})}return i})(),ft$2="_mat-snack-bar-enter",_t$2="_mat-snack-bar-exit",ye$2=(()=>{class i extends Nt$2{_ngZone=g(ee$5);_elementRef=g(Tn$3);_changeDetectorRef=g(Fg);_platform=g(v);_animationsDisabled=at$2();snackBarConfig=g(S$1);_document=g(he$6);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=g(pe$5);_announceDelay=150;_announceTimeoutId;_destroyed=false;_portalOutlet;_onAnnounce=new ue$4;_onExit=new ue$4;_onEnter=new ue$4;_animationState="void";_live;_label;_role;_liveElementId=g(pt$3).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$2?this._completeExit():t===ft$2&&(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?QD(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(ft$2)));},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(ft$2);},200)));}exit(){return this._destroyed?Dr$1(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?QD(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(_t$2)));},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(_t$2),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,a="mdc-snackbar__label";n.classList.toggle(a,!n.querySelector(`.${a}`));}_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 a=e[n],s=a.getAttribute("aria-owns");this._trackedModals.add(a),s?s.indexOf(t)===-1&&a.setAttribute("aria-owns",s+" "+t):a.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 a=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(a=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),a?.focus(),this._onAnnounce.next(),this._onAnnounce.complete();}},this._announceDelay);});}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=JI({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(e&1&&Kh(jo$1,7)(ue$1,7),e&2){let a;Hw(a=Uw())&&(n._portalOutlet=a.first),Hw(a=Uw())&&(n._label=a.first);}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(e,n){e&1&&qh("animationend",function(s){return n.onAnimationEnd(s.animationName)})("animationcancel",function(s){return n.onAnimationEnd(s.animationName)}),e&2&&rg("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:[Rh],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&&(os(0,"div",1)(1,"div",2,0)(3,"div",3),kh(4,pe$2,0,0,"ng-template",4),zu(),Hh(5,"div"),zu()()),e&2&&(EE(5),Bh("aria-live",n._live)("role",n._role)("id",n._liveElementId));},dependencies:[jo$1],styles:[`@keyframes _mat-snack-bar-enter {
|
|
1138
|
+
from {
|
|
1139
|
+
transform: scale(0.8);
|
|
1140
|
+
opacity: 0;
|
|
1141
|
+
}
|
|
1142
|
+
to {
|
|
1143
|
+
transform: scale(1);
|
|
1144
|
+
opacity: 1;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
@keyframes _mat-snack-bar-exit {
|
|
1148
|
+
from {
|
|
1149
|
+
opacity: 1;
|
|
1150
|
+
}
|
|
1151
|
+
to {
|
|
1152
|
+
opacity: 0;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
.mat-mdc-snack-bar-container {
|
|
1156
|
+
display: flex;
|
|
1157
|
+
align-items: center;
|
|
1158
|
+
justify-content: center;
|
|
1159
|
+
box-sizing: border-box;
|
|
1160
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
1161
|
+
margin: 8px;
|
|
1162
|
+
}
|
|
1163
|
+
.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container {
|
|
1164
|
+
width: 100vw;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.mat-snack-bar-container-animations-enabled {
|
|
1168
|
+
opacity: 0;
|
|
1169
|
+
}
|
|
1170
|
+
.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible {
|
|
1171
|
+
opacity: 1;
|
|
1172
|
+
}
|
|
1173
|
+
.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter {
|
|
1174
|
+
animation: _mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
|
|
1175
|
+
}
|
|
1176
|
+
.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit {
|
|
1177
|
+
animation: _mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.mat-mdc-snackbar-surface {
|
|
1181
|
+
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
|
|
1182
|
+
display: flex;
|
|
1183
|
+
align-items: center;
|
|
1184
|
+
justify-content: flex-start;
|
|
1185
|
+
box-sizing: border-box;
|
|
1186
|
+
padding-left: 0;
|
|
1187
|
+
padding-right: 8px;
|
|
1188
|
+
}
|
|
1189
|
+
[dir=rtl] .mat-mdc-snackbar-surface {
|
|
1190
|
+
padding-right: 0;
|
|
1191
|
+
padding-left: 8px;
|
|
1192
|
+
}
|
|
1193
|
+
.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
|
|
1194
|
+
min-width: 344px;
|
|
1195
|
+
max-width: 672px;
|
|
1196
|
+
}
|
|
1197
|
+
.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface {
|
|
1198
|
+
width: 100%;
|
|
1199
|
+
min-width: 0;
|
|
1200
|
+
}
|
|
1201
|
+
@media (forced-colors: active) {
|
|
1202
|
+
.mat-mdc-snackbar-surface {
|
|
1203
|
+
outline: solid 1px;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
|
|
1207
|
+
color: var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));
|
|
1208
|
+
border-radius: var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));
|
|
1209
|
+
background-color: var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface));
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
.mdc-snackbar__label {
|
|
1213
|
+
width: 100%;
|
|
1214
|
+
flex-grow: 1;
|
|
1215
|
+
box-sizing: border-box;
|
|
1216
|
+
margin: 0;
|
|
1217
|
+
padding: 14px 8px 14px 16px;
|
|
1218
|
+
}
|
|
1219
|
+
[dir=rtl] .mdc-snackbar__label {
|
|
1220
|
+
padding-left: 8px;
|
|
1221
|
+
padding-right: 16px;
|
|
1222
|
+
}
|
|
1223
|
+
.mat-mdc-snack-bar-container .mdc-snackbar__label {
|
|
1224
|
+
font-family: var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));
|
|
1225
|
+
font-size: var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));
|
|
1226
|
+
font-weight: var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));
|
|
1227
|
+
line-height: var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height));
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
.mat-mdc-snack-bar-actions {
|
|
1231
|
+
display: flex;
|
|
1232
|
+
flex-shrink: 0;
|
|
1233
|
+
align-items: center;
|
|
1234
|
+
box-sizing: border-box;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.mat-mdc-snack-bar-handset,
|
|
1238
|
+
.mat-mdc-snack-bar-container,
|
|
1239
|
+
.mat-mdc-snack-bar-label {
|
|
1240
|
+
flex: 1 1 auto;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed {
|
|
1244
|
+
color: var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary));
|
|
1245
|
+
}
|
|
1246
|
+
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) {
|
|
1247
|
+
--mat-button-text-state-layer-color: currentColor;
|
|
1248
|
+
--mat-button-text-ripple-color: currentColor;
|
|
1249
|
+
}
|
|
1250
|
+
.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element {
|
|
1251
|
+
opacity: 0.1;
|
|
1252
|
+
}
|
|
1253
|
+
`],encapsulation:2,changeDetection:1})}return i})(),Ce$2=new T$4("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new S$1}),Mn$2=(()=>{class i{_live=g(Ei$1);_injector=g(pe$5);_breakpointObserver=g(di$2);_parentSnackBar=g(i,{optional:true,skipSelf:true});_defaultConfig=g(Ce$2);_animationsDisabled=at$2();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=ve;snackBarContainerComponent=ye$2;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 a=w$1(w$1({},this._defaultConfig),n);return a.data={message:t,action:e},a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(t,e){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=pe$5.create({parent:n||this._injector,providers:[{provide:S$1,useValue:e}]}),s=new me$2(this.snackBarContainerComponent,e.viewContainerRef,a),l=t.attach(s);return l.instance.snackBarConfig=e,l.instance}_attach(t,e){let n=w$1(w$1(w$1({},new S$1),this._defaultConfig),e),a=this._createOverlay(n),s=this._attachSnackBarContainer(a,n),l=new j$1(s,a);if(t instanceof or$1){let c=new Ft$1(t,null,{$implicit:n.data,snackBarRef:l});l.instance=s.attachTemplatePortal(c);}else {let c=this._createInjector(n,l),O=new me$2(t,void 0,c),Xt=s.attachComponentPortal(O);l.instance=Xt.instance;}return this._breakpointObserver.observe(ka.HandsetPortrait).pipe(Yl(a.detachments())).subscribe(c=>{a.overlayElement.classList.toggle(this.handsetCssClass,c.matches);}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness);}),this._animateSnackBar(l,n),this._openedSnackBarRef=l,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 Ht;e.direction=t.direction;let n=wn$2(this._injector),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,l=!s&&t.horizontalPosition!=="center";return s?n.left("0"):l?n.right("0"):n.centerHorizontally(),t.verticalPosition==="top"?n.top("0"):n.bottom("0"),e.positionStrategy=n,e.disableAnimations=this._animationsDisabled,Cn$2(this._injector,e)}_createInjector(t,e){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector;return pe$5.create({parent:n||this._injector,providers:[{provide:j$1,useValue:e},{provide:Kt,useValue:t.data}]})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ve$3({token:i,factory:i.\u0275fac})}return i})();function U$2(n){n||(n=g(we$4));let e=new x(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(Yl(e))}function T$1(n,e){let t=g(pe$5),o=new Cr$1(1),c=sf(()=>{let r;try{r=n();}catch(i){go$1(()=>o.error(i));return}go$1(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(we$4).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$1(n,e){let o=!e?.manualCleanup?e?.injector?.get(we$4)??g(we$4):null,c=h(e?.equal),r;e?.requireSync?r=Mi$3({kind:0},{equal:c}):r=Mi$3({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 v$1(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),BC(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new v$1(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}var p="primary",Qe$1=Symbol("RouteTitle"),ir=class{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function he$1(t){return new ir(t)}function er(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function En$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return er(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !er(o,t.slice(0,o.length),c)||!er(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function gt$1(t){return new Promise((n,e)=>{t.pipe(fy()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ai$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!V(t[e],n[e]))return false;return true}function V(t,n){let e=t?or(t):void 0,r=n?or(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Tn$1(t[i],n[i]))return false;return true}function or(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Tn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ei(t){return t.length>0?t[t.length-1]:null}function fe$1(t){return Zm(t)?t:vs$1(t)?We$2(Promise.resolve(t)):Dr$1(t)}function Nn$1(t){return Zm(t)?gt$1(t):Promise.resolve(t)}var Ti$1={exact:Dn$1,subset:_n$1},Mn$1={exact:Ni$1,subset:Mi$1,ignored:()=>true},Rr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ze$1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Sr(t,n,e){let r=t instanceof T?t:n.parseUrl(t);return BC(()=>ar(n.lastSuccessfulNavigation()?.finalUrl??new T,r,w$1(w$1({},ze$1),e)))}function ar(t,n,e){return Ti$1[e.paths](t.root,n.root,e.matrixParams)&&Mn$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ni$1(t,n){return V(t,n)}function Dn$1(t,n,e){if(!le$1(t.segments,n.segments)||!dt$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!Dn$1(t.children[r],n.children[r],e))return false;return true}function Mi$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Tn$1(t[e],n[e]))}function _n$1(t,n,e){return Un$1(t,n,n.segments,e)}function Un$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!le$1(i,e)||n.hasChildren()||!dt$1(i,e,r))}else if(t.segments.length===e.length){if(!le$1(t.segments,e)||!dt$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!_n$1(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !le$1(t.segments,i)||!dt$1(t.segments,i,r)||!t.children[p]?false:Un$1(t.children[p],n,o,r)}}function dt$1(t,n,e){return n.every((r,i)=>Mn$1[e](t[i].parameters,r.parameters))}var T=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){return Ui.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft$1(this)}},ee$1=class ee{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=he$1(this.parameters),this._parameterMap}toString(){return Pn$1(this)}};function Di$1(t,n){return le$1(t,n)&&t.every((e,r)=>V(e.parameters,n[r].parameters))}function le$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function _i$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)));}),e}var ne=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new cr(n);return new T(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${je$1(n.root,true)}`,r=Li(n.queryParams),i=typeof n.fragment=="string"?`#${Oi(n.fragment)}`:"";return `${e}${r}${i}`}},Ui=new Y;function ft$1(t){return t.segments.map(n=>Pn$1(n)).join("/")}function je$1(t,n){if(!t.hasChildren())return ft$1(t);if(n){let e=t.children[p]?je$1(t.children[p],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${je$1(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=_i$1(t,(r,i)=>i===p?[je$1(t.children[p],false)]:[`${i}:${je$1(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${ft$1(t)}/${e[0]}`:`${ft$1(t)}/(${e.join("//")})`}}function On$1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt$1(t){return On$1(t).replace(/%3B/gi,";")}function Oi(t){return encodeURI(t)}function sr(t){return On$1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pt$1(t){return decodeURIComponent(t)}function Rn$1(t){return pt$1(t.replace(/\+/g,"%20"))}function Pn$1(t){return `${sr(t.path)}${Pi$1(t.parameters)}`}function Pi$1(t){return Object.entries(t).map(([n,e])=>`;${sr(n)}=${sr(e)}`).join("")}function Li(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lt$1(e)}=${lt$1(i)}`).join("&"):`${lt$1(e)}=${lt$1(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ji=/^[^\/()?;#]+/;function tr(t){let n=t.match(ji);return n?n[0]:""}var xi=/^[^\/()?;=#]+/;function ki$1(t){let n=t.match(xi);return n?n[0]:""}var $i=/^[^=?&#]+/;function zi(t){let n=t.match($i);return n?n[0]:""}var Hi=/^[^&#]+/;function Fi$1(t){let n=t.match(Hi);return n?n[0]:""}var cr=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new v$1(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new m(e,r)),i}parseSegment(){let n=tr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new v$1(4009,false);return this.capture(n),new ee$1(pt$1(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ki$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=tr(this.remaining);i&&(r=i,this.capture(r));}n[pt$1(e)]=pt$1(r);}parseQueryParam(n){let e=zi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Fi$1(this.remaining);a&&(r=a,this.capture(r));}let i=Rn$1(e),o=Rn$1(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=tr(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new v$1(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let c=this.parseChildren(e+1);r[a??p]=Object.keys(c).length===1&&c[p]?c[p]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new v$1(4011,false)}};function Ln$1(t){return t.segments.length>0?new m([],{[p]:t}):t}function jn$1(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=jn$1(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return qi(e)}function qi(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m(t.segments.concat(n.segments),n.children)}return t}function te$1(t){return t instanceof T}function xn$1(t,n,e=null,r=null,i=new Y){let o=kn$1(t);return $n$1(o,n,e,r,i)}function kn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Ln$1(r);return n??i}function $n$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return rr(o,o,o,e,r,i);let a=Bi(n);if(a.toRoot())return rr(o,o,new m([],{}),e,r,i);let c=Vi(a,o,t),s=c.processChildren?ke$1(c.segmentGroup,c.index,a.commands):Hn$1(c.segmentGroup,c.index,a.commands);return rr(o,c.segmentGroup,s,e,r,i)}function vt$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He(t){return typeof t=="object"&&t!=null&&t.outlets}function Sn$1(t,n,e){t||="\u0275";let r=new T;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function rr(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(v=>Sn$1(u,v,o)):Sn$1(u,d,o);let c;t===n?c=e:c=zn$1(t,n,e);let s=Ln$1(jn$1(c));return new T(s,a,i)}function zn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=zn$1(o,n,e);}),new m(t.segments,r)}var mt$1=class mt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&vt$1(r[0]))throw new v$1(4003,false);let i=r.find(He);if(i&&i!==Ei(r))throw new v$1(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Bi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mt$1(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new mt$1(e,n,r)}var Re$1=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Vi(t,n,e){if(t.isAbsolute)return new Re$1(n,true,0);if(!e)return new Re$1(n,false,NaN);if(e.parent===null)return new Re$1(e,true,0);let r=vt$1(t.commands[0])?0:1,i=e.segments.length-1+r;return Gi(e,i,t.numberOfDoubleDots)}function Gi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new v$1(4005,false);i=r.segments.length;}return new Re$1(r,false,i-o)}function Wi(t){return He(t[0])?t[0].outlets:{[p]:t}}function Hn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return ke$1(t,n,e);let r=Qi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new m(t.segments.slice(r.pathIndex),t.children),ke$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?ur(t,n,e):r.match?ke$1(t,0,i):ur(t,n,e)}function ke$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=Wi(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ke$1(t.children[p],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Hn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function Qi(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(He(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!wn$1(s,u,a))return o;r+=2;}else {if(!wn$1(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function ur(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(He(o)){let s=Ki(o.outlets);return new m(r,s)}if(i===0&&vt$1(e[0])){let s=t.segments[n];r.push(new ee$1(s.path,Cn$1(e[0]))),i++;continue}let a=He(o)?o.outlets[p]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&vt$1(c)?(r.push(new ee$1(a,Cn$1(c))),i+=2):(r.push(new ee$1(a,{})),i++);}return new m(r,{})}function Ki(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ur(new m([],{}),0,r));}),n}function Cn$1(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function wn$1(t,n,e){return t==e.path&&V(n,e.parameters)}var Se="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=class{id;url;constructor(n,e){this.id=n,this.url=e;}},re$1=class re extends O{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},P=class extends O{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(A||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),$$1=class $ extends O{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Fn$1(t){return t instanceof $$1&&(t.code===A.Redirect||t.code===A.SupersededByNewNavigation)}var G=class extends O{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},de$1=class de extends O{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fe$1=class Fe extends O{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$1=class yt extends O{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rt=class extends O{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},St$1=class St extends O{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct$1=class Ct extends O{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wt$1=class wt{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},bt$1=class bt{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},It=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At$1=class At{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Et$1=class Et{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tt$1=class Tt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},be=class{routerEvent;position;anchor;scrollBehavior;type=S.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ie$1=class Ie{},qe$1=class qe{},Ae$1=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Yi(t){return !(t instanceof Ie$1)&&!(t instanceof Ae$1)&&!(t instanceof qe$1)}var Nt$1=class Nt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe$1(this.rootInjector);}},pe$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(B$1(fe$5))};static \u0275prov=k$2({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mt$1=class Mt{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=lr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=lr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=hr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return hr(n,this._root).map(e=>e.value)}};function lr(t,n){if(t===n.value)return n;for(let e of n.children){let r=lr(t,e);if(r)return r}return null}function hr(t,n){if(t===n.value)return [n];for(let e of n.children){let r=hr(t,e);if(r.length)return r.unshift(n),r}return []}var U$1=class U{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Be$1=class Be extends Mt$1{snapshot;constructor(n,e){super(n),this.snapshot=e,wr(this,n);}toString(){return this.snapshot.toString()}};function qn$1(t,n){let e=Zi(t,n),r=new vr$1([new ee$1("",{})]),i=new vr$1({}),o=new vr$1({}),a=new vr$1({}),c=new vr$1(""),s=new W$1(r,i,a,c,o,p,t,e.root);return s.snapshot=e.root,new Be$1(new U$1(s,[]),e)}function Zi(t,n){let e={},r={},i={},a=new Ee([],e,i,"",r,p,t,null,{},n);return new Ve$1("",new U$1(a,[]))}var W$1=class W{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(te$4(u=>u[Qe$1]))??Dr$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(te$4(n=>he$1(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(te$4(n=>he$1(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ji="always";function Cr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:w$1(w$1({},n.params),t.params),data:w$1(w$1({},n.data),t.data),resolve:w$1(w$1(w$1(w$1({},t.data),n.data),i?.data),t._resolvedData)}:r={params:w$1({},t.params),data:w$1({},t.data),resolve:w$1(w$1({},t.data),t._resolvedData??{})},i&&Vn$1(i)&&(r.resolve[Qe$1]=i.title),r}var Ee=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qe$1]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=he$1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Ve$1=class Ve extends Mt$1{url;constructor(n,e){super(e),this.url=n,wr(this,e);}toString(){return Bn$1(this._root)}};function wr(t,n){n.value._routerState=t,n.children.forEach(e=>wr(t,e));}function Bn$1(t){let n=t.children.length>0?` { ${t.children.map(Bn$1).join(", ")} } `:"";return `${t.value}${n}`}function nr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V(n.params,e.params)||t.paramsSubject.next(e.params),Ai$1(n.url,e.url)||t.urlSubject.next(e.url),V(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function dr(t,n){let e=V(t.params,n.params)&&Di$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||dr(t.parent,n.parent))}function Vn$1(t){return typeof t.title=="string"||t.title===null}var Gn$1=new T$4(""),br=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new ut$2;deactivateEvents=new ut$2;attachEvents=new ut$2;detachEvents=new ut$2;routerOutletData=aB();parentContexts=g(pe$1);location=g(lr$1);changeDetector=g(Fg);inputBinder=g(Ke$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new v$1(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v$1(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v$1(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new v$1(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new fr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Vu({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ou]})}return t})(),fr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===W$1?this.route:n===pe$1?this.childContexts:n===Gn$1?this.outletData:this.parent.get(n,e)}},Ke$1=new T$4(""),Wn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=$m([this.options.queryParams?r.queryParams:Dr$1({}),r.params,r.data]).pipe(Ys$1(([o,a,c],s)=>(c=w$1(w$1(w$1({},o),a),c),s===0?Dr$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=yB(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let d=o[u];(d!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,d);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){yI();};static \u0275prov=k$2({token:t,factory:t.\u0275fac})}return t})(),Ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=JI({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Hh(0,"router-outlet");},dependencies:[br],encapsulation:2,changeDetection:1})}return t})();function Ar(t){let n=t.children&&t.children.map(Ar),e=n?x$1(w$1({},t),{children:n}):w$1({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Ir),e}function Xi(t,n,e){let r=new Set,i=Ge(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Be$1(i,n)}}function Ge(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=eo(t,n,e,r);return new U$1(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>Ge(t,s,void 0,r)),c}}let i=to(n.value);r.add(i);let o=n.children.map(a=>Ge(t,a,void 0,r));return new U$1(i,o)}}function eo(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ge(t,i,o,r);return Ge(t,i,void 0,r)})}function to(t){return new W$1(new vr$1(t.url),new vr$1(t.params),new vr$1(t.queryParams),new vr$1(t.fragment),new vr$1(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Qn$1="ngNavigationCancelingError";function Dt$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Kn$1(false,A.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Kn$1(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Qn$1]=true,e.cancellationCode=n,e}function ro(t){return Yn$1(t)&&te$1(t.url)}function Yn$1(t){return !!t&&t[Qn$1]}var pr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),nr(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new At$1(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(nr(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),nr(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},_t$1=class _t{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$1=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function no(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function io(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Sy(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye$1(n);return t.children.forEach(a=>{oo(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>$e$1(c,e.getContext(a),i)),i}function oo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=ao(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new _t$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?xe(t,n,c?c.children:null,r,i):xe(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$1(c.outlet.component,a));}else a&&$e$1(n,c,i),i.canActivateChecks.push(new _t$1(r)),o.component?xe(t,null,c?c.children:null,r,i):xe(t,null,e,r,i);return i}function ao(t,n,e){if(typeof e=="function")return $n$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !le$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !le$1(t.url,n.url)||!V(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !dr(t,n)||!V(t.queryParams,n.queryParams);default:return !dr(t,n)}}function $e$1(t,n,e){let r=ye$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?$e$1(a,n.children.getContext(o),e):$e$1(a,null,e):$e$1(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$1(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$1(null,i)):e.canDeactivateChecks.push(new Ce$1(null,i));}function Ye(t){return typeof t=="function"}function so(t){return typeof t=="boolean"}function co(t){return t&&Ye(t.canLoad)}function uo(t){return t&&Ye(t.canActivate)}function lo(t){return t&&Ye(t.canActivateChild)}function ho(t){return t&&Ye(t.canDeactivate)}function fo(t){return t&&Ye(t.canMatch)}function Zn$1(t){return t instanceof Jt$2||t?.name==="EmptyError"}var ht$1=Symbol("INITIAL_VALUE");function Ne$1(){return Ys$1(t=>$m(t.map(n=>n.pipe(en$2(1),Vl(ht$1)))).pipe(te$4(n=>{for(let e of n)if(e!==true){if(e===ht$1)return ht$1;if(e===false||po(e))return e}return true}),bt$3(n=>n!==ht$1),en$2(1)))}function po(t){return te$1(t)||t instanceof Te}function Jn$1(t){return t.aborted?Dr$1(void 0).pipe(en$2(1)):new x(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Xn$1(t){return Yl(Jn$1(t))}function go(t){return Oe$3(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?Dr$1(x$1(w$1({},n),{guardsResult:true})):vo(o,e,r).pipe(Oe$3(a=>a&&so(a)?mo(e,i,t):Dr$1(a)),te$4(a=>x$1(w$1({},n),{guardsResult:a})))})}function vo(t,n,e){return We$2(t).pipe(Oe$3(r=>wo(r.component,r.route,e,n)),fy(r=>r!==true,true))}function mo(t,n,e){return We$2(n).pipe(Yo$1(r=>Tt$3(Ro(r.route.parent,e),yo(r.route,e),Co(t,r.path),So(t,r.route))),fy(r=>r!==true,true))}function yo(t,n){return t!==null&&n&&n(new Et$1(t)),Dr$1(true)}function Ro(t,n){return t!==null&&n&&n(new It(t)),Dr$1(true)}function So(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return Dr$1(true);let r=e.map(i=>Km(()=>{let o=n._environmentInjector,a=Me$1(i,o),c=uo(a)?a.canActivate(n,t):$n$3(o,()=>a(n,t));return fe$1(c).pipe(fy())}));return Dr$1(r).pipe(Ne$1())}function Co(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>io(o)).filter(o=>o!==null).map(o=>Km(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$1(c,s),d=lo(u)?u.canActivateChild(e,t):$n$3(s,()=>u(e,t));return fe$1(d).pipe(fy())});return Dr$1(a).pipe(Ne$1())}));return Dr$1(i).pipe(Ne$1())}function wo(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return Dr$1(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$1(a,c),u=ho(s)?s.canDeactivate(t,n,e,r):$n$3(c,()=>s(t,n,e,r));return fe$1(u).pipe(fy())});return Dr$1(o).pipe(Ne$1())}function bo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return Dr$1(true);let a=o.map(c=>{let s=Me$1(c,t),u=co(s)?s.canLoad(n,e):$n$3(t,()=>s(n,e)),d=fe$1(u);return i?d.pipe(Xn$1(i)):d});return Dr$1(a).pipe(Ne$1(),ei$1(r))}function ei$1(t){return bm(Hl(n=>{if(typeof n!="boolean")throw Dt$1(t,n)}),te$4(n=>n===true))}function Io(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return Dr$1(true);let c=a.map(s=>{let u=Me$1(s,t),d=fo(u)?u.canMatch(n,e,i):$n$3(t,()=>u(n,e,i));return fe$1(d).pipe(Xn$1(o))});return Dr$1(c).pipe(Ne$1(),ei$1(r))}var K$1=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},We=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Ao(t){throw new v$1(4e3,false)}function Eo(t){throw Kn$1(false,A.GuardRejected)}var gr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return B$2(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Ao(`${n.redirectTo}`);i=i.children[p];}})}applyRedirectCommands(n,e,r,i,o){return B$2(this,null,function*(){let a=yield To(e,i,o);if(a instanceof T)throw new We(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new We(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new v$1(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function To(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return gt$1(fe$1($n$3(e,()=>r(n))))}function No(t,n){return t.providers&&!t._injector&&(t._injector=Nh(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H(t){return t.outlet||p}function Mo(t,n){let e=t.filter(r=>H(r)===n);return e.push(...t.filter(r=>H(r)!==n)),e}var vr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ti$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Do(t,n,e,r,i,o,a){let c=ri$1(t,n,e);if(!c.matched)return Dr$1(c);let s=ti$1(o(c));return r=No(n,r),Io(r,n,e,i,s,a).pipe(te$4(u=>u===true?c:w$1({},vr)))}function ri$1(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?w$1({},vr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||En$1)(e,t,n);if(!i)return w$1({},vr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?w$1(w$1({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function bn(t,n,e,r,i){return e.length>0&&Oo(t,e,r,i)?{segmentGroup:new m(n,Uo(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Po(t,e,r)?{segmentGroup:new m(t.segments,_o(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function _o(t,n,e,r){let i={};for(let o of e)if(Ot(t,n,o)&&!r[H(o)]){let a=new m([],{});i[H(o)]=a;}return w$1(w$1({},r),i)}function Uo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&H(r)!==p){let i=new m([],{});e[H(r)]=i;}return e}function Oo(t,n,e,r){return e.some(i=>!Ot(t,n,i)||!(H(i)!==p)?false:!(r!==void 0&&H(i)===r))}function Po(t,n,e){return e.some(r=>Ot(t,n,r))}function Ot(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Lo(t,n,e){return n.length===0&&!t.children[e]}var mr=class{};function jo(t,n,e,r,i,o,a,c){return B$2(this,null,function*(){return new yr(t,n,e,r,i,a,o,c).recognize()})}var xo=31,yr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new gr(this.urlSerializer,this.urlTree);}noMatchError(n){return new v$1(4002,`'${n.segmentGroup}'`)}recognize(){return B$2(this,null,function*(){let n=bn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new U$1(r,e),o=new Ve$1("",i),a=xn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return B$2(this,null,function*(){let e=new Ee([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof We)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof K$1?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return B$2(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof U$1?[a]:[]})}processChildren(n,e,r,i){return B$2(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=Mo(e,s),v=yield this.processSegmentGroup(n,d,u,s,i);a.push(...v);}let c=ni$1(a);return ko(c),c})}processSegment(n,e,r,i,o,a,c){return B$2(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof K$1||Zn$1(u))continue;throw u}if(Lo(r,i,o))return new mr;throw new K$1(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return B$2(this,null,function*(){if(H(r)!==a&&(a===p||!Ot(i,o,r)))throw new K$1(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new K$1(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return B$2(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:v,remainingSegments:g}=ri$1(e,i,o);if(!s)throw new K$1(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xo&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,v,ti$1(N),n),oe=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,oe.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee(r,i,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,zo(e),H(e),e.component??e._loadedComponent??null,e,Ho(e),n),c=Cr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}matchSegmentAgainstRoute(n,e,r,i,o,a){return B$2(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=ae=>this.createSnapshot(n,r,ae.consumedSegments,ae.parameters,a),s=yield gt$1(Do(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new K$1(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:N}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:oe,slicedSegments:De}=bn(e,g,N,u,o);if(De.length===0&&oe.hasChildren()){let ae=yield this.processChildren(d,u,oe,z);return new U$1(z,ae)}if(u.length===0&&De.length===0)return new U$1(z,[]);let zt=H(r)===o,Xe=yield this.processSegment(d,u,oe,De,zt?p:o,true,z);return new U$1(z,Xe instanceof U$1?[Xe]:[])})}getChildConfig(n,e,r){return B$2(this,null,function*(){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield gt$1(bo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Eo()}return {routes:[],injector:n}})}};function ko(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet));}function $o(t){let n=t.value.routeConfig;return n&&n.path===""}function ni$1(t){let n=[],e=new Set;for(let r of t){if(!$o(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=ni$1(r.children);n.push(new U$1(r.value,i));}return n.filter(r=>!e.has(r))}function zo(t){return t.data||{}}function Ho(t){return t.resolve||{}}function Fo(t,n,e,r,i,o,a){return Oe$3(c=>B$2(null,null,function*(){let{state:s,tree:u}=yield jo(t,n,e,r,c.extractedUrl,i,o,a);return x$1(w$1({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function qo(t){return Oe$3(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return Dr$1(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of ii$1(c))o.add(s);let a=0;return We$2(o).pipe(Yo$1(c=>i.has(c)?Bo(c,e,t):(c.data=Cr(c,c.parent,t).resolve,Dr$1(void 0))),Hl(()=>a++),py(1),Oe$3(c=>a===o.size?Dr$1(n):Kt$2))})}function ii$1(t){let n=t.children.map(e=>ii$1(e)).flat();return [t,...n]}function Bo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Vn$1(r)&&(i[Qe$1]=r.title),Km(()=>(t.data=Cr(t,t.parent,e).resolve,Vo(i,t,n).pipe(te$4(o=>(t._resolvedData=o,t.data=w$1(w$1({},t.data),o),null)))))}function Vo(t,n,e){let r=or(t);if(r.length===0)return Dr$1({});let i={};return We$2(r).pipe(Oe$3(o=>Go(t[o],n,e).pipe(fy(),Hl(a=>{if(a instanceof Te)throw Dt$1(new Y,a);i[o]=a;}))),py(1),te$4(()=>i),Zs$1(o=>Zn$1(o)?Kt$2:qm(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$1(t,r),o=i.resolve?i.resolve(n,e):$n$3(r,()=>i(n,e));return fe$1(o)}function In$1(t){return Ys$1(n=>{let e=t(n);return e?We$2(e).pipe(te$4(()=>n)):Dr$1(n)})}var Er=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Qe$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:()=>g(oi$1)})}return t})(),oi$1=(()=>{class t extends Er{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(B$1($t$3))};static \u0275prov=k$2({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie=new T$4("",{factory:()=>({})}),ge$1=new T$4(""),Pt$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(PC);loadComponent(e,r){return B$2(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$2(this,null,function*(){try{let o=yield Nn$1($n$3(e,()=>r.loadComponent())),a=yield si$1(iB(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$2(this,null,function*(){try{let o=yield ai$1(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:t.\u0275fac})}return t})();function ai$1(t,n,e,r){return B$2(this,null,function*(){let i=yield Nn$1($n$3(e,()=>t.loadChildren())),o=yield si$1(iB(i)),a;o instanceof Mh||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,d=a,s=c.get(ge$1,[],{optional:true,self:true}).flat()),{routes:s.map(Ar),injector:c,factory:d}})}function si$1(t){return B$2(this,null,function*(){return t})}var Lt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:()=>g(Wo)})}return t})(),Wo=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:t.\u0275fac})}return t})(),Tr=new T$4(""),Nr=new T$4("");function ci$1(t,n,e){let r=t.get(Nr),i=t.get(he$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(),Qo(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&$n$3(t,()=>s({transition:c,from:n,to:e})),a}function Qo(t){return new Promise(n=>{QD({read:()=>setTimeout(n)},{injector:t});})}var ui$1=new T$4(""),Ko=()=>{},Mr=new T$4(""),jt=(()=>{class t{currentNavigation=Mi$3(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Mi$3(null);events=new ue$4;transitionAbortWithErrorSubject=new ue$4;configLoader=g(Pt$1);environmentInjector=g(fe$5);destroyRef=g(we$4);urlSerializer=g(ne);rootContexts=g(pe$1);location=g($g);inputBindingEnabled=g(Ke$1,{optional:true})!==null;titleStrategy=g(Er);options=g(ie,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ji;urlHandlingStrategy=g(Lt);createViewTransition=g(Tr,{optional:true});navigationErrorHandler=g(Mr,{optional:true});activatedRouteInjectorFeature=g(ui$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Dr$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new wt$1(i)),r=i=>this.events.next(new bt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;go$1(()=>{this.transitions?.next(x$1(w$1({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new vr$1(null),this.transitions.pipe(bt$3(r=>r!==null),Ys$1(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return Dr$1(r).pipe(Ys$1(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),Kt$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?x$1(w$1({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&v!=="reload")return this.events.next(new G(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(false),Kt$2;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Dr$1(s).pipe(Ys$1(g=>(this.events.next(new re$1(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?Kt$2:Promise.resolve(g))),Fo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),Hl(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new qe$1);}),Ys$1(g=>We$2(r.routesRecognizeHandler.deferredHandle??Dr$1(void 0)).pipe(te$4(()=>g))),Hl(()=>{let g=new Fe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:z,restoredState:oe,extras:De}=s,zt=new re$1(g,this.urlSerializer.serialize(N),z,oe);this.events.next(zt);let Xe=qn$1(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$1(w$1({},s),{targetSnapshot:Xe,urlAfterRedirects:N,extras:x$1(w$1({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(ae=>(ae.finalUrl=N,ae)),Dr$1(r)}else return this.events.next(new G(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(false),Kt$2}),te$4(s=>{let u=new yt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$1(w$1({},s),{guards:no(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),go(s=>this.events.next(s)),Ys$1(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Dt$1(this.urlSerializer,s.guardsResult);let u=new Rt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return Kt$2;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",A.GuardRejected),Kt$2;if(s.guards.canActivateChecks.length===0)return Dr$1(s);let d=new St$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return Kt$2;let v=false;return Dr$1(s).pipe(qo(this.paramsInheritanceStrategy),Hl({next:()=>{v=true;let g=new Ct$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",A.NoDataFromResolver);}}))}),In$1(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let N=v._environmentInjector;g.push(this.configLoader.loadComponent(N,v.routeConfig).then(z=>{v.component=z;}));}for(let N of v.children)g.push(...u(N));return g},d=u(s.targetSnapshot.root);return d.length===0?Dr$1(s):We$2(Promise.all(d).then(()=>s))}),Ys$1(s=>{let{newlyCreatedRoutes:u,state:d}=Xi(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=x$1(w$1({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=d,v)),Dr$1(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),In$1(()=>this.afterPreactivation()),Ys$1(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return d?We$2(d).pipe(te$4(()=>r)):Dr$1(r)}),en$2(1),Ys$1(s=>{i=false,this.events.next(new Ie$1);let u=r.beforeActivateHandler.deferredHandle;return u?We$2(u.then(()=>s)):Dr$1(s)}),Hl(s=>{new pr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Ko,u)),this.lastSuccessfulNavigation.set(go$1(this.currentNavigation)),this.events.next(new P(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Yl(Jn$1(a.signal).pipe(bt$3(()=>!o&&i),Hl(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",A.Aborted);}))),Hl({complete:()=>{o=true;}}),Yl(this.transitionAbortWithErrorSubject.pipe(Hl(s=>{throw s}))),qo$1(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),Zs$1(s=>{if(o=true,An$1(r),this.destroyed)return r.resolve(false),Kt$2;if(Yn$1(s))this.events.next(new $$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),ro(s)?this.events.next(new Ae$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new de$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=$n$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Te){let{message:v,cancellationCode:g}=Dt$1(this.urlSerializer,d);this.events.next(new $$1(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$1(d.redirectTo,d.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(d);}}return Kt$2}))}))}cancelNavigationTransition(e,r,i){An$1(e);let o=new $$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=go$1(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:t.\u0275fac})}return t})();function Yo(t){return t!==Se}function An$1(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var li$1=new T$4("");var hi$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:()=>g(Zo)})}return t})(),Ut=class{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Zo=(()=>{class t extends Ut{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:t.\u0275fac})}return t})(),xt=(()=>{class t{urlSerializer=g(ne);options=g(ie,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g($g);urlHandlingStrategy=g(Lt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof T?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=qn$1(null,g(fe$5));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=Ve$3({token:t,factory:()=>g(Jo)})}return t})(),Jo=(()=>{class t extends xt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof re$1?this.updateStateMemento():e instanceof G?this.commitTransition(r):e instanceof Fe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$1?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $$1&&!Fn$1(e)?this.restoreHistory(r):e instanceof de$1?this.restoreHistory(r,true):e instanceof P&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=w$1(w$1({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=w$1(w$1({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?w$1({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):w$1({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:t.\u0275fac})}return t})();function kt(t,n){t.events.pipe(bt$3(e=>e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),te$4(e=>e instanceof P||e instanceof G?0:(e instanceof $$1?e.code===A.Redirect||e.code===A.SupersededByNewNavigation:false)?2:1),bt$3(e=>e!==2),en$2(1)).subscribe(()=>{n();});}var F=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g(gw);stateManager=g(xt);options=g(ie,{optional:true})||{};pendingTasks=g(Ht$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(jt);urlSerializer=g(ne);location=g($g);urlHandlingStrategy=g(Lt);injector=g(fe$5);_events=new ue$4;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g(hi$1);injectorCleanup=g(li$1,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(ge$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g(Ke$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new X$2;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=go$1(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof $$1&&r.code!==A.Redirect&&r.code!==A.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=w$1({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Yo(i.source)},a);this.scheduleNavigation(c,Se,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Yi(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Se,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=x$1(w$1({},o),{browserUrl:e})),i){let u=w$1({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(tt$1)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return go$1(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ar),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":d=w$1(w$1({},this.currentUrlTree.queryParams),o);break;case "preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null;}d!==null&&(d=this.removeEmptyProps(d));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=kn$1(g);}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return $n$1(v,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=te$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se,null,r)}navigate(e,r={skipLocationChange:false}){return Xo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(pt$4(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=w$1({},Rr):r===false?i=w$1({},ze$1):i=w$1(w$1({},ze$1),r),te$1(e))return ar(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ar(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let d=this.pendingTasks.add();return kt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:t.\u0275fac})}return t})();function Xo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new v$1(4008,false)}var ea=(()=>{class t{router=g(F);stateManager=g(xt);fragment=Mi$3("");queryParams=Mi$3({});path=Mi$3("");serializer=g(ne);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof P&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new T(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ve$3({token:t,factory:t.\u0275fac})}return t})(),$t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g(new Tg("href"),{optional:true});reactiveHref=HC(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return go$1(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return go$1(this._target)}_target=Mi$3(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return go$1(this._queryParams)}_queryParams=Mi$3(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return go$1(this._fragment)}_fragment=Mi$3(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return go$1(this._queryParamsHandling)}_queryParamsHandling=Mi$3(void 0);set state(e){this._state.set(e);}get state(){return go$1(this._state)}_state=Mi$3(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return go$1(this._info)}_info=Mi$3(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return go$1(this._relativeTo)}_relativeTo=Mi$3(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return go$1(this._preserveFragment)}_preserveFragment=Mi$3(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return go$1(this._skipLocationChange)}_skipLocationChange=Mi$3(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return go$1(this._replaceUrl)}_replaceUrl=Mi$3(false);browserUrl=aB(void 0);isAnchorElement;onChanges=new ue$4;applicationErrorHandler=g(tt$1);options=g(ie,{optional:true});reactiveRouterState=g(ea);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Mi$3(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=BC(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te$1(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return go$1(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(He$3(F),He$3(W$1),su("tabindex"),He$3(Nu),He$3(Tn$3),He$3(pr$1))};static \u0275dir=Vu({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&qh("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Bh("href",i.reactiveHref(),OD)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",gb],skipLocationChange:[2,"skipLocationChange","skipLocationChange",gb],replaceUrl:[2,"replaceUrl","replaceUrl",gb],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[ou]})}return t})(),ta=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new ut$2;link=g($t,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof P&&this.update();});}ngAfterContentInit(){Dr$1(this.links.changes,Dr$1(null)).pipe(Er$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=We$2(e).pipe(Er$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=ra(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Rr):w$1({},ze$1);return i=>{let o=i.urlTree;return o?go$1(Sr(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(He$3(F),He$3(Tn$3),He$3(Nu),He$3(Fg))};static \u0275dir=Vu({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Qh(o,$t,5),r&2){let a;Hw(a=Uw())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ou]})}return t})();function ra(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ze=class{};var di$1=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(bt$3(e=>e instanceof P),Yo$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=Nh(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 We$2(i).pipe(Er$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return Dr$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=We$2(this.loader.loadChildren(e,r)):i=Dr$1(null);let o=i.pipe(Oe$3(a=>a===null?Dr$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 We$2([o,a]).pipe(Er$1())}else return o})}static \u0275fac=function(r){return new(r||t)(B$1(F),B$1(fe$5),B$1(Ze),B$1(Pt$1))};static \u0275prov=k$2({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$1=new T$4(""),na=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se;restoredId=0;store={};isHydrating=g(qv,{optional:true})??false;urlSerializer=g(ne);zone=g(ee$5);viewportScroller=g($V);transitions=g(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g(lo$1).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof re$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof G&&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=go$1(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$2(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new be(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){yI();};static \u0275prov=k$2({token:t,factory:t.\u0275fac})}return t})();function ia(t,...n){return kt$1([{provide:ge$1,multi:true,useValue:t},{provide:W$1,useFactory:pi$1},{provide:Lh,multi:true,useFactory:gi$1},n.map(e=>e.\u0275providers)])}function pi$1(){return g(F).routerState.root}function Je(t,n){return {\u0275kind:t,\u0275providers:n}}function gi$1(){let t=g(pe$5);return n=>{let e=t.get(lo$1);if(n!==e.components[0])return;let r=t.get(F),i=t.get(vi$1);t.get(_r)===1&&r.initialNavigation(),t.get(Ri$1,null,{optional:true})?.setUpPreloading(),t.get(fi$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var vi$1=new T$4("",{factory:()=>new ue$4}),_r=new T$4("",{factory:()=>1});function mi$1(){let t=[{provide:Zv,useValue:true},{provide:_r,useValue:0},ow(()=>{let n=g(pe$5);return n.get(Db,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F),o=n.get(vi$1);kt(i,()=>{r(true);}),n.get(jt).afterPreactivation=()=>(r(true),o.closed?Dr$1(void 0):o),i.initialNavigation();}))})];return Je(2,t)}function yi$1(){let t=[ow(()=>{g(F).setUpLocationChangeListener();}),{provide:_r,useValue:2}];return Je(3,t)}var Ri$1=new T$4("");function Si$1(t){return Je(0,[{provide:Ri$1,useExisting:di$1},{provide:Ze,useExisting:t}])}function Ci$1(t={}){return Je(8,[{provide:Ke$1,useFactory:()=>new Wn$1(t)}])}function wi$1(t){rt$2("NgRouterViewTransitions");let n=[{provide:Tr,useValue:ci$1},{provide:Nr,useValue:w$1({skipNextTransition:false},t)}];return Je(9,n)}var bi$1=[$g,{provide:ne,useClass:Y},F,pe$1,{provide:W$1,useFactory:pi$1},Pt$1],oa=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[bi$1,[],{provide:ge$1,multi:true,useValue:e},[],r?.errorHandler?{provide:Mr,useValue:r.errorHandler}:[],{provide:ie,useValue:r||{}},r?.useHash?sa():ca(),aa(),r?.preloadingStrategy?Si$1(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ua(r):[],r?.bindToComponentInputs?Ci$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?wi$1().\u0275providers:[],la()]}}static forChild(e){return {ngModule:t,providers:[{provide:ge$1,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Bu({type:t});static \u0275inj=ui$3({})}return t})();function aa(){return {provide:fi$1,useFactory:()=>{let t=g($V),n=g(ie);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na(n)}}}function sa(){return {provide:pr$1,useClass:Cb}}function ca(){return {provide:pr$1,useClass:Ug}}function ua(t){return [t.initialNavigation==="disabled"?yi$1().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$1().\u0275providers:[]]}var Dr=new T$4("");function la(){return [{provide:Dr,useFactory:gi$1},{provide:Lh,multi:true,useExisting:Dr}]}
|
|
1254
|
+
var _=(function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i})(_||{}),K="*";function _s(i,e=null){return {type:_.Sequence,steps:i,options:e}}function tt(i){return {type:_.Style,styles:i,offset:null}}var $=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},re=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,s=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish();}),o.onDestroy(()=>{++s==r&&this._onDestroy();}),o.onStart(()=>{++n==r&&this._onStart();});}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let n=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(n);});}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},he="!";function Ss(i){return new v$1(3e3,false)}function wn(){return new v$1(3100,false)}function An(){return new v$1(3101,false)}function Pn(i){return new v$1(3001,false)}function Nn(i){return new v$1(3003,false)}function Cn(i){return new v$1(3004,false)}function vs(i,e){return new v$1(3005,false)}function Ts(){return new v$1(3006,false)}function bs(){return new v$1(3007,false)}function ws(i,e){return new v$1(3008,false)}function As(i){return new v$1(3002,false)}function Ps(i,e,t,s,n){return new v$1(3010,false)}function Ns(){return new v$1(3011,false)}function Cs(){return new v$1(3012,false)}function Ms(){return new v$1(3200,false)}function Ds(){return new v$1(3202,false)}function Fs(){return new v$1(3013,false)}function ks(i){return new v$1(3014,false)}function Rs(i){return new v$1(3015,false)}function Os(i){return new v$1(3016,false)}function Is(i,e){return new v$1(3404,false)}function Mn(i){return new v$1(3502,false)}function Ls(i){return new v$1(3503,false)}function zs(){return new v$1(3300,false)}function Ks(i){return new v$1(3504,false)}function qs(i){return new v$1(3301,false)}function Bs(i,e){return new v$1(3302,false)}function Qs(i){return new v$1(3303,false)}function Vs(i,e){return new v$1(3400,false)}function Us(i){return new v$1(3401,false)}function $s(i){return new v$1(3402,false)}function js(i,e){return new v$1(3505,false)}function j(i){switch(i.length){case 0:return new $;case 1:return i[0];default:return new re(i)}}function rt(i,e,t=new Map,s=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==o,c=h&&a||new Map;l.forEach((S,y)=>{let f=y,g=S;if(y!=="offset")switch(f=i.normalizePropertyName(f,n),g){case he:g=t.get(y);break;case K:g=s.get(y);break;default:g=i.normalizeStyleValue(y,f,g,n);break}c.set(f,g);}),h||r.push(c),a=c,o=u;}),n.length)throw Mn();return r}function Ae(i,e,t,s){switch(e){case "start":i.onStart(()=>s(t&&st(t,"start",i)));break;case "done":i.onDone(()=>s(t&&st(t,"done",i)));break;case "destroy":i.onDestroy(()=>s(t&&st(t,"destroy",i)));break}}function st(i,e,t){let s=t.totalTime,n=!!t.disabled,r=Pe(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,s??i.totalTime,n),o=i._data;return o!=null&&(r._data=o),r}function Pe(i,e,t,s,n="",r=0,o){return {element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!o}}function k(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function ot(i){let e=i.indexOf(":"),t=i.substring(1,e),s=i.slice(e+1);return [t,s]}var Dn=typeof document>"u"?null:document.documentElement;function Ne(i){let e=i.parentNode||i.host||null;return e===Dn?null:e}function Fn(i){return i.substring(1,6)=="ebkit"}var Z=null,Es=false;function Gs(i){Z||(Z=kn()||{},Es=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!Fn(i)&&(e=i in Z.style,!e&&Es&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Z.style)),e}function kn(){return typeof document<"u"?document.body:null}function at(i,e){for(;e;){if(e===i)return true;e=Ne(e);}return false}function lt(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let s=i.querySelector(e);return s?[s]:[]}var Rn=1e3,ut="{{",On="}}",ct="ng-enter",Ce="ng-leave",de="ng-trigger",fe=".ng-trigger",ht="ng-animating",Me=".ng-animating";function U(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:nt(parseFloat(e[1]),e[2])}function nt(i,e){return e==="s"?i*Rn:i}function me(i,e,t){return i.hasOwnProperty("duration")?i:Ln(i,e,t)}var In=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Ln(i,e,t){let s,n=0,r="";if(typeof i=="string"){let o=i.match(In);if(o===null)return e.push(Ss()),{duration:0,delay:0,easing:""};s=nt(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(n=nt(parseFloat(a),o[4]));let l=o[5];l&&(r=l);}else s=i;if(!t){let o=false,a=e.length;s<0&&(e.push(wn()),o=true),n<0&&(e.push(An()),o=true),o&&e.splice(a,0,Ss());}return {duration:s,delay:n,easing:r}}function xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function q(i,e,t){e.forEach((s,n)=>{let r=De(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s;});}function W(i,e){e.forEach((t,s)=>{let n=De(s);i.style[n]="";});}function oe(i){return Array.isArray(i)?i.length==1?i[0]:_s(i):i}function Ws(i,e,t){let s=e.params||{},n=dt(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Pn());});}var it=new RegExp(`${ut}\\s*(.+?)\\s*${On}`,"g");function dt(i){let e=[];if(typeof i=="string"){let t;for(;t=it.exec(i);)e.push(t[1]);it.lastIndex=0;}return e}function ae(i,e,t){let s=`${i}`,n=s.replace(it,(r,o)=>{let a=e[o];return a==null&&(t.push(Nn()),a=""),a.toString()});return n==s?i:n}var zn=/-+([a-z0-9])/g;function De(i){return i.replace(zn,(...e)=>e[1].toUpperCase())}function Hs(i,e){return i===0||e===0}function Ys(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,o)=>{s.has(o)||n.push(o),s.set(o,r);}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,Fe(i,a)));}}return e}function R(i,e,t){switch(e.type){case _.Trigger:return i.visitTrigger(e,t);case _.State:return i.visitState(e,t);case _.Transition:return i.visitTransition(e,t);case _.Sequence:return i.visitSequence(e,t);case _.Group:return i.visitGroup(e,t);case _.Animate:return i.visitAnimate(e,t);case _.Keyframes:return i.visitKeyframes(e,t);case _.Style:return i.visitStyle(e,t);case _.Reference:return i.visitReference(e,t);case _.AnimateChild:return i.visitAnimateChild(e,t);case _.AnimateRef:return i.visitAnimateRef(e,t);case _.Query:return i.visitQuery(e,t);case _.Stagger:return i.visitStagger(e,t);default:throw Cn(e.type)}}function Fe(i,e){return window.getComputedStyle(i)[e]}var Mt=(()=>{class i{validateStyleProperty(t){return Gs(t)}containsElement(t,s){return at(t,s)}getParentElement(t){return Ne(t)}query(t,s,n){return lt(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,o,a=[],l){return new $(n,r)}static \u0275fac=function(s){return new(s||i)};static \u0275prov=k$2({token:i,factory:i.\u0275fac})}return i})(),ee=class{static NOOP=new Mt},te=class{};var Kn=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Le=class extends te{normalizePropertyName(e,t){return De(e)}normalizeStyleValue(e,t,s,n){let r="",o=s.toString().trim();if(Kn.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else {let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(vs());}return o+r}};var ze="*";function qn(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(s=>Bn(s,t,e)):t.push(i),t}function Bn(i,e,t){if(i[0]==":"){let l=Qn(i,t);if(typeof l=="function"){e.push(l);return}i=l;}let s=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(Rs()),e;let n=s[1],r=s[2],o=s[3];e.push(Xs(n,o));let a=n==ze&&o==ze;r[0]=="<"&&!a&&e.push(Xs(o,n));}function Qn(i,e){switch(i){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,s)=>parseFloat(s)>parseFloat(t);case ":decrement":return (t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(Os()),"* => *"}}var ke=new Set(["true","1"]),Re=new Set(["false","0"]);function Xs(i,e){let t=ke.has(i)||Re.has(i),s=ke.has(e)||Re.has(e);return (n,r)=>{let o=i==ze||i==n,a=e==ze||e==r;return !o&&t&&typeof n=="boolean"&&(o=n?ke.has(i):Re.has(i)),!a&&s&&typeof r=="boolean"&&(a=r?ke.has(e):Re.has(e)),o&&a}}var un=":self",Vn=new RegExp(`s*${un}s*,?`,"g");function cn(i,e,t,s){return new _t(i).build(e,t,s)}var Zs="",_t=class{_driver;constructor(e){this._driver=e;}build(e,t,s){let n=new St(t);return this._resetContextStyleTimingState(n),R(this,oe(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Zs,e.collectedStyles=new Map,e.collectedStyles.set(Zs,new Map),e.currentTime=0;}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ts()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t));}),l.name=u;}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,n+=l.depCount,o.push(l);}else t.errors.push(bs());}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:n,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=n||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{dt(l).forEach(u=>{o.hasOwnProperty(u)||r.add(u);});});}),r.size&&t.errors.push(ws(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,oe(e.animation),t),n=qn(e.expr,t.errors);return {type:_.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:J(e.options)}}visitGroup(e,t){let s=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:_.Group,steps:r,options:J(e.options)}}visitAnimate(e,t){let s=Gn(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:tt({});if(r.type==_.Keyframes)n=this.visitKeyframes(r,t);else {let o=e.styles,a=false;if(!o){a=true;let u={};s.easing&&(u.easing=s.easing),o=tt(u);}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:n,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===K?s.push(a):t.errors.push(As()):s.push(new Map(Object.entries(a)));let r=false,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(ut)>=0){r=true;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=true;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(Ps(l,h.startTime,h.endTime)),c=false),r=h.startTime),c&&u.set(l,{startTime:r,endTime:n}),t.options&&Ws(a,t.options,t.errors);});});}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ns()),s;let n=1,r=0,o=[],a=false,l=false,u=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:jn(A.styles),N=0;return M!=null&&(r++,N=A.offset=M),l=l||N<0||N>1,a=a||N<u,u=N,o.push(N),A});l&&t.errors.push(Cs()),a&&t.errors.push(Ms());let c=e.steps.length,S=0;r>0&&r<c?t.errors.push(Ds()):r==0&&(S=n/(c-1));let y=c-1,f=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((w,A)=>{let M=S>0?A==y?1:S*A:o[A],N=M*T;t.currentTime=f+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=M,s.styles.push(w);}),s}visitReference(e,t){return {type:_.Reference,animation:R(this,oe(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Un(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,k(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,oe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,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(Fs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:me(e.timings,t.errors,true);return {type:_.Stagger,animation:R(this,oe(e.animation),t),timings:s,options:null}}};function Un(i){let e=!!i.split(/\s*,\s*/).find(t=>t==un);return e&&(i=i.replace(Vn,"")),i=i.replace(/@\*/g,fe).replace(/@\w+/g,t=>fe+"-"+t.slice(1)).replace(/:animating/g,Me),[i,e]}function $n(i){return i?w$1({},i):null}var St=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 jn(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset");}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Gn(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=me(i,e).duration;return ft(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ft(0,0,"");return r.dynamic=true,r.strValue=t,r}let n=me(t,e);return ft(n.duration,n.delay,n.easing)}function J(i){return i?(i=w$1({},i),i.params&&(i.params=$n(i.params))):i={},i}function ft(i,e,t){return {duration:i,delay:e,easing:t}}function Dt(i,e,t,s,n,r,o=null,a=false){return {type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var ge=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},xn=1,Wn=":enter",Hn=new RegExp(Wn,"g"),Yn=":leave",Xn=new RegExp(Yn,"g");function hn(i,e,t,s,n,r=new Map,o=new Map,a,l,u=[]){return new Et().buildKeyframes(i,e,t,s,n,r,o,a,l,u)}var Et=class{buildKeyframes(e,t,s,n,r,o,a,l,u,h=[]){u=u||new ge;let c=new vt(e,t,u,n,r,h,[]);c.options=l;let S=l.delay?U(l.delay):0;c.currentTimeline.delayNextStep(S),c.currentTimeline.setStyles([o],null,c.errors,l),R(this,s,c);let y=c.timelines.filter(f=>f.containsAnimation());if(y.length&&a.size){let f;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,c.errors,l);}return y.length?y.map(f=>f.buildKeyframes()):[Dt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,n,n.options);r!=o&&t.transformIntoNewTimeline(o);}t.previousNode=e;}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,s){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:U(ae(r,n?.params??{},t.errors));s.delayNextStep(o);}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?U(s.duration):null,a=s.delay!=null?U(s.delay):null;return o!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,u.duration+u.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),R(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let s=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==_.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ke);let o=U(r.delay);n.delayNextStep(o);}e.steps.length&&(e.steps.forEach(o=>R(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let s=[],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),R(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),s.push(a.currentTimeline);}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,n=t.params?ae(s,t.params,t.errors):s;return me(n,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let s=t.currentAnimateTimings,n=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;a.forwardTime(u*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 s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?U(n.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ke);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),R(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let S=c.currentTimeline.currentTime;o=Math.max(o,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let s=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=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-c+(n.startTime-s.currentTimeline.startTime);}},Ke={},vt=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ke;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new qe(this._driver,t,0),a.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,n=this.options;s.duration!=null&&(n.duration=U(s.duration)),s.delay!=null&&(n.delay=U(s.delay));let r=s.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ae(r[a],o,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(n=>{s[n]=t[n];});}}return e}createSubContext(e=null,t,s){let n=t||this.element,r=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||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=Ke,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new Tt(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,s,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Hn,"."+this._enterClassName),e=e.replace(Xn,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),a.push(...u);}return !r&&a.length==0&&o.push(ks()),a}},qe=class i{_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,s,n){this._driver=e,this.element=t,this.startTime=s,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 i(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+=xn,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,s]of this._globalTimelineStyles)this._backFill.set(t,s||K),this._currentKeyframe.set(t,K);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Zn(e,this._globalTimelineStyles);for(let[a,l]of o){let u=ae(l,r,s);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??K),this._updateStyle(a,u);}}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,s)=>{let n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let u=new Map([...this._backFill,...a]);u.forEach((h,c)=>{h===he?e.add(c):h===K&&t.add(c);}),s||u.set("offset",l/this.duration),n.push(u);});let r=[...e.values()],o=[...t.values()];if(s){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l];}return Dt(this.element,n,r,o,this.duration,this.startTime,this.easing,false)}},Tt=class extends qe{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,n,r,o,a=false){super(e,t,o.delay),this.keyframes=s,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:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",Js(a)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let S=new Map(e[c]),y=S.get("offset"),f=t+y*s;S.set("offset",Js(f/o)),r.push(S);}s=o,t=0,n="",e=r;}return Dt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,true)}};function Js(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Zn(i,e){let t=new Map,s;return i.forEach(n=>{if(n==="*"){s??=e.keys();for(let r of s)t.set(r,K);}else for(let[r,o]of n)t.set(r,o);}),t}function en(i,e,t,s,n,r,o,a,l,u,h,c,S){return {type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:S}}var mt={},Be=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s;}match(e,t,s,n){return Jn(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,o,a,l,u,h){let c=[],S=this.ast.options&&this.ast.options.params||mt,y=a&&a.params||mt,f=this.buildStyles(s,y,c),g=l&&l.params||mt,T=this.buildStyles(n,g,c),w=new Set,A=new Map,M=new Map,N=n==="void",se={params:dn(g,S),delay:this.ast.options?.delay},Q=h?[]:hn(e,t,this.ast.animation,r,o,f,T,se,u,c),D=0;return Q.forEach(F=>{D=Math.max(F.duration+F.delay,D);}),c.length?en(t,this._triggerName,s,n,N,f,T,[],[],A,M,D,c):(Q.forEach(F=>{let H=F.element,ne=k(A,H,new Set);F.preStyleProps.forEach(Y=>ne.add(Y));let kt=k(M,H,new Set);F.postStyleProps.forEach(Y=>kt.add(Y)),H!==t&&w.add(H);}),en(t,this._triggerName,s,n,N,f,T,Q,[...w.values()],A,M,D))}};function Jn(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function dn(i,e){let t=w$1({},e);return Object.entries(i).forEach(([s,n])=>{n!=null&&(t[s]=n);}),t}var bt=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s;}buildStyles(e,t){let s=new Map,n=dn(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=ae(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o);});}),s}};function ei(i,e,t){return new wt(i,e,t)}var wt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new bt(n.style,r,s));}),tn(this.states,"true","1"),tn(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Be(e,n,this.states));}),this.fallbackTransition=ti(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(o=>o.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ti(i,e,t){let s=[(o,a)=>true],n={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:n,matchers:s,options:null,queryCount:0,depCount:0};return new Be(i,r,e)}function tn(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t));}var si=new ge,At=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s;}register(e,t){let s=[],n=[],r=cn(this._driver,t,s,n);if(s.length)throw Ls();this._animations.set(e,r);}_buildPlayer(e,t,s){let n=e.element,r=rt(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],true)}create(e,t,s={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=hn(this._driver,t,r,ct,Ce,new Map,new Map,s,si,n),o.forEach(h=>{let c=k(a,h.element,new Map);h.postStyleProps.forEach(S=>c.set(S,null));})):(n.push(zs()),o=[]),n.length)throw Ks();a.forEach((h,c)=>{h.forEach((S,y)=>{h.set(y,this._driver.computeStyle(c,y,K));});});let l=o.map(h=>{let c=a.get(h.element);return this._buildPlayer(h,new Map,c)}),u=j(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw qs();return t}listen(e,t,s,n){let r=Pe(t,"","","");return Ae(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if(s=="register"){this.register(e,n[0]);return}if(s=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){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}}},sn="ng-animate-queued",ni=".ng-animate-queued",pt="ng-animate-disabled",ii=".ng-animate-disabled",ri="ng-star-inserted",oi=".ng-star-inserted",ai=[],fn={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},li={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},B="__ng_removed",ye=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=ci(n),s){let r=e,{value:o}=r,a=y$2(r,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(n=>{s[n]==null&&(s[n]=t[n]);});}}},pe="void",gt=new ye(pe),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,z(t,this._hostClassName);}listen(e,t,s,n){if(!this._triggers.has(t))throw Bs();if(s==null||s.length==0)throw Qs();if(!hi(s))throw Vs();let r=k(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);let a=k(this._engine.statesByElement,e,new Map);return a.has(t)||(z(e,de),z(e,de+"-"+t),a.set(t,gt)),()=>{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 Us();return t}trigger(e,t,s,n=true){let r=this._getTrigger(t),o=new _e(this.id,t,e),a=this._engine.statesByElement.get(e);a||(z(e,de),z(e,de+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),u=new ye(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(t,u),l||(l=gt),!(u.value===pe)&&l.value===u.value){if(!mi(l.params,u.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{W(e,T),q(e,w);});}return}let S=k(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,u.value,e,u.params),f=false;if(!y){if(!n)return;y=r.fallbackTransition,f=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:o,isFallbackTransition:f}),f||(z(e,sn),o.onStart(()=>{le(e,sn);})),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),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,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(s=>s.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,fe,true);s.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(()=>s.forEach(n=>this.clearElementCache(n)));}triggerLeaveAnimation(e,t,s,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,u)=>{if(o.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,pe,n);h&&a.push(h);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,true,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){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,u=s.get(o)||gt,h=new ye(pe),c=new _e(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:true});});}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let n=false;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=true;else {let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){n=true;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,false,t);else {let r=e[B];(!r||r===fn)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t));}}insertNode(e,t){z(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let n=s.player;if(n.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=Pe(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Ae(s.player,a.phase,l,a.callback);}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy();}):t.push(s);}),this._queue=[],t.sort((s,n)=>{let r=s.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Nt=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,s){this.bodyNode=e,this.driver=t,this._normalizer=s;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s);});}),e}createNamespace(e,t){let s=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let o=false,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),o=true;break}a=this.driver.getParentElement(a);}o||s.unshift(e);}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let n of s.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r);}}return t}trigger(e,t,s,n){if(Oe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),true}return false}insertNode(e,t,s,n){if(!Oe(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,s);}n&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),z(e,pt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,pt));}removeNode(e,t,s){if(Oe(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,false,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s);}else this._onRemovalComplete(t,s);}markElementAsRemoved(e,t,s,n,r){this.collectedLeaveElements.push(t),t[B]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,s,n,r){return Oe(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,fe,true);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,true),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=true:s.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[B];if(t&&t.setForRemoval){if(e[B]=fn,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(pt)&&this.markElementAsDisabled(e,false),this.driver.query(e,ii,true).forEach(s=>{this.markElementAsDisabled(s,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let n=this.collectedEnterElements[s];z(n,ri);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e);}finally{for(let n=0;n<s.length;n++)s[n]();}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let n=this.collectedLeaveElements[s];this.processLeaveNode(n);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(n=>n());}):s.forEach(n=>n());}}reportError(e){throw $s()}_flushAnimations(e,t){let s=new ge,n=[],r=new Map,o=[],a=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,ni,true);for(let p=0;p<m.length;p++)h.add(m[p]);});let c=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=on(S,this.collectedEnterElements),f=new Map,g=0;y.forEach((d,m)=>{let p=ct+g++;f.set(m,p),d.forEach(E=>z(E,p));});let T=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let m=this.collectedLeaveElements[d],p=m[B];p&&p.setForRemoval&&(T.push(m),w.add(m),p.hasAnimation?this.driver.query(m,oi,true).forEach(E=>w.add(E)):A.add(m));}let M=new Map,N=on(S,Array.from(w));N.forEach((d,m)=>{let p=Ce+g++;M.set(m,p),d.forEach(E=>z(E,p));}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(E=>le(E,p));}),N.forEach((d,m)=>{let p=M.get(m);d.forEach(E=>le(E,p));}),T.forEach(d=>{this.processLeaveNode(d);});});let se=[],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(se.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),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let Se=I.get(p.triggerName);Se.value=X,I.set(p.triggerName,Se);}}E.destroy();return}}let V=!c||!this.driver.containsElement(c,P),O=M.get(P),G=f.get(P),b=this._buildInstruction(p,s,G,O,V);if(b.errors&&b.errors.length){Q.push(b);return}if(V){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}if(p.isFallbackTransition){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}let It=[];b.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||It.push(C);}),b.timelines=It,s.append(P,b.timelines);let bn={instruction:b,player:E,element:P};o.push(bn),b.queriedElements.forEach(C=>k(a,C,[]).push(E)),b.preStyleProps.forEach((C,X)=>{if(C.size){let I=l.get(X);I||l.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));}}),b.postStyleProps.forEach((C,X)=>{let I=u.get(X);I||u.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));});});if(Q.length){let d=[];Q.forEach(m=>{d.push(js(m.triggerName,m.errors));}),se.forEach(m=>m.destroy()),this.reportError(d);}let D=new Map,F=new Map;o.forEach(d=>{let m=d.element;s.has(m)&&(F.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D));}),n.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,false,d.namespaceId,d.triggerName,null).forEach(E=>{k(D,m,[]).push(E),E.destroy();});});let H=T.filter(d=>an(d,l,u)),ne=new Map;rn(ne,this.driver,A,u,K).forEach(d=>{an(d,l,u)&&H.push(d);});let Y=new Map;y.forEach((d,m)=>{rn(Y,this.driver,new Set(d),l,he);}),H.forEach(d=>{let m=ne.get(d),p=Y.get(d);ne.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]));});let Ge=[],Rt=[],Ot={};o.forEach(d=>{let{element:m,player:p,instruction:E}=d;if(s.has(m)){if(h.has(m)){p.onDestroy(()=>q(m,E.toStyles)),p.disabled=true,p.overrideTotalTime(E.totalTime),n.push(p);return}let P=Ot;if(F.size>1){let O=m,G=[];for(;O=O.parentNode;){let b=F.get(O);if(b){P=b;break}G.push(O);}G.forEach(b=>F.set(b,P));}let V=this._buildAnimation(p.namespaceId,E,D,r,Y,ne);if(p.setRealPlayer(V),P===Ot)Ge.push(p);else {let O=this.playersByElement.get(P);O&&O.length&&(p.parentPlayer=j(O)),n.push(p);}}else W(m,E.fromStyles),p.onDestroy(()=>q(m,E.toStyles)),Rt.push(p),h.has(m)&&n.push(p);}),Rt.forEach(d=>{let m=r.get(d.element);if(m&&m.length){let p=j(m);d.setRealPlayer(p);}}),n.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<T.length;d++){let m=T[d],p=m[B];if(le(m,Ce),p&&p.hasAnimation)continue;let E=[];if(a.size){let V=a.get(m);V&&V.length&&E.push(...V);let O=this.driver.query(m,Me,true);for(let G=0;G<O.length;G++){let b=a.get(O[G]);b&&b.length&&E.push(...b);}}let P=E.filter(V=>!V.destroyed);P.length?di(this,m,P):this.processLeaveNode(m);}return T.length=0,Ge.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1);}),d.play();}),Ge}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,s,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==pe;a.forEach(u=>{u.queued||!l&&u.triggerName!=n||o.push(u);});}}return (s||n)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){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 u=l.element,h=u!==r,c=k(s,u,[]);this._getPreviousPlayers(u,h,o,a,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),c.push(y);});}W(r,t.fromStyles);}_buildAnimation(e,t,s,n,r,o){let a=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,S=t.timelines.map(f=>{let g=f.element;h.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new $(f.duration,f.delay);let w=g!==l,A=fi((s.get(g)||ai).map(D=>D.getRealPlayer())).filter(D=>{let F=D;return F.element?F.element===g:false}),M=r.get(g),N=o.get(g),se=rt(this._normalizer,f.keyframes,M,N),Q=this._buildPlayer(f,se,A);if(f.subTimeline&&n&&c.add(g),w){let D=new _e(e,a,g);D.setRealPlayer(Q),u.push(D);}return Q});u.forEach(f=>{k(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>ui(this.playersByQueriedElement,f.element,f));}),h.forEach(f=>z(f,ht));let y=j(S);return y.onDestroy(()=>{h.forEach(f=>le(f,ht)),q(l,t.toStyles);}),c.forEach(f=>{k(n,f,[]).push(y);}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new $(e.duration,e.delay)}},_e=class{namespaceId;triggerName;element;_player=new $;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(n=>Ae(e,s,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 ui(i,e,t){let s=i.get(e);if(s){if(s.length){let n=s.indexOf(t);s.splice(n,1);}s.length==0&&i.delete(e);}return s}function ci(i){return i??null}function Oe(i){return i&&i.nodeType===1}function hi(i){return i=="start"||i=="done"}function nn(i,e){let t=i.style.display;return i.style.display=e??"none",t}function rn(i,e,t,s,n){let r=[];t.forEach(l=>r.push(nn(l)));let o=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let S=e.computeStyle(u,c,n);h.set(c,S),(!S||S.length==0)&&(u[B]=li,o.push(u));}),i.set(u,h);});let a=0;return t.forEach(l=>nn(l,r[a++])),o}function on(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,n=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let u=a.parentNode;return t.has(u)?l=u:n.has(u)?l=s:l=o(u),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a);}),t}function z(i,e){i.classList?.add(e);}function le(i,e){i.classList?.remove(e);}function di(i,e,t){j(t).onDone(()=>i.processLeaveNode(e));}function fi(i){let e=[];return mn(i,e),e}function mn(i,e){for(let t=0;t<i.length;t++){let s=i[t];s instanceof re?mn(s.players,e):e.push(s);}}function mi(i,e){let t=Object.keys(i),s=Object.keys(e);if(t.length!=s.length)return false;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||i[r]!==e[r])return false}return true}function an(i,e,t){let s=t.get(i);if(!s)return false;let n=e.get(i);return n?s.forEach(r=>n.add(r)):e.set(i,s),t.delete(i),true}var ue=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Nt(e.body,t,s),this._timelineEngine=new At(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r);}registerTrigger(e,t,s,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],u=[],h=cn(this._driver,r,l,u);if(l.length)throw Is();a=ei(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,s,n){this._transitionEngine.insertNode(e,t,s,n);}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,s,n){if(s.charAt(0)=="@"){let[r,o]=ot(s),a=n;this._timelineEngine.command(r,t,o,a);}else this._transitionEngine.trigger(e,t,s,n);}listen(e,t,s,n,r){if(s.charAt(0)=="@"){let[o,a]=ot(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,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 pi(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=yt(e[0]),e.length>1&&(s=yt(e[e.length-1]))):e instanceof Map&&(t=yt(e)),t||s?new gi(i,t,s):null}var gi=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,n){this._element=t,this._startStyles=s,this._endStyles=n;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3);}}return i})();function yt(i){let e=null;return i.forEach((t,s)=>{yi(s)&&(e=e||new Map,e.set(s,t));}),e}function yi(i){return i==="display"||i==="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,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._duration=s.duration,this._delay=s.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 s=()=>this._onFinish();return t.addEventListener("finish",s),this.onDestroy(()=>{t.removeEventListener("finish",s);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s));}),t}_triggerWebAnimation(e,t,s){let n=this._convertKeyframesToObject(t);try{return e.animate(n,s)}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((s,n)=>{n!=="offset"&&e.set(n,this._finished?s:Fe(this.element,n));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},Ve=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return at(e,t)}getParentElement(e){return Ne(e)}query(e,t,s){return lt(e,t,s)}computeStyle(e,t,s){return Fe(e,t)}animate(e,t,s,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:s,delay:n,fill:a};r&&(l.easing=r);let u=new Map,h=o.filter(y=>y instanceof Qe);Hs(s,n)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>u.set(g,f));});let c=xs(t).map(y=>new Map(y));c=Ys(e,c,u);let S=pi(e,c);return new Qe(e,c,l,S)}};var Ie="@",pn="@.disabled",Ue=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,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,s,n=true){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n);}removeChild(e,t,s,n){if(n){this.delegate.removeChild(e,t,s,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,s,n){this.delegate.setAttribute(e,t,s,n);}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n);}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s);}setProperty(e,t,s){t.charAt(0)==Ie&&t==pn?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,s,n){return this.delegate.listen(e,t,s,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Ct=class extends Ue{factory;constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,s){t.charAt(0)==Ie?t.charAt(1)=="."&&t==pn?(s=s===void 0?true:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s);}listen(e,t,s,n){if(t.charAt(0)==Ie){let r=_i(e),o=t.slice(1),a="";return o.charAt(0)!=Ie&&([o,a]=Si(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l);})}return this.delegate.listen(e,t,s,n)}};function _i(i){switch(i){case "body":return document.body;case "document":return document;case "window":return window;default:return i}}function Si(i){let e=i.indexOf("."),t=i.substring(0,e),s=i.slice(e+1);return [t,s]}var $e=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n);};}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(n);if(!h){let c=()=>u.delete(n);h=new Ue("",n,this.engine,c),u.set(n,h);}return h}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(r,o,e,u.name,u);};return t.data.animation.forEach(a),new Ct(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));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,s]);}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 vi=(()=>{class i extends ue{constructor(t,s,n){super(t,s,n);}ngOnDestroy(){this.flush();}static \u0275fac=function(s){return new(s||i)(B$1(he$6),B$1(ee),B$1(te))};static \u0275prov=k$2({token:i,factory:i.\u0275fac})}return i})();function Ti(){return new Le}function bi(){return new $e(g(Y$2),g(ue),g(ee$5))}var gn=[{provide:te,useFactory:Ti},{provide:ue,useClass:vi},{provide:eo$1,useFactory:bi}],wi=[{provide:ee,useFactory:()=>new Ve},{provide:sv,useFactory:()=>"BrowserAnimations"},...gn];function yn(){return rt$2("NgEagerAnimations"),[...wi]}var Ai=i=>!!i&&i.mode==="unmanaged"&&i.setupEnabled&&!i.setupDone,Ft=false;var _n=()=>B$2(null,null,function*(){if(Ft)return true;let i=g(V$2),e=g(F),t=yield i.refreshStatus();return t?.setupDone&&(Ft=true),Ai(t)?e.parseUrl("/welcome"):true}),Sn=()=>B$2(null,null,function*(){return (yield g(V$2).refreshStatus())?.setupDone&&(Ft=true),true});var Pi=i=>i[0]?.path==="agentos"?{consumed:i}:null,Ni=(i,e)=>{let t=e.url.replace(/^\/agentos/,"");return g(F).parseUrl(t.startsWith("/")?t:`/${t}`)},En=[{matcher:Pi,canActivate:[Ni],children:[]},{path:"welcome",canActivate:[Sn],loadComponent:()=>import('./chunk-DJYg-Uvg.js').then(i=>i.WelcomeComponent)},{path:"",pathMatch:"full",redirectTo:"welcome"},{path:"",canActivate:[_n],loadChildren:()=>import('./chunk-CCZ1b0na.js').then(function(n){return n.ag}).then(i=>i.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ci=5e3;function vn(t){return B$2(this,arguments,function*(i,e=Ci){yield Fm(i.loadMe().pipe(Ym(e),Zs$1(s=>(console.warn("Failed to load current user",s),Dr$1(null)))),{defaultValue:null});})}function Mi(i){return ()=>B$2(null,null,function*(){let{UserStateService:e}=yield import('./chunk-CCZ1b0na.js').then(function(n){return n.ag});yield vn(i.get(e));})}function Di(i){return ()=>B$2(null,null,function*(){try{let{CompanionStateService:e,GlobalStreamService:t,TabCoordinatorService:s}=yield import('./chunk-CCZ1b0na.js').then(function(n){return n.ag});$n$3(i,()=>{i.get(s).start();}),i.get(t).start(),i.get(e).startSse();}catch(e){console.warn("Failed to start the companion notification stream",e);}})}var Tn={providers:[rv(),pB({eventCoalescing:true}),ia(En),CT(),yn(),{provide:Ce$2,useValue:{duration:3e3}},{provide:Hu,useFactory:Mi,deps:[pe$5],multi:true},gd({basePath:"/api/agentos"}),{provide:Hu,useFactory:Di,deps:[pe$5],multi:true},{provide:de$2,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Fi(i,e){i&1&&(os(0,"div",0),Hh(1,"div",2),os(2,"p"),fC(3,"Loading Coday\u2026"),zu()());}function ki(i,e){if(i&1){let t=Aw();os(0,"div",1)(1,"p"),fC(2,"Coday could not load this page."),zu(),os(3,"button",3),qh("click",function(){Pd(t);let n=Pw();return Ld(n.reload())}),fC(4,"Reload"),zu()();}}var Ri=i=>i instanceof re$1?"pending":i instanceof de$1?"failed":"idle",je=class i{title="client";phase=F$1(g(F).events.pipe(bt$3(e=>e instanceof re$1||e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),te$4(Ri)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=JI({type:i,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","status","aria-live","polite",1,"app-loader"],["role","alert",1,"app-loader","app-loader--error"],[1,"spinner"],["type","button",3,"click"]],template:function(t,s){if(t&1&&(Ew(0,Fi,4,0,"div",0)(1,ki,5,0,"div",1),Hh(2,"router-outlet")),t&2){let n;Iw((n=s.phase())==="pending"?0:n==="failed"?1:-1);}},dependencies:[oa,br],styles:[".app-loader[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--color-bg);color:var(--color-text-secondary, #6e6e73);font-size:.9rem;opacity:0;pointer-events:none;animation:_ngcontent-%COMP%_app-loader-in .2s ease .3s forwards}.app-loader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.app-loader--error[_ngcontent-%COMP%]{animation-delay:0ms;pointer-events:auto;color:var(--color-text)}.app-loader--error[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:6px 16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);cursor:pointer}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid var(--color-border, rgba(0, 0, 0, .1));border-top-color:var(--color-primary, #007aff);border-radius:50%;animation:_ngcontent-%COMP%_app-loader-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_app-loader-in{to{opacity:1}}@keyframes _ngcontent-%COMP%_app-loader-spin{to{transform:rotate(360deg)}}"],changeDetection:1})};He$1(je,Tn).catch(i=>console.error(i));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(i=>console.error("[SW] Registration failed:",i));});export{dg as $,A$1 as A,B$2 as B,w$1 as C,Dm as D,Ew as E,F,Gu as G,Hh as H,Iw as I,JI as J,x$1 as K,Ld as L,Mi$3 as M,Vh as N,Op as O,Pw as P,qh as Q,uI as R,dI as S,Tw as T,Uh as U,V$2 as V,W$1 as W,br as X,Yu as Y,Zh as Z,Qb as _,EE as a,Fm as a$,AC as a0,kC as a1,W$3 as a2,vr$1 as a3,Ue$2 as a4,Ys$1 as a5,Zs$1 as a6,Kt$2 as a7,Te$2 as a8,Hl as a9,N$2 as aA,K$3 as aB,Be$3 as aC,aB as aD,Qe$2 as aE,Qs$1 as aF,oy as aG,se$1 as aH,pe$4 as aI,T$1 as aJ,my as aK,X$1 as aL,st$1 as aM,bt$3 as aN,en$2 as aO,je$3 as aP,ue$3 as aQ,he$5 as aR,qo$1 as aS,Y$3 as aT,Xb as aU,mg as aV,gg as aW,_C as aX,TC as aY,vC as aZ,D$2 as a_,k$2 as aa,Sn$3 as ab,_$2 as ac,F$1 as ad,Dr$1 as ae,ue$4 as af,Gm as ag,te$4 as ah,vw as ai,G$2 as aj,U$4 as ak,De$3 as al,Fe$3 as am,We$1 as an,Vl as ao,Ge$2 as ap,ww as aq,$e$3 as ar,Cw as as,F$4 as at,k$1 as au,ke$4 as av,$m as aw,$t as ax,OC as ay,xD as az,Wu as b,io$1 as b$,J$1 as b0,Ne$3 as b1,A$3 as b2,z$3 as b3,xe$3 as b4,ql as b5,We$2 as b6,Tn$3 as b7,Nu as b8,Vu as b9,X$2 as bA,Tg as bB,qs$1 as bC,ri$2 as bD,W$2 as bE,$e$2 as bF,at$2 as bG,Gi$1 as bH,pt$3 as bI,xe$1 as bJ,Wm as bK,en$1 as bL,Fh as bM,CC as bN,Qh as bO,he$6 as bP,we$1 as bQ,L$1 as bR,Zn$2 as bS,Os$1 as bT,gt$2 as bU,_t$3 as bV,Ke$2 as bW,Mo$1 as bX,Rh as bY,Cs$1 as bZ,Ve$3 as b_,ut$2 as ba,zw as bb,Kh as bc,Hw as bd,Uw as be,gb as bf,jw as bg,Bw as bh,sB as bi,Ni$2 as bj,di$2 as bk,cB as bl,uB as bm,Jh as bn,$w as bo,Ll as bp,T$4 as bq,Bu as br,ui$3 as bs,He$3 as bt,ap as bu,lo$1 as bv,Fg as bw,QD as bx,Ea as by,ft$4 as bz,Gh as c,ne$2 as c$,si$2 as c0,qm as c1,na$1 as c2,B$1 as c3,Yd as c4,lr$1 as c5,mt$3 as c6,ee$5 as c7,Yl as c8,Cn$2 as c9,ly as cA,Yo$1 as cB,dr$1 as cC,ie$2 as cD,be$4 as cE,we$3 as cF,He$2 as cG,oe$2 as cH,Mn$2 as cI,_e$4 as cJ,Kb as cK,gB as cL,Le$2 as cM,Ym as cN,jl as cO,dy as cP,gy as cQ,yy as cR,Ul as cS,hy as cT,ye$4 as cU,lB as cV,fe$4 as cW,ay as cX,ea$1 as cY,qb as cZ,ze$2 as c_,Ht as ca,yn$1 as cb,Ft$1 as cc,yI as cd,wi$2 as ce,v as cf,Ln$2 as cg,Xs$1 as ch,ht$3 as ci,sy as cj,vs$1 as ck,hn$1 as cl,ci$3 as cm,ou as cn,iw as co,Ve$2 as cp,or$1 as cq,v$1 as cr,me$4 as cs,Wb as ct,kh as cu,zh as cv,FC as cw,ta as cx,Km as cy,Ks$1 as cz,Bh as d,HC as d0,te$3 as d1,ae$2 as d2,Je$2 as d3,Qd as d4,fe$5 as d5,mB as d6,Ye$1 as d7,Ke$3 as d8,dn$1 as d9,x as da,Oe$2 as db,ee$4 as dc,ce as dd,pt$2 as de,DC as df,SC as dg,pg as dh,MC as di,hg as dj,dB as dk,Xh as dl,de$4 as dm,fg as dn,ee$3 as e,fC as f,g,BC as h,bw as i,f$1 as j,bC as k,lg as l,go$1 as m,Aw as n,os as o,pe$5 as p,Pd as q,rg as r,sf as s,tC as t,ng as u,L$3 as v,we$4 as w,U$2 as x,y,zu as z};
|