diff --git a/frontend/dist/frontend/index.html b/frontend/dist/frontend/index.html index d2196abc..959b3653 100644 --- a/frontend/dist/frontend/index.html +++ b/frontend/dist/frontend/index.html @@ -44,6 +44,6 @@ }); - + \ No newline at end of file diff --git a/frontend/dist/frontend/main.cb75d6954a204369.js b/frontend/dist/frontend/main.ea5d448777f93853.js similarity index 96% rename from frontend/dist/frontend/main.cb75d6954a204369.js rename to frontend/dist/frontend/main.ea5d448777f93853.js index fd8aa6c0..422eb458 100644 --- a/frontend/dist/frontend/main.cb75d6954a204369.js +++ b/frontend/dist/frontend/main.ea5d448777f93853.js @@ -1 +1 @@ -"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[179],{218:()=>{function ye(e){return"function"==typeof e}function Er(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Kr=Er(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Sr(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class et{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const i of t)i.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(ye(r))try{r()}catch(i){n=i instanceof Kr?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Qn(i)}catch(s){n=n??[],s instanceof Kr?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Kr(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Qn(n);else{if(n instanceof et){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Sr(t,n)}remove(n){const{_finalizers:t}=this;t&&Sr(t,n),n instanceof et&&n._removeParent(this)}}et.EMPTY=(()=>{const e=new et;return e.closed=!0,e})();const Ei=et.EMPTY;function sa(e){return e instanceof et||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function Qn(e){ye(e)?e():e.unsubscribe()}const Ir={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mo={setTimeout(e,n,...t){const{delegate:r}=mo;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=mo;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Pu(e){mo.setTimeout(()=>{const{onUnhandledError:n}=Ir;if(!n)throw e;n(e)})}function aa(){}const Ou=Si("C",void 0,void 0);function Si(e,n,t){return{kind:e,value:n,error:t}}let Xn=null;function Nn(e){if(Ir.useDeprecatedSynchronousErrorHandling){const n=!Xn;if(n&&(Xn={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Xn;if(Xn=null,t)throw r}}else e()}class _o extends et{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,sa(n)&&n.add(this)):this.destination=Ti}static create(n,t,r){return new Jn(n,t,r)}next(n){this.isStopped?Ii(function Vu(e){return Si("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Ii(function Lu(e){return Si("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Ii(Ou,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const la=Function.prototype.bind;function vo(e,n){return la.call(e,n)}class ua{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Gt(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Gt(r)}else Gt(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Gt(t)}}}class Jn extends _o{constructor(n,t,r){let o;if(super(),ye(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&Ir.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&vo(n.next,i),error:n.error&&vo(n.error,i),complete:n.complete&&vo(n.complete,i)}):o=n}this.destination=new ua(o)}}function Gt(e){Ir.useDeprecatedSynchronousErrorHandling?function Bu(e){Ir.useDeprecatedSynchronousErrorHandling&&Xn&&(Xn.errorThrown=!0,Xn.error=e)}(e):Pu(e)}function Ii(e,n){const{onStoppedNotification:t}=Ir;t&&mo.setTimeout(()=>t(e,n))}const Ti={closed:!0,next:aa,error:function ca(e){throw e},complete:aa},Mi="function"==typeof Symbol&&Symbol.observable||"@@observable";function er(e){return e}function fa(e){return 0===e.length?er:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}let be=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const i=function Uu(e){return e&&e instanceof _o||function ju(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}(e)&&sa(e)}(t)?t:new Jn(t,r,o);return Nn(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=ha(r))((o,i)=>{const s=new Jn({next:a=>{try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Mi](){return this}pipe(...t){return fa(t)(this)}toPromise(t){return new(t=ha(t))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function ha(e){var n;return null!==(n=e??Ir.Promise)&&void 0!==n?n:Promise}const $u=Er(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let zt=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new pa(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new $u}next(t){Nn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Nn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Nn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Ei:(this.currentObservers=null,i.push(t),new et(()=>{this.currentObservers=null,Sr(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new be;return t.source=this,t}}return e.create=(n,t)=>new pa(n,t),e})();class pa extends zt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:Ei}}function Ai(e){return ye(e?.lift)}function tt(e){return n=>{if(Ai(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function nt(e,n,t,r,o){return new Hu(e,n,t,r,o)}class Hu extends _o{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ie(e,n){return tt((t,r)=>{let o=0;t.subscribe(nt(r,i=>{r.next(e.call(n,i,o++))}))})}function Lt(e){return this instanceof Lt?(this.v=e,this):new Lt(e)}function Fi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function q(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const _p=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function vp(e){return ye(e?.then)}function yp(e){return ye(e[Mi])}function bp(e){return Symbol.asyncIterator&&ye(e?.[Symbol.asyncIterator])}function Cp(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const wp=function lD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Dp(e){return ye(e?.[wp])}function Ep(e){return function Yr(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(g){r[g]&&(o[g]=function(m){return new Promise(function(y,M){i.push([g,m,y,M])>1||a(g,m)})})}function a(g,m){try{!function l(g){g.value instanceof Lt?Promise.resolve(g.value.v).then(u,c):d(i[0][2],g)}(r[g](m))}catch(y){d(i[0][3],y)}}function u(g){a("next",g)}function c(g){a("throw",g)}function d(g,m){g(m),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield Lt(t.read());if(o)return yield Lt(void 0);yield yield Lt(r)}}finally{t.releaseLock()}})}function Sp(e){return ye(e?.getReader)}function an(e){if(e instanceof be)return e;if(null!=e){if(yp(e))return function uD(e){return new be(n=>{const t=e[Mi]();if(ye(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(_p(e))return function cD(e){return new be(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Pu)})}(e);if(bp(e))return Ip(e);if(Dp(e))return function fD(e){return new be(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Sp(e))return function hD(e){return Ip(Ep(e))}(e)}throw Cp(e)}function Ip(e){return new be(n=>{(function pD(e,n){var t,r,o,i;return function C(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Fi(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function tr(e,n,t,r=0,o=!1){const i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function _t(e,n,t=1/0){return ye(n)?_t((r,o)=>ie((i,s)=>n(r,i,o,s))(an(e(r,o))),t):("number"==typeof n&&(t=n),tt((r,o)=>function gD(e,n,t,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const g=()=>{d&&!l.length&&!u&&n.complete()},m=M=>u{i&&n.next(M),u++;let k=!1;an(t(M,c++)).subscribe(nt(n,R=>{o?.(R),i?m(R):n.next(R)},()=>{k=!0},void 0,()=>{if(k)try{for(u--;l.length&&uy(R)):y(R)}g()}catch(R){n.error(R)}}))};return e.subscribe(nt(n,m,()=>{d=!0,g()})),()=>{a?.()}}(r,o,e,t)))}function Co(e=1/0){return _t(er,e)}const Pn=new be(e=>e.complete());function Tp(e){return e&&ye(e.schedule)}function qu(e){return e[e.length-1]}function Mp(e){return ye(qu(e))?e.pop():void 0}function Ri(e){return Tp(qu(e))?e.pop():void 0}function Ap(e,n=0){return tt((t,r)=>{t.subscribe(nt(r,o=>tr(r,e,()=>r.next(o),n),()=>tr(r,e,()=>r.complete(),n),o=>tr(r,e,()=>r.error(o),n)))})}function xp(e,n=0){return tt((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function kp(e,n){if(!e)throw new Error("Iterable cannot be null");return new be(t=>{tr(t,n,()=>{const r=e[Symbol.asyncIterator]();tr(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function rt(e,n){return n?function DD(e,n){if(null!=e){if(yp(e))return function vD(e,n){return an(e).pipe(xp(n),Ap(n))}(e,n);if(_p(e))return function bD(e,n){return new be(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(vp(e))return function yD(e,n){return an(e).pipe(xp(n),Ap(n))}(e,n);if(bp(e))return kp(e,n);if(Dp(e))return function CD(e,n){return new be(t=>{let r;return tr(t,n,()=>{r=e[wp](),tr(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void t.error(s)}i?t.complete():t.next(o)},0,!0)}),()=>ye(r?.return)&&r.return()})}(e,n);if(Sp(e))return function wD(e,n){return kp(Ep(e),n)}(e,n)}throw Cp(e)}(e,n):an(e)}function Fp(e={}){const{connector:n=(()=>new zt),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const g=()=>{a?.unsubscribe(),a=void 0},m=()=>{g(),s=l=void 0,c=d=!1},y=()=>{const M=s;m(),M?.unsubscribe()};return tt((M,k)=>{u++,!d&&!c&&g();const R=l=l??n();k.add(()=>{u--,0===u&&!d&&!c&&(a=Wu(y,o))}),R.subscribe(k),!s&&u>0&&(s=new Jn({next:H=>R.next(H),error:H=>{d=!0,g(),a=Wu(m,t,H),R.error(H)},complete:()=>{c=!0,g(),a=Wu(m,r),R.complete()}}),an(M).subscribe(s))})(i)}}function Wu(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new Jn({next:()=>{r.unsubscribe(),e()}});return an(n(...t)).subscribe(r)}function Re(e){for(let n in e)if(e[n]===Re)return n;throw Error("Could not find renamed property on target object.")}function Ku(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Pe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Pe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Yu(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const SD=Re({__forward_ref__:Re});function Oe(e){return e.__forward_ref__=Oe,e.toString=function(){return Pe(this())},e}function J(e){return Zu(e)?e():e}function Zu(e){return"function"==typeof e&&e.hasOwnProperty(SD)&&e.__forward_ref__===Oe}function Qu(e){return e&&!!e.\u0275providers}const Rp="https://g.co/ng/security#xss";class L extends Error{constructor(n,t){super(_a(n,t)),this.code=n}}function _a(e,n){return`NG0${Math.abs(e)}${n?": "+n.trim():""}`}function se(e){return"string"==typeof e?e:null==e?"":String(e)}function va(e,n){throw new L(-201,!1)}function ln(e,n){null==e&&function De(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function j(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Wt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ya(e){return Np(e,ba)||Np(e,Op)}function Np(e,n){return e.hasOwnProperty(n)?e[n]:null}function Pp(e){return e&&(e.hasOwnProperty(Xu)||e.hasOwnProperty(ND))?e[Xu]:null}const ba=Re({\u0275prov:Re}),Xu=Re({\u0275inj:Re}),Op=Re({ngInjectableDef:Re}),ND=Re({ngInjectorDef:Re});var ee=(()=>((ee=ee||{})[ee.Default=0]="Default",ee[ee.Host=1]="Host",ee[ee.Self=2]="Self",ee[ee.SkipSelf=4]="SkipSelf",ee[ee.Optional=8]="Optional",ee))();let Ju;function un(e){const n=Ju;return Ju=e,n}function Lp(e,n,t){const r=ya(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ee.Optional?null:void 0!==n?n:void va(Pe(e))}const Be=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ni={},ec="__NG_DI_FLAG__",Ca="ngTempTokenPath",OD="ngTokenPath",LD=/\n/gm,VD="\u0275",Vp="__source";let Pi;function wo(e){const n=Pi;return Pi=e,n}function BD(e,n=ee.Default){if(void 0===Pi)throw new L(-203,!1);return null===Pi?Lp(e,void 0,n):Pi.get(e,n&ee.Optional?null:void 0,n)}function $(e,n=ee.Default){return(function PD(){return Ju}()||BD)(J(e),n)}function he(e,n=ee.Default){return $(e,wa(n))}function wa(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function tc(e){const n=[];for(let t=0;t((On=On||{})[On.OnPush=0]="OnPush",On[On.Default=1]="Default",On))(),Ln=(()=>{return(e=Ln||(Ln={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ln;var e})();const rr={},Ce=[],Da=Re({\u0275cmp:Re}),nc=Re({\u0275dir:Re}),rc=Re({\u0275pipe:Re}),jp=Re({\u0275mod:Re}),or=Re({\u0275fac:Re}),Li=Re({__NG_ELEMENT_ID__:Re});let HD=0;function ce(e){return nr(()=>{const n=$p(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===On.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ln.Emulated,id:"c"+HD++,styles:e.styles||Ce,_:null,schemas:e.schemas||null,tView:null};Hp(t);const r=e.dependencies;return t.directiveDefs=Ea(r,!1),t.pipeDefs=Ea(r,!0),t})}function zD(e){return Ee(e)||wt(e)}function qD(e){return null!==e}function cn(e){return nr(()=>({type:e.type,bootstrap:e.bootstrap||Ce,declarations:e.declarations||Ce,imports:e.imports||Ce,exports:e.exports||Ce,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Up(e,n){if(null==e)return rr;const t={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),t[o]=r,n&&(n[o]=i)}return t}function oe(e){return nr(()=>{const n=$p(e);return Hp(n),n})}function At(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ee(e){return e[Da]||null}function wt(e){return e[nc]||null}function Vt(e){return e[rc]||null}function Kt(e,n){const t=e[jp]||null;if(!t&&!0===n)throw new Error(`Type ${Pe(e)} does not have '\u0275mod' property.`);return t}function $p(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||Ce,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Up(e.inputs,n),outputs:Up(e.outputs)}}function Hp(e){e.features?.forEach(n=>n(e))}function Ea(e,n){if(!e)return null;const t=n?Vt:zD;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(qD)}const ir=0,z=1,de=2,ze=3,Cn=4,Zr=5,Dt=6,Eo=7,Ke=8,Sa=9,Ia=10,pe=11,oc=12,Vi=13,Gp=14,So=15,Et=16,Bi=17,Io=18,Vn=19,ji=20,zp=21,je=22,ic=1,qp=2,Ta=7,Ma=8,To=9,xt=10;function Yt(e){return Array.isArray(e)&&"object"==typeof e[ic]}function wn(e){return Array.isArray(e)&&!0===e[ic]}function sc(e){return 0!=(4&e.flags)}function Ui(e){return e.componentOffset>-1}function Aa(e){return 1==(1&e.flags)}function Dn(e){return!!e.template}function KD(e){return 0!=(256&e[de])}function Qr(e,n){return e.hasOwnProperty(or)?e[or]:null}class QD{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Zt(){return Yp}function Yp(e){return e.type.prototype.ngOnChanges&&(e.setInput=JD),XD}function XD(){const e=Qp(this),n=e?.current;if(n){const t=e.previous;if(t===rr)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function JD(e,n,t,r){const o=this.declaredInputs[t],i=Qp(e)||function e0(e,n){return e[Zp]=n}(e,{previous:rr,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new QD(l&&l.currentValue,n,a===rr),e[r]=n}Zt.ngInherit=!0;const Zp="__ngSimpleChanges__";function Qp(e){return e[Zp]||null}const dn=function(e,n,t){},Xp="svg";function vt(e){for(;Array.isArray(e);)e=e[ir];return e}function xa(e,n){return vt(n[e])}function Qt(e,n){return vt(n[e.index])}function eg(e,n){return e.data[n]}function Mo(e,n){return e[n]}function Xt(e,n){const t=n[e];return Yt(t)?t:t[ir]}function ka(e){return 64==(64&e[de])}function Mr(e,n){return null==n?null:e[n]}function tg(e){e[Io]=0}function lc(e,n){e[Zr]+=n;let t=e,r=e[ze];for(;null!==r&&(1===n&&1===t[Zr]||-1===n&&0===t[Zr]);)r[Zr]+=n,t=r,r=r[ze]}const ae={lFrame:dg(null),bindingsEnabled:!0};function rg(){return ae.bindingsEnabled}function P(){return ae.lFrame.lView}function _e(){return ae.lFrame.tView}function V(e){return ae.lFrame.contextLView=e,e[Ke]}function B(e){return ae.lFrame.contextLView=null,e}function yt(){let e=og();for(;null!==e&&64===e.type;)e=e.parent;return e}function og(){return ae.lFrame.currentTNode}function Bn(e,n){const t=ae.lFrame;t.currentTNode=e,t.isParent=n}function uc(){return ae.lFrame.isParent}function cc(){ae.lFrame.isParent=!1}function kt(){const e=ae.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Ao(){return ae.lFrame.bindingIndex++}function ar(e){const n=ae.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function p0(e,n){const t=ae.lFrame;t.bindingIndex=t.bindingRootIndex=e,dc(n)}function dc(e){ae.lFrame.currentDirectiveIndex=e}function lg(){return ae.lFrame.currentQueryIndex}function hc(e){ae.lFrame.currentQueryIndex=e}function m0(e){const n=e[z];return 2===n.type?n.declTNode:1===n.type?e[Dt]:null}function ug(e,n,t){if(t&ee.SkipSelf){let o=n,i=e;for(;!(o=o.parent,null!==o||t&ee.Host||(o=m0(i),null===o||(i=i[So],10&o.type))););if(null===o)return!1;n=o,e=i}const r=ae.lFrame=cg();return r.currentTNode=n,r.lView=e,!0}function pc(e){const n=cg(),t=e[z];ae.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function cg(){const e=ae.lFrame,n=null===e?null:e.child;return null===n?dg(e):n}function dg(e){const n={currentTNode:null,isParent:!0,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:!1};return null!==e&&(e.child=n),n}function fg(){const e=ae.lFrame;return ae.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const hg=fg;function gc(){const e=fg();e.isParent=!0,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 Ft(){return ae.lFrame.selectedIndex}function Xr(e){ae.lFrame.selectedIndex=e}function He(){const e=ae.lFrame;return eg(e.tView,e.selectedIndex)}function mc(){ae.lFrame.currentNamespace=Xp}function _c(){!function b0(){ae.lFrame.currentNamespace=null}()}function Fa(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[l]<0&&(e[Io]+=65536),(a>11>16&&(3&e[de])===n){e[de]+=2048,dn(4,a,i);try{i.call(a)}finally{dn(5,a,i)}}}else{dn(4,a,i);try{i.call(a)}finally{dn(5,a,i)}}}const xo=-1;class Hi{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function bc(e,n,t){let r=0;for(;rn){s=i-1;break}}}for(;i>16}(e),r=n;for(;t>0;)r=r[So],t--;return r}let Cc=!0;function La(e){const n=Cc;return Cc=e,n}const yg=255,bg=5;let M0=0;const jn={};function Va(e,n){const t=Cg(e,n);if(-1!==t)return t;const r=n[z];r.firstCreatePass&&(e.injectorIndex=n.length,wc(r.data,e),wc(n,null),wc(r.blueprint,null));const o=Dc(e,n),i=e.injectorIndex;if(vg(o)){const s=Pa(o),a=Oa(o,n),l=a[z].data;for(let u=0;u<8;u++)n[i+u]=a[s+u]|l[s+u]}return n[i+8]=o,i}function wc(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Cg(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Dc(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=Mg(o),null===r)return xo;if(t++,o=o[So],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return xo}function Ec(e,n,t){!function A0(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Li)&&(r=t[Li]),null==r&&(r=t[Li]=M0++);const o=r&yg;n.data[e+(o>>bg)]|=1<=0?n&yg:R0:n}(t);if("function"==typeof i){if(!ug(n,e,r))return r&ee.Host?wg(o,0,r):Dg(n,t,r,o);try{const s=i(r);if(null!=s||r&ee.Optional)return s;va()}finally{hg()}}else if("number"==typeof i){let s=null,a=Cg(e,n),l=xo,u=r&ee.Host?n[Et][Dt]:null;for((-1===a||r&ee.SkipSelf)&&(l=-1===a?Dc(e,n):n[a+8],l!==xo&&Tg(r,!1)?(s=n[z],a=Pa(l),n=Oa(l,n)):a=-1);-1!==a;){const c=n[z];if(Ig(i,a,c.data)){const d=k0(a,n,t,s,r,u);if(d!==jn)return d}l=n[a+8],l!==xo&&Tg(r,n[z].data[a+8]===u)&&Ig(i,a,n)?(s=c,a=Pa(l),n=Oa(l,n)):a=-1}}return o}function k0(e,n,t,r,o,i){const s=n[z],a=s.data[e+8],c=Ba(a,s,t,null==r?Ui(a)&&Cc:r!=s&&0!=(3&a.type),o&ee.Host&&i===a);return null!==c?Jr(n,s,c,a):jn}function Ba(e,n,t,r,o){const i=e.providerIndexes,s=n.data,a=1048575&i,l=e.directiveStart,c=i>>20,g=o?a+c:e.directiveEnd;for(let m=r?a:a+c;m=l&&y.type===t)return m}if(o){const m=s[l];if(m&&Dn(m)&&m.type===t)return l}return null}function Jr(e,n,t,r){let o=e[t];const i=n.data;if(function E0(e){return e instanceof Hi}(o)){const s=o;s.resolving&&function ID(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new L(-200,`Circular dependency in DI detected for ${e}${t}`)}(function we(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():se(e)}(i[t]));const a=La(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?un(s.injectImpl):null;ug(e,r,ee.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&function w0(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=Yp(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}o&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,o),i&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,i),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,i))}(t,i[t],n)}finally{null!==l&&un(l),La(a),s.resolving=!1,hg()}}return o}function Ig(e,n,t){return!!(t[n+(e>>bg)]&1<{const n=e.prototype.constructor,t=n[or]||Sc(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[or]||Sc(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Sc(e){return Zu(e)?()=>{const n=Sc(J(e));return n&&n()}:Qr(e)}function Mg(e){const n=e[z],t=n.type;return 2===t?n.declTNode:1===t?e[Dt]:null}const Ro="__parameters__";function Po(e,n,t){return nr(()=>{const r=function Ic(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Ro)?l[Ro]:Object.defineProperty(l,Ro,{value:[]})[Ro];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class W{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=j({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function eo(e,n){e.forEach(t=>Array.isArray(t)?eo(t,n):n(t))}function xg(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Ua(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Jt(e,n,t){let r=Oo(e,n);return r>=0?e[1|r]=t:(r=~r,function V0(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Mc(e,n){const t=Oo(e,n);if(t>=0)return e[1|t]}function Oo(e,n){return function kg(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const i=r+(o-r>>1),s=e[i<n?o=i:r=i+1}return~(o<((Bt=Bt||{})[Bt.Important=1]="Important",Bt[Bt.DashCase=2]="DashCase",Bt))();const Nc=new Map;let sE=0;const Oc="__ngContext__";function St(e,n){Yt(n)?(e[Oc]=n[ji],function lE(e){Nc.set(e[ji],e)}(n)):e[Oc]=n}let Lc;function Vc(e,n){return Lc(e,n)}function Ji(e){const n=e[ze];return wn(n)?n[ze]:n}function Bc(e){return Qg(e[Vi])}function jc(e){return Qg(e[Cn])}function Qg(e){for(;null!==e&&!wn(e);)e=e[Cn];return e}function Vo(e,n,t,r,o){if(null!=r){let i,s=!1;wn(r)?i=r:Yt(r)&&(s=!0,r=r[ir]);const a=vt(r);0===e&&null!==t?null==o?rm(n,t,a):to(n,t,a,o||null,!0):1===e&&null!==t?to(n,t,a,o||null,!0):2===e?function Wc(e,n,t){const r=za(e,n);r&&function ME(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=i&&function kE(e,n,t,r,o){const i=t[Ta];i!==vt(t)&&Vo(n,e,r,i,o);for(let a=xt;a0&&(e[t-1][Cn]=r[Cn]);const i=Ua(e,xt+n);!function bE(e,n){es(e,n,n[pe],2,null,null),n[ir]=null,n[Dt]=null}(r[z],r);const s=i[Vn];null!==s&&s.detachView(i[z]),r[ze]=null,r[Cn]=null,r[de]&=-65}return r}function em(e,n){if(!(128&n[de])){const t=n[pe];t.destroyNode&&es(e,n,t,3,null,null),function DE(e){let n=e[Vi];if(!n)return Gc(e[z],e);for(;n;){let t=null;if(Yt(n))t=n[Vi];else{const r=n[xt];r&&(t=r)}if(!t){for(;n&&!n[Cn]&&n!==e;)Yt(n)&&Gc(n[z],n),n=n[ze];null===n&&(n=e),Yt(n)&&Gc(n[z],n),t=n&&n[Cn]}n=t}}(n)}}function Gc(e,n){if(!(128&n[de])){n[de]&=-65,n[de]|=128,function TE(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[o=s]():r[o=-s].unsubscribe(),i+=2}else{const s=r[o=t[i+1]];t[i].call(s)}if(null!==r){for(let i=o+1;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ln.None||i===Ln.Emulated)return null}return Qt(r,t)}}(e,n.parent,t)}function to(e,n,t,r,o){e.insertBefore(n,t,r,o)}function rm(e,n,t){e.appendChild(n,t)}function om(e,n,t,r,o){null!==r?to(e,n,t,r,o):rm(e,n,t)}function za(e,n){return e.parentNode(n)}let zc,Zc,Ya,am=function sm(e,n,t){return 40&e.type?Qt(e,t):null};function qa(e,n,t,r){const o=tm(e,r,n),i=n[pe],a=function im(e,n,t){return am(e,n,t)}(r.parent||n[Dt],r,n);if(null!=o)if(Array.isArray(t))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ya}()?.createScriptURL(e)||e}class _m{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rp})`}}function Ar(e){return e instanceof _m?e.changingThisBreaksApplicationSecurity:e}function ts(e,n){const t=function HE(e){return e instanceof _m&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Rp})`)}return t===n}const WE=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;var ot=(()=>((ot=ot||{})[ot.NONE=0]="NONE",ot[ot.HTML=1]="HTML",ot[ot.STYLE=2]="STYLE",ot[ot.SCRIPT=3]="SCRIPT",ot[ot.URL=4]="URL",ot[ot.RESOURCE_URL=5]="RESOURCE_URL",ot))();function Em(e){const n=rs();return n?n.sanitize(ot.URL,e)||"":ts(e,"URL")?Ar(e):function Xc(e){return(e=String(e)).match(WE)?e:"unsafe:"+e}(se(e))}function Sm(e){const n=rs();if(n)return mm(n.sanitize(ot.RESOURCE_URL,e)||"");if(ts(e,"ResourceURL"))return mm(Ar(e));throw new L(904,!1)}function rs(){const e=P();return e&&e[oc]}const Qa=new W("ENVIRONMENT_INITIALIZER"),Tm=new W("INJECTOR",-1),Mm=new W("INJECTOR_DEF_TYPES");class Am{get(n,t=Ni){if(t===Ni){const r=new Error(`NullInjectorError: No provider for ${Pe(n)}!`);throw r.name="NullInjectorError",r}return t}}function aS(...e){return{\u0275providers:xm(0,e),\u0275fromNgModule:!0}}function xm(e,...n){const t=[],r=new Set;let o;return eo(n,i=>{const s=i;nd(s,t,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&km(o,t),t}function km(e,n){for(let t=0;t{n.push(i)})}}function nd(e,n,t,r){if(!(e=J(e)))return!1;let o=null,i=Pp(e);const s=!i&&Ee(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Pp(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)nd(u,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{eo(i.imports,c=>{nd(c,n,t,r)&&(u||(u=[]),u.push(c))})}finally{}void 0!==u&&km(u,n)}if(!a){const u=Qr(o)||(()=>new o);n.push({provide:o,useFactory:u,deps:Ce},{provide:Mm,useValue:o,multi:!0},{provide:Qa,useValue:()=>$(o),multi:!0})}const l=i.providers;null==l||a||rd(l,c=>{n.push(c)})}}return o!==e&&void 0!==e.providers}function rd(e,n){for(let t of e)Qu(t)&&(t=t.\u0275providers),Array.isArray(t)?rd(t,n):n(t)}const lS=Re({provide:String,useValue:Re});function od(e){return null!==e&&"object"==typeof e&&lS in e}function no(e){return"function"==typeof e}const id=new W("Set Injector scope."),Xa={},cS={};let sd;function Ja(){return void 0===sd&&(sd=new Am),sd}class Un{}class Nm extends Un{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ld(n,s=>this.processProvider(s)),this.records.set(Tm,jo(void 0,this)),o.has("environment")&&this.records.set(Un,jo(void 0,this));const i=this.records.get(id);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Mm.multi,Ce,ee.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const t=wo(this),r=un(void 0);try{return n()}finally{wo(t),un(r)}}get(n,t=Ni,r=ee.Default){this.assertNotDestroyed(),r=wa(r);const o=wo(this),i=un(void 0);try{if(!(r&ee.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function gS(e){return"function"==typeof e||"object"==typeof e&&e instanceof W}(n)&&ya(n);a=l&&this.injectableDefInScope(l)?jo(ad(n),Xa):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&ee.Self?Ja():this.parent).get(n,t=r&ee.Optional&&t===Ni?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Ca]=s[Ca]||[]).unshift(Pe(n)),o)throw s;return function UD(e,n,t,r){const o=e[Ca];throw n[Vp]&&o.unshift(n[Vp]),e.message=function $D(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==VD?e.slice(2):e;let o=Pe(n);if(Array.isArray(n))o=n.map(Pe).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Pe(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(LD,"\n ")}`}("\n"+e.message,o,t,r),e[OD]=o,e[Ca]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{un(i),wo(o)}}resolveInjectorInitializers(){const n=wo(this),t=un(void 0);try{const r=this.get(Qa.multi,Ce,ee.Self);for(const o of r)o()}finally{wo(n),un(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Pe(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new L(205,!1)}processProvider(n){let t=no(n=J(n))?n:J(n&&n.provide);const r=function fS(e){return od(e)?jo(void 0,e.useValue):jo(Pm(e),Xa)}(n);if(no(n)||!0!==n.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=jo(void 0,Xa,!0),o.factory=()=>tc(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===Xa&&(t.value=cS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function pS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=J(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function ad(e){const n=ya(e),t=null!==n?n.factory:Qr(e);if(null!==t)return t;if(e instanceof W)throw new L(204,!1);if(e instanceof Function)return function dS(e){const n=e.length;if(n>0)throw function Wi(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new L(204,!1)}function Pm(e,n,t){let r;if(no(e)){const o=J(e);return Qr(o)||ad(o)}if(od(e))r=()=>J(e.useValue);else if(function Rm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...tc(e.deps||[]));else if(function Fm(e){return!(!e||!e.useExisting)}(e))r=()=>$(J(e.useExisting));else{const o=J(e&&(e.useClass||e.provide));if(!function hS(e){return!!e.deps}(e))return Qr(o)||ad(o);r=()=>new o(...tc(e.deps))}return r}function jo(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function ld(e,n){for(const t of e)Array.isArray(t)?ld(t,n):t&&Qu(t)?ld(t.\u0275providers,n):n(t)}class mS{}class Om{}class vS{resolveComponentFactory(n){throw function _S(e){const n=Error(`No component factory found for ${Pe(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let os=(()=>{class e{}return e.NULL=new vS,e})();function yS(){return Uo(yt(),P())}function Uo(e,n){return new Ut(Qt(e,n))}let Ut=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=yS,e})();function bS(e){return e instanceof Ut?e.nativeElement:e}class Vm{}let ur=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function CS(){const e=P(),t=Xt(yt().index,e);return(Yt(t)?t:e)[pe]}(),e})(),wS=(()=>{class e{}return e.\u0275prov=j({token:e,providedIn:"root",factory:()=>null}),e})();class is{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const DS=new is("15.2.5"),ud={},cd="ngOriginalError";function dd(e){return e[cd]}class $o{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&dd(n);for(;t&&dd(t);)t=dd(t);return t||null}}function cr(e){return e instanceof Function?e():e}function jm(e,n,t){let r=e.length;for(;;){const o=e.indexOf(n,t);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=n.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}t=o+1}}const Um="ng-template";function NS(e,n,t){let r=0,o=!0;for(;ri?"":o[d+1].toLowerCase();const m=8&r?g:null;if(m&&-1!==jm(m,u,0)||2&r&&u!==g){if(En(r))return!1;s=!0}}}}else{if(!s&&!En(r)&&!En(l))return!1;if(s&&En(l))continue;s=!1,r=l|1&r}}return En(r)||s}function En(e){return 0==(1&e)}function LS(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let i=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!En(s)&&(n+=Gm(i,o),o=""),r=s,i=i||!En(r);t++}return""!==o&&(n+=Gm(i,o)),n}const le={};function f(e){zm(_e(),P(),Ft()+e,!1)}function zm(e,n,t,r){if(!r)if(3==(3&n[de])){const i=e.preOrderCheckHooks;null!==i&&Ra(n,i,t)}else{const i=e.preOrderHooks;null!==i&&Na(n,i,0,t)}Xr(t)}function Ym(e,n=null,t=null,r){const o=Zm(e,n,t,r);return o.resolveInjectorInitializers(),o}function Zm(e,n=null,t=null,r,o=new Set){const i=[t||Ce,aS(e)];return r=r||("object"==typeof e?void 0:Pe(e)),new Nm(i,n||Ja(),r||null,o)}let $n=(()=>{class e{static create(t,r){if(Array.isArray(t))return Ym({name:""},r,t,"");{const o=t.name??"";return Ym({name:o},t.parent,t.providers,o)}}}return e.THROW_IF_NOT_FOUND=Ni,e.NULL=new Am,e.\u0275prov=j({token:e,providedIn:"any",factory:()=>$(Tm)}),e.__NG_ELEMENT_ID__=-1,e})();function T(e,n=ee.Default){const t=P();return null===t?$(e,n):Eg(yt(),t,J(e),n)}function o_(e,n){const t=e.contentQueries;if(null!==t)for(let r=0;rje&&zm(e,n,je,!1),dn(s?2:0,o),t(r,o)}finally{Xr(i),dn(s?3:1,o)}}function vd(e,n,t){if(sc(n)){const o=n.directiveEnd;for(let i=n.directiveStart;i0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,i)}}(e,n,r,ss(e,t,o.hostVars,le),o)}function Hn(e,n,t,r,o,i){const s=Qt(e,n);!function Ed(e,n,t,r,o,i,s){if(null==i)e.removeAttribute(n,o,t);else{const a=null==s?se(i):s(i,r||"",o);e.setAttribute(n,o,a,t)}}(n[pe],s,i,e.value,t,r,o)}function MI(e,n,t,r,o,i){const s=i[n];if(null!==s){const a=r.setInput;for(let l=0;l0&&Sd(t)}}function Sd(e){for(let r=Bc(e);null!==r;r=jc(r))for(let o=xt;o0&&Sd(i)}const t=e[z].components;if(null!==t)for(let r=0;r0&&Sd(o)}}function RI(e,n){const t=Xt(n,e),r=t[z];(function NI(e,n){for(let t=n.length;t-1&&(Hc(n,r),Ua(t,r))}this._attachedToViewContainer=!1}em(this._lView[z],this._lView)}onDestroy(n){a_(this._lView[z],this._lView,null,n)}markForCheck(){Id(this._cdRefInjectingView||this._lView)}detach(){this._lView[de]&=-65}reattach(){this._lView[de]|=64}detectChanges(){ol(this._lView[z],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new L(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function wE(e,n){es(e,n,n[pe],2,null,null)}(this._lView[z],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new L(902,!1);this._appRef=n}}class PI extends as{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;ol(n[z],n,n[Ke],!1)}checkNoChanges(){}get context(){return null}}class v_ extends os{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Ee(n);return new ls(t,this.ngModule)}}function y_(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class LI{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=wa(r);const o=this.injector.get(n,ud,r);return o!==ud||t===ud?o:this.parentInjector.get(n,t,r)}}class ls extends Om{get inputs(){return y_(this.componentDef.inputs)}get outputs(){return y_(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function HS(e){return e.map($S).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,o){let i=(o=o||this.ngModule)instanceof Un?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new LI(n,i):n,a=s.get(Vm,null);if(null===a)throw new L(407,!1);const l=s.get(wS,null),u=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function hI(e,n,t){return e.selectRootElement(n,t===Ln.ShadowDom)}(u,r,this.componentDef.encapsulation):$c(u,c,function OI(e){const n=e.toLowerCase();return"svg"===n?Xp:"math"===n?"math":null}(c)),g=this.componentDef.onPush?288:272,m=Cd(0,null,null,1,0,null,null,null,null,null),y=tl(null,m,null,g,null,null,a,u,l,s,null);let M,k;pc(y);try{const R=this.componentDef;let H,F=null;R.findHostDirectiveDefs?(H=[],F=new Map,R.findHostDirectiveDefs(R,H,F),H.push(R)):H=[R];const X=function BI(e,n){const t=e[z],r=je;return e[r]=n,zo(t,r,2,"#host",null)}(y,d),Ne=function jI(e,n,t,r,o,i,s,a){const l=o[z];!function UI(e,n,t,r){for(const o of e)n.mergedAttrs=Gi(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(il(n,n.mergedAttrs,!0),null!==t&&fm(r,t,n))}(r,e,n,s);const u=i.createRenderer(n,t),c=tl(o,s_(t),null,t.onPush?32:16,o[e.index],e,i,u,a||null,null,null);return l.firstCreatePass&&Dd(l,e,r.length-1),rl(o,c),o[e.index]=c}(X,d,R,H,y,a,u);k=eg(m,je),d&&function HI(e,n,t,r){if(r)bc(e,t,["ng-version",DS.full]);else{const{attrs:o,classes:i}=function GS(e){const n=[],t=[];let r=1,o=2;for(;r0&&dm(e,t,i.join(" "))}}(u,R,d,r),void 0!==t&&function GI(e,n,t){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Gi(o.hostAttrs,t=Gi(t,o.hostAttrs))}}(r)}function Ad(e){return e===rr?{}:e===Ce?[]:e}function WI(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function KI(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,i)=>{n(r,o,i),t(r,o,i)}:n}function YI(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function al(e){return!!xd(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function xd(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Gn(e,n,t){return e[n]=t}function It(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function ro(e,n,t,r){const o=It(e,n,t);return It(e,n+1,r)||o}function ve(e,n,t,r){const o=P();return It(o,Ao(),n)&&(_e(),Hn(He(),o,e,n,t,r)),ve}function Wo(e,n,t,r){return It(e,Ao(),t)?n+se(t)+r:le}function Ko(e,n,t,r,o,i){const a=ro(e,function sr(){return ae.lFrame.bindingIndex}(),t,o);return ar(2),a?n+se(t)+r+se(o)+i:le}function x(e,n,t,r,o,i,s,a){const l=P(),u=_e(),c=e+je,d=u.firstCreatePass?function iT(e,n,t,r,o,i,s,a,l){const u=n.consts,c=zo(n,e,4,s||null,Mr(u,a));wd(n,t,c,Mr(u,l)),Fa(n,c);const d=c.tView=Cd(2,c,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u);return null!==n.queries&&(n.queries.template(n,c),d.queries=n.queries.embeddedTView(c)),c}(c,u,l,n,t,r,o,i,s):u.data[c];Bn(d,!1);const g=l[pe].createComment("");qa(u,l,g,d),St(g,l),rl(l,l[c]=h_(g,l,g,d)),Aa(d)&&yd(u,l,d),null!=s&&bd(l,d,a)}function Ue(e){return Mo(function f0(){return ae.lFrame.contextLView}(),je+e)}function _(e,n,t){const r=P();return It(r,Ao(),n)&&en(_e(),He(),r,e,n,r[pe],t,!1),_}function kd(e,n,t,r,o){const s=o?"class":"style";Md(e,t,n.inputs[s],s,r)}function h(e,n,t,r){const o=P(),i=_e(),s=je+e,a=o[pe],l=i.firstCreatePass?function aT(e,n,t,r,o,i){const s=n.consts,l=zo(n,e,2,r,Mr(s,o));return wd(n,t,l,Mr(s,i)),null!==l.attrs&&il(l,l.attrs,!1),null!==l.mergedAttrs&&il(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,i,o,n,t,r):i.data[s],u=o[s]=$c(a,n,function C0(){return ae.lFrame.currentNamespace}()),c=Aa(l);return Bn(l,!0),fm(a,u,l),32!=(32&l.flags)&&qa(i,o,u,l),0===function a0(){return ae.lFrame.elementDepthCount}()&&St(u,o),function l0(){ae.lFrame.elementDepthCount++}(),c&&(yd(i,o,l),vd(i,l,o)),null!==r&&bd(o,l),h}function p(){let e=yt();uc()?cc():(e=e.parent,Bn(e,!1));const n=e;!function u0(){ae.lFrame.elementDepthCount--}();const t=_e();return t.firstCreatePass&&(Fa(t,e),sc(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function S0(e){return 0!=(8&e.flags)}(n)&&kd(t,n,P(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function I0(e){return 0!=(16&e.flags)}(n)&&kd(t,n,P(),n.stylesWithoutHost,!1),p}function E(e,n,t,r){return h(e,n,t,r),p(),E}function Se(e,n,t){const r=P(),o=_e(),i=e+je,s=o.firstCreatePass?function lT(e,n,t,r,o){const i=n.consts,s=Mr(i,r),a=zo(n,e,8,"ng-container",s);return null!==s&&il(a,s,!0),wd(n,t,a,Mr(i,o)),null!==n.queries&&n.queries.elementStart(n,a),a}(i,o,r,n,t):o.data[i];Bn(s,!0);const a=r[i]=r[pe].createComment("");return qa(o,r,a,s),St(a,r),Aa(s)&&(yd(o,r,s),vd(o,s,r)),null!=t&&bd(r,s),Se}function Ie(){let e=yt();const n=_e();return uc()?cc():(e=e.parent,Bn(e,!1)),n.firstCreatePass&&(Fa(n,e),sc(e)&&n.queries.elementEnd(e)),Ie}function te(){return P()}function cs(e){return!!e&&"function"==typeof e.then}function N_(e){return!!e&&"function"==typeof e.subscribe}const Fd=N_;function O(e,n,t,r){const o=P(),i=_e(),s=yt();return function O_(e,n,t,r,o,i,s){const a=Aa(r),u=e.firstCreatePass&&g_(e),c=n[Ke],d=p_(n);let g=!0;if(3&r.type||s){const M=Qt(r,n),k=s?s(M):M,R=d.length,H=s?X=>s(vt(X[r.index])):r.index;let F=null;if(!s&&a&&(F=function uT(e,n,t,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,n,o,r.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=i,F.__ngLastListenerFn__=i,g=!1;else{i=V_(r,n,c,i,!1);const X=t.listen(k,o,i);d.push(i,X),u&&u.push(o,H,R,R+1)}}else i=V_(r,n,c,i,!1);const m=r.outputs;let y;if(g&&null!==m&&(y=m[o])){const M=y.length;if(M)for(let k=0;k-1?Xt(e.index,n):n);let l=L_(n,t,r,s),u=i.__ngNextListenerFn__;for(;u;)l=L_(n,t,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function S(e=1){return function _0(e){return(ae.lFrame.contextLView=function v0(e,n){for(;e>0;)n=n[So],e--;return n}(e,ae.lFrame.contextLView))[Ke]}(e)}function $t(e,n,t){return Rd(e,"",n,"",t),$t}function Rd(e,n,t,r,o){const i=P(),s=Wo(i,n,t,r);return s!==le&&en(_e(),He(),i,e,s,i[pe],o,!1),Rd}function ul(e,n){return e<<17|n<<2}function xr(e){return e>>17&32767}function Nd(e){return 2|e}function oo(e){return(131068&e)>>2}function Pd(e,n){return-131069&e|n<<2}function Od(e){return 1|e}function W_(e,n,t,r,o){const i=e[t+1],s=null===n;let a=r?xr(i):oo(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];vT(e[a],n)&&(l=!0,e[a+1]=r?Od(c):Nd(c)),a=r?xr(c):oo(c)}l&&(e[t+1]=r?Nd(i):Od(i))}function vT(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Oo(e,n)>=0}const dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function K_(e){return e.substring(dt.key,dt.keyEnd)}function Y_(e,n){const t=dt.textEnd;return t===n?-1:(n=dt.keyEnd=function wT(e,n,t){for(;n32;)n++;return n}(e,dt.key=n,t),ti(e,n,t))}function ti(e,n,t){for(;n=0;t=Y_(n,t))Jt(e,K_(n),!0)}function Sn(e,n,t,r){const o=P(),i=_e(),s=ar(2);i.firstUpdatePass&&nv(i,e,s,r),n!==le&&It(o,s,n)&&ov(i,i.data[Ft()],o,o[pe],e,o[s+1]=function FT(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Pe(Ar(e)))),e}(n,t),r,s)}function tv(e,n){return n>=e.expandoStartIndex}function nv(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[Ft()],s=tv(e,t);sv(i,r)&&null===n&&!s&&(n=!1),n=function IT(e,n,t,r){const o=function fc(e){const n=ae.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=ds(t=Ld(null,e,n,t,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=Ld(o,e,n,t,r),null===i){let l=function TT(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==oo(r))return e[xr(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=Ld(null,e,n,l[1],r),l=ds(l,n.attrs,r),function MT(e,n,t,r){e[xr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else i=function AT(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(u=!0)):c=t,o)if(0!==l){const g=xr(e[a+1]);e[r+1]=ul(g,a),0!==g&&(e[g+1]=Pd(e[g+1],r)),e[a+1]=function pT(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=ul(a,0),0!==a&&(e[a+1]=Pd(e[a+1],r)),a=r;else e[r+1]=ul(l,0),0===a?a=r:e[l+1]=Pd(e[l+1],r),l=r;u&&(e[r+1]=Nd(e[r+1])),W_(e,c,r,!0),W_(e,c,r,!1),function _T(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&Oo(i,n)>=0&&(t[r+1]=Od(t[r+1]))}(n,c,e,r,i),s=ul(a,l),i?n.classBindings=s:n.styleBindings=s}(o,i,n,t,s,r)}}function Ld(e,n,t,r,o){let i=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let g=t[o+1];g===le&&(g=d?Ce:void 0);let m=d?Mc(g,r):c===r?g:void 0;if(u&&!cl(m)&&(m=Mc(l,r)),cl(m)&&(a=m,s))return a;const y=e[o+1];o=s?xr(y):oo(y)}if(null!==n){let l=i?n.residualClasses:n.residualStyles;null!=l&&(a=Mc(l,r))}return a}function cl(e){return void 0!==e}function sv(e,n){return 0!=(e.flags&(n?8:16))}function v(e,n=""){const t=P(),r=_e(),o=e+je,i=r.firstCreatePass?zo(r,o,1,n,null):r.data[o],s=t[o]=function Uc(e,n){return e.createText(n)}(t[pe],n);qa(r,t,s,i),Bn(i,!1)}function ri(e){return b("",e,""),ri}function b(e,n,t){const r=P(),o=Wo(r,e,n,t);return o!==le&&dr(r,Ft(),o),b}function dl(e,n,t,r,o){const i=P(),s=Ko(i,e,n,t,r,o);return s!==le&&dr(i,Ft(),s),dl}const io=void 0;var XT=["en",[["a","p"],["AM","PM"],io],[["AM","PM"],io,io],[["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"]],io,[["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"]],io,[["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 a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",io,"{1} 'at' {0}",io],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function QT(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let oi={};function Rt(e){const n=function JT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=Iv(n);if(t)return t;const r=n.split("-")[0];if(t=Iv(r),t)return t;if("en"===r)return XT;throw new L(701,!1)}function Iv(e){return e in oi||(oi[e]=Be.ng&&Be.ng.common&&Be.ng.common.locales&&Be.ng.common.locales[e]),oi[e]}var G=(()=>((G=G||{})[G.LocaleId=0]="LocaleId",G[G.DayPeriodsFormat=1]="DayPeriodsFormat",G[G.DayPeriodsStandalone=2]="DayPeriodsStandalone",G[G.DaysFormat=3]="DaysFormat",G[G.DaysStandalone=4]="DaysStandalone",G[G.MonthsFormat=5]="MonthsFormat",G[G.MonthsStandalone=6]="MonthsStandalone",G[G.Eras=7]="Eras",G[G.FirstDayOfWeek=8]="FirstDayOfWeek",G[G.WeekendRange=9]="WeekendRange",G[G.DateFormat=10]="DateFormat",G[G.TimeFormat=11]="TimeFormat",G[G.DateTimeFormat=12]="DateTimeFormat",G[G.NumberSymbols=13]="NumberSymbols",G[G.NumberFormats=14]="NumberFormats",G[G.CurrencyCode=15]="CurrencyCode",G[G.CurrencySymbol=16]="CurrencySymbol",G[G.CurrencyName=17]="CurrencyName",G[G.Currencies=18]="Currencies",G[G.Directionality=19]="Directionality",G[G.PluralCase=20]="PluralCase",G[G.ExtraData=21]="ExtraData",G))();const ii="en-US";let Tv=ii;function jd(e,n,t,r,o){if(e=J(e),Array.isArray(e))for(let i=0;i>20;if(no(e)||!e.multi){const m=new Hi(l,o,T),y=$d(a,n,o?c:c+g,d);-1===y?(Ec(Va(u,s),i,a),Ud(i,e,n.length),n.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(m),s.push(m)):(t[y]=m,s[y]=m)}else{const m=$d(a,n,c+g,d),y=$d(a,n,c,c+g),k=y>=0&&t[y];if(o&&!k||!o&&!(m>=0&&t[m])){Ec(Va(u,s),i,a);const R=function ZM(e,n,t,r,o){const i=new Hi(e,t,T);return i.multi=[],i.index=n,i.componentProviders=0,Xv(i,o,r&&!t),i}(o?YM:KM,t.length,o,r,l);!o&&k&&(t[y].providerFactory=R),Ud(i,e,n.length,0),n.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(R),s.push(R)}else Ud(i,e,m>-1?m:y,Xv(t[o?y:m],l,!o&&r));!o&&r&&k&&t[y].componentProviders++}}}function Ud(e,n,t,r){const o=no(n),i=function uS(e){return!!e.useClass}(n);if(o||i){const l=(i?J(n.useClass):n).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const c=u.indexOf(t);-1===c?u.push(t,[r,l]):u[c+1].push(r,l)}else u.push(t,l)}}}function Xv(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function $d(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function WM(e,n,t){const r=_e();if(r.firstCreatePass){const o=Dn(e);jd(t,r.data,r.blueprint,o,!0),jd(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}class si{}class Jv{}class ey extends si{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new v_(this);const r=Kt(n);this._bootstrapComponents=cr(r.bootstrap),this._r3Injector=Zm(n,t,[{provide:si,useValue:this},{provide:os,useValue:this.componentFactoryResolver}],Pe(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Gd extends Jv{constructor(n){super(),this.moduleType=n}create(n){return new ey(this.moduleType,n)}}class XM extends si{constructor(n,t,r){super(),this.componentFactoryResolver=new v_(this),this.instance=null;const o=new Nm([...n,{provide:si,useValue:this},{provide:os,useValue:this.componentFactoryResolver}],t||Ja(),r,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function ml(e,n,t=null){return new XM(e,n,t).injector}let JM=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const r=xm(0,t.type),o=r.length>0?ml([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,o)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=j({token:e,providedIn:"environment",factory:()=>new e($(Un))}),e})();function ty(e){e.getStandaloneInjector=n=>n.get(JM).getOrCreateStandaloneInjector(e)}function pt(e,n,t){const r=kt()+e,o=P();return o[r]===le?Gn(o,r,t?n.call(t):n()):function us(e,n){return e[n]}(o,r)}function _s(e,n){const t=e[n];return t===le?void 0:t}function cy(e,n,t,r,o,i){const s=n+t;return It(e,s,o)?Gn(e,s+1,i?r.call(i,o):r(o)):_s(e,s+1)}function dy(e,n,t,r,o,i,s){const a=n+t;return ro(e,a,o,i)?Gn(e,a+2,s?r.call(s,o,i):r(o,i)):_s(e,a+2)}function w(e,n){const t=_e();let r;const o=e+je;t.firstCreatePass?(r=function gA(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[o]=r,r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(o,r.onDestroy)):r=t.data[o];const i=r.factory||(r.factory=Qr(r.type)),s=un(T);try{const a=La(!1),l=i();return La(a),function sT(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,P(),o,l),l}finally{un(s)}}function D(e,n,t){const r=e+je,o=P(),i=Mo(o,r);return vs(o,r)?cy(o,kt(),n,i.transform,t,i):i.transform(t)}function qd(e,n,t,r){const o=e+je,i=P(),s=Mo(i,o);return vs(i,o)?dy(i,kt(),n,s.transform,t,r,s):s.transform(t,r)}function vs(e,n){return e[z].data[n].pure}function Wd(e){return n=>{setTimeout(e,void 0,n)}}const Y=class yA extends zt{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=Wd(i),o&&(o=Wd(o)),s&&(s=Wd(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof et&&n.add(a),a}};function bA(){return this._results[Symbol.iterator]()}class Kd{get changes(){return this._changes||(this._changes=new Y)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Kd.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=bA)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const r=this;r.dirty=!1;const o=function fn(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function O0(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=DA,e})();const CA=fr,wA=class extends CA{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(n,t){const r=this._declarationTContainer.tView,o=tl(this._declarationLView,r,n,16,null,r.declTNode,null,null,null,null,t||null);o[Bi]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Vn];return null!==s&&(o[Vn]=s.createEmbeddedView(r)),_d(r,o,n),new as(o)}};function DA(){return _l(yt(),P())}function _l(e,n){return 4&e.type?new wA(n,e,Uo(e,n)):null}let Tn=(()=>{class e{}return e.__NG_ELEMENT_ID__=EA,e})();function EA(){return _y(yt(),P())}const SA=Tn,gy=class extends SA{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Uo(this._hostTNode,this._hostLView)}get injector(){return new ko(this._hostTNode,this._hostLView)}get parentInjector(){const n=Dc(this._hostTNode,this._hostLView);if(vg(n)){const t=Oa(n,this._hostLView),r=Pa(n);return new ko(t[z].data[r+8],t)}return new ko(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=my(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-xt}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=n.createEmbeddedView(t||{},i);return this.insert(s,o),s}createComponent(n,t,r,o,i){const s=n&&!function qi(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const d=t||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const l=s?n:new ls(Ee(n)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const g=(s?u:this.parentInjector).get(Un,null);g&&(i=g)}const c=l.create(u,o,void 0,i);return this.insert(c.hostView,a),c}insert(n,t){const r=n._lView,o=r[z];if(function s0(e){return wn(e[ze])}(r)){const c=this.indexOf(n);if(-1!==c)this.detach(c);else{const d=r[ze],g=new gy(d,d[Dt],d[ze]);g.detach(g.indexOf(n))}}const i=this._adjustIndex(t),s=this._lContainer;!function EE(e,n,t,r){const o=xt+r,i=t.length;r>0&&(t[o-1][Cn]=n),r0)r.push(s[a/2]);else{const u=i[a+1],c=n[-l];for(let d=xt;d{class e{constructor(t){this.appInits=t,this.resolve=bl,this.reject=bl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)($(Cl,8))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ws=new W("AppId",{providedIn:"root",factory:function Uy(){return`${lf()}${lf()}${lf()}`}});function lf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $y=new W("Platform Initializer"),uf=new W("Platform ID",{providedIn:"platform",factory:()=>"unknown"});let QA=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const hr=new W("LocaleId",{providedIn:"root",factory:()=>he(hr,ee.Optional|ee.SkipSelf)||function XA(){return typeof $localize<"u"&&$localize.locale||ii}()});class ex{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let Hy=(()=>{class e{compileModuleSync(t){return new Gd(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),i=cr(Kt(t).declarations).reduce((s,a)=>{const l=Ee(a);return l&&s.push(new ls(l)),s},[]);return new ex(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const rx=(()=>Promise.resolve(0))();function cf(e){typeof Zone>"u"?rx.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ye{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Y(!1),this.onMicrotaskEmpty=new Y(!1),this.onStable=new Y(!1),this.onError=new Y(!1),typeof Zone>"u")throw new L(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function ox(){let e=Be.requestAnimationFrame,n=Be.cancelAnimationFrame;if(typeof Zone<"u"&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function ax(e){const n=()=>{!function sx(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Be,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ff(e),e.isCheckStableRunning=!0,df(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ff(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,i,s,a)=>{try{return qy(e),t.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&n(),Wy(e)}},onInvoke:(t,r,o,i,s,a,l)=>{try{return qy(e),t.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),Wy(e)}},onHasTask:(t,r,o,i)=>{t.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,ff(e),df(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,o,i)=>(t.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ye.isInAngularZone())throw new L(909,!1)}static assertNotInAngularZone(){if(Ye.isInAngularZone())throw new L(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,ix,bl,bl);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const ix={};function df(e){if(0==e._nesting&&!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=!0}}}function ff(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function qy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Wy(e){e._nesting--,df(e)}class lx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Y,this.onMicrotaskEmpty=new Y,this.onStable=new Y,this.onError=new Y}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}const Ky=new W(""),Dl=new W("");let gf,hf=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,gf||(function ux(e){gf=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ye.assertNotInAngularZone(),cf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())cf(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}}return e.\u0275fac=function(t){return new(t||e)($(Ye),$(pf),$(Dl))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),pf=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return gf?.findTestabilityInTree(this,t,r)??null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const pr=!1;let kr=null;const Yy=new W("AllowMultipleToken"),mf=new W("PlatformDestroyListeners"),Zy=new W("appBootstrapListener");class Qy{constructor(n,t){this.name=n,this.token=t}}function Jy(e,n,t=[]){const r=`Platform: ${n}`,o=new W(r);return(i=[])=>{let s=_f();if(!s||s.injector.get(Yy,!1)){const a=[...t,...i,{provide:o,useValue:!0}];e?e(a):function fx(e){if(kr&&!kr.get(Yy,!1))throw new L(400,!1);kr=e;const n=e.get(tb);(function Xy(e){const n=e.get($y,null);n&&n.forEach(t=>t())})(e)}(function eb(e=[],n){return $n.create({name:n,providers:[{provide:id,useValue:"platform"},{provide:mf,useValue:new Set([()=>kr=null])},...e]})}(a,r))}return function px(e){const n=_f();if(!n)throw new L(401,!1);return n}()}}function _f(){return kr?.get(tb)??null}let tb=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function rb(e,n){let t;return t="noop"===e?new lx:("zone.js"===e?void 0:e)||new Ye(n),t}(r?.ngZone,function nb(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:Ye,useValue:o}];return o.run(()=>{const s=$n.create({providers:i,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get($o,null);if(!l)throw new L(402,!1);return o.runOutsideAngular(()=>{const u=o.onError.subscribe({next:c=>{l.handleError(c)}});a.onDestroy(()=>{Sl(this._modules,a),u.unsubscribe()})}),function ob(e,n,t){try{const r=t();return cs(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(l,o,()=>{const u=a.injector.get(wl);return u.runInitializers(),u.donePromise.then(()=>(function Mv(e){ln(e,"Expected localeId to be defined"),"string"==typeof e&&(Tv=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(hr,ii)||ii),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,r=[]){const o=ib({},r);return function cx(e,n,t){const r=new Gd(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(t){const r=t.injector.get(El);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new L(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new L(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(mf,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)($($n))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function ib(e,n){return Array.isArray(n)?n.reduce(ib,e):{...e,...n}}let El=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(t,r,o){this._zone=t,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new be(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new be(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Ye.assertNotInAngularZone(),cf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Ye.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=function ED(...e){const n=Ri(e),t=function _D(e,n){return"number"==typeof qu(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?an(r[0]):Co(t)(rt(r,n)):Pn}(i,s.pipe(Fp()))}bootstrap(t,r){const o=t instanceof Om;if(!this._injector.get(wl).done){!o&&function Do(e){const n=Ee(e)||wt(e)||Vt(e);return null!==n&&n.standalone}(t);throw new L(405,pr)}let s;s=o?t:this._injector.get(os).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function dx(e){return e.isBoundToModule}(s)?void 0:this._injector.get(si),u=s.create($n.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(Ky,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Sl(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new L(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Sl(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Zy,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Sl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new L(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(t){return new(t||e)($(Ye),$(Un),$($o))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Sl(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let Ds=(()=>{class e{}return e.__NG_ELEMENT_ID__=mx,e})();function mx(e){return function _x(e,n,t){if(Ui(e)&&!t){const r=Xt(e.index,n);return new as(r,r)}return 47&e.type?new as(n[Et],n):null}(yt(),P(),16==(16&e))}class cb{constructor(){}supports(n){return al(n)}create(n){return new Dx(n)}}const wx=(e,n)=>n;class Dx{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||wx}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(o,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,o),r=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new Ex(t,r),i,o),n}_verifyReinsertion(n,t,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new db),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new db),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Ex{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Sx{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class db{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new Sx,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function fb(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r{if(t&&t.key===o)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(o,r);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,t);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new Tx(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}}class Tx{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function pb(){return new Ml([new cb])}let Ml=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||pb()),deps:[[e,new Yi,new Ki]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new L(901,!1)}}return e.\u0275prov=j({token:e,providedIn:"root",factory:pb}),e})();function gb(){return new Es([new hb])}let Es=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||gb()),deps:[[e,new Yi,new Ki]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(r)return r;throw new L(901,!1)}}return e.\u0275prov=j({token:e,providedIn:"root",factory:gb}),e})();const xx=Jy(null,"core",[]);let kx=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)($(El))},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({}),e})();function ui(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let wf=null;function gr(){return wf}class Nx{}const Pt=new W("DocumentToken");let Df=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return function Px(){return $(mb)}()},providedIn:"platform"}),e})();const Ox=new W("Location Initialized");let mb=(()=>{class e extends Df{constructor(t){super(),this._doc=t,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gr().getBaseHref(this._doc)}onPopState(t){const r=gr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=gr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,r,o){_b()?this._history.pushState(t,r,o):this._location.hash=o}replaceState(t,r,o){_b()?this._history.replaceState(t,r,o):this._location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)($(Pt))},e.\u0275prov=j({token:e,factory:function(){return function Lx(){return new mb($(Pt))}()},providedIn:"platform"}),e})();function _b(){return!!window.history.pushState}function Ef(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function vb(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function mr(e){return e&&"?"!==e[0]?"?"+e:e}let ao=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return he(bb)},providedIn:"root"}),e})();const yb=new W("appBaseHref");let bb=(()=>{class e extends ao{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??he(Pt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ef(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+mr(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){const s=this.prepareExternalUrl(o+mr(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){const s=this.prepareExternalUrl(o+mr(i));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)($(Df),$(yb,8))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Vx=(()=>{class e extends ao{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=Ef(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+mr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+mr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)($(Df),$(yb,8))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),Sf=(()=>{class e{constructor(t){this._subject=new Y,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function Ux(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(vb(Cb(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+mr(r))}normalize(t){return e.stripTrailingSlash(function jx(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Cb(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+mr(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+mr(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r,complete:o})}}return e.normalizeQueryParams=mr,e.joinWithSlash=Ef,e.stripTrailingSlash=vb,e.\u0275fac=function(t){return new(t||e)($(ao))},e.\u0275prov=j({token:e,factory:function(){return function Bx(){return new Sf($(ao))}()},providedIn:"root"}),e})();function Cb(e){return e.replace(/\/index.html$/,"")}var Ze=(()=>((Ze=Ze||{})[Ze.Format=0]="Format",Ze[Ze.Standalone=1]="Standalone",Ze))(),me=(()=>((me=me||{})[me.Narrow=0]="Narrow",me[me.Abbreviated=1]="Abbreviated",me[me.Wide=2]="Wide",me[me.Short=3]="Short",me))(),Ge=(()=>((Ge=Ge||{})[Ge.Short=0]="Short",Ge[Ge.Medium=1]="Medium",Ge[Ge.Long=2]="Long",Ge[Ge.Full=3]="Full",Ge))(),Q=(()=>((Q=Q||{})[Q.Decimal=0]="Decimal",Q[Q.Group=1]="Group",Q[Q.List=2]="List",Q[Q.PercentSign=3]="PercentSign",Q[Q.PlusSign=4]="PlusSign",Q[Q.MinusSign=5]="MinusSign",Q[Q.Exponential=6]="Exponential",Q[Q.SuperscriptingExponent=7]="SuperscriptingExponent",Q[Q.PerMille=8]="PerMille",Q[Q.Infinity=9]="Infinity",Q[Q.NaN=10]="NaN",Q[Q.TimeSeparator=11]="TimeSeparator",Q[Q.CurrencyDecimal=12]="CurrencyDecimal",Q[Q.CurrencyGroup=13]="CurrencyGroup",Q))();function Al(e,n){return gn(Rt(e)[G.DateFormat],n)}function xl(e,n){return gn(Rt(e)[G.TimeFormat],n)}function kl(e,n){return gn(Rt(e)[G.DateTimeFormat],n)}function pn(e,n){const t=Rt(e),r=t[G.NumberSymbols][n];if(typeof r>"u"){if(n===Q.CurrencyDecimal)return t[G.NumberSymbols][Q.Decimal];if(n===Q.CurrencyGroup)return t[G.NumberSymbols][Q.Group]}return r}function Db(e){if(!e[G.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[G.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gn(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Tf(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const ek=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ss={},tk=/((?:[^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]*)/;var ft=(()=>((ft=ft||{})[ft.Short=0]="Short",ft[ft.ShortGMT=1]="ShortGMT",ft[ft.Long=2]="Long",ft[ft.Extended=3]="Extended",ft))(),ne=(()=>((ne=ne||{})[ne.FullYear=0]="FullYear",ne[ne.Month=1]="Month",ne[ne.Date=2]="Date",ne[ne.Hours=3]="Hours",ne[ne.Minutes=4]="Minutes",ne[ne.Seconds=5]="Seconds",ne[ne.FractionalSeconds=6]="FractionalSeconds",ne[ne.Day=7]="Day",ne))(),fe=(()=>((fe=fe||{})[fe.DayPeriods=0]="DayPeriods",fe[fe.Days=1]="Days",fe[fe.Months=2]="Months",fe[fe.Eras=3]="Eras",fe))();function nk(e,n,t,r){let o=function dk(e){if(Ib(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return Fl(o,i-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(ek))return function fk(e){const n=new Date(0);let t=0,r=0;const o=e[8]?n.setUTCFullYear:n.setFullYear,i=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-t,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(n,s,a,l,u),n}(r)}const n=new Date(e);if(!Ib(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=_r(t,n)||n;let a,s=[];for(;n;){if(a=tk.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;n=c}}let l=o.getTimezoneOffset();r&&(l=Sb(r,l),o=function ck(e,n,t){const r=t?-1:1,o=e.getTimezoneOffset();return function uk(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,r*(Sb(n,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function lk(e){if(Af[e])return Af[e];let n;switch(e){case"G":case"GG":case"GGG":n=Ve(fe.Eras,me.Abbreviated);break;case"GGGG":n=Ve(fe.Eras,me.Wide);break;case"GGGGG":n=Ve(fe.Eras,me.Narrow);break;case"y":n=st(ne.FullYear,1,0,!1,!0);break;case"yy":n=st(ne.FullYear,2,0,!0,!0);break;case"yyy":n=st(ne.FullYear,3,0,!1,!0);break;case"yyyy":n=st(ne.FullYear,4,0,!1,!0);break;case"Y":n=Ol(1);break;case"YY":n=Ol(2,!0);break;case"YYY":n=Ol(3);break;case"YYYY":n=Ol(4);break;case"M":case"L":n=st(ne.Month,1,1);break;case"MM":case"LL":n=st(ne.Month,2,1);break;case"MMM":n=Ve(fe.Months,me.Abbreviated);break;case"MMMM":n=Ve(fe.Months,me.Wide);break;case"MMMMM":n=Ve(fe.Months,me.Narrow);break;case"LLL":n=Ve(fe.Months,me.Abbreviated,Ze.Standalone);break;case"LLLL":n=Ve(fe.Months,me.Wide,Ze.Standalone);break;case"LLLLL":n=Ve(fe.Months,me.Narrow,Ze.Standalone);break;case"w":n=Mf(1);break;case"ww":n=Mf(2);break;case"W":n=Mf(1,!0);break;case"d":n=st(ne.Date,1);break;case"dd":n=st(ne.Date,2);break;case"c":case"cc":n=st(ne.Day,1);break;case"ccc":n=Ve(fe.Days,me.Abbreviated,Ze.Standalone);break;case"cccc":n=Ve(fe.Days,me.Wide,Ze.Standalone);break;case"ccccc":n=Ve(fe.Days,me.Narrow,Ze.Standalone);break;case"cccccc":n=Ve(fe.Days,me.Short,Ze.Standalone);break;case"E":case"EE":case"EEE":n=Ve(fe.Days,me.Abbreviated);break;case"EEEE":n=Ve(fe.Days,me.Wide);break;case"EEEEE":n=Ve(fe.Days,me.Narrow);break;case"EEEEEE":n=Ve(fe.Days,me.Short);break;case"a":case"aa":case"aaa":n=Ve(fe.DayPeriods,me.Abbreviated);break;case"aaaa":n=Ve(fe.DayPeriods,me.Wide);break;case"aaaaa":n=Ve(fe.DayPeriods,me.Narrow);break;case"b":case"bb":case"bbb":n=Ve(fe.DayPeriods,me.Abbreviated,Ze.Standalone,!0);break;case"bbbb":n=Ve(fe.DayPeriods,me.Wide,Ze.Standalone,!0);break;case"bbbbb":n=Ve(fe.DayPeriods,me.Narrow,Ze.Standalone,!0);break;case"B":case"BB":case"BBB":n=Ve(fe.DayPeriods,me.Abbreviated,Ze.Format,!0);break;case"BBBB":n=Ve(fe.DayPeriods,me.Wide,Ze.Format,!0);break;case"BBBBB":n=Ve(fe.DayPeriods,me.Narrow,Ze.Format,!0);break;case"h":n=st(ne.Hours,1,-12);break;case"hh":n=st(ne.Hours,2,-12);break;case"H":n=st(ne.Hours,1);break;case"HH":n=st(ne.Hours,2);break;case"m":n=st(ne.Minutes,1);break;case"mm":n=st(ne.Minutes,2);break;case"s":n=st(ne.Seconds,1);break;case"ss":n=st(ne.Seconds,2);break;case"S":n=st(ne.FractionalSeconds,1);break;case"SS":n=st(ne.FractionalSeconds,2);break;case"SSS":n=st(ne.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Nl(ft.Short);break;case"ZZZZZ":n=Nl(ft.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Nl(ft.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Nl(ft.Long);break;default:return null}return Af[e]=n,n}(c);u+=d?d(o,t,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Fl(e,n,t){const r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function _r(e,n){const t=function $x(e){return Rt(e)[G.LocaleId]}(e);if(Ss[t]=Ss[t]||{},Ss[t][n])return Ss[t][n];let r="";switch(n){case"shortDate":r=Al(e,Ge.Short);break;case"mediumDate":r=Al(e,Ge.Medium);break;case"longDate":r=Al(e,Ge.Long);break;case"fullDate":r=Al(e,Ge.Full);break;case"shortTime":r=xl(e,Ge.Short);break;case"mediumTime":r=xl(e,Ge.Medium);break;case"longTime":r=xl(e,Ge.Long);break;case"fullTime":r=xl(e,Ge.Full);break;case"short":const o=_r(e,"shortTime"),i=_r(e,"shortDate");r=Rl(kl(e,Ge.Short),[o,i]);break;case"medium":const s=_r(e,"mediumTime"),a=_r(e,"mediumDate");r=Rl(kl(e,Ge.Medium),[s,a]);break;case"long":const l=_r(e,"longTime"),u=_r(e,"longDate");r=Rl(kl(e,Ge.Long),[l,u]);break;case"full":const c=_r(e,"fullTime"),d=_r(e,"fullDate");r=Rl(kl(e,Ge.Full),[c,d])}return r&&(Ss[t][n]=r),r}function Rl(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return null!=n&&r in n?n[r]:t})),e}function An(e,n,t="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=t));let s=String(e);for(;s.length0||a>-t)&&(a+=t),e===ne.Hours)0===a&&-12===t&&(a=12);else if(e===ne.FractionalSeconds)return function rk(e,n){return An(e,3).substring(0,n)}(a,n);const l=pn(s,Q.MinusSign);return An(a,n,l,r,o)}}function Ve(e,n,t=Ze.Format,r=!1){return function(o,i){return function ik(e,n,t,r,o,i){switch(t){case fe.Months:return function zx(e,n,t){const r=Rt(e),i=gn([r[G.MonthsFormat],r[G.MonthsStandalone]],n);return gn(i,t)}(n,o,r)[e.getMonth()];case fe.Days:return function Gx(e,n,t){const r=Rt(e),i=gn([r[G.DaysFormat],r[G.DaysStandalone]],n);return gn(i,t)}(n,o,r)[e.getDay()];case fe.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function Yx(e){const n=Rt(e);return Db(n),(n[G.ExtraData][2]||[]).map(r=>"string"==typeof r?Tf(r):[Tf(r[0]),Tf(r[1])])}(n),c=function Zx(e,n,t){const r=Rt(e);Db(r);const i=gn([r[G.ExtraData][0],r[G.ExtraData][1]],n)||[];return gn(i,t)||[]}(n,o,r),d=u.findIndex(g=>{if(Array.isArray(g)){const[m,y]=g,M=s>=m.hours&&a>=m.minutes,k=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case ft.Short:return(o>=0?"+":"")+An(s,2,i)+An(Math.abs(o%60),2,i);case ft.ShortGMT:return"GMT"+(o>=0?"+":"")+An(s,1,i);case ft.Long:return"GMT"+(o>=0?"+":"")+An(s,2,i)+":"+An(Math.abs(o%60),2,i);case ft.Extended:return 0===r?"Z":(o>=0?"+":"")+An(s,2,i)+":"+An(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const sk=0,Pl=4;function Eb(e){return Fl(e.getFullYear(),e.getMonth(),e.getDate()+(Pl-e.getDay()))}function Mf(e,n=!1){return function(t,r){let o;if(n){const i=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();o=1+Math.floor((s+i)/7)}else{const i=Eb(t),s=function ak(e){const n=Fl(e,sk,1).getDay();return Fl(e,0,1+(n<=Pl?Pl:Pl+7)-n)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return An(o,e,pn(r,Q.MinusSign))}}function Ol(e,n=!1){return function(t,r){return An(Eb(t).getFullYear(),e,pn(r,Q.MinusSign),n)}}const Af={};function Sb(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function Ib(e){return e instanceof Date&&!isNaN(e.valueOf())}function xb(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}const Pf=/\s+/,kb=[];let Fb=(()=>{class e{constructor(t,r,o,i){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=kb,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Pf):kb}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Pf):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,Boolean(t[r]));this._applyStateDiff()}_updateState(t,r){const o=this.stateMap.get(t);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],o=t[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(Pf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(t){return new(t||e)(T(Ml),T(Es),T(Ut),T(ur))},e.\u0275dir=oe({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class Sk{constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let mn=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new Sk(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),Pb(a,o)}});for(let o=0,i=r.length;o{Pb(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(T(Tn),T(fr),T(Ml))},e.\u0275dir=oe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function Pb(e,n){e.context.$implicit=n.item}let Ae=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new Tk,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ob("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ob("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(T(Tn),T(fr))},e.\u0275dir=oe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Tk{constructor(){this.$implicit=null,this.ngIf=null}}function Ob(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Pe(n)}'.`)}function xn(e,n){return new L(2100,!1)}class xk{createSubscription(n,t){return n.subscribe({next:t,error:r=>{throw r}})}dispose(n){n.unsubscribe()}}class kk{createSubscription(n,t){return n.then(t,r=>{throw r})}dispose(n){}}const Fk=new kk,Rk=new xk;let Vb=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(cs(t))return Fk;if(N_(t))return Rk;throw xn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(T(Ds,16))},e.\u0275pipe=At({name:"async",type:e,pure:!1,standalone:!0}),e})();const Bk=new W("DATE_PIPE_DEFAULT_TIMEZONE"),jk=new W("DATE_PIPE_DEFAULT_OPTIONS");let Bb=(()=>{class e{constructor(t,r,o){this.locale=t,this.defaultTimezone=r,this.defaultOptions=o}transform(t,r,o,i){if(null==t||""===t||t!=t)return null;try{return nk(t,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw xn()}}}return e.\u0275fac=function(t){return new(t||e)(T(hr,16),T(Bk,24),T(jk,24))},e.\u0275pipe=At({name:"date",type:e,pure:!0,standalone:!0}),e})(),Zk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({}),e})();let eF=(()=>{class e{}return e.\u0275prov=j({token:e,providedIn:"root",factory:()=>new tF($(Pt),window)}),e})();class tF{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function nF(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=$b(this.window.history)||$b(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function $b(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Hb{}class AF extends Nx{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $f extends AF{static makeCurrent(){!function Rx(e){wf||(wf=e)}(new $f)}onAndCancel(n,t,r){return n.addEventListener(t,r,!1),()=>{n.removeEventListener(t,r,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).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,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function xF(){return Ms=Ms||document.querySelector("base"),Ms?Ms.getAttribute("href"):null}();return null==t?null:function kF(e){jl=jl||document.createElement("a"),jl.setAttribute("href",e);const n=jl.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Ms=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return xb(document.cookie,n)}}let jl,Ms=null;const Kb=new W("TRANSITION_ID"),RF=[{provide:Cl,useFactory:function FF(e,n,t){return()=>{t.get(wl).donePromise.then(()=>{const r=gr(),o=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const Ul=new W("EventManagerPlugins");let $l=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}addGlobalEventListener(t,r,o){return this._findPluginFor(r).addGlobalEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const o=this._plugins;for(let i=0;i{class e{constructor(){this.usageCount=new Map}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(t){}onStyleAdded(t){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(t,r){const o=this.usageCount;let i=o.get(t)??0;return i+=r,i>0?o.set(t,i):o.delete(t),i}ngOnDestroy(){for(const t of this.getAllStyles())this.onStyleRemoved(t);this.usageCount.clear()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),As=(()=>{class e extends Zb{constructor(t){super(),this.doc=t,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.forEach(i=>i.remove()),r.delete(t)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}addStyleToHost(t,r){const o=this.doc.createElement("style");o.textContent=r,t.appendChild(o);const i=this.styleRef.get(r);i?i.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}}return e.\u0275fac=function(t){return new(t||e)($(Pt))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const Hf={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/MathML/"},Gf=/%COMP%/g,Jb=new W("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function eC(e,n){return n.flat(100).map(t=>t.replace(Gf,e))}function tC(e){return n=>{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let zf=(()=>{class e{constructor(t,r,o,i){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.rendererByCompId=new Map,this.defaultRenderer=new qf(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(t,r);return o instanceof oC?o.applyToHost(t):o instanceof Wf&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(r.encapsulation){case Ln.Emulated:i=new oC(s,a,r,this.appId,l);break;case Ln.ShadowDom:return new $F(s,a,t,r);default:i=new Wf(s,a,r,l)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)($($l),$(As),$(ws),$(Jb))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();class qf{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(Hf[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){(rC(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(rC(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?document.querySelector(n):n;if(!r)throw new Error(`The selector "${n}" did not match any elements`);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const i=Hf[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=Hf[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(Bt.DashCase|Bt.Important)?n.style.setProperty(t,r,o&Bt.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&Bt.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,tC(r)):this.eventManager.addEventListener(n,t,tC(r))}}function rC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class $F extends qf{constructor(n,t,r,o){super(n),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=eC(o.id,o.styles);for(const s of i){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Wf extends qf{constructor(n,t,r,o,i=r.id){super(n),this.sharedStylesHost=t,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=eC(i,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class oC extends Wf{constructor(n,t,r,o,i){const s=o+"-"+r.id;super(n,t,r,i,s),this.contentAttr=function BF(e){return"_ngcontent-%COMP%".replace(Gf,e)}(s),this.hostAttr=function jF(e){return"_nghost-%COMP%".replace(Gf,e)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let HF=(()=>{class e extends Yb{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}}return e.\u0275fac=function(t){return new(t||e)($(Pt))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const iC=["alt","control","meta","shift"],GF={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let qF=(()=>{class e extends Yb{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gr().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),iC.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let o=GF[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),iC.forEach(s=>{s!==o&&(0,zF[s])(t)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)($(Pt))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const ZF=Jy(xx,"browser",[{provide:uf,useValue:"browser"},{provide:$y,useValue:function WF(){$f.makeCurrent()},multi:!0},{provide:Pt,useFactory:function YF(){return function LE(e){Zc=e}(document),document},deps:[]}]),lC=new W(""),uC=[{provide:Dl,useClass:class NF{addToWindow(n){Be.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},Be.getAllAngularTestabilities=()=>n.getAllTestabilities(),Be.getAllAngularRootElements=()=>n.getAllRootElements(),Be.frameworkStabilizers||(Be.frameworkStabilizers=[]),Be.frameworkStabilizers.push(r=>{const o=Be.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?gr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:Ky,useClass:hf,deps:[Ye,pf,Dl]},{provide:hf,useClass:hf,deps:[Ye,pf,Dl]}],cC=[{provide:id,useValue:"root"},{provide:$o,useFactory:function KF(){return new $o},deps:[]},{provide:Ul,useClass:HF,multi:!0,deps:[Pt,Ye,uf]},{provide:Ul,useClass:qF,multi:!0,deps:[Pt]},{provide:zf,useClass:zf,deps:[$l,As,ws,Jb]},{provide:Vm,useExisting:zf},{provide:Zb,useExisting:As},{provide:As,useClass:As,deps:[Pt]},{provide:$l,useClass:$l,deps:[Ul,Ye]},{provide:Hb,useClass:PF,deps:[]},[]];let QF=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:ws,useValue:t.appId},{provide:Kb,useExisting:ws},RF]}}}return e.\u0275fac=function(t){return new(t||e)($(lC,12))},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({providers:[...cC,...uC],imports:[Zk,kx]}),e})(),dC=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return e.\u0275fac=function(t){return new(t||e)($(Pt))},e.\u0275prov=j({token:e,factory:function(t){let r=null;return r=t?new t:function JF(){return new dC($(Pt))}(),r},providedIn:"root"}),e})();function Z(...e){return rt(e,Ri(e))}function vr(e,n){return ye(n)?_t(e,n,1):_t(e,1)}function _n(e,n){return tt((t,r)=>{let o=0;t.subscribe(nt(r,i=>e.call(n,i,o++)&&r.next(i)))})}typeof window<"u"&&window;class Hl{}class Zf{}class yr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const o=t.slice(0,r),i=o.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(t=>{let r=n[t];const o=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(t,o))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof yr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new yr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof yr?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const o=("a"===n.op?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":const i=n.value;if(i){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class i2{encodeKey(n){return pC(n)}encodeValue(n){return pC(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const a2=/%(\d[a-f0-9])/gi,l2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function pC(e){return encodeURIComponent(e).replace(a2,(n,t)=>l2[t]??n)}function Gl(e){return`${e}`}class Rr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new i2,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function s2(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],o=Array.isArray(r)?r.map(Gl):[Gl(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(i=>{t.push({param:r,value:i,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Rr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Gl(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(Gl(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class u2{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function gC(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function mC(e){return typeof Blob<"u"&&e instanceof Blob}function _C(e){return typeof FormData<"u"&&e instanceof FormData}class xs{constructor(n,t,r,o){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function c2(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new yr),this.context||(this.context=new u2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(g,n.setHeaders[g]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((d,g)=>d.set(g,n.setParams[g]),u)),new xs(t,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var at=(()=>((at=at||{})[at.Sent=0]="Sent",at[at.UploadProgress=1]="UploadProgress",at[at.ResponseHeader=2]="ResponseHeader",at[at.DownloadProgress=3]="DownloadProgress",at[at.Response=4]="Response",at[at.User=5]="User",at))();class Qf{constructor(n,t=200,r="OK"){this.headers=n.headers||new yr,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Xf extends Qf{constructor(n={}){super(n),this.type=at.ResponseHeader}clone(n={}){return new Xf({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class zl extends Qf{constructor(n={}){super(n),this.type=at.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new zl({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class vC extends Qf{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Jf(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let yC=(()=>{class e{constructor(t){this.handler=t}request(t,r,o={}){let i;if(t instanceof xs)i=t;else{let l,u;l=o.headers instanceof yr?o.headers:new yr(o.headers),o.params&&(u=o.params instanceof Rr?o.params:new Rr({fromObject:o.params})),i=new xs(t,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=Z(i).pipe(vr(l=>this.handler.handle(l)));if(t instanceof xs||"events"===o.observe)return s;const a=s.pipe(_n(l=>l instanceof zl));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ie(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ie(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ie(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ie(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Rr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,Jf(o,r))}post(t,r,o={}){return this.request("POST",t,Jf(o,r))}put(t,r,o={}){return this.request("PUT",t,Jf(o,r))}}return e.\u0275fac=function(t){return new(t||e)($(Hl))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();function bC(e,n){return n(e)}function f2(e,n){return(t,r)=>n.intercept(t,{handle:o=>e(o,r)})}const p2=new W("HTTP_INTERCEPTORS"),ks=new W("HTTP_INTERCEPTOR_FNS");function g2(){let e=null;return(n,t)=>(null===e&&(e=(he(p2,{optional:!0})??[]).reduceRight(f2,bC)),e(n,t))}let CC=(()=>{class e extends Hl{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null}handle(t){if(null===this.chain){const r=Array.from(new Set(this.injector.get(ks)));this.chain=r.reduceRight((o,i)=>function h2(e,n,t){return(r,o)=>t.runInContext(()=>n(r,i=>e(i,o)))}(o,i,this.injector),bC)}return this.chain(t,r=>this.backend.handle(r))}}return e.\u0275fac=function(t){return new(t||e)($(Zf),$(Un))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const y2=/^\)\]\}',?\n/;let DC=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new be(r=>{const o=this.xhrFactory.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((m,y)=>o.setRequestHeader(m,y.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&o.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();o.responseType="json"!==m?m:"text"}const i=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const m=o.statusText||"OK",y=new yr(o.getAllResponseHeaders()),M=function b2(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||t.url;return s=new Xf({headers:y,status:o.status,statusText:m,url:M}),s},l=()=>{let{headers:m,status:y,statusText:M,url:k}=a(),R=null;204!==y&&(R=typeof o.response>"u"?o.responseText:o.response),0===y&&(y=R?200:0);let H=y>=200&&y<300;if("json"===t.responseType&&"string"==typeof R){const F=R;R=R.replace(y2,"");try{R=""!==R?JSON.parse(R):null}catch(X){R=F,H&&(H=!1,R={error:X,text:R})}}H?(r.next(new zl({body:R,headers:m,status:y,statusText:M,url:k||void 0})),r.complete()):r.error(new vC({error:R,headers:m,status:y,statusText:M,url:k||void 0}))},u=m=>{const{url:y}=a(),M=new vC({error:m,status:o.status||0,statusText:o.statusText||"Unknown Error",url:y||void 0});r.error(M)};let c=!1;const d=m=>{c||(r.next(a()),c=!0);let y={type:at.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),"text"===t.responseType&&o.responseText&&(y.partialText=o.responseText),r.next(y)},g=m=>{let y={type:at.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),r.next(y)};return o.addEventListener("load",l),o.addEventListener("error",u),o.addEventListener("timeout",u),o.addEventListener("abort",u),t.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",g)),o.send(i),r.next({type:at.Sent}),()=>{o.removeEventListener("error",u),o.removeEventListener("abort",u),o.removeEventListener("load",l),o.removeEventListener("timeout",u),t.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",g)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(t){return new(t||e)($(Hb))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const eh=new W("XSRF_ENABLED"),EC=new W("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),SC=new W("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class IC{}let D2=(()=>{class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=xb(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)($(Pt),$(uf),$(EC))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();function E2(e,n){const t=e.url.toLowerCase();if(!he(eh)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=he(IC).getToken(),o=he(SC);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var Xe=(()=>((Xe=Xe||{})[Xe.Interceptors=0]="Interceptors",Xe[Xe.LegacyInterceptors=1]="LegacyInterceptors",Xe[Xe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Xe[Xe.NoXsrfProtection=3]="NoXsrfProtection",Xe[Xe.JsonpSupport=4]="JsonpSupport",Xe[Xe.RequestsMadeViaParent=5]="RequestsMadeViaParent",Xe))();function ci(e,n){return{\u0275kind:e,\u0275providers:n}}function S2(...e){const n=[yC,DC,CC,{provide:Hl,useExisting:CC},{provide:Zf,useExisting:DC},{provide:ks,useValue:E2,multi:!0},{provide:eh,useValue:!0},{provide:IC,useClass:D2}];for(const t of e)n.push(...t.\u0275providers);return function sS(e){return{\u0275providers:e}}(n)}const TC=new W("LEGACY_INTERCEPTOR_FN");let T2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({providers:[S2(ci(Xe.LegacyInterceptors,[{provide:TC,useFactory:g2},{provide:ks,useExisting:TC,multi:!0}]))]}),e})();class vn extends zt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}const Fs=Er(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:M2}=Array,{getPrototypeOf:A2,prototype:x2,keys:k2}=Object;function MC(e){if(1===e.length){const n=e[0];if(M2(n))return{args:n,keys:null};if(function F2(e){return e&&"object"==typeof e&&A2(e)===x2}(n)){const t=k2(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:R2}=Array;function AC(e){return ie(n=>function N2(e,n){return R2(n)?e(...n):e(n)}(e,n))}function xC(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function kC(...e){const n=Ri(e),t=Mp(e),{args:r,keys:o}=MC(e);if(0===r.length)return rt([],n);const i=new be(function P2(e,n,t=er){return r=>{FC(n,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=rt(e[l],n);let c=!1;u.subscribe(nt(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>xC(o,s):er));return t?i.pipe(AC(t)):i}function FC(e,n,t){e?tr(t,e,n):n()}function Rs(...e){return function O2(){return Co(1)}()(rt(e,Ri(e)))}function ql(e){return new be(n=>{an(e()).subscribe(n)})}function Ns(e,n){const t=ye(e)?e:()=>e,r=o=>o.error(t());return new be(n?o=>n.schedule(r,0,o):r)}function th(){return tt((e,n)=>{let t=null;e._refCount++;const r=nt(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class RC extends be{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Ai(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new et;const t=this.getSubject();n.add(this.source.subscribe(nt(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=et.EMPTY)}return n}refCount(){return th()(this)}}function yn(e,n){return tt((t,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();t.subscribe(nt(r,l=>{o?.unsubscribe();let u=0;const c=i++;an(e(l,c)).subscribe(o=nt(r,d=>r.next(n?n(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function kn(e){return e<=0?()=>Pn:tt((n,t)=>{let r=0;n.subscribe(nt(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function Wl(e){return tt((n,t)=>{let r=!1;n.subscribe(nt(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function NC(e=V2){return tt((n,t)=>{let r=!1;n.subscribe(nt(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function V2(){return new Fs}function Nr(e,n){const t=arguments.length>=2;return r=>r.pipe(e?_n((o,i)=>e(o,i,r)):er,kn(1),t?Wl(n):NC(()=>new Fs))}function Tt(e,n,t){const r=ye(e)||n||t?{next:e,error:n,complete:t}:e;return r?tt((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(nt(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):er}function Pr(e){return tt((n,t)=>{let i,r=null,o=!1;r=n.subscribe(nt(t,void 0,void 0,s=>{i=an(e(s,Pr(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}function PC(e,n){return tt(function B2(e,n,t,r,o){return(i,s)=>{let a=t,l=n,u=0;i.subscribe(nt(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}function nh(e){return e<=0?()=>Pn:tt((n,t)=>{let r=[];n.subscribe(nt(t,o=>{r.push(o),e{for(const o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}function OC(e,n){const t=arguments.length>=2;return r=>r.pipe(e?_n((o,i)=>e(o,i,r)):er,nh(1),t?Wl(n):NC(()=>new Fs))}function rh(e){return tt((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}const ue="primary",Ps=Symbol("RouteTitle");class $2{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function di(e){return new $2(e)}function H2(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return e===n}function VC(e){return Array.prototype.concat.apply([],e)}function BC(e){return e.length>0?e[e.length-1]:null}function bt(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function Or(e){return Fd(e)?e:cs(e)?rt(Promise.resolve(e)):Z(e)}const Kl=!1,z2={exact:function $C(e,n,t){if(!lo(e.segments,n.segments)||!Yl(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!$C(e.children[r],n.children[r],t))return!1;return!0},subset:HC},jC={exact:function q2(e,n){return Wn(e,n)},subset:function W2(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>LC(e[t],n[t]))},ignored:()=>!0};function UC(e,n,t){return z2[t.paths](e.root,n.root,t.matrixParams)&&jC[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function HC(e,n,t){return GC(e,n,n.segments,t)}function GC(e,n,t,r){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!lo(o,t)||n.hasChildren()||!Yl(o,t,r))}if(e.segments.length===t.length){if(!lo(e.segments,t)||!Yl(e.segments,t,r))return!1;for(const o in n.children)if(!e.children[o]||!HC(e.children[o],n.children[o],r))return!1;return!0}{const o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!!(lo(e.segments,o)&&Yl(e.segments,o,r)&&e.children[ue])&&GC(e.children[ue],n,i,r)}}function Yl(e,n,t){return n.every((r,o)=>jC[t](e[o].parameters,r.parameters))}class Lr{constructor(n=new ge([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=di(this.queryParams)),this._queryParamMap}toString(){return Z2.serialize(this)}}class ge{constructor(n,t){this.segments=n,this.children=t,this.parent=null,bt(t,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Zl(this)}}class Os{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=di(this.parameters)),this._parameterMap}toString(){return WC(this)}}function lo(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let Ls=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return new oh},providedIn:"root"}),e})();class oh{parse(n){const t=new iR(n);return new Lr(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Vs(n.root,!0)}`,r=function J2(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(o=>`${Ql(t)}=${Ql(o)}`).join("&"):`${Ql(t)}=${Ql(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function Q2(e){return encodeURI(e)}(n.fragment)}`:""}`}}const Z2=new oh;function Zl(e){return e.segments.map(n=>WC(n)).join("/")}function Vs(e,n){if(!e.hasChildren())return Zl(e);if(n){const t=e.children[ue]?Vs(e.children[ue],!1):"",r=[];return bt(e.children,(o,i)=>{i!==ue&&r.push(`${i}:${Vs(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function Y2(e,n){let t=[];return bt(e.children,(r,o)=>{o===ue&&(t=t.concat(n(r,o)))}),bt(e.children,(r,o)=>{o!==ue&&(t=t.concat(n(r,o)))}),t}(e,(r,o)=>o===ue?[Vs(e.children[ue],!1)]:[`${o}:${Vs(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[ue]?`${Zl(e)}/${t[0]}`:`${Zl(e)}/(${t.join("//")})`}}function zC(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ql(e){return zC(e).replace(/%3B/gi,";")}function ih(e){return zC(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xl(e){return decodeURIComponent(e)}function qC(e){return Xl(e.replace(/\+/g,"%20"))}function WC(e){return`${ih(e.path)}${function X2(e){return Object.keys(e).map(n=>`;${ih(n)}=${ih(e[n])}`).join("")}(e.parameters)}`}const eR=/^[^\/()?;=#]+/;function Jl(e){const n=e.match(eR);return n?n[0]:""}const tR=/^[^=?&#]+/,rR=/^[^&#]+/;class iR{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ge([],{}):new ge([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[ue]=new ge(n,t)),r}parseSegment(){const n=Jl(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new L(4009,Kl);return this.capture(n),new Os(Xl(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=Jl(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=Jl(this.remaining);o&&(r=o,this.capture(r))}n[Xl(t)]=Xl(r)}parseQueryParam(n){const t=function nR(e){const n=e.match(tR);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function oR(e){const n=e.match(rR);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=qC(t),i=qC(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Jl(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new L(4010,Kl);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=ue);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[ue]:new ge([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new L(4011,Kl)}}function sh(e){return e.segments.length>0?new ge([],{[ue]:e}):e}function eu(e){const n={};for(const r of Object.keys(e.children)){const i=eu(e.children[r]);(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function sR(e){if(1===e.numberOfChildren&&e.children[ue]){const n=e.children[ue];return new ge(e.segments.concat(n.segments),n.children)}return e}(new ge(e.segments,n))}function uo(e){return e instanceof Lr}const ah=!1;function aR(e,n,t,r,o){if(0===t.length)return fi(n.root,n.root,n.root,r,o);const i=function XC(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new QC(!0,0,e);let n=0,t=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return bt(i.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new QC(t,n,r)}(t);return i.toRoot()?fi(n.root,n.root,new ge([],{}),r,o):function s(l){const u=function uR(e,n,t,r){if(e.isAbsolute)return new hi(n.root,!0,0);if(-1===r)return new hi(t,t===n.root,0);return function JC(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new L(4005,ah&&"Invalid number of '../'");o=r.segments.length}return new hi(r,!1,o-i)}(t,r+(Bs(e.commands[0])?0:1),e.numberOfDoubleDots)}(i,n,e.snapshot?._urlSegment,l),c=u.processChildren?pi(u.segmentGroup,u.index,i.commands):lh(u.segmentGroup,u.index,i.commands);return fi(n.root,u.segmentGroup,c,r,o)}(e.snapshot?._lastPathIndex)}function Bs(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function js(e){return"object"==typeof e&&null!=e&&e.outlets}function fi(e,n,t,r,o){let s,i={};r&&bt(r,(l,u)=>{i[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=e===n?t:ZC(e,n,t);const a=sh(eu(s));return new Lr(a,i,o)}function ZC(e,n,t){const r={};return bt(e.children,(o,i)=>{r[i]=o===n?t:ZC(o,n,t)}),new ge(e.segments,r)}class QC{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&Bs(r[0]))throw new L(4003,ah&&"Root segment cannot have matrix parameters");const o=r.find(js);if(o&&o!==BC(r))throw new L(4004,ah&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class hi{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function lh(e,n,t){if(e||(e=new ge([],{})),0===e.segments.length&&e.hasChildren())return pi(e,n,t);const r=function dR(e,n,t){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return i;const s=e.segments[o],a=t[r];if(js(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!t1(l,u,s))return i;r+=2}else{if(!t1(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=lh(e.children[s],n,i))}),bt(e.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new ge(e.segments,o))}}function uh(e,n,t){const r=e.segments.slice(0,n);let o=0;for(;o{"string"==typeof t&&(t=[t]),null!==t&&(n[r]=uh(new ge([],{}),0,t))}),n}function e1(e){const n={};return bt(e,(t,r)=>n[r]=`${t}`),n}function t1(e,n,t){return e==t.path&&Wn(n,t.parameters)}const Us="imperative";class Kn{constructor(n,t){this.id=n,this.url=t}}class ch extends Kn{constructor(n,t,r="imperative",o=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class co extends Kn{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class tu extends Kn{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class nu extends Kn{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=16}}class dh extends Kn{constructor(n,t,r,o){super(n,t),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class hR extends Kn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pR extends Kn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gR extends Kn{constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class mR extends Kn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _R extends Kn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vR{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yR{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bR{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CR{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wR{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DR{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class n1{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let IR=(()=>{class e{createUrlTree(t,r,o,i,s,a){return aR(t||r.root,o,i,s,a)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),MR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(n){return IR.\u0275fac(n)},providedIn:"root"}),e})();class r1{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=fh(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=fh(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=hh(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return hh(n,this._root).map(t=>t.value)}}function fh(e,n){if(e===n.value)return n;for(const t of n.children){const r=fh(e,t);if(r)return r}return null}function hh(e,n){if(e===n.value)return[n];for(const t of n.children){const r=hh(e,t);if(r.length)return r.unshift(n),r}return[]}class br{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function gi(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class o1 extends r1{constructor(n,t){super(n),this.snapshot=t,ph(this,n)}toString(){return this.snapshot.toString()}}function i1(e,n){const t=function AR(e,n){const s=new ru([],{},{},"",{},ue,n,null,e.root,-1,{});return new a1("",new br(s,[]))}(e,n),r=new vn([new Os("",{})]),o=new vn({}),i=new vn({}),s=new vn({}),a=new vn(""),l=new mi(r,o,s,a,i,ue,n,t.root);return l.snapshot=t.root,new o1(new br(l,[]),t)}class mi{constructor(n,t,r,o,i,s,a,l){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.title=this.data?.pipe(ie(u=>u[Ps]))??Z(void 0),this._futureSnapshot=l}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._paramMap=this.params.pipe(ie(n=>di(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ie(n=>di(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function s1(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const o=t[r],i=t[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function xR(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class ru{get title(){return this.data?.[Ps]}constructor(n,t,r,o,i,s,a,l,u,c,d){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=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||(this._paramMap=di(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=di(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class a1 extends r1{constructor(n,t){super(t),this.url=n,ph(this,t)}toString(){return l1(this._root)}}function ph(e,n){n.value._routerState=e,n.children.forEach(t=>ph(e,t))}function l1(e){const n=e.children.length>0?` { ${e.children.map(l1).join(", ")} } `:"";return`${e.value}${n}`}function gh(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Wn(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),Wn(n.params,t.params)||e.params.next(t.params),function G2(e,n){if(e.length!==n.length)return!1;for(let t=0;tWn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||mh(e.parent,n.parent))}function $s(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const o=function FR(e,n,t){return n.children.map(r=>{for(const o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return $s(e,r,o);return $s(e,r)})}(e,n,t);return new br(r,o)}{if(e.shouldAttach(n.value)){const i=e.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>$s(e,a)),s}}const r=function RR(e){return new mi(new vn(e.url),new vn(e.params),new vn(e.queryParams),new vn(e.fragment),new vn(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(i=>$s(e,i));return new br(r,o)}}const _h="ngNavigationCancelingError";function u1(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=uo(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=c1(!1,0,n);return o.url=t,o.navigationBehaviorOptions=r,o}function c1(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[_h]=!0,r.cancellationCode=n,t&&(r.url=t),r}function d1(e){return f1(e)&&uo(e.url)}function f1(e){return e&&e[_h]}class NR{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Hs,this.attachRef=null}}let Hs=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new NR,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ou=!1;let vh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ue,this.activateEvents=new Y,this.deactivateEvents=new Y,this.attachEvents=new Y,this.detachEvents=new Y,this.parentContexts=he(Hs),this.location=he(Tn),this.changeDetector=he(Ds),this.environmentInjector=he(Un)}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new L(4012,ou);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new L(4012,ou);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new L(4012,ou);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new L(4013,ou);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new PR(t,a,o.injector);if(r&&function OR(e){return!!e.resolveComponentFactory}(r)){const u=r.resolveComponentFactory(s);this.activated=o.createComponent(u,o.length,l)}else this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=oe({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zt]}),e})();class PR{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===mi?this.route:n===Hs?this.childContexts:this.parent.get(n,t)}}let yh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["ng-component"]],standalone:!0,features:[ty],decls:1,vars:0,template:function(t,r){1&t&&E(0,"router-outlet")},dependencies:[vh],encapsulation:2}),e})();function h1(e,n){return e.providers&&!e._injector&&(e._injector=ml(e.providers,n,`Route: ${e.path}`)),e._injector??n}function Ch(e){const n=e.children&&e.children.map(Ch),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==ue&&(t.component=yh),t}function bn(e){return e.outlet||ue}function p1(e,n){const t=e.filter(r=>bn(r)===n);return t.push(...e.filter(r=>bn(r)!==n)),t}function Gs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class UR{constructor(n,t,r,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),gh(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const o=gi(t);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),bt(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=gi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=gi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(n,t,r){const o=gi(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new DR(i.value.snapshot))}),n.children.length&&this.forwardEvent(new CR(n.value.snapshot))}activateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(gh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),gh(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Gs(o.snapshot),l=a?.get(os)??null;s.attachRef=null,s.route=o,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class g1{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class iu{constructor(n,t){this.component=n,this.route=t}}function $R(e,n,t){const r=e._root;return zs(r,n?n._root:null,t,[r.value])}function _i(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function kD(e){return null!==ya(e)}(e)?n.get(e):e:r}function zs(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=gi(n);return e.children.forEach(s=>{(function GR(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function zR(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!lo(e.url,n.url);case"pathParamsOrQueryParamsChange":return!lo(e.url,n.url)||!Wn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mh(e,n)||!Wn(e.queryParams,n.queryParams);default:return!mh(e,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new g1(r)):(i.data=s.data,i._resolvedData=s._resolvedData),zs(e,n,i.component?a?a.children:null:t,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new iu(a.outlet.component,s))}else s&&qs(n,a,o),o.canActivateChecks.push(new g1(r)),zs(e,null,i.component?a?a.children:null:t,r,o)})(s,i[s.value.outlet],t,r.concat([s.value]),o),delete i[s.value.outlet]}),bt(i,(s,a)=>qs(s,t.getContext(a),o)),o}function qs(e,n,t){const r=gi(e),o=e.value;bt(r,(i,s)=>{qs(i,o.component?n?n.children.getContext(s):null:n,t)}),t.canDeactivateChecks.push(new iu(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function Ws(e){return"function"==typeof e}function wh(e){return e instanceof Fs||"EmptyError"===e?.name}const su=Symbol("INITIAL_VALUE");function vi(){return yn(e=>kC(e.map(n=>n.pipe(kn(1),function L2(...e){const n=Ri(e);return tt((t,r)=>{(n?Rs(e,t,n):Rs(e,t)).subscribe(r)})}(su)))).pipe(ie(n=>{for(const t of n)if(!0!==t){if(t===su)return su;if(!1===t||t instanceof Lr)return t}return!0}),_n(n=>n!==su),kn(1)))}function m1(e){return function da(...e){return fa(e)}(Tt(n=>{if(uo(n))throw u1(0,n)}),ie(n=>!0===n))}const Dh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _1(e,n,t,r,o){const i=Eh(e,n,t);return i.matched?function lN(e,n,t,r){const o=n.canMatch;return o&&0!==o.length?Z(o.map(s=>{const a=_i(s,e);return Or(function QR(e){return e&&Ws(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(vi(),m1()):Z(!0)}(r=h1(n,r),n,t).pipe(ie(s=>!0===s?i:{...Dh})):Z(i)}function Eh(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Dh}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(n.matcher||H2)(t,e,n);if(!o)return{...Dh};const i={};bt(o.posParams,(a,l)=>{i[l]=a.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function au(e,n,t,r){if(t.length>0&&function dN(e,n,t){return t.some(r=>lu(e,n,r)&&bn(r)!==ue)}(e,t,r)){const i=new ge(n,function cN(e,n,t,r){const o={};o[ue]=r,r._sourceSegment=e,r._segmentIndexShift=n.length;for(const i of t)if(""===i.path&&bn(i)!==ue){const s=new ge([],{});s._sourceSegment=e,s._segmentIndexShift=n.length,o[bn(i)]=s}return o}(e,n,r,new ge(t,e.children)));return i._sourceSegment=e,i._segmentIndexShift=n.length,{segmentGroup:i,slicedSegments:[]}}if(0===t.length&&function fN(e,n,t){return t.some(r=>lu(e,n,r))}(e,t,r)){const i=new ge(e.segments,function uN(e,n,t,r,o){const i={};for(const s of r)if(lu(e,t,s)&&!o[bn(s)]){const a=new ge([],{});a._sourceSegment=e,a._segmentIndexShift=n.length,i[bn(s)]=a}return{...o,...i}}(e,n,t,r,e.children));return i._sourceSegment=e,i._segmentIndexShift=n.length,{segmentGroup:i,slicedSegments:t}}const o=new ge(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:t}}function lu(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function v1(e,n,t,r){return!!(bn(e)===r||r!==ue&&lu(n,t,e))&&("**"===e.path||Eh(n,e,t).matched)}function y1(e,n,t){return 0===n.length&&!e.children[t]}const uu=!1;class cu{constructor(n){this.segmentGroup=n||null}}class b1{constructor(n){this.urlTree=n}}function Ks(e){return Ns(new cu(e))}function C1(e){return Ns(new b1(e))}class mN{constructor(n,t,r,o,i){this.injector=n,this.configLoader=t,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0}apply(){const n=au(this.urlTree.root,[],[],this.config).segmentGroup,t=new ge(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,t,ue).pipe(ie(i=>this.createUrlTree(eu(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Pr(i=>{if(i instanceof b1)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof cu?this.noMatchError(i):i}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,ue).pipe(ie(o=>this.createUrlTree(eu(o),n.queryParams,n.fragment))).pipe(Pr(o=>{throw o instanceof cu?this.noMatchError(o):o}))}noMatchError(n){return new L(4002,uu)}createUrlTree(n,t,r){const o=sh(n);return new Lr(o,t,r)}expandSegmentGroup(n,t,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(n,t,r).pipe(ie(i=>new ge([],i))):this.expandSegment(n,r,t,r.segments,o,!0)}expandChildren(n,t,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return rt(o).pipe(vr(i=>{const s=r.children[i],a=p1(t,i);return this.expandSegmentGroup(n,a,s,i).pipe(ie(l=>({segment:l,outlet:i})))}),PC((i,s)=>(i[s.outlet]=s.segment,i),{}),OC())}expandSegment(n,t,r,o,i,s){return rt(r).pipe(vr(a=>this.expandSegmentAgainstRoute(n,t,r,a,o,i,s).pipe(Pr(u=>{if(u instanceof cu)return Z(null);throw u}))),Nr(a=>!!a),Pr((a,l)=>{if(wh(a))return y1(t,o,i)?Z(new ge([],{})):Ks(t);throw a}))}expandSegmentAgainstRoute(n,t,r,o,i,s,a){return v1(o,t,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,t,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s):Ks(t):Ks(t)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?C1(i):this.lineralizeSegments(r,i).pipe(_t(s=>{const a=new ge(s,{});return this.expandSegment(n,a,t,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=Eh(t,o,i);if(!a)return Ks(t);const d=this.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?C1(d):this.lineralizeSegments(o,d).pipe(_t(g=>this.expandSegment(n,t,r,g.concat(u),s,!1)))}matchSegmentAgainstRoute(n,t,r,o,i){return"**"===r.path?(n=h1(r,n),r.loadChildren?(r._loadedRoutes?Z({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(n,r)).pipe(ie(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new ge(o,{})))):Z(new ge(o,{}))):_1(t,r,o,n).pipe(yn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=r._injector??n,r,o).pipe(_t(c=>{const d=c.injector??n,g=c.routes,{segmentGroup:m,slicedSegments:y}=au(t,a,l,g),M=new ge(m.segments,m.children);if(0===y.length&&M.hasChildren())return this.expandChildren(d,g,M).pipe(ie(F=>new ge(a,F)));if(0===g.length&&0===y.length)return Z(new ge(a,{}));const k=bn(r)===i;return this.expandSegment(d,M,g,y,k?ue:i,!0).pipe(ie(H=>new ge(a.concat(H.segments),H.children)))})):Ks(t)))}getChildConfig(n,t,r){return t.children?Z({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?Z({routes:t._loadedRoutes,injector:t._loadedInjector}):function aN(e,n,t,r){const o=n.canLoad;return void 0===o||0===o.length?Z(!0):Z(o.map(s=>{const a=_i(s,e);return Or(function WR(e){return e&&Ws(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(vi(),m1())}(n,t,r).pipe(_t(o=>o?this.configLoader.loadChildren(n,t).pipe(Tt(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):function pN(e){return Ns(c1(uu,3))}())):Z({routes:[],injector:n})}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return Z(r);if(o.numberOfChildren>1||!o.children[ue])return n.redirectTo,Ns(new L(4e3,uu));o=o.children[ue]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,o){const i=this.createSegmentGroup(n,t.root,r,o);return new Lr(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return bt(n,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,o){const i=this.createSegments(n,t.segments,r,o);let s={};return bt(t.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,r,o)}),new ge(i,s)}createSegments(n,t,r,o){return t.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){const o=r[t.path.substring(1)];if(!o)throw new L(4001,uu);return o}findOrReturn(n,t){let r=0;for(const o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}}class vN{}class CN{constructor(n,t,r,o,i,s,a){this.injector=n,this.rootComponentType=t,this.config=r,this.urlTree=o,this.url=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=au(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,ue).pipe(ie(t=>{if(null===t)return null;const r=new ru([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ue,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new br(r,t),i=new a1(this.url,o);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(n){const t=n.value,r=s1(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,t,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,o)}processChildren(n,t,r){return rt(Object.keys(r.children)).pipe(vr(o=>{const i=r.children[o],s=p1(t,o);return this.processSegmentGroup(n,s,i,o)}),PC((o,i)=>o&&i?(o.push(...i),o):null),function j2(e,n=!1){return tt((t,r)=>{let o=0;t.subscribe(nt(r,i=>{const s=e(i,o++);(s||n)&&r.next(i),!s&&r.complete()}))})}(o=>null!==o),Wl(null),OC(),ie(o=>{if(null===o)return null;const i=D1(o);return function wN(e){e.sort((n,t)=>n.value.outlet===ue?-1:t.value.outlet===ue?1:n.value.outlet.localeCompare(t.value.outlet))}(i),i}))}processSegment(n,t,r,o,i){return rt(t).pipe(vr(s=>this.processSegmentAgainstRoute(s._injector??n,s,r,o,i)),Nr(s=>!!s),Pr(s=>{if(wh(s))return y1(r,o,i)?Z([]):Z(null);throw s}))}processSegmentAgainstRoute(n,t,r,o,i){if(t.redirectTo||!v1(t,r,o,i))return Z(null);let s;if("**"===t.path){const a=o.length>0?BC(o).parameters:{},l=S1(r)+o.length;s=Z({snapshot:new ru(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,I1(t),bn(t),t.component??t._loadedComponent??null,t,E1(r),l,T1(t)),consumedSegments:[],remainingSegments:[]})}else s=_1(r,t,o,n).pipe(ie(({matched:a,consumedSegments:l,remainingSegments:u,parameters:c})=>{if(!a)return null;const d=S1(r)+l.length;return{snapshot:new ru(l,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,I1(t),bn(t),t.component??t._loadedComponent??null,t,E1(r),d,T1(t)),consumedSegments:l,remainingSegments:u}}));return s.pipe(yn(a=>{if(null===a)return Z(null);const{snapshot:l,consumedSegments:u,remainingSegments:c}=a;n=t._injector??n;const d=t._loadedInjector??n,g=function DN(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(t),{segmentGroup:m,slicedSegments:y}=au(r,u,c,g.filter(k=>void 0===k.redirectTo));if(0===y.length&&m.hasChildren())return this.processChildren(d,g,m).pipe(ie(k=>null===k?null:[new br(l,k)]));if(0===g.length&&0===y.length)return Z([new br(l,[])]);const M=bn(t)===i;return this.processSegment(d,g,m,y,M?ue:i).pipe(ie(k=>null===k?null:[new br(l,k)]))}))}}function EN(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function D1(e){const n=[],t=new Set;for(const r of e){if(!EN(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),t.add(o)):n.push(r)}for(const r of t){const o=D1(r.children);n.push(new br(r.value,o))}return n.filter(r=>!t.has(r))}function E1(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function S1(e){let n=e,t=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift??0;return t-1}function I1(e){return e.data||{}}function T1(e){return e.resolve||{}}function M1(e){return"string"==typeof e.title||null===e.title}function Sh(e){return yn(n=>{const t=e(n);return t?rt(t).pipe(ie(()=>n)):Z(n)})}const yi=new W("ROUTES");let Ih=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=he(Hy)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Z(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Or(t.loadComponent()).pipe(ie(x1),Tt(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),rh(()=>{this.componentLoaders.delete(t)})),o=new RC(r,()=>new zt).pipe(th());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Z({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ie(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u,c=!1;Array.isArray(a)?u=a:(l=a.create(t).injector,u=VC(l.get(yi,[],ee.Self|ee.Optional)));return{routes:u.map(Ch),injector:l}}),rh(()=>{this.childrenLoaders.delete(r)})),s=new RC(i,()=>new zt).pipe(th());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(t){return Or(t()).pipe(ie(x1),_t(r=>r instanceof Jv||Array.isArray(r)?Z(r):rt(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function x1(e){return function FN(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let fu=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new zt,this.configLoader=he(Ih),this.environmentInjector=he(Un),this.urlSerializer=he(Ls),this.rootContexts=he(Hs),this.navigationId=0,this.afterPreactivation=()=>Z(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new yR(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new vR(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t){return this.transitions=new vn({id:0,targetPageId:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Us,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(_n(r=>0!==r.id),ie(r=>({...r,extractedUrl:t.urlHandlingStrategy.extract(r.rawUrl)})),yn(r=>{let o=!1,i=!1;return Z(r).pipe(Tt(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),yn(s=>{const a=t.browserUrlTree.toString(),l=!t.navigated||s.extractedUrl.toString()!==a||a!==t.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const c="";return this.events.next(new nu(s.id,t.serializeUrl(r.rawUrl),c,0)),t.rawUrlTree=s.rawUrl,s.resolve(null),Pn}if(t.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return k1(s.source)&&(t.browserUrlTree=s.extractedUrl),Z(s).pipe(yn(c=>{const d=this.transitions?.getValue();return this.events.next(new ch(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Pn:Promise.resolve(c)}),function _N(e,n,t,r){return yn(o=>function gN(e,n,t,r,o){return new mN(e,n,t,r,o).apply()}(e,n,t,o.extractedUrl,r).pipe(ie(i=>({...o,urlAfterRedirects:i}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,t.config),Tt(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},r.urlAfterRedirects=c.urlAfterRedirects}),function IN(e,n,t,r,o){return _t(i=>function bN(e,n,t,r,o,i,s="emptyOnly"){return new CN(e,n,t,r,o,s,i).recognize().pipe(yn(a=>null===a?function yN(e){return new be(n=>n.error(e))}(new vN):Z(a)))}(e,n,t,i.urlAfterRedirects,r.serialize(i.urlAfterRedirects),r,o).pipe(ie(s=>({...i,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Tt(c=>{if(r.targetSnapshot=c.targetSnapshot,"eager"===t.urlUpdateStrategy){if(!c.extras.skipLocationChange){const g=t.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);t.setBrowserUrl(g,c)}t.browserUrlTree=c.urlAfterRedirects}const d=new hR(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:c,extractedUrl:d,source:g,restoredState:m,extras:y}=s,M=new ch(c,this.urlSerializer.serialize(d),g,m);this.events.next(M);const k=i1(d,this.rootComponentType).snapshot;return Z(r={...s,targetSnapshot:k,urlAfterRedirects:d,extras:{...y,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new nu(s.id,t.serializeUrl(r.extractedUrl),c,1)),t.rawUrlTree=s.rawUrl,s.resolve(null),Pn}}),Tt(s=>{const a=new pR(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ie(s=>r={...s,guards:$R(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function JR(e,n){return _t(t=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return 0===s.length&&0===i.length?Z({...t,guardsResult:!0}):function eN(e,n,t,r){return rt(e).pipe(_t(o=>function sN(e,n,t,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?Z(i.map(a=>{const l=Gs(n)??o,u=_i(a,l);return Or(function ZR(e){return e&&Ws(e.canDeactivate)}(u)?u.canDeactivate(e,n,t,r):l.runInContext(()=>u(e,n,t,r))).pipe(Nr())})).pipe(vi()):Z(!0)}(o.component,o.route,t,n,r)),Nr(o=>!0!==o,!0))}(s,r,o,e).pipe(_t(a=>a&&function qR(e){return"boolean"==typeof e}(a)?function tN(e,n,t,r){return rt(n).pipe(vr(o=>Rs(function rN(e,n){return null!==e&&n&&n(new bR(e)),Z(!0)}(o.route.parent,r),function nN(e,n){return null!==e&&n&&n(new wR(e)),Z(!0)}(o.route,r),function iN(e,n,t){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function HR(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>ql(()=>Z(s.guards.map(l=>{const u=Gs(s.node)??t,c=_i(l,u);return Or(function YR(e){return e&&Ws(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(Nr())})).pipe(vi())));return Z(i).pipe(vi())}(e,o.path,t),function oN(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return Z(!0);const o=r.map(i=>ql(()=>{const s=Gs(n)??t,a=_i(i,s);return Or(function KR(e){return e&&Ws(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(Nr())}));return Z(o).pipe(vi())}(e,o.route,t))),Nr(o=>!0!==o,!0))}(r,i,e,n):Z(a)),ie(a=>({...t,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Tt(s=>{if(r.guardsResult=s.guardsResult,uo(s.guardsResult))throw u1(0,s.guardsResult);const a=new gR(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),_n(s=>!!s.guardsResult||(t.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Sh(s=>{if(s.guards.canActivateChecks.length)return Z(s).pipe(Tt(a=>{const l=new mR(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),yn(a=>{let l=!1;return Z(a).pipe(function TN(e,n){return _t(t=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return Z(t);let i=0;return rt(o).pipe(vr(s=>function MN(e,n,t,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!M1(o)&&(i[Ps]=o.title),function AN(e,n,t,r){const o=function xN(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return Z({});const i={};return rt(o).pipe(_t(s=>function kN(e,n,t,r){const o=Gs(n)??r,i=_i(e,o);return Or(i.resolve?i.resolve(n,t):o.runInContext(()=>i(n,t)))}(e[s],n,t,r).pipe(Nr(),Tt(a=>{i[s]=a}))),nh(1),function U2(e){return ie(()=>e)}(i),Pr(s=>wh(s)?Pn:Ns(s)))}(i,e,n,r).pipe(ie(s=>(e._resolvedData=s,e.data=s1(e,t).resolve,o&&M1(o)&&(e.data[Ps]=o.title),null)))}(s.route,r,e,n)),Tt(()=>i++),nh(1),_t(s=>i===o.length?Z(t):Pn))})}(t.paramsInheritanceStrategy,this.environmentInjector),Tt({next:()=>l=!0,complete:()=>{l||(t.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Tt(a=>{const l=new _R(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Sh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(Tt(c=>{l.component=c}),ie(()=>{})));for(const c of l.children)u.push(...a(c));return u};return kC(a(s.targetSnapshot.root)).pipe(Wl(),kn(1))}),Sh(()=>this.afterPreactivation()),ie(s=>{const a=function kR(e,n,t){const r=$s(e,n._root,t?t._root:void 0);return new o1(r,n)}(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Tt(s=>{t.currentUrlTree=s.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),t.routerState=s.targetRouterState,"deferred"===t.urlUpdateStrategy&&(s.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,s),t.browserUrlTree=s.urlAfterRedirects)}),((e,n,t)=>ie(r=>(new UR(n,r.targetRouterState,r.currentRouterState,t).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,s=>this.events.next(s)),Tt({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new co(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),rh(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Pr(s=>{if(i=!0,f1(s)){d1(s)||(t.navigated=!0,t.restoreHistory(r,!0));const a=new tu(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),d1(s)){const l=t.urlHandlingStrategy.merge(s.url,t.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||k1(r.source)};t.scheduleNavigation(l,Us,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{t.restoreHistory(r,!0);const a=new dh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(t.errorHandler(s))}catch(l){r.reject(l)}}return Pn}))}))}cancelNavigationTransition(t,r,o){const i=new tu(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function k1(e){return e!==Us}let F1=(()=>{class e{buildTitle(t){let r,o=t.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===ue);return r}getResolvedTitleForRoute(t){return t.data[Ps]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return he(RN)},providedIn:"root"}),e})(),RN=(()=>{class e extends F1{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(t){return new(t||e)($(dC))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),NN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return he(ON)},providedIn:"root"}),e})();class PN{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let ON=(()=>{class e extends PN{}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hu=new W("",{providedIn:"root",factory:()=>({})});let VN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return he(BN)},providedIn:"root"}),e})(),BN=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function jN(e){throw e}function UN(e,n,t){return n.parse("/")}const $N={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},HN={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let gt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=he(QA),this.isNgZoneEnabled=!1,this.options=he(hu,{optional:!0})||{},this.errorHandler=this.options.errorHandler||jN,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||UN,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=he(VN),this.routeReuseStrategy=he(NN),this.urlCreationStrategy=he(MR),this.titleStrategy=he(F1),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=VC(he(yi,{optional:!0})??[]),this.navigationTransitions=he(fu),this.urlSerializer=he(Ls),this.location=he(Sf),this.isNgZoneEnabled=he(Ye)instanceof Ye&&Ye.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Lr,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=i1(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Us,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(t){this.config=t.map(Ch),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),this.urlCreationStrategy.createUrlTree(o,this.routerState,this.currentUrlTree,t,c,u??null)}navigateByUrl(t,r={skipLocationChange:!1}){const o=uo(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Us,null,r)}navigate(t,r={skipLocationChange:!1}){return function GN(e){for(let n=0;n{const i=t[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u,c;return s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,g)=>{a=d,l=g}),c="computed"===this.canceledNavigationResolution?o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:c,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(t,r){const o=this.urlSerializer.serialize(t),i={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===o?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ys=(()=>{class e{constructor(t,r,o,i,s,a){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new zt;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(u=>{u instanceof co&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(t){this._preserveFragment=ui(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=ui(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=ui(t)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function Im(e,n,t){return function iS(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Sm:Em}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,t,r):o.removeAttribute(i,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(t){return new(t||e)(T(gt),T(mi),function ja(e){return function x0(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(t,r,o,i,s){this.router=t,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Y,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof co&&this.update()})}ngAfterContentInit(){Z(this.links.changes,Z(null)).pipe(Co()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=rt(t).pipe(Co()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){const r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const t=this.hasActiveLinks();this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const r=function zN(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&t.isActive(o.urlTree,r)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}}return e.\u0275fac=function(t){return new(t||e)(T(gt),T(Ut),T(ur),T(Ds),T(Ys,8))},e.\u0275dir=oe({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(t,r,o){if(1&t&&function by(e,n,t,r){const o=_e();if(o.firstCreatePass){const i=yt();wy(o,new vy(n,t,r),i.index),function kA(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(o,e),2==(2&t)&&(o.staticContentQueries=!0)}Cy(o,P(),t)}(o,Ys,5),2&t){let i;ys(i=bs())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Zt]}),e})();class R1{}let qN=(()=>{class e{constructor(t,r,o,i,s){this.router=t,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(_n(t=>t instanceof co),vr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ml(i.providers,t,`Route: ${i.path}`));const s=i._injector??t,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return rt(o).pipe(Co())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):Z(null);const i=o.pipe(_t(s=>null===s?Z(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?rt([i,this.loader.loadComponent(r)]).pipe(Co()):i})}}return e.\u0275fac=function(t){return new(t||e)($(gt),$(Hy),$(Un),$(R1),$(Ih))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ah=new W("");let N1=(()=>{class e{constructor(t,r,o,i,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof ch?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof co&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof n1&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new n1(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(t){!function r_(){throw new Error("invalid")}()},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();var nn=(()=>((nn=nn||{})[nn.COMPLETE=0]="COMPLETE",nn[nn.FAILED=1]="FAILED",nn[nn.REDIRECTING=2]="REDIRECTING",nn))();const bi=!1;function Vr(e,n){return{\u0275kind:e,\u0275providers:n}}const xh=new W("",{providedIn:"root",factory:()=>!1});function O1(){const e=he($n);return n=>{const t=e.get(El);if(n!==t.components[0])return;const r=e.get(gt),o=e.get(L1);1===e.get(kh)&&r.initialNavigation(),e.get(V1,null,ee.Optional)?.setUpPreloading(),e.get(Ah,null,ee.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.unsubscribe())}}const L1=new W(bi?"bootstrap done indicator":"",{factory:()=>new zt}),kh=new W(bi?"initial navigation":"",{providedIn:"root",factory:()=>1});function QN(){let e=[];return e=bi?[{provide:Qa,multi:!0,useFactory:()=>{const n=he(gt);return()=>n.events.subscribe(t=>{console.group?.(`Router Event: ${t.constructor.name}`),console.log(function ER(e){if(!("type"in e))return`Unknown Router Event: ${e.constructor.name}`;switch(e.type){case 14:return`ActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state}, shouldActivate: ${e.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 2:return`NavigationCancel(id: ${e.id}, url: '${e.url}')`;case 16:return`NavigationSkipped(id: ${e.id}, url: '${e.url}')`;case 1:return`NavigationEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${e.id}, url: '${e.url}', error: ${e.error})`;case 0:return`NavigationStart(id: ${e.id}, url: '${e.url}')`;case 6:return`ResolveEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 5:return`ResolveStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 10:return`RouteConfigLoadEnd(path: ${e.route.path})`;case 9:return`RouteConfigLoadStart(path: ${e.route.path})`;case 4:return`RoutesRecognized(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 15:return`Scroll(anchor: '${e.anchor}', position: '${e.position?`${e.position[0]}, ${e.position[1]}`:null}')`}}(t)),console.log(t),console.groupEnd?.()})}}]:[],Vr(1,e)}const V1=new W(bi?"router preloader":"");function XN(e){return Vr(0,[{provide:V1,useExisting:qN},{provide:R1,useExisting:e}])}const Zs=!1,B1=new W(Zs?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),JN=[Sf,{provide:Ls,useClass:oh},gt,Hs,{provide:mi,useFactory:function P1(e){return e.routerState.root},deps:[gt]},Ih,Zs?{provide:xh,useValue:!0}:[]];function eP(){return new Qy("Router",gt)}let j1=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[JN,Zs&&r?.enableTracing?QN().\u0275providers:[],{provide:yi,multi:!0,useValue:t},{provide:B1,useFactory:oP,deps:[[gt,new Ki,new Yi]]},{provide:hu,useValue:r||{}},r?.useHash?{provide:ao,useClass:Vx}:{provide:ao,useClass:bb},{provide:Ah,useFactory:()=>{const e=he(eF),n=he(Ye),t=he(hu),r=he(fu),o=he(Ls);return t.scrollOffset&&e.setOffset(t.scrollOffset),new N1(o,r,e,n,t)}},r?.preloadingStrategy?XN(r.preloadingStrategy).\u0275providers:[],{provide:Qy,multi:!0,useFactory:eP},r?.initialNavigation?iP(r):[],[{provide:U1,useFactory:O1},{provide:Zy,multi:!0,useExisting:U1}]]}}static forChild(t){return{ngModule:e,providers:[{provide:yi,multi:!0,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)($(B1,8))},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({imports:[yh]}),e})();function oP(e){if(Zs&&e)throw new L(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function iP(e){return["disabled"===e.initialNavigation?Vr(3,[{provide:Cl,multi:!0,useFactory:()=>{const n=he(gt);return()=>{n.setUpLocationChangeListener()}}},{provide:kh,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Vr(2,[{provide:kh,useValue:0},{provide:Cl,multi:!0,deps:[$n],useFactory:n=>{const t=n.get(Ox,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const o=n.get(gt),i=n.get(L1);(function WN(e,n){e.events.pipe(_n(t=>t instanceof co||t instanceof tu||t instanceof dh||t instanceof nu),ie(t=>t instanceof co||t instanceof nu?nn.COMPLETE:t instanceof tu&&(0===t.code||1===t.code)?nn.REDIRECTING:nn.FAILED),_n(t=>t!==nn.REDIRECTING),kn(1)).subscribe(()=>{n()})})(o,()=>{r(!0)}),n.get(fu).afterPreactivation=()=>(r(!0),i.closed?Z(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const U1=new W(Zs?"Router Initializer":"");function fo(e){return!!e&&(e instanceof be||ye(e.lift)&&ye(e.subscribe))}function $1(...e){const n=Mp(e),{args:t,keys:r}=MC(e),o=new be(i=>{const{length:s}=t;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=g},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?xC(r,a):a),i.complete())}))}});return n?o.pipe(AC(n)):o}const Fh={now:()=>(Fh.delegate||Date).now(),delegate:void 0};class aP extends zt{constructor(n=1/0,t=1/0,r=Fh){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;t||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;snew aP(r,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class Qs{}let G1=(()=>{class e extends Qs{getTranslation(t){return Z({})}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();class Rh{}let z1=(()=>{class e{handle(t){return t.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();function pu(e,n){if(e===n)return!0;if(null===e||null===n)return!1;if(e!=e&&n!=n)return!0;let o,i,s,t=typeof e;if(t==typeof n&&"object"==t){if(!Array.isArray(e)){if(Array.isArray(n))return!1;for(i in s=Object.create(null),e){if(!pu(e[i],n[i]))return!1;s[i]=!0}for(i in n)if(!(i in s)&&typeof n[i]<"u")return!1;return!0}if(!Array.isArray(n))return!1;if((o=e.length)==n.length){for(i=0;i{Nh(n[r])?r in e?t[r]=q1(e[r],n[r]):Object.assign(t,{[r]:n[r]}):Object.assign(t,{[r]:n[r]})}),t}class gu{}let W1=(()=>{class e extends gu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,r){let o;return o="string"==typeof t?this.interpolateString(t,r):"function"==typeof t?this.interpolateFunction(t,r):t,o}getValue(t,r){let o="string"==typeof r?r.split("."):[r];r="";do{r+=o.shift(),!Br(t)||!Br(t[r])||"object"!=typeof t[r]&&o.length?o.length?r+=".":t=void 0:(t=t[r],r="")}while(o.length);return t}interpolateFunction(t,r){return t(r)}interpolateString(t,r){return r?t.replace(this.templateMatcher,(o,i)=>{let s=this.getValue(r,i);return Br(s)?s:o}):t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();class mu{}let K1=(()=>{class e extends mu{compile(t,r){return t}compileTranslations(t,r){return t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();class Y1{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Y,this.onLangChange=new Y,this.onDefaultLangChange=new Y}}const Ph=new W("USE_STORE"),Oh=new W("USE_DEFAULT_LANG"),Lh=new W("DEFAULT_LANGUAGE"),Vh=new W("USE_EXTEND");let _u=(()=>{class e{constructor(t,r,o,i,s,a=!0,l=!1,u=!1,c){this.store=t,this.currentLoader=r,this.compiler=o,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=u,this.pending=!1,this._onTranslationChange=new Y,this._onLangChange=new Y,this._onDefaultLangChange=new Y,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let r=this.retrieveTranslations(t);typeof r<"u"?(null==this.defaultLang&&(this.defaultLang=t),r.pipe(kn(1)).subscribe(o=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Z(this.translations[t]);let r=this.retrieveTranslations(t);return typeof r<"u"?(this.currentLang||(this.currentLang=t),r.pipe(kn(1)).subscribe(o=>{this.changeLang(t)}),r):(this.changeLang(t),Z(this.translations[t]))}retrieveTranslations(t){let r;return(typeof this.translations[t]>"u"||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),r=this._translationRequests[t]),r}getTranslation(t){this.pending=!0;const r=this.currentLoader.getTranslation(t).pipe(H1(1),kn(1));return this.loadingTranslations=r.pipe(ie(o=>this.compiler.compileTranslations(o,t)),H1(1),kn(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[t]=this.extend&&this.translations[t]?{...o,...this.translations[t]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),r}setTranslation(t,r,o=!1){r=this.compiler.compileTranslations(r,t),this.translations[t]=(o||this.extend)&&this.translations[t]?q1(this.translations[t],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,r,o){let i;if(r instanceof Array){let s={},a=!1;for(let l of r)s[l]=this.getParsedResult(t,l,o),fo(s[l])&&(a=!0);return a?$1(r.map(u=>fo(s[u])?s[u]:Z(s[u]))).pipe(ie(u=>{let c={};return u.forEach((d,g)=>{c[r[g]]=d}),c})):s}if(t&&(i=this.parser.interpolate(this.parser.getValue(t,r),o)),typeof i>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),o)),typeof i>"u"){let s={key:r,translateService:this};typeof o<"u"&&(s.interpolateParams=o),i=this.missingTranslationHandler.handle(s)}return typeof i<"u"?i:r}get(t,r){if(!Br(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(vr(o=>fo(o=this.getParsedResult(o,t,r))?o:Z(o)));{let o=this.getParsedResult(this.translations[this.currentLang],t,r);return fo(o)?o:Z(o)}}getStreamOnTranslationChange(t,r){if(!Br(t)||!t.length)throw new Error('Parameter "key" required');return Rs(ql(()=>this.get(t,r)),this.onTranslationChange.pipe(yn(o=>{const i=this.getParsedResult(o.translations,t,r);return"function"==typeof i.subscribe?i:Z(i)})))}stream(t,r){if(!Br(t)||!t.length)throw new Error('Parameter "key" required');return Rs(ql(()=>this.get(t,r)),this.onLangChange.pipe(yn(o=>{const i=this.getParsedResult(o.translations,t,r);return fo(i)?i:Z(i)})))}instant(t,r){if(!Br(t)||!t.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],t,r);if(fo(o)){if(t instanceof Array){let i={};return t.forEach((s,a)=>{i[t[a]]=t[a]}),i}return t}return o}set(t,r,o=this.currentLang){this.translations[o][t]=this.compiler.compile(r,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof t>"u"?void 0:(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return e.\u0275fac=function(t){return new(t||e)($(Y1),$(Qs),$(mu),$(gu),$(Rh),$(Oh),$(Ph),$(Vh),$(Lh))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),ke=(()=>{class e{constructor(t,r){this.translate=t,this._ref=r,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(t,r,o){let i=s=>{this.value=void 0!==s?s:t,this.lastKey=t,this._ref.markForCheck()};if(o){let s=this.translate.getParsedResult(o,t,r);fo(s.subscribe)?s.subscribe(i):i(s)}this.translate.get(t,r).subscribe(i)}transform(t,...r){if(!t||!t.length)return t;if(pu(t,this.lastKey)&&pu(r,this.lastParams))return this.value;let o;if(Br(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let i=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(i)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(o=r[0]);return this.lastKey=t,this.lastParams=r,this.updateValue(t,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(i=>{this.lastKey&&i.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,o,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(i=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,o,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(T(_u,16),T(Ds,16))},e.\u0275pipe=At({name:"translate",type:e,pure:!1}),e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),lP=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:Qs,useClass:G1},t.compiler||{provide:mu,useClass:K1},t.parser||{provide:gu,useClass:W1},t.missingTranslationHandler||{provide:Rh,useClass:z1},Y1,{provide:Ph,useValue:t.isolate},{provide:Oh,useValue:t.useDefaultLang},{provide:Vh,useValue:t.extend},{provide:Lh,useValue:t.defaultLanguage},_u]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:Qs,useClass:G1},t.compiler||{provide:mu,useClass:K1},t.parser||{provide:gu,useClass:W1},t.missingTranslationHandler||{provide:Rh,useClass:z1},{provide:Ph,useValue:t.isolate},{provide:Oh,useValue:t.useDefaultLang},{provide:Vh,useValue:t.extend},{provide:Lh,useValue:t.defaultLanguage},_u]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({}),e})(),uP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-page-not-found"]],decls:14,vars:9,consts:[["id","error"],[1,"error-page","container"],[1,"col-md-8","col-12","offset-md-2"],[1,"text-center"],["src","./assets/svg/error-404.svg","alt","Not Found",1,"img-error"],[1,"error-title"],[1,"fs-5","text-gray-600"],["href","index.html",1,"btn","btn-lg","btn-outline-primary","mt-3"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),E(4,"img",4),h(5,"h1",5),v(6),w(7,"translate"),p(),h(8,"p",6),v(9),w(10,"translate"),p(),h(11,"a",7),v(12),w(13,"translate"),p()()()()()),2&t&&(f(6),b(" ",D(7,3,"page-not-found")," "),f(3),b(" ",D(10,5,"page-not-found-description")," "),f(3),b(" ",D(13,7,"go-home")," "))},dependencies:[ke]}),e})(),Z1=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(T(ur),T(Ut))},e.\u0275dir=oe({type:e}),e})(),ho=(()=>{class e extends Z1{}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275dir=oe({type:e,features:[Me]}),e})();const Yn=new W("NgValueAccessor"),cP={provide:Yn,useExisting:Oe(()=>Ci),multi:!0};let Ci=(()=>{class e extends ho{writeValue(t){this.setProperty("checked",t)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275dir=oe({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,r){1&t&&O("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[$e([cP]),Me]}),e})();const dP={provide:Yn,useExisting:Oe(()=>Fn),multi:!0},hP=new W("CompositionEventMode");let Fn=(()=>{class e extends Z1{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function fP(){const e=gr()?gr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return e.\u0275fac=function(t){return new(t||e)(T(ur),T(Ut),T(hP,8))},e.\u0275dir=oe({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,r){1&t&&O("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[$e([dP]),Me]}),e})();const pP=!1;function jr(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function Q1(e){return null!=e&&"number"==typeof e.length}const Mt=new W("NgValidators"),Ur=new W("NgAsyncValidators"),gP=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class re{static min(n){return function X1(e){return n=>{if(jr(n.value)||jr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(jr(n.value)||jr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function ew(e){return jr(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function tw(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function nw(e){return jr(e.value)||gP.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function rw(e){return n=>jr(n.value)||!Q1(n.value)?null:n.value.lengthQ1(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function iw(e){if(!e)return vu;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(jr(r.value))return null;const o=r.value;return n.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return dw(n)}static composeAsync(n){return fw(n)}}function vu(e){return null}function sw(e){return null!=e}function aw(e){const n=cs(e)?rt(e):e;if(pP&&!Fd(n)){let t="Expected async validator to return Promise or Observable.";throw"object"==typeof e&&(t+=" Are you using a synchronous validator where an async validator is expected?"),new L(-1101,t)}return n}function lw(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function uw(e,n){return n.map(t=>t(e))}function cw(e){return e.map(n=>function mP(e){return!e.validate}(n)?n:t=>n.validate(t))}function dw(e){if(!e)return null;const n=e.filter(sw);return 0==n.length?null:function(t){return lw(uw(t,n))}}function Bh(e){return null!=e?dw(cw(e)):null}function fw(e){if(!e)return null;const n=e.filter(sw);return 0==n.length?null:function(t){return $1(uw(t,n).map(aw)).pipe(ie(lw))}}function jh(e){return null!=e?fw(cw(e)):null}function hw(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function pw(e){return e._rawValidators}function gw(e){return e._rawAsyncValidators}function Uh(e){return e?Array.isArray(e)?e:[e]:[]}function yu(e,n){return Array.isArray(e)?e.includes(n):e===n}function mw(e,n){const t=Uh(n);return Uh(e).forEach(o=>{yu(t,o)||t.push(o)}),t}function _w(e,n){return Uh(n).filter(t=>!yu(e,t))}class vw{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Bh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=jh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Ot extends vw{get formDirective(){return null}get path(){return null}}class $r extends vw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class yw{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Cr=(()=>{class e extends yw{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(T($r,2))},e.\u0275dir=oe({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Le("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Me]}),e})(),wr=(()=>{class e extends yw{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(T(Ot,10))},e.\u0275dir=oe({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,r){2&t&&Le("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Me]}),e})();function bw(e,n){return e?`with name: '${n}'`:`at index: ${n}`}const Gh=!1,Xs="VALID",Cu="INVALID",wi="PENDING",Js="DISABLED";function zh(e){return(wu(e)?e.validators:e)||null}function qh(e,n){return(wu(n)?n.asyncValidators:e)||null}function wu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Dw{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Xs}get invalid(){return this.status===Cu}get pending(){return this.status==wi}get disabled(){return this.status===Js}get enabled(){return this.status!==Js}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(mw(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(mw(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(_w(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(_w(n,this._rawAsyncValidators))}hasValidator(n){return yu(this._rawValidators,n)}hasAsyncValidator(n){return yu(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=wi,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Js,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Xs,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xs||this.status===wi)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Js:Xs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=wi,this._hasOwnPendingAsyncValidator=!0;const t=aw(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?Js:this.errors?Cu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wi)?wi:this._anyControlsHaveStatus(Cu)?Cu:Xs}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){wu(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function DP(e){return Array.isArray(e)?Bh(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function EP(e){return Array.isArray(e)?jh(e):e||null}(this._rawAsyncValidators)}}class rn extends Dw{constructor(n,t,r){super(zh(t),qh(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){(function ww(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new L(1002,Gh?function wP(e,n){return`Must supply a value for form control ${bw(e,n)}`}(n,o):"")})})(this,!0,n),Object.keys(n).forEach(r=>{(function Cw(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new L(1e3,Gh?function bP(e){return`\n There are no form controls registered with this ${e?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!r[t])throw new L(1001,Gh?function CP(e,n){return`Cannot find form control ${bw(e,n)}`}(n,t):"")})(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,i)=>{r=t(r,o,i)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const Di=new W("CallSetDisabledState",{providedIn:"root",factory:()=>Du}),Du="always";function ea(e,n,t=Du){Wh(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function TP(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Ew(e,n)})}(e,n),function AP(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function MP(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Ew(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function IP(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Su(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Tu(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Iu(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Wh(e,n){const t=pw(e);null!==n.validator?e.setValidators(hw(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=gw(e);null!==n.asyncValidator?e.setAsyncValidators(hw(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Iu(n._rawValidators,o),Iu(n._rawAsyncValidators,o)}function Tu(e,n){let t=!1;if(null!==e){if(null!==n.validator){const o=pw(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==n.validator);i.length!==o.length&&(t=!0,e.setValidators(i))}}if(null!==n.asyncValidator){const o=gw(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==n.asyncValidator);i.length!==o.length&&(t=!0,e.setAsyncValidators(i))}}}const r=()=>{};return Iu(n._rawValidators,r),Iu(n._rawAsyncValidators,r),t}function Ew(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Tw(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Mw(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const K=class extends Dw{constructor(n=null,t,r){super(zh(t),qh(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),wu(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=Mw(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Tw(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Tw(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){Mw(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let Dr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=oe({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const VP={provide:Yn,useExisting:Oe(()=>Xh),multi:!0};let Xh=(()=>{class e extends ho{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275dir=oe({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,r){1&t&&O("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[$e([VP]),Me]}),e})(),Rw=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({}),e})();const Jh=new W("NgModelWithFormControlWarning"),HP={provide:Ot,useExisting:Oe(()=>Rn)};let Rn=(()=>{class e extends Ot{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Y,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Tu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return ea(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Su(t.control||null,t,!1),function RP(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,function Iw(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,o=this.form.get(t.path);r!==o&&(Su(r||null,t),(e=>e instanceof K)(o)&&(ea(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function Sw(e,n){Wh(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function xP(e,n){return Tu(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wh(this.form,this),this._oldForm&&Tu(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(T(Mt,10),T(Ur,10),T(Di,8))},e.\u0275dir=oe({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,r){1&t&&O("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$e([HP]),Me,Zt]}),e})();const qP={provide:$r,useExisting:Oe(()=>Zn)};let Zn=(()=>{class e extends $r{set isDisabled(t){}constructor(t,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Y,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Zh(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===Fn?t=i:function FP(e){return Object.getPrototypeOf(e.constructor)===ho}(i)?r=i:o=i}),o||r||t||null}(0,i)}ngOnChanges(t){this._added||this._setUpControl(),function Yh(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function Eu(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(T(Ot,13),T(Mt,10),T(Ur,10),T(Yn,10),T(Jh,8))},e.\u0275dir=oe({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[$e([qP]),Me,Zt]}),e})();const WP={provide:Yn,useExisting:Oe(()=>Mu),multi:!0};function Vw(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let Mu=(()=>{class e extends ho{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const o=Vw(this._getOptionId(t),t);this.setProperty("value",o)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function KP(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275dir=oe({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,r){1&t&&O("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[$e([WP]),Me]}),e})(),np=(()=>{class e{constructor(t,r,o){this._element=t,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Vw(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(T(Ut),T(ur),T(Mu,9))},e.\u0275dir=oe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const YP={provide:Yn,useExisting:Oe(()=>rp),multi:!0};function Bw(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let rp=(()=>{class e extends ho{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const o=t.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class e{constructor(t,r,o){this._element=t,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Bw(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Bw(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(T(Ut),T(ur),T(rp,9))},e.\u0275dir=oe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),iO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({imports:[Rw]}),e})(),aO=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Jh,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Di,useValue:t.callSetDisabledState??Du}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({imports:[iO]}),e})();const Ct=Object.assign({verbose:!0,production:!1},{eelCallRefreshInterval:1e3,fullDateFormat:"dd/MM/yyyy H:mm",dateFormat:"dd/MM/yyyy",timeFormat:"H:mm",warningDateDayBefore:7,dangerDateDayBefore:3,alertTimeout:5e3,updateLastVisitInterval:6e4,authRequiredRedirectRoute:"/login",basePriorityValue:10,appName:"Taskup",timeBeforeClose:1e3});function Yw(e,n,t,r,o,i,s){try{var a=e[i](s),l=a.value}catch(u){return void t(u)}a.done?n(l):Promise.resolve(l).then(r,o)}function We(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var i=e.apply(n,t);function s(l){Yw(i,r,o,s,a,"next",l)}function a(l){Yw(i,r,o,s,a,"throw",l)}s(void 0)})}}class uO extends et{constructor(n,t){super()}schedule(n,t=0){return this}}const Au={setInterval(e,n,...t){const{delegate:r}=Au;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Au;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class na{constructor(n,t=na.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}na.now=Fh.now;const Zw=new class dO extends na{constructor(n,t=na.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class cO extends uO{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return Au.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Au.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Sr(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),fO=Zw;function sp(e=0,n=Zw){return e<0&&(e=0),function pO(e=0,n,t=fO){let r=-1;return null!=n&&(Tp(n)?t=n:r=n),new be(o=>{let i=function hO(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;i<0&&(i=0);let s=0;return t.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}(e,e,n)}let ht=(()=>{class e{constructor(){}static logError(...t){Ct.verbose&&console.error("E:",...t)}static logInfo(...t){Ct.verbose&&console.info("I:",...t)}static logWarning(...t){Ct.verbose&&console.warn("W:",...t)}static logSuccess(...t){Ct.verbose&&console.log("S:",...t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ra=(()=>{class e{constructor(){this.max_attempt=3,this.interval=10,this.logger_except=["auth_is_logged"]}callWithOptions(t,r,...o){var i=this;return We(function*(){return new be(null===t.take?a=>{let l=sp(t.interval).pipe(_n(()=>eel&&eel._websocket.readyState===WebSocket.OPEN)).subscribe(i.get_observable_body(a,r,...o));t.obs?.subscribe({next:u=>{u&&l.unsubscribe()}})}:a=>{sp(t.interval).pipe(_n(()=>eel&&eel._websocket.readyState===WebSocket.OPEN),kn(t.take)).subscribe(i.get_observable_body(a,r,...o))})})()}call(t,...r){var o=this;return We(function*(){return new be(s=>{sp(10).pipe(_n(()=>eel&&eel._websocket.readyState===WebSocket.OPEN),kn(1)).subscribe(o.get_observable_body(s,t,...r))})})()}get_observable_body(t,r,...o){var s,i=this;return{next:(s=We(function*(){i.logger_except.includes(r)||ht.logSuccess("WebSocket Connection is OPEN!");let a=0;const l=function(){var u=We(function*(){a+=1;try{i.logger_except.includes(r)||ht.logInfo("Eel Call:",r);let c=yield eel[r](...o)();i.logger_except.includes(r)||ht.logInfo("Eel Result:",c),t.next(c)}catch(c){ht.logError(String(c)),t.error(c),a<=i.max_attempt&&setTimeout(l,1e3)}});return function(){return u.apply(this,arguments)}}();return yield l()}),function(){return s.apply(this,arguments)}),error:s=>{ht.logError(s),t.error(s)}}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),gO=(()=>{class e{constructor(t){this.eelService=t,this.GET_DATA="dashboard_get_data"}getData(){return this.eelService.call(this.GET_DATA)}}return e.\u0275fac=function(t){return new(t||e)($(ra))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),on=(()=>{class e{get loggedUser(){return this._loggedUser}constructor(t){this.eelService=t,this.LOGIN="auth_login",this.LOGOUT="auth_logout",this.ME="auth_me",this.IS_LOGGED="auth_is_logged",this.REFRESH_ME="auth_refresh_me",this.UPDATE_LAST_VISIT="auth_update_last_visit",this._loggedUser=null,this.emitMeChangeSource=new vn(null)}login(t,r,o=!1,i=!0){return new Promise((a,l)=>{this.eelService.call(this.LOGIN,t,r,o).then(u=>{u.subscribe({next:c=>{c||l(),i&&this.refreshMe(),a(!0)},error:()=>l()})}).catch(u=>{l()})})}logout(t=!0){return new Promise((o,i)=>{this.eelService.call(this.LOGOUT).then(s=>{s.subscribe({next:a=>{t&&this.refreshMe(),o(!0)},error:()=>i()})}).catch(s=>{i()})})}me(){return this.eelService.call(this.ME)}observeMe(){return this.emitMeChangeSource.asObservable()}refreshMe(){this.eelService.call(this.REFRESH_ME).then(t=>{t.subscribe({next:r=>{this.me().then(o=>{o.subscribe({next:i=>{this._loggedUser=i,this.emitMeChangeSource.next(i)},error:i=>{ht.logError(i)}})}).catch(o=>{ht.logError(o)})}})})}isLogged(){return this.eelService.call(this.IS_LOGGED)}observeIsLogged(t=!1){let r=!1,o={take:null,interval:Ct.eelCallRefreshInterval,obs:new be(s=>{setInterval(()=>{s.next(r)},Ct.eelCallRefreshInterval+1)})};return new Promise((s,a)=>{this.eelService.callWithOptions(o,this.IS_LOGGED).then(l=>{l.subscribe({next:u=>{r=u&&t}}),s(l)}).catch(l=>{a()})})}updateLastVisit(){this.eelService.call(this.UPDATE_LAST_VISIT).then(t=>{t.subscribe({next:r=>{ht.logInfo("Updated last visit of logged user"),this.refreshMe()}})})}}return e.\u0275fac=function(t){return new(t||e)($(ra))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),go=(()=>{class e{constructor(t){this.eelService=t}all(){var t=this;return We(function*(){return t.eelService.call(t.ALL)})()}find(t){var r=this;return We(function*(){return r.eelService.call(r.FIND,t)})()}deleteById(t){var r=this;return We(function*(){return r.eelService.call(r.DELETE_BY_ID,t)})()}update(t,r){var o=this;return We(function*(){return o.eelService.call(o.UPDATE,t,r)})()}create(t){var r=this;return We(function*(){return r.eelService.call(r.CREATE,t)})()}checkAlreadyUsed(t,r){var o=this;return We(function*(){return o.eelService.call(o.CHECK_ALREADY_USED,t,r)})()}}return e.\u0275fac=function(t){return new(t||e)($(ra))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ap=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="task_all",this.FIND="task_find",this.DELETE_BY_ID="task_delete_by_id",this.UPDATE="task_update",this.REMOVE_ASSIGNMENT="task_remove_assignment",this.ADD_ASSIGNMENT="task_add_assignment",this.ADD_LABEL="task_add_label",this.REMOVE_LABEL="task_remove_label",this.CREATE="task_create",this.CHECK_ALREADY_USED="task_check_already_used"}removeAssignment(t,r){var o=this;return We(function*(){return o.eelService.call(o.REMOVE_ASSIGNMENT,t,r)})()}addAssignment(t,r){var o=this;return We(function*(){return o.eelService.call(o.ADD_ASSIGNMENT,t,r)})()}addLabel(t,r){var o=this;return We(function*(){return o.eelService.call(o.ADD_LABEL,t,r)})()}removeLabel(t,r){var o=this;return We(function*(){return o.eelService.call(o.REMOVE_LABEL,t,r)})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Hr=(()=>{class e{constructor(t){this.authService=t}getAvatarText(t){return t?.name&&t?.surname?t.name.substring(0,1)+t.surname.substring(0,1):t?t.username.substring(0,2):"-"}canDelete(t){let r=this.authService.loggedUser;return!!r&&!!(r.role?.permission_delete_all||t==r.id&&r.role?.permission_delete_own)}canModify(t){let r=this.authService.loggedUser;return!!r&&!!(r.role?.permission_edit_all||t==r.id&&r.role?.permission_edit_own)}createPasswordStrengthValidator(t){return r=>{const o=r.value;if(!o)return null;const i=/[A-Z]+/.test(o),s=/[a-z]+/.test(o),a=/[0-9]+/.test(o);return i&&s&&a&&o.length>=t?null:{passwordStrength:!0}}}datetimeNow(){const t=new Date;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")} ${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}:${String(t.getSeconds()).padStart(2,"0")}`}dateNow(){const t=new Date;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}reload(){window.location.reload()}}return e.\u0275fac=function(t){return new(t||e)($(on))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Qw(e,n){return t=>{if(t.parent&&n){const r=t.parent?.controls[e];return r&&r.updateValueAndValidity(),null}return t.parent&&t.parent.value&&t.value===t.parent?.controls[e].value?null:{matching:!0}}}let lp=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="task_status_all",this.FIND="task_status_find",this.DELETE_BY_ID="task_status_delete_by_id",this.UPDATE="task_status_update",this.CREATE="task_status_create",this.CHECK_ALREADY_USED="task_status_check_already_used"}getTaskById(t){var r=this;return We(function*(){let o=yield r.find(t);return yield function mO(e,n){const t="object"==typeof n;return new Promise((r,o)=>{const i=new Jn({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{t?r(n.defaultValue):o(new Fs)}});e.subscribe(i)})}(o)})()}getAll(){var t=this;return We(function*(){return new Promise((r,o)=>{t.all().then(i=>{i.subscribe({next:s=>{r(s)},error:s=>{o(s)}})})})})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_O=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="task_assignment_all",this.FIND="task_assignment_find",this.DELETE_BY_ID="task_assignment_delete_by_id",this.UPDATE="task_assignment_update",this.REMOVE_ASSIGNMENT="task_assignment_remove_assignment",this.ADD_ASSIGNMENT="task_assignment_add_assignment",this.ADD_LABEL="task_assignment_add_label",this.REMOVE_LABEL="task_assignment_remove_label",this.CREATE="task_assignment_create",this.CHECK_ALREADY_USED="task_assignment_check_already_used",this.UPDATE_BY_TASK_USER_ID_FROM_DICT="task_assignment_update_by_task_user_id_from_dict"}updateByTaskUserId(t,r,o){return this.eelService.call(this.UPDATE_BY_TASK_USER_ID_FROM_DICT,t,r,o)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function vO(e,n){if(1&e&&(Se(0),h(1,"div",1)(2,"span",2),v(3),w(4,"translate"),p()(),Ie()),2&e){const t=S();f(1),ni("background-color",t.color),_("title",t.tooltip),f(2),b(" ",D(4,4,t.text)," ")}}let xu=(()=>{class e{constructor(){this.tooltip=""}darkTxt(){return!!this.color&&parseInt(this.color,16)>.75*parseInt("ffffff",16)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-text-avatar"]],inputs:{color:"color",text:"text",tooltip:"tooltip"},decls:1,vars:1,consts:[[4,"ngIf"],["data-bs-toggle","tooltip","data-bs-placement","top",1,"avatar",3,"title"],[1,"avatar-content","text-uppercase"]],template:function(t,r){1&t&&x(0,vO,5,6,"ng-container",0),2&t&&_("ngIf",r.text&&r.color)},dependencies:[Ae,ke],styles:[".dark-txt[_ngcontent-%COMP%]{color:#7e848f}"]}),e})(),Gr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-close-btn"]],decls:6,vars:3,consts:[["type","button","data-bs-dismiss","modal",1,"btn"],["closeBtn",""],[1,"bx","bx-x","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&(h(0,"button",0,1),E(2,"i",2),h(3,"span",3),v(4),w(5,"translate"),p()()),2&t&&(f(4),b(" ",D(5,1,"close")," "))},dependencies:[ke]}),e})(),zr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-x-btn"]],decls:2,vars:0,consts:[["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close","rounded-pill"],[1,"bi","bi-x"]],template:function(t,r){1&t&&(h(0,"button",0),E(1,"i",1),p())}}),e})();function yO(e,n){if(1&e&&(h(0,"div",9)(1,"p"),v(2),w(3,"translate"),p()()),2&e){const t=S(2);f(2),b(" ",D(3,1,t.body)," ")}}function bO(e,n){if(1&e){const t=te();h(0,"button",10),O("click",function(){return V(t),B(S(2).onConfirm.emit())}),E(1,"i",11),h(2,"span",12),v(3),w(4,"translate"),p()()}if(2&e){const t=S(2);f(3),b(" ",D(4,1,t.confirmBtnTxt)," ")}}function CO(e,n){if(1&e&&(h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),w(6,"translate"),p(),E(7,"app-x-btn"),p(),x(8,yO,4,3,"div",6),h(9,"div",7),E(10,"app-close-btn"),x(11,bO,5,3,"button",8),p()()()()),2&e){const t=S();Le("modal-borderless",t.borderless),_("id",t.target),ve("aria-labelledby",t.target),f(1),Le("modal-dialog-centered",t.centered),f(4),b(" ",D(6,9,t.title)," "),f(3),_("ngIf",t.body),f(3),_("ngIf",t.confirmBtn)}}let oa=(()=>{class e{constructor(){this.target="dialog",this.centered=!1,this.confirmBtn=!1,this.confirmBtnTxt="submit",this.borderless=!1,this.onConfirm=new Y}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-dialog-modal"]],inputs:{body:"body",title:"title",target:"target",centered:"centered",confirmBtn:"confirmBtn",confirmBtnTxt:"confirmBtnTxt",borderless:"borderless"},outputs:{onConfirm:"onConfirm"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id","modal-borderless",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["class","modal-body",4,"ngIf"],[1,"modal-footer"],["type","button","class","btn btn-primary ml-1","data-bs-dismiss","modal",3,"click",4,"ngIf"],[1,"modal-body"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&x(0,CO,12,11,"div",0),2&t&&_("ngIf",r.title&&r.target)},dependencies:[Ae,Gr,zr,ke]}),e})(),up=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="role_all",this.FIND="role_find",this.DELETE_BY_ID="role_delete_by_id",this.UPDATE="role_update",this.CREATE="role_create",this.CHECK_ALREADY_USED="role_check_already_used"}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function wO(e,n){if(1&e&&(h(0,"div",14),v(1),w(2,"translate"),h(3,"strong"),v(4),p()()),2&e){const t=S(2);f(1),b(" ",D(2,2,"role"),": "),f(3),ri(t.role.name)}}const DO=function(e){return{date:e}};function EO(e,n){if(1&e&&(h(0,"div",15),v(1),w(2,"translate"),p()),2&e){const t=S(2);f(1),b(" ",qd(2,1,"assignment-date",function ly(e,n,t,r){return cy(P(),kt(),e,n,t,r)}(4,DO,t.assignmentDate))," ")}}function SO(e,n){if(1&e){const t=te();h(0,"button",16),O("click",function(){return V(t),B(S(2).onRemoveFromTask.emit())}),v(1),w(2,"translate"),p()}2&e&&(f(1),b(" ",D(2,1,"remove-from-task")," "))}function IO(e,n){if(1&e&&(h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),p(),E(6,"app-x-btn"),p(),h(7,"div",6),E(8,"p"),h(9,"div")(10,"span",7),v(11),p(),h(12,"span",7),v(13),p(),v(14),h(15,"strong",7),v(16),p(),v(17),p(),x(18,wO,5,4,"div",8),x(19,EO,3,6,"div",9),p(),h(20,"div",10)(21,"div",11)(22,"div",12),E(23,"app-close-btn"),p(),h(24,"div",12),x(25,SO,3,3,"button",13),p()()()()()()),2&e){const t=S();_("id",t.target),ve("aria-labelledby",t.target),f(4),_("id",t.target),f(1),b(" ",t.user.username," "),f(6),ri(t.user.name?t.user.name+" ":""),f(2),ri(t.user.surname?t.user.surname+" ":""),f(1),b(" ",t.user.name||t.user.surname?" aka ":""," "),f(2),b(" ",t.user.username," "),f(1),b(" (",t.user.email,") "),f(1),_("ngIf",t.role),f(1),_("ngIf",t.assignmentDate),f(6),_("ngIf",t.editable)}}let TO=(()=>{class e{constructor(t){this.roleService=t,this.editable=!1,this.onRemoveFromTask=new Y}ngOnInit(){const t=this.user?.role_id;t&&this.roleService.find(t).then(r=>{r.subscribe({next:o=>{this.role=o}})})}}return e.\u0275fac=function(t){return new(t||e)(T(up))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-assigned-user-modal"]],inputs:{user:"user",target:"target",assignmentDate:"assignmentDate",editable:"editable"},outputs:{onRemoveFromTask:"onRemoveFromTask"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","text-capitalize",3,"id"],[1,"modal-body"],[1,"text-capitalize"],["class","mt-1",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"modal-footer"],[1,"row","justify-content-between"],[1,"col-auto"],["class","btn btn-outline-primary","data-bs-dismiss","modal",3,"click",4,"ngIf"],[1,"mt-1"],[1,"mt-5"],["data-bs-dismiss","modal",1,"btn","btn-outline-primary",3,"click"]],template:function(t,r){1&t&&x(0,IO,26,12,"div",0),2&t&&_("ngIf",r.user)},dependencies:[Ae,Gr,zr,ke]}),e})();function MO(e,n){if(1&e&&(Se(0),h(1,"div",1),w(2,"translate"),h(3,"span",2),E(4,"i"),p()(),Ie()),2&e){const t=S();f(1),ni("background-color",t.color),Le("shiny",t.shiny),_("title",D(2,7,t.tooltip)),f(3),ev(t.iconClass)}}let AO=(()=>{class e{constructor(){this.tooltip="",this.shiny=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-icon-avatar"]],inputs:{color:"color",iconClass:"iconClass",tooltip:"tooltip",shiny:"shiny"},decls:1,vars:1,consts:[[4,"ngIf"],["data-bs-toggle","tooltip","data-bs-placement","top",1,"avatar","me-3",3,"title"],[1,"avatar-content","text-uppercase"]],template:function(t,r){1&t&&x(0,MO,5,9,"ng-container",0),2&t&&_("ngIf",r.iconClass&&r.color)},dependencies:[Ae,ke],styles:[".shiny[_ngcontent-%COMP%]{box-shadow:#ffee004d 0 0 0 3px}"]}),e})(),ku=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="user_all",this.FIND="user_find",this.DELETE_BY_ID="user_delete_by_id",this.UPDATE="user_update",this.CREATE="user_create",this.CHECK_ALREADY_USED="user_check_already_used"}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function xO(e,n){1&e&&(h(0,"span",16),v(1),w(2,"translate"),p()),2&e&&(f(1),b(" ",D(2,1,"select")," "))}function kO(e,n){if(1&e&&(h(0,"span",16),v(1),p()),2&e){const t=S();f(1),b(" ",null==t.userSelected?null:t.userSelected.username," ")}}function FO(e,n){if(1&e){const t=te();h(0,"button",17),O("click",function(){const i=V(t).$implicit;return B(S().selectUser(i))}),v(1),p()}if(2&e){const t=n.$implicit;f(1),b(" ",t.username," ")}}function RO(e,n){1&e&&(Se(0),h(1,"div",18)(2,"p"),v(3),w(4,"translate"),p()(),Ie()),2&e&&(f(3),b(" ",D(4,1,"no-users")," "))}let NO=(()=>{class e{constructor(t){this.userService=t,this.alreadyAssignedUsers=[],this.noUsers=!1,this.onAddAssignment=new Y,this.onClose=new Y}ngOnInit(){}ngOnDestroy(){this.onClose.emit()}selectUser(t){this.userSelected=t}setUsersCanBeAssign(){this.noUsers=!1,this.userService.all().then(t=>{t.subscribe({next:r=>{this.usersCanBeAssign=r.filter(o=>!this.alreadyAssignedUsers.map(i=>i.id).includes(o.id)),(!this.usersCanBeAssign||0==this.usersCanBeAssign.length)&&(this.noUsers=!0)}})})}}return e.\u0275fac=function(t){return new(t||e)(T(ku))},e.\u0275cmp=ce({type:e,selectors:[["app-new-assignment-modal"]],inputs:{target:"target",alreadyAssignedUsers:"alreadyAssignedUsers"},outputs:{onAddAssignment:"onAddAssignment",onClose:"onClose"},decls:26,vars:16,consts:[["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split",3,"click"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],[1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-primary",3,"click"],[4,"ngIf"],[1,"modal-footer"],[1,"sr-only"],[1,"dropdown-item",3,"click"],[1,"alert","alert-light-warning"]],template:function(t,r){if(1&t&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),v(5),w(6,"translate"),p(),E(7,"app-x-btn"),p(),h(8,"div",5)(9,"p"),v(10),w(11,"translate"),p(),h(12,"div",6)(13,"div",7)(14,"button",8),O("click",function(){return r.setUsersCanBeAssign()}),x(15,xO,3,3,"span",9),x(16,kO,2,1,"ng-template",null,10,tn),p(),h(18,"div",11),x(19,FO,2,1,"button",12),p(),h(20,"button",13),O("click",function(){return r.onAddAssignment.emit(r.userSelected),r.userSelected=void 0}),v(21),w(22,"translate"),p()()(),x(23,RO,5,3,"ng-container",14),p(),h(24,"div",15),E(25,"app-close-btn"),p()()()()),2&t){const o=Ue(17);_("id",r.target),ve("aria-labelledby",r.target),f(4),_("id",r.target),f(1),b(" ",D(6,10,"add-new-assignment")," "),f(5),b(" ",D(11,12,"add-new-assignment-description")," "),f(5),_("ngIf",void 0===r.userSelected)("ngIfElse",o),f(4),_("ngForOf",r.usersCanBeAssign),f(2),b(" ",D(22,14,"add")," "),f(2),_("ngIf",r.noUsers)}},dependencies:[mn,Ae,Gr,zr,ke]}),e})(),Xw=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="todo_all",this.FIND="todo_find",this.DELETE_BY_ID="todo_delete_by_id",this.ALL_OF="todo_all_of",this.UPDATE="todo_update",this.CREATE="todo_create",this.CHECK_ALREADY_USED="todo_already_used"}allOf(t){var r=this;return We(function*(){return r.eelService.call(r.ALL_OF,t)})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function PO(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),w(6,"translate"),p(),E(7,"app-x-btn"),p(),h(8,"div",6)(9,"form",7),E(10,"input",8),p()(),h(11,"div",9),E(12,"app-close-btn"),h(13,"button",10),O("click",function(){return V(t),B(S().manageDeadlineForm.reset())}),v(14),w(15,"translate"),p(),h(16,"button",11),O("click",function(){return V(t),B(S()._onSubmit())}),E(17,"i",12),h(18,"span",13),v(19),w(20,"translate"),p()()()()()()}if(2&e){const t=S();_("id",t.target),ve("aria-labelledby",t.target),f(4),_("id",t.target),f(1),b(" ",D(6,9,"deadline")," "),f(4),_("formGroup",t.manageDeadlineForm),f(1),_("id",t.target+"-input"),f(4),b(" ",D(15,11,"reset")," "),f(2),_("disabled",t.manageDeadlineForm.invalid),f(3),b(" ",D(20,13,"confirm")," ")}}let OO=(()=>{class e{constructor(){this.value=null,this.onSubmit=new Y,this.manageDeadlineForm=new rn({deadline:new K(null)})}ngAfterContentInit(){this.manageDeadlineForm.controls.deadline.setValue(this.value??null)}_onSubmit(){this.manageDeadlineForm.valid&&(this.onSubmit.emit(this.manageDeadlineForm.controls.deadline.value),this.value=null,this.manageDeadlineForm.reset())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-manage-deadline"]],inputs:{value:"value",target:"target"},outputs:{onSubmit:"onSubmit"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[3,"formGroup"],["type","datetime-local","placeholder","dd/mm/yyyy HH:mm","formControlName","deadline",1,"form-control","flatpickr-time-picker-24h","mt-2",3,"id"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary","ml-1",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&x(0,PO,21,15,"div",0),2&t&&_("ngIf",r.target)},dependencies:[Ae,Dr,Fn,Cr,wr,Rn,Zn,Gr,zr,ke]}),e})();function LO(e,n){if(1&e&&(h(0,"span",4),v(1),w(2,"date"),p()),2&e){const t=S(2);Le("bg-light-primary",t.getDeadlineStatus()===t.DeadlineStatus.PRIMARY)("bg-light-warning",t.getDeadlineStatus()===t.DeadlineStatus.WARNING)("bg-light-danger",t.getDeadlineStatus()===t.DeadlineStatus.DANGER)("bg-light-success",t.getDeadlineStatus()===t.DeadlineStatus.DONE)("done",!!t.done)("cursor-pointer",t.editable),ve("data-bs-toggle",t.editable?"modal":"")("data-bs-target",t.editable?"#modify-deadline"+t.id+"-modal":""),f(1),b(" ",qd(2,15,t.deadline,t.dateFormat)," ")}}function VO(e,n){if(1&e){const t=te();h(0,"app-manage-deadline",5),O("onSubmit",function(o){return V(t),B(S(2).onDeadlineModified.emit(o))}),p()}if(2&e){const t=S(2);_("value",t.deadline)("target","modify-deadline"+t.id+"-modal")}}function BO(e,n){if(1&e){const t=te();h(0,"span",6),v(1),w(2,"translate"),p(),h(3,"app-manage-deadline",5),O("onSubmit",function(o){return V(t),B(S(2).onDeadlineModified.emit(o))}),p()}if(2&e){const t=S(2);ve("data-bs-toggle",t.editable?"modal":"")("data-bs-target",t.editable?"#add-deadline"+t.id+"-modal":""),f(1),b(" ",D(2,5,"add-deadline")," "),f(2),_("value",t.deadline)("target","add-deadline"+t.id+"-modal")}}function jO(e,n){if(1&e&&(Se(0),x(1,LO,3,18,"span",1),x(2,VO,1,2,"app-manage-deadline",2),x(3,BO,4,7,"ng-template",null,3,tn),Ie()),2&e){const t=Ue(4),r=S();f(1),_("ngIf",!!r.deadline)("ngIfElse",t),f(1),_("ngIf",!!r.deadline)}}var qr=(()=>{return(e=qr||(qr={}))[e.PRIMARY=0]="PRIMARY",e[e.WARNING=1]="WARNING",e[e.DANGER=2]="DANGER",e[e.DONE=3]="DONE",qr;var e})();let Jw=(()=>{class e{constructor(){this.dateFormat=Ct.fullDateFormat,this.DeadlineStatus=qr,this.deadline=null,this.done=!1,this.editable=!1,this.creable=!1,this.onDeadlineModified=new Y}getDeadlineStatus(){if(!this.deadline)return null;if(this.done)return qr.DONE;const t=new Date(Date.now()),r=new Date(this.deadline),o=new Date(r);if(o.setDate(o.getDate()-Ct.dangerDateDayBefore),t>o)return qr.DANGER;const i=new Date(r);return i.setDate(i.getDate()-Ct.warningDateDayBefore),t>i?qr.WARNING:qr.PRIMARY}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-deadline-badge"]],inputs:{deadline:"deadline",done:"done",editable:"editable",id:"id",creable:"creable"},outputs:{onDeadlineModified:"onDeadlineModified"},decls:1,vars:1,consts:[[4,"ngIf"],["class","badge",3,"bg-light-primary","bg-light-warning","bg-light-danger","bg-light-success","done","cursor-pointer",4,"ngIf","ngIfElse"],[3,"value","target","onSubmit",4,"ngIf"],["newDeadline",""],[1,"badge"],[3,"value","target","onSubmit"],[1,"badge","bg-light-secondary","cursor-pointer"]],template:function(t,r){1&t&&x(0,jO,5,3,"ng-container",0),2&t&&_("ngIf",r.id)},dependencies:[Ae,OO,Bb,ke],styles:[".done[_ngcontent-%COMP%]{text-decoration:line-through!important}"]}),e})();function UO(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),w(6,"translate"),p(),E(7,"app-x-btn"),p(),h(8,"div",6)(9,"form",7)(10,"label",8),v(11),w(12,"translate"),p(),h(13,"textarea",9),v(14," "),p(),E(15,"input",10),p()(),h(16,"div",11),E(17,"app-close-btn"),h(18,"button",12),O("click",function(){return V(t),B(S()._onSubmit())}),E(19,"i",13),h(20,"span",14),v(21),w(22,"translate"),p()()()()()()}if(2&e){const t=S();_("id",t.target),ve("aria-labelledby",t.target),f(4),_("id",t.target),f(1),b(" ",D(6,8,"add-new-todo")," "),f(4),_("formGroup",t.newItemForm),f(2),b(" ",D(12,10,"description")," "),f(7),_("disabled",t.newItemForm.invalid),f(3),b(" ",D(22,12,"confirm")," ")}}let eD=(()=>{class e{constructor(){this.onClose=new Y,this.onSubmit=new Y,this.newItemForm=new rn({description:new K(null,[re.required]),deadline:new K(null)})}ngAfterContentInit(){this.newItemForm.setValue({description:this.baseData?.description??null,deadline:this.baseData?.deadline??null})}_onSubmit(){this.newItemForm.valid&&(this.onSubmit.emit({description:this.newItemForm.controls.description.value,deadline:this.newItemForm.controls.deadline.value}),this.baseData=void 0,this.newItemForm.reset())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-new-todo-item-modal"]],inputs:{target:"target",baseData:"baseData"},outputs:{onClose:"onClose",onSubmit:"onSubmit"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[3,"formGroup"],["for","description",1,"form-label"],["placeholder","Description","aria-label","Description","aria-describedby","description-icon","formControlName","description","id","description","rows","6",1,"form-control"],["type","datetime-local","placeholder","Deadline","formControlName","deadline",1,"form-control","flatpickr-time-picker-24h","mt-2"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&x(0,UO,23,14,"div",0),2&t&&_("ngIf",r.target)},dependencies:[Ae,Dr,Fn,Cr,wr,Rn,Zn,Gr,zr,ke]}),e})();function $O(e,n){if(1&e&&E(0,"app-deadline-badge",19),2&e){const t=S(2);_("deadline",t.item.deadline)("done",!!t.item.done)("editable",t.utilsService.canModify(t.item.author_id))("id","deadline-todo-"+t.item.id)}}function HO(e,n){if(1&e&&E(0,"app-text-avatar",20),2&e){const t=S(2);_("color",t.item.author.avatar_hex_color)("text",t.utilsService.getAvatarText(t.item.author))("tooltip",t.item.author.username)}}function GO(e,n){1&e&&(h(0,"button",21),E(1,"i",22),p()),2&e&&ve("data-bs-target","#modify-todo-item-"+S(2).item.id)}function zO(e,n){1&e&&(h(0,"button",23),E(1,"i",24),p()),2&e&&ve("data-bs-target","#delete-todo-item-"+S(2).item.id)}const qO=function(e,n){return{description:e,deadline:n}};function WO(e,n){if(1&e){const t=te();h(0,"li",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"input",5),O("click",function(){return V(t),B(S().done())}),p()()(),h(5,"div",6)(6,"span",7),v(7),p()(),h(8,"div",8)(9,"div",9)(10,"div",10),x(11,$O,1,4,"app-deadline-badge",11),p(),h(12,"div",12),x(13,HO,1,3,"app-text-avatar",13),p(),h(14,"div",14),x(15,GO,2,1,"button",15),h(16,"app-new-todo-item-modal",16),O("onSubmit",function(o){return V(t),B(S().modify(o))}),p(),x(17,zO,2,1,"button",17),h(18,"app-dialog-modal",18),O("onConfirm",function(){return V(t),B(S().delete())}),p()()()()()()}if(2&e){const t=S();f(4),_("id","checkbox-todo-"+t.item.id)("checked",!!t.item.done),f(2),Le("done",!!t.item.done),f(1),b(" ",t.item.description," "),f(4),_("ngIf",t.item.deadline),f(2),_("ngIf",t.item.author),f(2),_("ngIf",t.utilsService.canModify(t.item.author_id)),f(1),_("target","modify-todo-item-"+t.item.id)("baseData",function uy(e,n,t,r,o){return dy(P(),kt(),e,n,t,r,o)}(16,qO,t.item.description,t.item.deadline)),f(1),_("ngIf",t.utilsService.canDelete(t.item.author_id)),f(1),_("target","delete-todo-item-"+t.item.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}}let KO=(()=>{class e{constructor(t,r){this.utilsService=t,this.todoService=r,this.refreshRequest=new Y}done(){this.item&&this.todoService.update(this.item.id,{done:!this.item.done}).then(t=>{t.subscribe({next:r=>{this.refreshRequest.emit()}})})}delete(){this.item&&this.todoService.deleteById(this.item.id).then(t=>{t.subscribe({next:r=>{this.refreshRequest.emit()}})})}modify(t){this.item&&this.todoService.update(this.item.id,t).then(r=>{r.subscribe({next:o=>{this.refreshRequest.emit()}})})}}return e.\u0275fac=function(t){return new(t||e)(T(Hr),T(Xw))},e.\u0275cmp=ce({type:e,selectors:[["app-task-todo-item"]],inputs:{item:"item"},outputs:{refreshRequest:"refreshRequest"},decls:1,vars:1,consts:[["class","widget-todo-item",4,"ngIf"],[1,"widget-todo-item"],[1,"row"],[1,"col-1"],[1,"checkbox","checkbox-shadow"],["type","checkbox",1,"form-check-input",3,"id","checked","click"],[1,"col-8"],[1,"widget-todo-title","ml-50"],[1,"col-xxl-3"],[1,"row","justify-content-between"],[1,"col-6","d-flex","justify-content-center"],["style","margin-right: 1vw;",3,"deadline","done","editable","id",4,"ngIf"],[1,"col-2","d-flex","justify-content-center"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],[1,"col-4","d-flex","justify-content-center"],["class","btn btn-sm icon btn-light mr-1","data-bs-toggle","modal",4,"ngIf"],[3,"target","baseData","onSubmit"],["class","btn btn-sm icon btn-light","data-bs-toggle","modal",4,"ngIf"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[2,"margin-right","1vw",3,"deadline","done","editable","id"],[1,"cursor-arrow",3,"color","text","tooltip"],["data-bs-toggle","modal",1,"btn","btn-sm","icon","btn-light","mr-1"],[1,"bi","bi-pencil"],["data-bs-toggle","modal",1,"btn","btn-sm","icon","btn-light"],[1,"bi","bi-trash"]],template:function(t,r){1&t&&x(0,WO,19,19,"li",0),2&t&&_("ngIf",r.item)},dependencies:[Ae,xu,oa,Jw,eD],styles:[".done[_ngcontent-%COMP%]{text-decoration:line-through!important;opacity:.8;filter:grayscale(1)}"]}),e})();const YO=["showTodoBtn"];function ZO(e,n){if(1&e){const t=te();h(0,"app-task-todo-item",27),O("refreshRequest",function(){V(t);const o=S(2);return o.loadTodoItems(),B(o.onRefresh.emit())}),p()}2&e&&_("item",n.$implicit)}function QO(e,n){if(1&e&&(Se(0),h(1,"div",17)(2,"div",18)(3,"span",19),v(4),w(5,"translate"),p()(),h(6,"div",20)(7,"div",21)(8,"div",22)(9,"span",19),v(10),w(11,"translate"),p()(),h(12,"div",23)(13,"span",19),v(14),w(15,"translate"),p()(),h(16,"div",24)(17,"span",19),v(18),w(19,"translate"),p()()()()(),h(20,"ul",25),x(21,ZO,1,1,"app-task-todo-item",26),p(),Ie()),2&e){const t=S();f(4),b(" ",D(5,5,"description")," "),f(6),b(" ",D(11,7,"deadline")," "),f(4),b(" ",D(15,9,"author")," "),f(4),b(" ",D(19,11,"actions")," "),f(3),_("ngForOf",t.todoItems)}}function XO(e,n){1&e&&(h(0,"p",28)(1,"span",19),v(2),w(3,"translate"),p()()),2&e&&(f(2),b(" ",D(3,1,"no-todo-items")," "))}function JO(e,n){if(1&e){const t=te();Se(0),h(1,"div",29)(2,"a",30),O("click",function(){return V(t),S(),B(Ue(12).click())}),v(3),w(4,"translate"),p()(),Ie()}2&e&&(f(3),b(" ",D(4,1,"show-list")," "))}let eL=(()=>{class e{constructor(t,r){this.todoService=t,this.authService=r,this.todoCollapseStatus=!1,this.onRefresh=new Y,this.todoItems=[]}ngOnInit(){this.loadTodoItems()}ngAfterViewInit(){this.todoCollapseStatus&&(this.showTodoBtn?.nativeElement.click(),this.todoCollapseStatus=!0)}loadTodoItems(){this.taskId&&this.todoService.allOf(this.taskId).then(t=>{t.subscribe({next:r=>{r&&(this.todoItems=r)}})})}newTodo(t){!this.taskId||!this.authService.loggedUser||this.todoService.create({description:t.description,deadline:t.deadline,task_id:this.taskId,author_id:this.authService.loggedUser.id}).then(r=>{r.subscribe({next:o=>{this.loadTodoItems()}})})}}return e.\u0275fac=function(t){return new(t||e)(T(Xw),T(on))},e.\u0275cmp=ce({type:e,selectors:[["app-task-todo-list"]],viewQuery:function(t,r){if(1&t&&vl(YO,5),2&t){let o;ys(o=bs())&&(r.showTodoBtn=o.first)}},inputs:{taskId:"taskId",todoCollapseStatus:"todoCollapseStatus"},outputs:{onRefresh:"onRefresh"},decls:21,vars:15,consts:[[1,"card","widget-todo"],[1,"card-header","border-bottom"],[1,"row","justify-content-between"],[1,"col-auto"],[1,"card-title","d-flex"],[1,"bx","bx-check","font-medium-5","pl-25","pr-75"],["data-bs-toggle","modal",1,"btn","icon","btn-light"],[1,"bi","bi-plus"],["type","button","data-bs-toggle","collapse","aria-expanded","false",1,"btn","icon","btn-light",3,"click"],["showTodoBtn",""],[1,"bi","bi-eye"],[1,"card-body","px-0","py-1"],[1,"collapse",3,"id"],[4,"ngIf","ngIfElse"],["noTodo",""],[4,"ngIf"],[3,"target","onSubmit"],[1,"row","justify-content-between","widget-todo-item"],[1,"col-8","offset-1","d-flex","justify-content-start"],[1,"badge","bg-light-secondary"],[1,"col-3","d-none","d-xxl-block"],[1,"row"],[1,"col-6","d-flex","justify-content-center"],[1,"col-2","d-flex","justify-content-center"],[1,"col-4","d-flex","justify-content-center"],["id","widget-todo-list",1,"widget-todo-list-wrapper"],[3,"item","refreshRequest",4,"ngFor","ngForOf"],[3,"item","refreshRequest"],[1,"text-center"],[1,"d-flex","justify-content-center"],["href","javascript:void(0)",1,"text-center",3,"click"]],template:function(t,r){if(1&t&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),E(5,"i",5),v(6),w(7,"translate"),p()(),h(8,"div",3)(9,"button",6),E(10,"i",7),p(),h(11,"button",8,9),O("click",function(){return r.todoCollapseStatus=!r.todoCollapseStatus}),E(13,"i",10),p()()()(),h(14,"div",11)(15,"div",12),x(16,QO,22,13,"ng-container",13),x(17,XO,4,3,"ng-template",null,14,tn),p(),x(19,JO,5,3,"ng-container",15),p(),h(20,"app-new-todo-item-modal",16),O("onSubmit",function(i){return r.newTodo(i)}),p()()),2&t){const o=Ue(18);f(6),b(" ",D(7,13,"sub-task")," "),f(3),ve("data-bs-target","#new-todo-"+r.taskId),f(2),ve("data-bs-target","#show-todo-"+r.taskId)("aria-controls","show-todo-"+r.taskId),f(2),Le("bi-eye",!r.todoCollapseStatus)("bi-eye-slash",r.todoCollapseStatus),f(2),_("id","show-todo-"+r.taskId),f(1),_("ngIf",r.todoItems.length>0)("ngIfElse",o),f(3),_("ngIf",!r.todoCollapseStatus),f(1),_("target","new-todo-"+r.taskId)}},dependencies:[mn,Ae,KO,eD,ke]}),e})();function tL(e,n){1&e&&E(0,"i",3),2&e&&_("ngClass",S(2).icon)}function nL(e,n){if(1&e&&(h(0,"span",1),x(1,tL,1,1,"i",2),v(2),w(3,"translate"),p()),2&e){const t=S();let r;ni("background-color",t.color+" !important")("color",t.textColor+" !important"),f(1),_("ngIf",t.icon),f(1),b(" ",D(3,6,null!==(r=t.text)&&void 0!==r?r:""),"\n")}}let rL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-badge"]],inputs:{text:"text",icon:"icon",color:"color",textColor:"textColor"},decls:1,vars:1,consts:[["class","badge bg-secondary m-1",3,"background-color","color",4,"ngIf"],[1,"badge","bg-secondary","m-1"],["class","bi",3,"ngClass",4,"ngIf"],[1,"bi",3,"ngClass"]],template:function(t,r){1&t&&x(0,nL,4,8,"span",0),2&t&&_("ngIf",r.text||r.icon)},dependencies:[Fb,Ae,ke]}),e})();function oL(e,n){if(1&e&&(h(0,"p"),v(1),p()),2&e){const t=S(2);f(1),b(" ",t.label.description," ")}}function iL(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),p(),E(6,"app-x-btn"),p(),h(7,"div",6),x(8,oL,2,1,"p",7),p(),h(9,"div",8)(10,"div",9)(11,"div",10),E(12,"app-close-btn"),p(),h(13,"div",10)(14,"button",11),O("click",function(){return V(t),B(S().onRemoveFromTask.emit())}),v(15),w(16,"translate"),p()()()()()()()}if(2&e){const t=S();_("id",t.target),ve("aria-labelledby",t.target),f(4),_("id",t.target),f(1),b(" ",t.label.name," "),f(3),_("ngIf",t.label.description),f(7),b(" ",D(16,6,"remove-from-task")," ")}}let sL=(()=>{class e{constructor(){this.onRemoveFromTask=new Y}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-manage-task-label-modal"]],inputs:{target:"target",label:"label"},outputs:{onRemoveFromTask:"onRemoveFromTask"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","text-capitalize",3,"id"],[1,"modal-body"],[4,"ngIf"],[1,"modal-footer"],[1,"row","justify-content-between"],[1,"col-auto"],["data-bs-dismiss","modal",1,"btn","btn-outline-primary",3,"click"]],template:function(t,r){1&t&&x(0,iL,17,8,"div",0),2&t&&_("ngIf",r.label)},dependencies:[Ae,Gr,zr,ke]}),e})(),tD=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="task_label_all",this.FIND="task_label_find",this.DELETE_BY_ID="task_label_delete_by_id",this.UPDATE="task_label_update",this.CREATE="task_label_create",this.CHECK_ALREADY_USED="task_label_check_already_used"}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function aL(e,n){1&e&&(h(0,"span",16),v(1),w(2,"translate"),p()),2&e&&(f(1),b(" ",D(2,1,"select")," "))}function lL(e,n){if(1&e&&(h(0,"span",16),v(1),p()),2&e){const t=S();f(1),b(" ",null==t.labelSelected?null:t.labelSelected.name," ")}}function uL(e,n){if(1&e){const t=te();h(0,"button",17),O("click",function(){const i=V(t).$implicit;return B(S().select(i))}),v(1),p()}if(2&e){const t=n.$implicit;f(1),b(" ",t.name," ")}}function cL(e,n){1&e&&(Se(0),h(1,"div",18)(2,"p"),v(3),w(4,"translate"),p()(),Ie()),2&e&&(f(3),b(" ",D(4,1,"no-labels")," "))}let dL=(()=>{class e{constructor(t,r){this.taskService=t,this.taskLabelService=r,this.alreadyAssignedLabels=[],this.noLabels=!1,this.onAdd=new Y,this.onClose=new Y}ngOnDestroy(){this.onClose.emit()}select(t){this.labelSelected=t}setLabelsCanBeAssign(){this.noLabels=!1,this.taskLabelService.all().then(t=>{t.subscribe({next:r=>{this.labelsCanBeAssign=r.filter(o=>!this.alreadyAssignedLabels.map(i=>i.id).includes(o.id)),(!this.labelsCanBeAssign||0==this.labelsCanBeAssign.length)&&(this.noLabels=!0)}})})}}return e.\u0275fac=function(t){return new(t||e)(T(ap),T(tD))},e.\u0275cmp=ce({type:e,selectors:[["app-add-task-label-modal"]],inputs:{target:"target",alreadyAssignedLabels:"alreadyAssignedLabels"},outputs:{onAdd:"onAdd",onClose:"onClose"},decls:26,vars:16,consts:[["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split",3,"click"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],[1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-primary",3,"click"],[4,"ngIf"],[1,"modal-footer"],[1,"sr-only"],[1,"dropdown-item",3,"click"],[1,"alert","alert-light-warning"]],template:function(t,r){if(1&t&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),v(5),w(6,"translate"),p(),E(7,"app-x-btn"),p(),h(8,"div",5)(9,"p"),v(10),w(11,"translate"),p(),h(12,"div",6)(13,"div",7)(14,"button",8),O("click",function(){return r.setLabelsCanBeAssign()}),x(15,aL,3,3,"span",9),x(16,lL,2,1,"ng-template",null,10,tn),p(),h(18,"div",11),x(19,uL,2,1,"button",12),p(),h(20,"button",13),O("click",function(){return r.onAdd.emit(r.labelSelected),r.labelSelected=void 0}),v(21),w(22,"translate"),p()()(),x(23,cL,5,3,"ng-container",14),p(),h(24,"div",15),E(25,"app-close-btn"),p()()()()),2&t){const o=Ue(17);_("id",r.target),ve("aria-labelledby",r.target),f(4),_("id",r.target),f(1),b(" ",D(6,10,"add-new-label")," "),f(5),b(" ",D(11,12,"add-new-label-description")," "),f(5),_("ngIf",void 0===r.labelSelected)("ngIfElse",o),f(4),_("ngForOf",r.labelsCanBeAssign),f(2),b(" ",D(22,14,"add")," "),f(2),_("ngIf",r.noLabels)}},dependencies:[mn,Ae,Gr,zr,ke]}),e})(),fL=(()=>{class e{constructor(t){this.el=t,this.offset=20,this.base=10}ngAfterViewInit(){this.refreshHeight()}onChange(t){this.refreshHeight()}refreshHeight(){const t=this.el.nativeElement;let r=this.base;t.scrollHeight&&(r=t.scrollHeight+0),t.style.height=r+"px",t.style.overflowY="hidden"}}return e.\u0275fac=function(t){return new(t||e)(T(Ut))},e.\u0275dir=oe({type:e,selectors:[["","appAutoHeight",""]],hostBindings:function(t,r){1&t&&O("input",function(){return r.onChange()})},inputs:{offset:"offset",base:"base"}}),e})();const hL=["closeBtn"];function pL(e,n){if(1&e&&(h(0,"div",18)(1,"h5",19),v(2),w(3,"translate"),p(),E(4,"app-x-btn"),p()),2&e){const t=S(2);f(1),_("id",t.target),f(1),b(" ",D(3,2,t.title)," ")}}function gL(e,n){if(1&e&&(h(0,"p"),v(1),w(2,"translate"),p()),2&e){const t=S(2);f(1),b(" ",D(2,1,t.description)," ")}}function mL(e,n){1&e&&(h(0,"span",20),v(1),w(2,"translate"),p()),2&e&&(f(1),b(" ",D(2,1,"select")," "))}function _L(e,n){if(1&e&&(h(0,"span",20),v(1),p()),2&e){const t=S(2);f(1),b(" ",t.showMaskFn(t.selectedItem)," ")}}function vL(e,n){if(1&e){const t=te();h(0,"button",21),O("click",function(){const i=V(t).$implicit;return B(S(2).select(i))}),v(1),p()}if(2&e){const t=n.$implicit,r=S(2);_("disabled",r.disableCurrent&&r.comparatorFn(t,r.currentValue)),f(1),b(" ",r.showMaskFn(t)," ")}}function yL(e,n){1&e&&(Se(0),h(1,"div",22)(2,"p"),v(3),w(4,"translate"),p()(),Ie()),2&e&&(f(3),b(" ",D(4,1,"no-items")," "))}const bL=function(){return[]};function CL(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3),x(3,pL,5,4,"div",4),h(4,"div",5),x(5,gL,3,3,"p",6),h(6,"div",7)(7,"div",8)(8,"button",9),O("click",function(){V(t);const o=S();return o.onSelect.emit(o.selectedItem),B(o.selectedItem=void 0)}),v(9),w(10,"translate"),p(),h(11,"button",10),x(12,mL,3,3,"span",11),x(13,_L,2,1,"ng-template",null,12,tn),p(),h(15,"div",13),x(16,vL,2,2,"button",14),p()()(),x(17,yL,5,3,"ng-container",6),p(),h(18,"div",15),E(19,"app-close-btn")(20,"button",16,17),p()()()()}if(2&e){const t=Ue(14),r=S();_("id",r.target),ve("aria-labelledby",r.target),f(3),_("ngIf",r.title),f(2),_("ngIf",r.description),f(4),b(" ",D(10,9,r.confirmBtnText)," "),f(3),_("ngIf",void 0===r.selectedItem)("ngIfElse",t),f(4),_("ngForOf",r.getItems()),f(1),_("ngIf",r.getItems()==pt(11,bL))}}let wL=(()=>{class e{constructor(){this.options=[],this.selectOne=!0,this.confirmBtnText="add",this.showMaskFn=t=>t,this.comparatorFn=(t,r)=>t==r,this.showCurrentInList=!1,this.disableCurrent=!0,this.onClose=new Y,this.onSelect=new Y}ngOnInit(){}getItems(){if(!this.options)return[];let t=this.options;return!this.showCurrentInList&&this.currentValue&&(t=this.options.filter(r=>!this.comparatorFn(r,this.currentValue))),t}select(t){this.onSelect.emit(t),this.selectOne&&this.closeBtn&&(this.closeBtn.nativeElement.click(),this.onClose.emit())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-dropdown-modal"]],viewQuery:function(t,r){if(1&t&&vl(hL,5),2&t){let o;ys(o=bs())&&(r.closeBtn=o.first)}},inputs:{target:"target",options:"options",currentValue:"currentValue",title:"title",description:"description",selectOne:"selectOne",confirmBtnText:"confirmBtnText",showMaskFn:"showMaskFn",comparatorFn:"comparatorFn",showCurrentInList:"showCurrentInList",disableCurrent:"disableCurrent"},outputs:{onClose:"onClose",onSelect:"onSelect"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],["class","modal-header",4,"ngIf"],[1,"modal-body"],[4,"ngIf"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button",1,"btn","btn-outline-primary",3,"click"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],[1,"dropdown-menu"],["class","dropdown-item",3,"disabled","click",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"d-none"],["closeBtn",""],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"sr-only"],[1,"dropdown-item",3,"disabled","click"],[1,"alert","alert-light-warning"]],template:function(t,r){1&t&&x(0,CL,22,12,"div",0),2&t&&_("ngIf",r.target)},dependencies:[mn,Ae,Gr,zr,ke]}),e})();function DL(e,n){if(1&e){const t=te();h(0,"app-badge",54),O("click",function(){return V(t),B(S(3).updateLastWatched())}),p()}2&e&&_("icon","bi-bell-fill")("color","#db5c5c")("text","news")}function EL(e,n){if(1&e&&(Se(0),h(1,"div",50),E(2,"app-badge",51),h(3,"span",52),v(4),p(),x(5,DL,1,3,"app-badge",53),p(),Ie()),2&e){const t=S(2);f(2),_("text",t.task.priority.toString())("color","#e2d3f2")("textColor","#181e24"),f(2),b(" ",t.task.name," "),f(1),_("ngIf",t.hasNews)}}function SL(e,n){if(1&e){const t=te();h(0,"div",29)(1,"div",55)(2,"input",56,57),O("input",function(){V(t);const o=Ue(3);return B(S(2).blueprintModificateTask.priority=+o.value)}),w(4,"translate"),p()(),h(5,"div",6)(6,"div",58)(7,"textarea",59,60),O("input",function(){V(t);const o=Ue(8);return B(S(2).blueprintModificateTask.name=o.value)}),w(9,"translate"),v(10," "),p()()()()}if(2&e){const t=S(2);f(2),$t("placeholder",D(4,6,"priority")),_("value",t.task.priority),f(5),$t("placeholder",D(9,8,"name")),_("value",null==t.blueprintModificateTask?null:t.blueprintModificateTask.name)("base",0)("offset",10)}}function IL(e,n){1&e&&(E(0,"i",61),w(1,"translate")),2&e&&ve("title",D(1,1,"not-assigned"))}function TL(e,n){1&e&&(h(0,"button",70),E(1,"i",71),v(2),w(3,"translate"),p()),2&e&&(ve("data-bs-target","#move-task-"+S(3).task.id),f(2),b(" ",D(3,2,"move-task")," "))}function ML(e,n){if(1&e){const t=te();h(0,"button",69),O("click",function(){V(t),S(2);const o=Ue(30);return S().inModify=!0,B(o.click())}),E(1,"i",72),v(2),w(3,"translate"),p()}2&e&&(f(2),b(" ",D(3,1,"modify")," "))}function AL(e,n){1&e&&(h(0,"button",70),E(1,"i",73),v(2),w(3,"translate"),p()),2&e&&(ve("data-bs-target","#delete-request-"+S(3).task.id),f(2),b(" ",D(3,2,"delete")," "))}function xL(e,n){if(1&e){const t=te();h(0,"div",62)(1,"div",63)(2,"button",64),E(3,"i",65),p(),h(4,"div",66),x(5,TL,4,4,"button",67),x(6,ML,4,3,"button",68),x(7,AL,4,4,"button",67),h(8,"button",69),O("click",function(){return V(t),B(S(2).refreshTask())}),E(9,"i",42),v(10),w(11,"translate"),p()()()()}if(2&e){const t=S(2);f(5),_("ngIf",null==t.authService.loggedUser.role?null:t.authService.loggedUser.role.permission_move),f(1),_("ngIf",t.utilsService.canModify(t.task.author_id)),f(1),_("ngIf",t.utilsService.canDelete(t.task.author_id)),f(3),b(" ",D(11,4,"refresh")," ")}}function kL(e,n){if(1&e){const t=te();h(0,"div")(1,"button",74),O("click",function(){return V(t),B(S(2).initBlueprintTask())}),v(2),w(3,"translate"),p(),h(4,"button",75),O("click",function(){V(t);const o=S(2);return B(o.modify(o.blueprintModificateTask))}),v(5),w(6,"translate"),E(7,"i",76),p()()}2&e&&(f(2),b(" ",D(3,2,"reset")," "),f(3),b(" ",D(6,4,"submit")," "))}function FL(e,n){if(1&e){const t=te();Se(0),E(1,"app-badge",77),h(2,"app-manage-task-label-modal",78),O("onRemoveFromTask",function(){const i=V(t).$implicit;return B(S(2).removeLabelFromTask(i))}),p(),Ie()}if(2&e){const t=n.$implicit,r=S(2);f(1),_("text",t.name)("color",t.hex_color),ve("data-bs-target","#label-"+t.id+"-task-"+r.task.id+"-modal"),f(1),_("target","label-"+t.id+"-task-"+r.task.id+"-modal")("label",t)}}function RL(e,n){if(1&e&&(Se(0),v(1),Ie()),2&e){const t=S(2);f(1),b(" ",t.task.description," ")}}function NL(e,n){if(1&e){const t=te();h(0,"div",58)(1,"textarea",79,80),O("input",function(){V(t);const o=Ue(2);return B(S(2).blueprintModificateTask.description=o.value)}),w(3,"translate"),v(4," "),p()()}if(2&e){const t=S(2);f(1),$t("placeholder",D(3,2,"description")),_("value",null==t.blueprintModificateTask?null:t.blueprintModificateTask.description)}}function PL(e,n){if(1&e&&E(0,"app-text-avatar",81),2&e){const t=S(2);_("color",t.task.author.avatar_hex_color)("text",t.utilsService.getAvatarText(t.task.author))("tooltip",t.task.author.username)}}function OL(e,n){if(1&e){const t=te();h(0,"button",82),O("click",function(){V(t);const o=S(2);return B(o.modify({task_status_id:null==o.task.task_status?null:o.task.task_status.default_prev_task_status_id}))}),E(1,"i",83),v(2),w(3,"async"),p()}if(2&e){const t=S(2);let r;f(2),b(" ",null==(r=D(3,1,t.prevStatus))?null:r.name," ")}}function LL(e,n){if(1&e){const t=te();Se(0),E(1,"app-text-avatar",84),h(2,"app-manage-assigned-user-modal",85),O("onRemoveFromTask",function(){const i=V(t).$implicit;return B(S(2).removeUserFromTask(i.user.id))}),p(),Ie()}if(2&e){const t=n.$implicit,r=S(2);f(1),_("color",t.user.avatar_hex_color)("text",r.utilsService.getAvatarText(t.user))("tooltip",t.user.username),ve("data-bs-target","#manage-assignment-user-"+t.user.id+"-modal"),f(1),_("user",t.user)("target","manage-assignment-user-"+t.user.id+"-modal")("assignmentDate",t.assigned_at)("editable",!(null==r.authService.loggedUser.role||!r.authService.loggedUser.role.permission_change_assignment))}}function VL(e,n){if(1&e){const t=te();Se(0),E(1,"app-icon-avatar",86),h(2,"app-new-assignment-modal",87),O("onAddAssignment",function(o){return V(t),B(S(2).addAssignment(o))})("onClose",function(){V(t);const o=S(2);return B(o.onAddAssignment.emit({target:o.task.id,new:o.task}))}),p(),Ie()}if(2&e){const t=S(2);f(1),ve("data-bs-target","#new-assignment-modal-"+t.task.id),f(1),_("target","new-assignment-modal-"+t.task.id)("alreadyAssignedUsers",t.getAssignedUsers())}}function BL(e,n){if(1&e){const t=te();h(0,"button",88),O("click",function(){V(t);const o=S(2);return B(o.modify({task_status_id:null==o.task.task_status?null:o.task.task_status.default_next_task_status_id}))}),v(1),w(2,"async"),E(3,"i",89),p()}if(2&e){const t=S(2);let r;f(1),b(" ",null==(r=D(2,1,t.nextStatus))?null:r.name," ")}}const nD=function(){return[]};function jL(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"h4",4)(4,"div",5)(5,"div",6),x(6,EL,6,5,"ng-container",7),x(7,SL,11,10,"ng-template",null,8,tn),p(),h(9,"div",9)(10,"div",10),x(11,IL,2,3,"i",11),p(),x(12,xL,12,6,"div",12),x(13,kL,8,6,"ng-template",null,13,tn),p()()(),h(15,"div",14)(16,"app-deadline-badge",15),O("onDeadlineModified",function(o){return V(t),B(S().modify({deadline:o}))}),p(),h(17,"span",16),v(18," | "),p(),x(19,FL,3,5,"ng-container",17),E(20,"app-badge",18),h(21,"app-add-task-label-modal",19),O("onAdd",function(o){return V(t),B(S().addLabelToTask(o))})("onClose",function(){V(t);const o=S();return B(o.onAddLabel.emit({target:o.task.id,new:o.task}))}),p()(),h(22,"p",20),x(23,RL,2,1,"ng-container",7),p(),x(24,NL,5,4,"ng-template",null,21,tn),h(26,"div",22)(27,"div",23)(28,"h2",24)(29,"button",25,26),v(31),w(32,"translate"),p()(),h(33,"div",27)(34,"div",28)(35,"div",29)(36,"div",30)(37,"div",1)(38,"div",2)(39,"div",3)(40,"div",29)(41,"div",31)(42,"div",32)(43,"label"),v(44),w(45,"translate"),p()(),h(46,"div",32)(47,"div",33)(48,"div",34),E(49,"input",35),h(50,"div",36),E(51,"i",37),p()()()()(),h(52,"div",31)(53,"div",32)(54,"label"),v(55),w(56,"translate"),p()(),h(57,"div",32)(58,"div",29)(59,"div",38)(60,"div",33)(61,"div",34),E(62,"input",35),h(63,"div",36),E(64,"i",39),p()()()(),h(65,"div",38),x(66,PL,1,3,"app-text-avatar",40),p()()()(),h(67,"div",31)(68,"div",32)(69,"label"),v(70),w(71,"translate"),p()(),h(72,"div",32)(73,"div",33)(74,"div",34),E(75,"input",35),h(76,"div",36),E(77,"i",41),p()()()()(),h(78,"div",31)(79,"div",32)(80,"label"),v(81),w(82,"translate"),p()(),h(83,"div",32)(84,"div",33)(85,"div",34),E(86,"input",35),h(87,"div",36),E(88,"i",42),p()()()()()()()()()()()()()()(),h(89,"app-task-todo-list",43),O("onRefresh",function(){return V(t),B(S().refreshTask())}),p()()(),h(90,"div",44)(91,"div",32),x(92,OL,4,3,"button",45),p(),h(93,"div",32),x(94,LL,3,8,"ng-container",17),x(95,VL,3,3,"ng-container",46),p(),h(96,"div",32),x(97,BL,4,3,"button",47),p()(),h(98,"app-dialog-modal",48),O("onConfirm",function(){return V(t),B(S().delete())}),p(),h(99,"app-dropdown-modal",49),O("onSelect",function(o){return V(t),B(S().changeStatus(o))}),p()()}if(2&e){const t=Ue(8),r=Ue(14),o=Ue(25),i=S();let s,a,l;f(6),_("ngIf",!i.inModify)("ngIfElse",t),f(5),_("ngIf",!i.userAssignedToTask(i.authService.loggedUser.id)&&!i.inModify),f(1),_("ngIf",!i.inModify)("ngIfElse",r),f(4),_("deadline",i.task.deadline)("done",!(null==i.task.task_status||!i.task.task_status.final))("editable",null!==(s=i.authService.loggedUser&&i.authService.loggedUser.role&&i.authService.loggedUser.role.permission_edit_task_deadline)&&void 0!==s&&s)("id","deadline-tas-"+i.task.id),f(3),_("ngForOf",i.task.labels),f(1),_("text","+"),ve("data-bs-target","#add-label-task-"+i.task.id+"-modal"),f(1),_("target","add-label-task-"+i.task.id+"-modal")("alreadyAssignedLabels",null!==(a=i.task.labels)&&void 0!==a?a:pt(60,nD)),f(2),_("ngIf",!i.inModify)("ngIfElse",o),f(3),_("id","moreDeatilsAccordion-"+i.task.id),f(3),ve("data-bs-target","#flush-collapseDetails-"+i.task.id),f(2),b(" ",D(32,50,"more-details")," "),f(2),_("id","flush-collapseDetails-"+i.task.id),ve("data-bs-parent","#moreDeatilsAccordion-"+i.task.id),f(11),b(" ",D(45,52,"id-code")," "),f(5),_("value",i.task.id),f(6),b(" ",D(56,54,"author")," "),f(7),_("value",null==i.task.author?null:i.task.author.email),f(4),_("ngIf",i.task.author),f(4),b(" ",D(71,56,"created-at")," "),f(5),_("value",i.task.created_at),f(6),b(" ",D(82,58,"updated-at")," "),f(5),_("value",i.task.updated_at),f(3),_("taskId",i.task.id)("todoCollapseStatus",i.todoCollapseStatus),f(3),_("ngIf",null==i.task.task_status?null:i.task.task_status.default_prev_task_status_id),f(2),_("ngForOf",i.task.assigned_users),f(1),_("ngIf",!(null==i.authService.loggedUser.role||!i.authService.loggedUser.role.permission_change_assignment)),f(2),_("ngIf",null==i.task.task_status?null:i.task.task_status.default_next_task_status_id),f(1),_("target","delete-request-"+i.task.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0),f(1),_("target","move-task-"+i.task.id)("title","move-task")("currentValue",i.task.task_status)("options",null!==(l=i.taskStatus)&&void 0!==l?l:pt(61,nD))("confirmBtnText","move")("showMaskFn",i.taskStatusMaskFn)("comparatorFn",i.compareTaskStatusFn)("showCurrentInList",!0)("disableCurrent",!0)}}let UL=(()=>{class e{taskStatusMaskFn(t){return t.name}compareTaskStatusFn(t,r){return t.id==r.id}constructor(t,r,o,i,s){this.taskService=t,this.authService=r,this.utilsService=o,this.taskStatusService=i,this.taskAssignmentService=s,this.todoCollapseStatus=!1,this.taskStatus=null,this.onDeletion=new Y,this.onModify=new Y,this.onRemoveAssignment=new Y,this.onAddAssignment=new Y,this.onRemoveLabel=new Y,this.onAddLabel=new Y,this._hasNews=!1,this._inModify=!1}get hasNews(){return this._hasNews}set hasNews(t){this._hasNews=t}ngOnInit(){this.task&&this.task.task_status&&(this.task.task_status.default_next_task_status_id&&(this.nextStatus=this.taskStatusService.getTaskById(this.task.task_status.default_next_task_status_id)),this.task.task_status.default_prev_task_status_id&&(this.prevStatus=this.taskStatusService.getTaskById(this.task.task_status.default_prev_task_status_id))),this.refreshHasNews()}get inModify(){return this._inModify}set inModify(t){this._inModify=t,this.task&&t&&this.initBlueprintTask()}initBlueprintTask(){this.task&&(this.blueprintModificateTask={id:this.task.id,name:this.task.name,description:this.task.description,priority:this.task.priority})}userAssignedToTask(t){if(!t||!this.task)return!1;let r=this.task.assigned_users?.map(o=>o.user.id).includes(t);return r||!1}getAssignedUsers(){return this.task?.assigned_users?.map(t=>t.user)??[]}removeUserFromTask(t){var r=this;return We(function*(){if(!r.task)return;ht.logInfo(`Removing user with id ${t} from task: ${r.task.id} - ${r.task.name}`);const o=r.task.id;r.taskService.removeAssignment(o,t).then(i=>{i.subscribe({next:s=>{r.refreshTask(()=>{r.onRemoveAssignment.emit({target:o,new:r.task})})}})})})()}addAssignment(t){var r=this;return We(function*(){r.task&&(ht.logInfo(`Add user ${t.username} to task: ${r.task.id} - ${r.task.name}`),r.taskService.addAssignment(r.task.id,t.id).then(i=>{i.subscribe({next:s=>{r.refreshTask()}})}))})()}delete(){if(!this.task)return;ht.logInfo("Remove task "+this.task?.name);const t=this.task.id;this.taskService.deleteById(t).then(r=>{r.subscribe({next:o=>{this.onDeletion.emit(t)}})})}removeLabelFromTask(t){if(!this.task)return;ht.logInfo("Remove label");const r=this.task.id;this.taskService.removeLabel(r,t.id).then(o=>{o.subscribe({next:i=>{this.refreshTask(()=>{this.onRemoveLabel.emit({target:r,new:this.task})})}})})}addLabelToTask(t){this.task&&(ht.logInfo("Add label"),this.taskService.addLabel(this.task.id,t.id).then(o=>{o.subscribe({next:i=>{this.refreshTask()}})}))}modify(t){if(!this.task)return;ht.logInfo("Modify task "+this.task?.name);const r=this.task.id;this.taskService.update(r,t).then(o=>{o.subscribe({next:i=>{this.refreshTask(()=>{this.onModify.emit({target:r,new:this.task})})}})})}refreshHasNews(){if(!this.authService.loggedUser||!this.task)return this.hasNews=!1,this.hasNews;if(this.userAssignedToTask(this.authService.loggedUser.id)){const t=this.task.assigned_users?.find(r=>r.user.id==this.authService.loggedUser.id);return t?null==t.last_watched_at?(this.hasNews=!0,this.hasNews):(this.hasNews=this.task.updated_at>t.last_watched_at,this.hasNews):(this.hasNews=!1,this.hasNews)}return null==this.authService.loggedUser.last_visit_at?(this.hasNews=!0,this.hasNews):(this.hasNews=this.task.updated_at>this.authService.loggedUser.last_visit_at,this.hasNews)}updateLastWatched(){!this.authService.loggedUser||!this.task||(this.userAssignedToTask(this.authService.loggedUser.id)?this.taskAssignmentService.updateByTaskUserId(this.task.id,this.authService.loggedUser.id,{last_watched_at:this.utilsService.datetimeNow()}).then(t=>{t.subscribe({next:r=>{ht.logInfo("Updated last watched"),this.refreshTask(()=>{this.refreshHasNews()})}})}):(this.hasNews=!1,this.authService.updateLastVisit()))}refreshTask(t=(()=>{})){this.task&&this.taskService.find(this.task.id).then(r=>{r.subscribe({next:o=>{this.task=o,t()}})})}changeStatus(t){!this.task||!t||this.modify({task_status_id:t.id})}}return e.\u0275fac=function(t){return new(t||e)(T(ap),T(on),T(Hr),T(lp),T(_O))},e.\u0275cmp=ce({type:e,selectors:[["app-task-preview"]],inputs:{task:"task",todoCollapseStatus:"todoCollapseStatus",taskStatus:"taskStatus"},outputs:{onDeletion:"onDeletion",onModify:"onModify",onRemoveAssignment:"onRemoveAssignment",onAddAssignment:"onAddAssignment",onRemoveLabel:"onRemoveLabel",onAddLabel:"onAddLabel"},decls:1,vars:1,consts:[["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],[1,"card-body"],[1,"card-title"],[1,"row","justify-content-between"],[1,"col-md-10"],[4,"ngIf","ngIfElse"],["titleModification",""],[1,"col-md-2","d-flex","justify-content-end"],[1,"mr-3"],["class","bi bi-clipboard2-x-fill not-assigned-task","data-bs-toggle","tooltip","data-bs-placement","top",4,"ngIf"],["class","btn-group mb-1",4,"ngIf","ngIfElse"],["confirmModifyBtn",""],[1,"d-flex","justify-content-start"],[3,"deadline","done","editable","id","onDeadlineModified"],[1,"separator"],[4,"ngFor","ngForOf"],["data-bs-toggle","modal",1,"cursor-pointer",3,"text"],[3,"target","alreadyAssignedLabels","onAdd","onClose"],[1,"card-text","mt-2"],["descriptionModification",""],[1,"accordion","accordion-flush","mb-1",3,"id"],[1,"accordion-item","rounded"],[1,"accordion-header"],["type","button","data-bs-toggle","collapse","aria-expanded","false","aria-controls","flush-collapseOne",1,"accordion-button","collapsed","rounded"],["openMoreDetailsBtn",""],[1,"accordion-collapse","collapse","rounded",3,"id"],[1,"accordion-body"],[1,"row"],[1,"col-12"],[1,"col-md-6"],[1,"col-md-auto"],[1,"form-group","has-icon-left"],[1,"position-relative"],["type","text","readonly","",1,"form-control",3,"value"],[1,"form-control-icon"],[1,"bi","bi-fingerprint"],[1,"col-auto"],[1,"bi","bi-person"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],[1,"bi","bi-hourglass-top"],[1,"bi","bi-arrow-clockwise"],[3,"taskId","todoCollapseStatus","onRefresh"],[1,"card-footer","d-flex","justify-content-between"],["class","btn btn-lg icon icon-left btn-outline-primary",3,"click",4,"ngIf"],[4,"ngIf"],["class","btn btn-lg icon icon-right btn-outline-primary",3,"click",4,"ngIf"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[3,"target","title","currentValue","options","confirmBtnText","showMaskFn","comparatorFn","showCurrentInList","disableCurrent","onSelect"],[1,"d-flex"],["data-bs-toggle","tooltip","data-bs-placement","top","title","Priority",1,"cursor-arrow",2,"font-size","small",3,"text","color","textColor"],[1,"text-break"],["class","cursor-pointer","style","font-size: medium;",3,"icon","color","text","click",4,"ngIf"],[1,"cursor-pointer",2,"font-size","medium",3,"icon","color","text","click"],[1,"col-md-2"],["type","number",1,"form-control","form-control-sm",3,"placeholder","value","input"],["priorityInput",""],[1,"form-group"],["id","task-title","appAutoHeight","",1,"form-control",3,"placeholder","value","base","offset","input"],["titleTA",""],["data-bs-toggle","tooltip","data-bs-placement","top",1,"bi","bi-clipboard2-x-fill","not-assigned-task"],[1,"btn-group","mb-1"],[1,"dropdown","icon-left"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","icon","btn-sm","btn-light","me-1"],[1,"bi","bi-three-dots-vertical"],[1,"dropdown-menu"],["class","dropdown-item","data-bs-toggle","modal",4,"ngIf"],["class","dropdown-item",3,"click",4,"ngIf"],[1,"dropdown-item",3,"click"],["data-bs-toggle","modal",1,"dropdown-item"],[1,"bi","bi-arrow-left-right","me-50"],[1,"bi","bi-pencil","me-50"],[1,"bi","bi-trash","me-50"],[1,"btn","icon","icon-right","btn-light",3,"click"],[1,"btn","icon","icon-right","btn-primary",3,"click"],[1,"bi","bi-check-lg"],["data-bs-toggle","modal",1,"cursor-pointer",3,"text","color"],[3,"target","label","onRemoveFromTask"],["id","task-description","appAutoHeight","",1,"form-control",3,"placeholder","value","input"],["descriptionTA",""],[1,"cursor-arrow",3,"color","text","tooltip"],[1,"btn","btn-lg","icon","icon-left","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-left"],["data-bs-toggle","modal",1,"cursor-pointer","me-3",3,"color","text","tooltip"],[3,"user","target","assignmentDate","editable","onRemoveFromTask"],["color","#5b6370","iconClass","bi bi-plus","tooltip","add-new-user","data-bs-toggle","modal",1,"cursor-pointer"],[3,"target","alreadyAssignedUsers","onAddAssignment","onClose"],[1,"btn","btn-lg","icon","icon-right","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-right"]],template:function(t,r){1&t&&x(0,jL,100,62,"div",0),2&t&&_("ngIf",r.task&&r.authService.loggedUser)},dependencies:[mn,Ae,xu,oa,TO,AO,NO,eL,rL,sL,dL,Jw,fL,wL,Vb,ke],styles:[".not-assigned-task[_ngcontent-%COMP%]{color:#de8c2f}.rounded[_ngcontent-%COMP%]{border-radius:15px}.separator[_ngcontent-%COMP%]{margin-left:.5vw;margin-right:.5vw}"]}),e})();function $L(e,n){if(1&e){const t=te();h(0,"app-task-preview",3),O("onDeletion",function(o){return V(t),B(S(2).onDeletion.emit(o))})("onAddAssignment",function(o){return V(t),B(S(2).onAddAssignment.emit(o))})("onRemoveAssignment",function(o){return V(t),B(S(2).onRemoveAssignment.emit(o))})("onModify",function(o){return V(t),B(S(2).onModify.emit(o))}),p()}if(2&e){const t=n.$implicit,r=n.index,o=S(2);_("todoCollapseStatus",0==r)("task",t)("taskStatus",o.taskStatus)}}function HL(e,n){if(1&e){const t=te();h(0,"div",4)(1,"div",5)(2,"button",6),O("click",function(){return V(t),B(S(2).scrollTop())}),E(3,"i",7),p()()()}}function GL(e,n){if(1&e&&(Se(0),x(1,$L,1,3,"app-task-preview",1),x(2,HL,4,0,"div",2),Ie()),2&e){const t=S();f(1),_("ngForOf",t.tasks),f(1),_("ngIf",t.tasks.length>1)}}let zL=(()=>{class e{constructor(t){this.authService=t,this.tasks=null,this.taskStatus=null,this.nextTaskStatus=null,this.prevTaskStatus=null,this.onTop=[],this.onDeletion=new Y,this.onModify=new Y,this.onRemoveAssignment=new Y,this.onAddAssignment=new Y,this.onRemoveLabel=new Y,this.onAddLabel=new Y,this.authService.refreshMe()}ngOnInit(){this.setOnTop()}setOnTop(){if(!this.tasks)return;const t=[],r=[];for(const o of this.tasks)this.onTop.includes(o.id)?t.push(o):r.push(o);this.tasks=[...t,...r]}scrollTop(){window.scroll(0,0)}}return e.\u0275fac=function(t){return new(t||e)(T(on))},e.\u0275cmp=ce({type:e,selectors:[["app-task-preview-list"]],inputs:{tasks:"tasks",taskStatus:"taskStatus",nextTaskStatus:"nextTaskStatus",prevTaskStatus:"prevTaskStatus",onTop:"onTop"},outputs:{onDeletion:"onDeletion",onModify:"onModify",onRemoveAssignment:"onRemoveAssignment",onAddAssignment:"onAddAssignment",onRemoveLabel:"onRemoveLabel",onAddLabel:"onAddLabel"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"todoCollapseStatus","task","taskStatus","onDeletion","onAddAssignment","onRemoveAssignment","onModify",4,"ngFor","ngForOf"],["class","row justify-content-center",4,"ngIf"],[3,"todoCollapseStatus","task","taskStatus","onDeletion","onAddAssignment","onRemoveAssignment","onModify"],[1,"row","justify-content-center"],[1,"col-auto"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-up-square"]],template:function(t,r){1&t&&x(0,GL,3,2,"ng-container",0),2&t&&_("ngIf",r.tasks)},dependencies:[mn,Ae,UL]}),e})(),rD=(()=>{class e{constructor(){this.title=""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-page-heading"]],inputs:{title:"title"},decls:4,vars:3,consts:[[1,"page-heading"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"h3"),v(2),w(3,"translate"),p()()),2&t&&(f(2),b(" ",D(3,1,r.title)," "))},dependencies:[ke]}),e})(),qL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-loader"]],decls:3,vars:0,consts:[[1,"row","justify-content-center"],[1,"col-auto"],["src","./assets/svg/grid.svg","alt","loader",1,"me-4"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"div",1),E(2,"img",2),p()())}}),e})();function WL(e,n){1&e&&E(0,"button",3)}function KL(e,n){if(1&e&&(h(0,"div",1),v(1),w(2,"translate"),x(3,WL,1,0,"button",2),p()),2&e){const t=S();f(1),b(" ",D(2,2,t.title)," "),f(2),_("ngIf",t.dismissable)}}let Fu=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-error-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-danger alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-danger","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&x(0,KL,4,4,"div",0),2&t&&_("ngIf",r.title)},dependencies:[Ae,ke]}),e})();function YL(e,n){if(1&e&&(h(0,"div",9)(1,"h4",10),v(2),w(3,"translate"),p()()),2&e){const t=S(2);f(2),b(" ",D(3,1,t.title)," ")}}function ZL(e,n){if(1&e){const t=te();h(0,"div",26)(1,"div",27)(2,"label",28),v(3),w(4,"translate"),p(),h(5,"input",29),O("input",function(){return V(t),B(S(3).filter())}),p()()()}if(2&e){const t=n.$implicit;f(3),b(" ",D(4,4,t)," "),f(2),_("name",t)("placeholder",t)("formControlName",t)}}function QL(e,n){if(1&e){const t=te();h(0,"form",11)(1,"div",12)(2,"div",13)(3,"h5",14),v(4),w(5,"translate"),p()(),h(6,"div",13)(7,"div",15)(8,"input",16,17),O("change",function(){V(t);const o=Ue(9),i=S(2);return i.filterMode=o.checked,B(i.filter())}),p(),h(10,"label",18),E(11,"i",19),v(12," / "),E(13,"i",20),p()()()(),h(14,"div",21),x(15,ZL,6,6,"div",22),p(),h(16,"div",23)(17,"button",24),O("click",function(){return V(t),B(S(2).reset())}),v(18),w(19,"translate"),p(),h(20,"button",25),O("click",function(){return V(t),B(S(2).filter())}),v(21),w(22,"translate"),p()()()}if(2&e){const t=S(2);_("formGroup",t.filterForm),f(4),b(" ",D(5,6,"filters")," "),f(4),_("checked",t.filterMode),f(7),_("ngForOf",t.filterFields),f(3),b(" ",D(19,8,"reset")," "),f(3),b(" ",D(22,10,"submit")," ")}}function XL(e,n){if(1&e&&(h(0,"section",1)(1,"div",2)(2,"div",3)(3,"div",4),x(4,YL,4,3,"div",5),h(5,"div",6)(6,"div",7),x(7,QL,23,12,"form",8),p()()()()()()),2&e){const t=S();f(4),_("ngIf",t.title),f(3),_("ngIf",t.filterForm)}}let oD=(()=>{class e{constructor(){this.entities=[],this.entitiesChange=new Y,this.onFilter=new Y,this.onReset=new Y,this._filterMode=!1}get filterMode(){return this._filterMode}set filterMode(t){this._filterMode=t,this.onFilter.emit()}ngOnInit(){if(this.filterFields){this.filterForm=new rn({});for(let t=0;t{for(let i=0;i{for(let i=0;i{return(e=Ru||(Ru={})).PRIORITY="priority",e.DEADLINE="deadline",e.CREATION="created_at",Ru;var e})();let u3=(()=>{class e{constructor(t,r,o){this.dashboardService=t,this.authService=r,this.taskService=o,this.OrderBy=Ru,this._orderBy=this.OrderBy.PRIORITY,this.loadingError=!1,this.dashboard=null,this.onTopTaskIdList=[],this.creationForm=new rn({name:new K("",[re.required]),description:new K(""),priority:new K("",[re.required]),selfAssigned:new K(!1,[re.required])}),this._orderReverse=!0,this.authService.refreshMe(),this.authService.updateLastVisit(),this.updateLastVisitInterval=setInterval(()=>{this.authService.updateLastVisit()},Ct.updateLastVisitInterval)}ngOnDestroy(){clearInterval(this.updateLastVisitInterval),this.authService.updateLastVisit()}get taskStatusIdIndex(){return this._taskStatusIdIndex}set taskStatusIdIndex(t){this._taskStatusIdIndex=t}get orderBy(){return this._orderBy}set orderBy(t){this._orderBy=t}get orderReverse(){return this._orderReverse}set orderReverse(t){this._orderReverse=t}ngOnInit(){this.loadDashboard()}loadDashboard(){this.dashboard=null,this.dashboardService.getData().then(t=>{t.subscribe({next:r=>{r?(this.dashboard=r,this.taskStatusIdIndex||(this.taskStatusIdIndex=this.dashboard.default_task_status_id),this.loadingError=!1):this.loadingError=!0}})})}getTaskStatusById(t){this.taskStatusIdIndex||(this.taskStatusIdIndex=this.dashboard?.default_task_status_id);const r=this.dashboard?.task_status?.filter(o=>o.id==t);return r?r[0]:null}getCurrentTaskStatus(){return this.taskStatusIdIndex?this.getTaskStatusById(this.taskStatusIdIndex):null}getNextTaskStatus(){let t=this.getCurrentTaskStatus();return t?t.default_next_task_status:null}getPrevTaskStatus(){let t=this.getCurrentTaskStatus();return t?t.default_prev_task_status:null}getAllTaskBasedOnStatusId(t){if(!this.dashboard||!t)return null;let r=this.dashboard.tasks.filter(o=>void 0!==o&&o.task_status_id===t);return r?(r?.sort((o,i)=>{const s=o[this.orderBy],a=i[this.orderBy];let l=0;return s>a&&(l=1),sr.id!=t))}updateTask(t){if(this.dashboard?.tasks){for(let r=0;r{o.subscribe({next:i=>{this.creationForm.reset(),r?this.taskService.addAssignment(i.id,this.authService.loggedUser.id).then(s=>{s.subscribe({next:a=>{this.taskService.find(i.id).then(l=>{l.subscribe({next:u=>{this.dashboard?.tasks.push(u)}})})}})}):this.dashboard?.tasks.push(i)}})})}}return e.\u0275fac=function(t){return new(t||e)(T(gO),T(on),T(ap))},e.\u0275cmp=ce({type:e,selectors:[["app-dashboard"]],decls:89,vars:35,consts:[[1,"row","justify-content-between"],[1,"col-auto"],[3,"title"],["heading",""],["data-bs-toggle","collapse","data-bs-target","#dashboard-operations","aria-expanded","false","aria-controls","dashboard-operations",1,"btn","icon","btn-light"],[1,"bi","bi-toggles2"],["id","dashboard-operations",1,"collapse","mb-5"],[3,"filterFields","entities","entitiesChange",4,"ngIf"],[1,"row","justify-content-center"],[1,"btn-group","mb-1"],[1,"dropdown"],["type","button","id","dropdownMenuButton","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-primary","dropdown-toggle","me-1"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["class","card sticky-top","style","z-index: 1; box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;",3,"background-color",4,"ngIf"],[1,"row","justify-content-between","mb-1"],[4,"ngIf"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[1,"fab-container","pos-fixed"],[1,"fab","shadow"],[1,"fab-content"],["data-bs-toggle","modal","data-bs-target","#create-new-task",1,"material-icons","cursor-pointer"],[1,"bi","bi-plus"],["id","create-new-task","tabindex","-1","role","dialog","aria-labelledby","create-new-task-title","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal-dialog-centered","modal-dialog-centered","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],["id","create-new-task-title",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],["data-feather","x"],[1,"modal-body"],["id","basic-vertical-layouts"],[1,"row","match-height"],[1,"col-12"],[1,"card"],[1,"card-content"],[1,"card-body"],[1,"form-body"],[3,"formGroup"],[1,"row"],[1,"form-group"],[1,"form-floating"],["placeholder","Leave a name here","formControlName","name",1,"form-control",2,"height","15vh"],["for","floatingTextarea"],[1,"row","align-items-center"],[1,"col-md-9"],["type","number","formControlName","priority",1,"form-control",3,"placeholder"],[1,"col-md-3"],[1,"form-check"],[1,"checkbox"],["type","checkbox","id","self-assigned","formControlName","selfAssigned",1,"form-check-input",3,"checked"],["for","self-assigned"],[1,"row","mt-2"],["placeholder","Leave a description here","formControlName","description",1,"form-control",2,"height","30vh"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-light-secondary"],[1,"bx","bx-x","d-block","d-sm-none"],[1,"d-none","d-sm-block"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[3,"filterFields","entities","entitiesChange"],[1,"dropdown-item",3,"click"],[1,"card","sticky-top",2,"z-index","1","box-shadow","rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px"],[1,"row","justify-content-between","align-items-center"],[1,"col-sm-auto"],["class","btn btn-lg icon icon-left btn-outline-primary",3,"click",4,"ngIf"],[1,"col-sm-8"],[1,"text-center"],["class","btn btn-lg icon icon-right btn-outline-primary",3,"click",4,"ngIf"],[1,"btn","btn-lg","icon","icon-left","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-left"],[1,"btn","btn-lg","icon","icon-right","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-right"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button",1,"btn","btn-light",3,"click"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-light","dropdown-toggle","dropdown-toggle-split"],[1,"sr-only"],[1,"dropdown-menu"],[3,"tasks","taskStatus","onTop","onDeletion","onAddAssignment","onRemoveAssignment","onModify"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"div",1),E(2,"app-page-heading",2,3),p(),h(4,"div",1)(5,"button",4),E(6,"i",5),p()()(),h(7,"div",6),x(8,e3,1,3,"app-filter",7),h(9,"div",8)(10,"div",1)(11,"div",9)(12,"div",10)(13,"button",11),v(14),w(15,"translate"),p(),h(16,"div",12),x(17,t3,2,1,"button",13),p()()()()()(),x(18,o3,13,7,"div",14),h(19,"div",15)(20,"div",1),x(21,i3,19,15,"ng-container",16),p(),h(22,"div",1)(23,"button",17),O("click",function(){return r.loadDashboard()}),E(24,"i",18),p()()(),x(25,s3,4,3,"ng-container",16),x(26,a3,2,0,"ng-container",16),x(27,l3,2,1,"ng-container",16),h(28,"div",19)(29,"div",20)(30,"div",21)(31,"span",22),E(32,"i",23),p()()()(),h(33,"div",24)(34,"div",25)(35,"div",26)(36,"div",27)(37,"h5",28),v(38),w(39,"translate"),p(),h(40,"button",29),E(41,"i",30),p()(),h(42,"div",31)(43,"section",32)(44,"div",33)(45,"div",34)(46,"div",35)(47,"div",36)(48,"div",37)(49,"div",38)(50,"form",39)(51,"div",40)(52,"div",34)(53,"div",41)(54,"div",42),E(55,"textarea",43),h(56,"label",44),v(57),w(58,"translate"),p()()()()(),h(59,"div",45)(60,"div",46),E(61,"input",47),w(62,"translate"),p(),h(63,"div",48)(64,"div",49)(65,"div",50),E(66,"input",51),h(67,"label",52),v(68),w(69,"translate"),p()()()()(),h(70,"div",53)(71,"div",34)(72,"div",41)(73,"div",42),E(74,"textarea",54),h(75,"label",44),v(76),w(77,"translate"),p()()()()()()()()()()()()()(),h(78,"div",55)(79,"button",56),E(80,"i",57),h(81,"span",58),v(82),w(83,"translate"),p()(),h(84,"button",59),O("click",function(){return r.newTask(),r.orderBy=r.OrderBy.CREATION,r.orderReverse=!0}),E(85,"i",60),h(86,"span",58),v(87),w(88,"translate"),p()()()()()()),2&t&&(f(2),_("title","dashboard"),f(6),_("ngIf",r.dashboard&&(null==r.dashboard?null:r.dashboard.tasks)),f(6),b(" ",D(15,19,"task-status")," "),f(3),_("ngForOf",null==r.dashboard?null:r.dashboard.task_status),f(1),_("ngIf",r.getCurrentTaskStatus()),f(3),_("ngIf",r.dashboard&&!r.loadingError),f(4),_("ngIf",r.dashboard&&!r.loadingError),f(1),_("ngIf",!r.dashboard&&!r.loadingError),f(1),_("ngIf",r.loadingError),f(11),b(" ",D(39,21,"add-task")," "),f(12),_("formGroup",r.creationForm),f(7),b(" ",D(58,23,"name")," "),f(4),$t("placeholder",D(62,25,"priority")),f(5),_("checked",r.creationForm.controls.selfAssigned.value),f(2),b(" ",D(69,27,"assign-yourself")," "),f(8),b(" ",D(77,29,"description")," "),f(6),b(" ",D(83,31,"close")," "),f(2),_("disabled",r.creationForm.invalid),f(3),b(" ",D(88,33,"confirm")," "))},dependencies:[mn,Ae,Dr,Fn,Xh,Ci,Cr,wr,Rn,Zn,zL,rD,qL,Fu,oD,ke],styles:['.pos-fixed[_ngcontent-%COMP%]{position:fixed!important}.fab-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;-webkit-user-select:none;user-select:none;position:absolute;bottom:30px;right:30px}.fab-container[_ngcontent-%COMP%]:hover{height:100%}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(2){transform:translateY(-80px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(3){transform:translateY(-140px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(4){transform:translateY(-200px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(5){transform:translateY(-260px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(6){transform:translateY(-320px)}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%]{position:relative;height:70px;width:70px;background-color:#4ba2ff;border-radius:50%;z-index:2}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%]:before{content:" ";position:absolute;bottom:0;right:0;height:35px;width:35px;background-color:inherit;border-radius:0 0 10px;z-index:-1}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%] .fab-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;border-radius:50%}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%] .fab-content[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;font-size:48px}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;justify-content:center;bottom:10px;right:10px;height:50px;width:50px;background-color:#4ba2ff;border-radius:50%;transition:all .3s ease}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%]:hover{cursor:pointer}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;padding-top:6px}']}),e})();function c3(e,n){1&e&&(h(0,"button",22),v(1),w(2,"translate"),p()),2&e&&(_("disabled",!S().loginForm.valid),f(1),b(" ",D(2,2,"login")," "))}function d3(e,n){1&e&&(h(0,"button",23),E(1,"span",24),v(2),w(3,"translate"),p()),2&e&&(f(2),b(" ",D(3,1,"loading+dots")," "))}function f3(e,n){1&e&&(h(0,"div",25),E(1,"app-error-alert",26),p()),2&e&&(f(1),_("title","login-error"))}let h3=(()=>{class e{constructor(t,r){this.authService=t,this.router=r,this.loginForm=new rn({email:new K("",[re.required,re.email]),password:new K("",[re.required]),keep:new K(!1)}),this.loading=!1,this.loginError=!1,this.showPsw=!1}ngOnInit(){this.authService.isLogged().then(t=>{t.subscribe({next:r=>{r&&this.router.navigate(["/home"])}})})}onSubmit(){if(ht.logInfo("try to login..."),this.loginForm.valid){this.loading=!0,this.loginError=!1;const{email:t,password:r,keep:o}=this.loginForm.value;this.authService.login(t,r,o).then(i=>{i&&(this.router.navigate(["/home"]),this.loading=!1)}).catch(i=>{this.loginError=!0})}}}return e.\u0275fac=function(t){return new(t||e)(T(on),T(gt))},e.\u0275cmp=ce({type:e,selectors:[["app-login"]],decls:33,vars:18,consts:[["id","auth"],[1,"row","h-100","justify-content-center"],[1,"col-lg-5","col-12"],[1,"auth-title"],[1,"auth-subtitle","mb-5"],[3,"formGroup","submit"],[1,"form-group","position-relative","has-icon-left","mb-4"],["type","email","placeholder","Email","formControlName","email",1,"form-control","form-control-xl"],[1,"form-control-icon"],[1,"bi","bi-person"],["placeholder","Password","formControlName","password",1,"form-control","form-control-xl",3,"type"],[1,"bi","bi-shield-lock"],[1,"form-check","form-switch"],["type","checkbox","id","showPsw",1,"form-check-input",3,"checked","change"],["showPswCheckbox",""],["for","showPsw",1,"form-check-label"],[1,"form-check","form-check-lg","d-flex","align-items-end"],["type","checkbox","value","","id","keepCheck","formControlName","keep",1,"form-check-input","me-2"],["for","keepCheck",1,"form-check-label","text-gray-600"],["class","btn btn-primary btn-block btn-lg shadow-lg mt-5","type","submit",3,"disabled",4,"ngIf","ngIfElse"],["loadingBtn",""],["class","mt-3",4,"ngIf"],["type","submit",1,"btn","btn-primary","btn-block","btn-lg","shadow-lg","mt-5",3,"disabled"],["type","button","disabled","",1,"btn","btn-primary","btn-block","btn-lg","shadow-lg","mt-5"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"mt-3"],[3,"title"]],template:function(t,r){if(1&t){const o=te();h(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),v(4),w(5,"translate"),p(),h(6,"p",4),v(7),w(8,"translate"),p(),h(9,"form",5),O("submit",function(){return r.onSubmit()}),h(10,"div",6),E(11,"input",7),h(12,"div",8),E(13,"i",9),p()(),h(14,"div",6),E(15,"input",10),h(16,"div",8),E(17,"i",11),p()(),h(18,"div",12)(19,"input",13,14),O("change",function(){V(o);const s=Ue(20);return B(r.showPsw=s.checked)}),p(),h(21,"label",15),v(22),w(23,"translate"),p()(),h(24,"div",16),E(25,"input",17),h(26,"label",18),v(27),w(28,"translate"),p()(),x(29,c3,3,4,"button",19),x(30,d3,4,3,"ng-template",null,20,tn),x(32,f3,2,1,"div",21),p()()()()}if(2&t){const o=Ue(31);f(4),b(" ",D(5,10,"login")," "),f(3),b(" ",D(8,12,"login-description")," "),f(2),_("formGroup",r.loginForm),f(6),_("type",r.showPsw?"text":"password"),f(4),_("checked",r.showPsw),f(3),b(" ",D(23,14,"show-password")," "),f(5),b(" ",D(28,16,"keep-me")," "),f(2),_("ngIf",!r.loading||r.loginError)("ngIfElse",o),f(3),_("ngIf",r.loginError)}},dependencies:[Ae,Dr,Fn,Ci,Cr,wr,Rn,Zn,Fu,ke]}),e})(),p3=(()=>{class e extends ra{constructor(){super(...arguments),this.PROJECT_INFORMATION="project_project_information"}getProjectInformation(){return this.call(this.PROJECT_INFORMATION)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),cp=(()=>{class e extends ra{constructor(){super(...arguments),this.OPEN_SETTINGS="app_open_settings",this.OPEN_PROJECT="app_open_project",this.VERSION="app_version",this.CLOSE="app_close",this.INIT_PROJECT="app_init_project",this.PATHS_STORED="app_get_projects_paths_stored",this.REMOVE_WORK_DIR="app_remove_work_dir"}openSettings(){this.call(this.OPEN_SETTINGS).then(t=>{t.subscribe({next:()=>{}})})}removeWorkDir(){this.call(this.REMOVE_WORK_DIR).then(t=>{t.subscribe({next:()=>{window.location.reload()}})})}version(){return this.call(this.VERSION)}openProject(t){return this.call(this.OPEN_PROJECT,t)}close(){return new Promise((t,r)=>{this.call(this.CLOSE).then(o=>{o.subscribe({next:()=>{}}),setTimeout(()=>{t()},Ct.timeBeforeClose)})})}initProject(t,r,o,i){return this.call(this.INIT_PROJECT,t,r,o,i)}projectsPathsStored(){return this.call(this.PATHS_STORED)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function g3(e,n){1&e&&E(0,"button",3)}function m3(e,n){if(1&e&&(h(0,"div",1),v(1),w(2,"translate"),x(3,g3,1,0,"button",2),p()),2&e){const t=S();f(1),b(" ",D(2,2,t.title)," "),f(2),_("ngIf",t.dismissable)}}let iD=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-success-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-success alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-success","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&x(0,m3,4,4,"div",0),2&t&&_("ngIf",r.title)},dependencies:[Ae,ke]}),e})();function _3(e,n){1&e&&E(0,"button",3)}function v3(e,n){if(1&e&&(h(0,"div",1),v(1),w(2,"translate"),x(3,_3,1,0,"button",2),p()),2&e){const t=S();f(1),b(" ",D(2,2,t.title)," "),f(2),_("ngIf",t.dismissable)}}let y3=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-warning-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-warning alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-warning","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&x(0,v3,4,4,"div",0),2&t&&_("ngIf",r.title)},dependencies:[Ae,ke]}),e})();function b3(e,n){1&e&&(h(0,"div",76)(1,"div",1)(2,"span",77),v(3),w(4,"translate"),p()()()),2&e&&(f(3),b(" ",D(4,1,"remove-work")," "))}function C3(e,n){if(1&e){const t=te();Se(0),h(1,"div",5)(2,"div",35)(3,"label"),v(4),w(5,"translate"),p()(),h(6,"div",66)(7,"div",67)(8,"div",68),E(9,"input",69),h(10,"div",70),E(11,"i",71),p()()()()(),h(12,"div",5)(13,"div",35)(14,"label"),v(15),w(16,"translate"),p()(),h(17,"div",66)(18,"div",67)(19,"div",68),E(20,"input",72),h(21,"div",70),E(22,"i",73),p()()()()(),x(23,b3,5,3,"div",74),h(24,"app-dialog-modal",75),O("onConfirm",function(){return V(t),B(S(2).appService.removeWorkDir())}),p(),Ie()}if(2&e){const t=S(2);f(4),b(" ",D(5,11,"path")," "),f(5),_("value",t.projectInformation.path),f(6),b(" ",D(16,13,"database-path")," "),f(5),_("value",t.projectInformation.database_path),f(3),_("ngIf",!(null==t.authService.loggedUser||null==t.authService.loggedUser.role||!t.authService.loggedUser.role.permission_remove_work)),f(1),_("centered",!0)("target","remove-work-dir-modal")("title","delete-request")("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}}function w3(e,n){1&e&&E(0,"app-warning-alert",78),2&e&&_("dismissable",!1)}function D3(e,n){if(1&e&&(h(0,"div",20)(1,"div",8)(2,"form",33)(3,"div",34),x(4,C3,25,15,"ng-container",64),x(5,w3,1,1,"ng-template",null,65,tn),p()()()()),2&e){const t=Ue(6),r=S();f(4),_("ngIf",null!==r.projectInformation)("ngIfElse",t)}}function E3(e,n){1&e&&E(0,"app-error-alert",81),2&e&&_("dismissable",!0)("title","init-project-error")}function S3(e,n){1&e&&E(0,"app-success-alert",81),2&e&&_("dismissable",!0)("title","init-project-success")}function I3(e,n){if(1&e&&(h(0,"div",79)(1,"div",1),x(2,E3,1,2,"app-error-alert",80),p(),h(3,"div",1),x(4,S3,1,2,"app-success-alert",80),p()()),2&e){const t=S();f(2),_("ngIf",!1===t.showInitResult),f(2),_("ngIf",!0===t.showInitResult)}}function T3(e,n){if(1&e&&(h(0,"option",82),v(1),p()),2&e){const t=n.$implicit;_("value",t),f(1),b(" ",t," ")}}function M3(e,n){1&e&&(h(0,"div",79)(1,"div",1),E(2,"app-error-alert",81),p()()),2&e&&(f(2),_("dismissable",!0)("title","opening-error"))}let A3=(()=>{class e{constructor(t,r,o,i,s){this.projectService=t,this.appService=r,this.userService=o,this.authService=i,this.utilsService=s,this.differentUser=!1,this.projectsPaths=[],this.showOpenError=!1,this.initProjectForm=new rn({path:new K("",[re.required]),openOnInit:new K(!1,[re.required]),forceInit:new K(!1,[re.required]),username:new K("",[re.required]),email:new K("",[re.required,re.email]),password:new K("",[re.required,this.utilsService.createPasswordStrengthValidator(8)]),repassword:new K("",[re.required,Qw("password")])}),this.openProjectForm=new rn({path:new K("",[re.required])}),this.authService.refreshMe()}ngOnInit(){this.loadProjectsPaths(),this.loadProjectInformation()}loadProjectsPaths(){this.appService.projectsPathsStored().then(t=>{t.subscribe({next:r=>{r&&(this.projectsPaths=r)}})})}loadProjectInformation(){this.projectService.getProjectInformation().then(t=>{t.subscribe({next:r=>{this.projectInformation=r}})})}updatePath(t){this.openProjectForm.controls.path.setValue(t),this.openProjectForm.controls.path.updateValueAndValidity()}open(){this.showOpenError=!1,this.openProjectForm.valid&&this.appService.openProject(this.openProjectForm.controls.path.value).then(t=>{t.subscribe({next:r=>{r?window.location.reload():this.showOpenError=!0},error:r=>this.showOpenError=!0})})}fillInitForm(){this.initProjectForm.controls.username.setValue(this.authService.loggedUser?.username),this.initProjectForm.controls.email.setValue(this.authService.loggedUser?.email)}init(){if(this.initProjectForm.valid){this.showInitResult=void 0;const t=this.initProjectForm.controls.openOnInit.value;this.appService.initProject(this.initProjectForm.controls.path.value,{email:this.initProjectForm.controls.email.value,username:this.initProjectForm.controls.username.value,password:this.initProjectForm.controls.password.value},t,!!this.initProjectForm.controls.forceInit.value).then(s=>{s.subscribe({next:a=>{this.showInitResult=!!a,a&&t&&setTimeout(()=>{window.location.reload()},500)},error:a=>this.showInitResult=!0})})}}}return e.\u0275fac=function(t){return new(t||e)(T(p3),T(cp),T(ku),T(on),T(Hr))},e.\u0275cmp=ce({type:e,selectors:[["app-home"]],decls:161,vars:109,consts:[[1,"row","justify-content-between"],[1,"col-auto"],[3,"title"],["heading",""],[1,"section"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-body"],["role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","info-tab","data-bs-toggle","tab","href","#info","role","tab","aria-controls","info","aria-selected","true",1,"nav-link","active"],["id","new-tab","data-bs-toggle","tab","href","#new","role","tab","aria-controls","new","aria-selected","false",1,"nav-link"],["id","open-tab","data-bs-toggle","tab","href","#open","role","tab","aria-controls","open","aria-selected","false",1,"nav-link"],[1,"tab-content"],["id","info","role","tabpanel","aria-labelledby","info-tab",1,"tab-pane","fade","show","active"],[1,"card-header"],[1,"card-title"],["class","card-content",4,"ngIf"],["id","new","role","tabpanel","aria-labelledby","new-tab",1,"tab-pane","fade"],[1,"card-content"],[3,"formGroup"],[1,"col-md-9","mb-4"],["type","text","formControlName","path",1,"form-control",3,"placeholder"],["path",""],[1,"col-md-3","align-self-center"],[1,"form-check"],[1,"checkbox"],["type","checkbox","id","force-init","formControlName","forceInit",1,"form-check-input"],["for","force-init"],[1,"mt-2"],["id","basic-horizontal-layouts"],[1,"row","match-height"],[1,"form","form-horizontal"],[1,"form-body"],[1,"col-md-4"],[1,"col-md-8","form-group"],["type","text","name","username","formControlName","username",1,"form-control",3,"placeholder"],["type","email","formControlName","email",1,"form-control",3,"placeholder"],["type","password","formControlName","password",1,"form-control",3,"placeholder"],["type","password","formControlName","repassword",1,"form-control",3,"placeholder"],[2,"color","#b8a244"],[1,"col-sm-12","d-flex","justify-content-between"],["type","button",1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-box-arrow-down"],["type","reset",1,"btn","btn-light-secondary","me-1","mb-1"],[1,"row","justify-content-between","mt-2"],["type","checkbox","id","open-on-init","formControlName","openOnInit",1,"form-check-input"],["for","open-on-init"],[1,"btn","icon","icon-right","btn-primary",3,"disabled","click"],[1,"bi","bi-folder-plus"],["class","row justify-content-center mt-2",4,"ngIf"],["id","open","role","tabpanel","aria-labelledby","open-tab",1,"tab-pane","fade"],[1,"col-md-6","mb-4"],[1,"input-group","mb-3"],["for","inputGroupSelect01",1,"input-group-text"],["id","inputGroupSelect01",1,"form-select",3,"change"],["select",""],["value","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"row","justify-content-end"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[1,"bi","bi-box-arrow-up-right"],[4,"ngIf","ngIfElse"],["noProject",""],[1,"col-md-8"],[1,"form-group","has-icon-left"],[1,"position-relative"],["type","text","placeholder","Path","id","path","readonly","",1,"form-control",3,"value"],[1,"form-control-icon"],[1,"bi","bi-folder-fill"],["type","text","placeholder","Database","id","database","readonly","",1,"form-control",3,"value"],[1,"bi","bi-database-fill"],["class","row justify-content-center mt-5",4,"ngIf"],[3,"centered","target","title","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[1,"row","justify-content-center","mt-5"],["data-bs-toggle","modal","data-bs-target","#remove-work-dir-modal",1,"red-underling","cursor-pointer"],["title","no-project",3,"dismissable"],[1,"row","justify-content-center","mt-2"],[3,"dismissable","title",4,"ngIf"],[3,"dismissable","title"],[3,"value"]],template:function(t,r){if(1&t){const o=te();h(0,"div",0)(1,"div",1),E(2,"app-page-heading",2,3),p()(),h(4,"section",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"ul",9)(10,"li",10)(11,"a",11),v(12),w(13,"translate"),p()(),h(14,"li",10)(15,"a",12),v(16),w(17,"translate"),p()(),h(18,"li",10)(19,"a",13),v(20),w(21,"translate"),p()()(),h(22,"div",14)(23,"div",15),E(24,"p"),h(25,"div",7)(26,"div",16)(27,"h4",17),v(28),w(29,"translate"),p()(),x(30,D3,7,2,"div",18),p()(),h(31,"div",19),E(32,"p"),h(33,"div",7)(34,"div",16)(35,"h4",17),v(36),w(37,"translate"),p()(),h(38,"div",20)(39,"div",8)(40,"form",21)(41,"div",5)(42,"div",22)(43,"h6"),v(44),w(45,"translate"),p(),E(46,"input",23,24),w(48,"translate"),p(),h(49,"div",25)(50,"div",26)(51,"div",27),E(52,"input",28),h(53,"label",29),v(54),w(55,"translate"),p()()()()(),h(56,"h6",30),v(57),w(58,"translate"),p(),h(59,"section",31)(60,"div",32)(61,"div",6)(62,"div",7)(63,"div",20)(64,"div",8)(65,"form",33)(66,"div",34)(67,"div",5)(68,"div",35)(69,"label"),v(70),w(71,"translate"),p()(),h(72,"div",36),E(73,"input",37),w(74,"translate"),p(),h(75,"div",35)(76,"label"),v(77),w(78,"translate"),p()(),h(79,"div",36),E(80,"input",38),w(81,"translate"),p(),h(82,"div",35)(83,"label"),v(84),w(85,"translate"),p()(),h(86,"div",36),E(87,"input",39),w(88,"translate"),p(),h(89,"div",35)(90,"label"),v(91),w(92,"translate"),p()(),h(93,"div",36),E(94,"input",40),w(95,"translate"),h(96,"small",41),v(97),w(98,"translate"),p()(),h(99,"div",42)(100,"button",43),O("click",function(){return r.fillInitForm()}),E(101,"i",44),p(),h(102,"button",45),v(103),w(104,"translate"),p()()()()()()()()()()(),h(105,"div",46)(106,"div",1)(107,"div",26)(108,"div",27),E(109,"input",47),h(110,"label",48),v(111),w(112,"translate"),p()()()(),h(113,"div",1)(114,"button",49),O("click",function(){return r.init()}),v(115),w(116,"translate"),E(117,"i",50),p()()(),x(118,I3,5,2,"div",51),p()()()()(),h(119,"div",52),E(120,"p"),h(121,"div",7)(122,"div",16)(123,"h4",17),v(124),w(125,"translate"),p()(),h(126,"div",20)(127,"div",8)(128,"form",21)(129,"div",5)(130,"div",53)(131,"h6"),v(132),w(133,"translate"),p(),h(134,"div",54)(135,"label",55),v(136),w(137,"translate"),p(),h(138,"select",56,57),O("change",function(){V(o);const s=Ue(139);return B(s.value?r.updatePath(s.value):"")}),h(140,"option",58),v(141),w(142,"translate"),p(),x(143,T3,2,2,"option",59),p()()(),h(144,"div",53)(145,"h6"),v(146),w(147,"translate"),p(),E(148,"input",23,24),w(150,"translate"),p()(),h(151,"div",60)(152,"div",1)(153,"button",61),O("click",function(){return r.loadProjectsPaths()}),E(154,"i",62),p()(),h(155,"div",1)(156,"button",49),O("click",function(){return r.open()}),v(157),w(158,"translate"),E(159,"i",63),p()()(),x(160,M3,3,2,"div",51),p()()()()()()()()()()()}2&t&&(f(2),_("title","home"),f(10),b(" ",D(13,53,"project-information")," "),f(4),b(" ",D(17,55,"init-project")," "),f(4),b(" ",D(21,57,"open-project")," "),f(8),b(" ",D(29,59,"project-information")," "),f(2),_("ngIf",void 0!==r.projectInformation),f(6),b(" ",D(37,61,"init-project")," "),f(4),_("formGroup",r.initProjectForm),f(4),b(" ",D(45,63,"insert-path")," "),f(2),$t("placeholder",D(48,65,"path")),f(8),b(" ",D(55,67,"force-init")," "),f(3),b(" ",D(58,69,"insert-pm-data")," "),f(13),b(" ",D(71,71,"username")," "),f(3),Le("is-valid",r.initProjectForm.controls.username.dirty&&r.initProjectForm.controls.username.valid)("is-invalid",r.initProjectForm.controls.username.dirty&&!r.initProjectForm.controls.username.valid),$t("placeholder",D(74,73,"username")),f(4),b(" ",D(78,75,"email")," "),f(3),Le("is-valid",r.initProjectForm.controls.email.dirty&&r.initProjectForm.controls.email.valid)("is-invalid",r.initProjectForm.controls.email.dirty&&!r.initProjectForm.controls.email.valid),$t("placeholder",D(81,77,"email")),f(4),b(" ",D(85,79,"password")," "),f(3),Le("is-valid",r.initProjectForm.controls.password.dirty&&r.initProjectForm.controls.password.valid)("is-invalid",r.initProjectForm.controls.password.dirty&&!r.initProjectForm.controls.password.valid),$t("placeholder",D(88,81,"password")),f(4),b(" ",D(92,83,"repassword")," "),f(3),Le("is-valid",r.initProjectForm.controls.repassword.dirty&&r.initProjectForm.controls.repassword.valid)("is-invalid",r.initProjectForm.controls.repassword.dirty&&!r.initProjectForm.controls.repassword.valid),$t("placeholder",D(95,85,"repassword")),f(3),b(" ",D(98,87,"password-warning")," "),f(6),b(" ",D(104,89,"reset")," "),f(8),b(" ",D(112,91,"open-at-end")," "),f(3),_("disabled",r.initProjectForm.invalid),f(1),b(" ",D(116,93,"init")," "),f(3),_("ngIf",void 0!==r.showInitResult),f(6),b(" ",D(125,95,"open-project")," "),f(4),_("formGroup",r.openProjectForm),f(4),b(" ",D(133,97,"select-project")," "),f(4),b(" ",D(137,99,"projects")," "),f(5),b(" ",D(142,101,"select")," "),f(2),_("ngForOf",r.projectsPaths),f(3),b(" ",D(147,103,"insert-path")," "),f(2),$t("placeholder",D(150,105,"path")),f(8),_("disabled",r.openProjectForm.invalid),f(1),b(" ",D(158,107,"open")," "),f(3),_("ngIf",r.showOpenError))},dependencies:[mn,Ae,Dr,np,op,Fn,Ci,Cr,wr,Rn,Zn,rD,Fu,oa,iD,y3,ke],styles:[".red-underling[_ngcontent-%COMP%]{text-decoration:underline;color:#f75e66}"]}),e})(),x3=(()=>{class e{constructor(t,r){this.taskStatusService=t,this.authService=r}ngOnInit(){}test(){var t=this;return We(function*(){t.authService.isLogged().then(r=>{r.subscribe({next:o=>{console.log("value: ",o)}})})})()}}return e.\u0275fac=function(t){return new(t||e)(T(lp),T(on))},e.\u0275cmp=ce({type:e,selectors:[["app-test"]],decls:3,vars:0,consts:[["id","graph-container"],[1,"btn","btn-primary",3,"click"]],template:function(t,r){1&t&&(E(0,"div",0),h(1,"button",1),O("click",function(){return r.test()}),v(2," Test now\n"),p())}}),e})();function k3(e,n){if(1&e){const t=te();h(0,"div",41)(1,"button",42),O("click",function(){return V(t),B(S(2).submitMasterData())}),v(2),w(3,"translate"),p(),h(4,"button",44),O("click",function(){V(t);const o=S(2);return B(o.loadDefaultValues(o.blueprintMasterDataUserForm))}),v(5),w(6,"translate"),p()()}if(2&e){const t=S(2);f(1),_("disabled",t.blueprintMasterDataUserForm.invalid),f(1),b(" ",D(3,3,"confirm")," "),f(3),b(" ",D(6,5,"reset")," ")}}function F3(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h4",5),v(5),w(6,"translate"),p(),h(7,"p"),v(8),w(9,"translate"),p()(),h(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"a",10),v(15),w(16,"translate"),p(),h(17,"a",11),v(18),w(19,"translate"),p(),h(20,"a",12),v(21),w(22,"translate"),p()()(),h(23,"div",13)(24,"div",14)(25,"div",15)(26,"section",16)(27,"div",17)(28,"div",2)(29,"div",3)(30,"div",4)(31,"h4",5),v(32),w(33,"translate"),p()(),h(34,"div",18)(35,"div",6)(36,"form",19)(37,"div",20)(38,"div",7)(39,"div",21)(40,"label"),v(41),w(42,"translate"),p()(),h(43,"div",22),E(44,"input",23),p(),h(45,"div",21)(46,"label"),v(47),w(48,"translate"),p()(),h(49,"div",22),E(50,"input",24),p(),h(51,"div",21)(52,"label"),v(53),w(54,"translate"),p()(),h(55,"div",22),E(56,"input",25),p(),h(57,"div",21)(58,"label"),v(59),w(60,"translate"),p()(),h(61,"div",22),E(62,"input",26),p(),h(63,"div",21)(64,"label"),v(65),w(66,"translate"),p()(),h(67,"div",22),E(68,"input",27),p(),x(69,k3,7,7,"div",28),p()()()()()()()()()(),h(70,"div",29)(71,"div",1)(72,"div",30)(73,"div",31)(74,"label",32),v(75),w(76,"translate"),p(),h(77,"input",33,34),O("input",function(){V(t);const o=Ue(78);return B(S().colorPicked=o.value)}),p()()(),h(79,"div",30),E(80,"app-text-avatar",35),p()(),h(81,"div",1)(82,"div",30)(83,"button",36),O("click",function(){V(t);const o=Ue(78),i=S();return B(o.value=i.colorPicked=i.loggedUser.avatar_hex_color)}),v(84),w(85,"translate"),p()(),h(86,"div",30)(87,"button",37),O("click",function(){V(t);const o=S();return B(o.modify({avatar_hex_color:o.colorPicked},!0))}),v(88),w(89,"translate"),p()()()(),h(90,"div",38)(91,"section",16)(92,"div",17)(93,"div",2)(94,"div",3)(95,"div",4)(96,"h4",5),v(97),w(98,"translate"),p(),h(99,"p"),v(100),w(101,"translate"),p()(),h(102,"div",18)(103,"div",6)(104,"form",19)(105,"div",20)(106,"div",7)(107,"div",21)(108,"label"),v(109),w(110,"translate"),p()(),h(111,"div",22),E(112,"input",39),p(),h(113,"div",21)(114,"label"),v(115),w(116,"translate"),p()(),h(117,"div",22),E(118,"input",40),p(),h(119,"div",41)(120,"button",42),O("click",function(){return V(t),B(S().submitPasswordData())}),v(121),w(122,"translate"),p(),h(123,"button",43),v(124),w(125,"translate"),p()()()()()()()()()()()()()()()()()()()}if(2&e){const t=S();f(5),b(" ",D(6,43,"my-profile")," "),f(3),b(" ",D(9,45,"logout-after-update")," "),f(7),b(" ",D(16,47,"master-data")," "),f(3),b(" ",D(19,49,"avatar")," "),f(3),b(" ",D(22,51,"password")," "),f(11),b(" ",D(33,53,"master-data")," "),f(4),_("formGroup",t.blueprintMasterDataUserForm),f(5),b(" ",D(42,55,"username")," "),f(3),Le("is-valid",t.blueprintMasterDataUserForm.controls.username.dirty&&!t.blueprintMasterDataUserForm.controls.username.errors)("is-invalid",t.blueprintMasterDataUserForm.controls.username.dirty&&t.blueprintMasterDataUserForm.controls.username.errors),f(3),b(" ",D(48,57,"email")," "),f(3),Le("is-valid",t.blueprintMasterDataUserForm.controls.email.dirty&&!t.blueprintMasterDataUserForm.controls.email.errors)("is-invalid",t.blueprintMasterDataUserForm.controls.email.dirty&&t.blueprintMasterDataUserForm.controls.email.errors),f(3),b(" ",D(54,59,"name")," "),f(6),b(" ",D(60,61,"surname")," "),f(6),b(" ",D(66,63,"phone")," "),f(4),_("ngIf",t.blueprintMasterDataUserForm.dirty),f(6),b(" ",D(76,65,"pick-color-for-avatar")," "),f(2),_("value",t.loggedUser.avatar_hex_color),f(3),_("color",t.colorPicked?t.colorPicked:t.loggedUser.avatar_hex_color)("text",t.utilsService.getAvatarText(t.loggedUser)),f(4),b(" ",D(85,67,"reset")," "),f(4),b(" ",D(89,69,"update")," "),f(9),b(" ",D(98,71,"password")," "),f(3),b(" ",D(101,73,"password-requirements")," "),f(4),_("formGroup",t.blueprintPasswordUserForm),f(5),b(" ",D(110,75,"password")," "),f(3),Le("is-valid",t.blueprintPasswordUserForm.controls.password.dirty&&!t.blueprintPasswordUserForm.controls.password.errors)("is-invalid",t.blueprintPasswordUserForm.controls.password.dirty&&t.blueprintPasswordUserForm.controls.password.errors),f(3),b(" ",D(116,77,"repassword")," "),f(3),Le("is-valid",t.blueprintPasswordUserForm.controls.repassword.dirty&&!t.blueprintPasswordUserForm.controls.repassword.errors)("is-invalid",t.blueprintPasswordUserForm.controls.repassword.dirty&&t.blueprintPasswordUserForm.controls.repassword.errors),f(2),_("disabled",t.blueprintPasswordUserForm.invalid),f(1),b(" ",D(122,79,"submit")," "),f(3),b(" ",D(125,81,"reset")," ")}}let R3=(()=>{class e{constructor(t,r,o){this.authService=t,this.utilsService=r,this.userService=o,this.blueprintMasterDataUserForm=new rn({username:new K("",[re.required],this.checkUnique("username")),name:new K(null),surname:new K(null),email:new K("",[re.required],this.checkUnique("email")),phone:new K(null)}),this.blueprintPasswordUserForm=new rn({password:new K("",[re.required,this.utilsService.createPasswordStrengthValidator(8)]),repassword:new K("",[re.required,Qw("password")])}),this.loadLoggedUser()}ngOnInit(){}loadLoggedUser(){this.authService.me().then(t=>{t.subscribe({next:r=>{this.loggedUser=r,this.loadDefaultValues(this.blueprintMasterDataUserForm)}})})}loadDefaultValues(t){if(!this.loggedUser)return;const r=Object.keys(t.controls);for(let o=0;o{i.subscribe({next:s=>{r&&window.location.reload()},error:s=>{}})}))}submitMasterData(){this.blueprintMasterDataUserForm.valid&&this.modify(this.blueprintMasterDataUserForm.value,!0)}submitPasswordData(){this.blueprintPasswordUserForm.valid&&this.modify({password:this.blueprintPasswordUserForm.controls.password.value},!0)}checkUnique(t){return r=>new be(o=>{this.userService.checkAlreadyUsed(t,r.value).then(i=>{i.subscribe({next:s=>{o.next(r.value!=this.loggedUser[t]&&s),o.complete()}})})}).pipe(ie(o=>o?{uniqueError:!0}:null))}}return e.\u0275fac=function(t){return new(t||e)(T(on),T(Hr),T(ku))},e.\u0275cmp=ce({type:e,selectors:[["app-my-profile"]],decls:1,vars:1,consts:[["class","row justify-content-center",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"card-body"],[1,"row"],[1,"col-3"],["id","v-pills-tab","role","tablist","aria-orientation","vertical",1,"nav","flex-column","nav-pills"],["id","v-pills-master-data-tab","data-bs-toggle","pill","href","#v-pills-master-data","role","tab","aria-controls","v-pills-master-data","aria-selected","true",1,"nav-link","active"],["id","v-pills-avatar-tab","data-bs-toggle","pill","href","#v-pills-avatar","role","tab","aria-controls","v-pills-avatar","aria-selected","false",1,"nav-link"],["id","v-pills-password-tab","data-bs-toggle","pill","href","#v-pills-password","role","tab","aria-controls","v-pills-password","aria-selected","false",1,"nav-link"],[1,"col-9"],["id","v-pills-tabContent",1,"tab-content"],["id","v-pills-master-data","role","tabpanel","aria-labelledby","v-pills-master-data-tab",1,"tab-pane","fade","show","active"],["id","basic-horizontal-layouts"],[1,"row","match-height"],[1,"card-content"],[1,"form","form-horizontal",3,"formGroup"],[1,"form-body"],[1,"col-md-4"],[1,"col-md-8","form-group"],["type","text","id","username","name","username","placeholder","Username","formControlName","username",1,"form-control"],["type","email","id","email","name","email","placeholder","Email","formControlName","email",1,"form-control"],["type","text","id","name","name","name","placeholder","Name","formControlName","name",1,"form-control"],["type","text","id","surname","name","surname","placeholder","Surname","formControlName","surname",1,"form-control"],["type","text","id","phone","name","phone","placeholder","Phone","formControlName","phone",1,"form-control"],["class","col-sm-12 d-flex justify-content-end",4,"ngIf"],["id","v-pills-avatar","role","tabpanel","aria-labelledby","v-pills-avatar-tab",1,"tab-pane","fade"],[1,"col-auto"],[1,"form-group"],["for","color-picker"],["type","color","id","color-picker",1,"form-control",3,"value","input"],["colorPicker",""],[3,"color","text"],[1,"btn","btn-outline-secondary",3,"click"],[1,"btn","btn-outline-primary",3,"click"],["id","v-pills-password","role","tabpanel","aria-labelledby","v-pills-password-tab",1,"tab-pane","fade"],["type","password","id","password","name","password","placeholder","Password","formControlName","password",1,"form-control"],["type","password","id","repassword","name","repassword","placeholder","Re-password","formControlName","repassword",1,"form-control"],[1,"col-sm-12","d-flex","justify-content-end"],["type","button",1,"btn","btn-primary","me-1","mb-1",3,"disabled","click"],["type","reset",1,"btn","btn-light-secondary","me-1","mb-1"],["type","button",1,"btn","btn-light-secondary","me-1","mb-1",3,"click"]],template:function(t,r){1&t&&x(0,F3,126,83,"div",0),2&t&&_("ngIf",r.loggedUser)},dependencies:[Ae,Dr,Fn,Cr,wr,Rn,Zn,xu,ke]}),e})();function N3(e,n){if(1&e){const t=te();h(0,"div",4)(1,"div",5)(2,"div",6)(3,"h5",7),v(4),w(5,"translate"),p()(),h(6,"div",6)(7,"button",8),O("click",function(){V(t);const o=S(2);return B(o.collapseStatus=!o.collapseStatus)}),E(8,"i",9),p()()()()}if(2&e){const t=S(2);f(4),b(" ",D(5,1,t.title)," ")}}function P3(e,n){1&e&&(E(0,"i",26),w(1,"translate")),2&e&&$t("title",D(1,1,"unique"))}function O3(e,n){if(1&e){const t=te();h(0,"div",30)(1,"input",31),O("change",function(){V(t),S();const o=Ue(2);return B(o.type="password"==o.type?"text":"password")}),p(),h(2,"label",32),v(3),w(4,"translate"),p()()}2&e&&(f(3),b(" ",D(4,1,"show-password")," "))}function L3(e,n){if(1&e&&(Se(0),E(1,"input",27,28),w(3,"translate"),x(4,O3,5,3,"div",29),Ie()),2&e){const t=S().$implicit,r=S(3);let o;f(1),Le("is-valid",r.form.controls[t.name].dirty&&r.form.controls[t.name].valid)("is-invalid",r.form.controls[t.name].dirty&&!r.form.controls[t.name].valid),$t("placeholder",D(3,9,null!==(o=t.placeholder)&&void 0!==o?o:"")),_("type",t.type)("name",t.name)("formControlName",t.name),f(3),_("ngIf","password"==t.type)}}function V3(e,n){if(1&e&&(Se(0),h(1,"div",33),E(2,"textarea",34),p(),Ie()),2&e){const t=S(2).$implicit,r=S(3);f(2),Le("is-valid",r.form.controls[t.name].dirty&&r.form.controls[t.name].valid)("is-invalid",r.form.controls[t.name].dirty&&!r.form.controls[t.name].valid),_("formControlName",t.name)}}function B3(e,n){if(1&e&&(Se(0),h(1,"div",35)(2,"div",36),E(3,"input",37),p()(),Ie()),2&e){const t=S(2).$implicit;f(3),_("name",t.name)("placeholder",t.placeholder)("formControlName",t.name)}}function j3(e,n){if(1&e&&(h(0,"option",43),v(1),w(2,"translate"),p()),2&e){const t=n.$implicit;_("ngValue",t.value),f(1),b(" ",D(2,2,t.text)," ")}}function U3(e,n){if(1&e&&(Se(0),h(1,"div",38)(2,"label",39),v(3),w(4,"translate"),p(),h(5,"select",40)(6,"option",41),v(7),w(8,"translate"),p(),x(9,j3,3,4,"option",42),p()(),Ie()),2&e){const t=S(2).$implicit;let r;f(3),b(" ",D(4,4,null!==(r=t.placeholder)&&void 0!==r?r:t.name)," "),f(2),_("formControlName",t.name),f(2),b(" ",D(8,6,"choose")," "),f(2),_("ngForOf",t.selectOptions)}}function $3(e,n){if(1&e&&(x(0,V3,3,5,"ng-container",0),x(1,B3,4,3,"ng-container",0),x(2,U3,10,8,"ng-container",0)),2&e){const t=S().$implicit;_("ngIf","textarea"==t.type),f(1),_("ngIf","checkbox"==t.type),f(1),_("ngIf","selectbox"==t.type)}}function H3(e,n){if(1&e&&(h(0,"div",20)(1,"div",21)(2,"div",5)(3,"div",6)(4,"label"),v(5),w(6,"translate"),p()(),h(7,"div",6),x(8,P3,2,3,"i",22),p()()(),h(9,"div",23),x(10,L3,5,11,"ng-container",24),x(11,$3,3,3,"ng-template",null,25,tn),p()()),2&e){const t=n.$implicit,r=Ue(12);let o;f(5),b(" ",D(6,4,null!==(o=t.title)&&void 0!==o?o:t.name)," "),f(3),_("ngIf",!0===t.unique),f(2),_("ngIf","textarea"!==t.type&&"checkbox"!==t.type&&"selectbox"!==t.type)("ngIfElse",r)}}function G3(e,n){1&e&&(h(0,"button",44),E(1,"i",45),p()),2&e&&ve("data-bs-target","#delete-request-"+S(3).entity.id)}function z3(e,n){if(1&e){const t=te();h(0,"app-dialog-modal",46),O("onConfirm",function(){return V(t),B(S(3).delete())}),p()}2&e&&_("target","delete-request-"+S(3).entity.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}function q3(e,n){1&e&&E(0,"app-error-alert",48),2&e&&_("title","operation-error")}function W3(e,n){1&e&&E(0,"app-success-alert",48),2&e&&_("title","operation-successful")}function K3(e,n){if(1&e&&(Se(0),x(1,q3,1,1,"app-error-alert",47),x(2,W3,1,1,"app-success-alert",47),Ie()),2&e){const t=S(3);f(1),_("ngIf",!t.submitResult),f(1),_("ngIf",!!t.submitResult)}}function Y3(e,n){if(1&e){const t=te();h(0,"div",10)(1,"div",11)(2,"form",12)(3,"div",13),x(4,H3,13,6,"div",14),h(5,"div",5)(6,"div",6),x(7,G3,2,1,"button",15),p(),h(8,"div",16)(9,"button",17),O("click",function(){return V(t),B(S(2).setFormDefaultValue())}),v(10),w(11,"translate"),p(),h(12,"button",18),O("click",function(){return V(t),B(S(2).submit())}),v(13),w(14,"translate"),p(),x(15,z3,1,5,"app-dialog-modal",19),p()(),x(16,K3,3,2,"ng-container",0),p()()()()}if(2&e){const t=S(2);f(2),_("formGroup",t.form),f(2),_("ngForOf",t.editableFields),f(3),_("ngIf",t.entity),f(3),b(" ",D(11,8,"reset")," "),f(2),_("disabled",t.form.invalid),f(1),b(" ",D(14,10,t.confirmBtnTxt)," "),f(2),_("ngIf",t.entity),f(1),_("ngIf",void 0!==t.submitResult)}}function Z3(e,n){if(1&e&&(Se(0),h(1,"div",1),x(2,N3,9,3,"div",2),x(3,Y3,17,12,"div",3),p(),Ie()),2&e){const t=S();f(2),_("ngIf",t.title),f(1),_("ngIf",!t.collapseStatus)}}let Q3=(()=>{class e{constructor(){this.editableFields=[],this.confirmBtnTxt="modify",this.collapseStatus=!1,this.refreshRequest=new Y,this.onConfirm=new Y}ngOnInit(){this.createForm()}createForm(){this.form=new rn({});for(let t=0;t{setTimeout(()=>{this.submitResult=void 0},Ct.alertTimeout)};this.onConfirm.emit(t),this.manager&&this.manager.update(r,t).then(i=>{i.subscribe({next:s=>{s&&(this.entity=s,this.form?.markAsPristine()),!r&&s&&(this.entity=void 0,this.form?.reset(),this.refreshRequest.emit()),this.submitResult=!!s,o()},error:s=>{this.submitResult=!1,o()}})}).catch(i=>{this.submitResult=!1,o()})}delete(){if(!this.entity)return;const r=()=>{setTimeout(()=>{this.submitResult=void 0},Ct.alertTimeout)};this.manager&&this.manager?.deleteById(this.entity.id).then(o=>{o.subscribe({next:i=>{this.submitResult=i=!!i,i&&(this.entity=void 0,this.refreshRequest.emit()),r()},error:i=>{this.submitResult=!1,r()}})}).catch(o=>{this.submitResult=!1,r()})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-manage-entity"]],inputs:{manager:"manager",entity:"entity",title:"title",editableFields:"editableFields",confirmBtnTxt:"confirmBtnTxt",collapseStatus:"collapseStatus"},outputs:{refreshRequest:"refreshRequest",onConfirm:"onConfirm"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"card"],["class","card-header",4,"ngIf"],["class","card-content",4,"ngIf"],[1,"card-header"],[1,"row","justify-content-between"],[1,"col-auto"],[1,"card-title"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-plus"],[1,"card-content"],[1,"card-body"],[1,"form","form-horizontal",3,"formGroup"],[1,"form-body"],["class","row",4,"ngFor","ngForOf"],["type","button","class","btn icon btn-light","data-bs-toggle","modal",4,"ngIf"],[1,"col-sm-auto","d-flex","justify-content-end"],["type","button",1,"btn","btn-light-secondary","me-1","mb-1",3,"click"],["type","button",1,"btn","btn-primary","me-1","mb-1",3,"disabled","click"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm",4,"ngIf"],[1,"row"],[1,"col-md-4"],["class","bi bi-1-square-fill","data-bs-toggle","tooltip","data-bs-placement","top",3,"title",4,"ngIf"],[1,"col-md-8","form-group"],[4,"ngIf","ngIfElse"],["otherTypes",""],["data-bs-toggle","tooltip","data-bs-placement","top",1,"bi","bi-1-square-fill",3,"title"],[1,"form-control",3,"type","name","placeholder","formControlName"],["input",""],["class","form-check form-switch",4,"ngIf"],[1,"form-check","form-switch"],["type","checkbox",1,"form-check-input",3,"change"],[1,"form-check-label"],[1,"form-group","mb-3"],["rows","5",1,"form-control",3,"formControlName"],[1,"form-check"],[1,"checkbox"],["type","checkbox",1,"form-check-input","cursor-pointer",3,"name","placeholder","formControlName"],[1,"input-group","mb-3"],[1,"input-group-text"],[1,"form-select",3,"formControlName"],["selected","","value",""],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],["type","button","data-bs-toggle","modal",1,"btn","icon","btn-light"],[1,"bi","bi-trash"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[3,"title",4,"ngIf"],[3,"title"]],template:function(t,r){1&t&&x(0,Z3,4,2,"ng-container",0),2&t&&_("ngIf",!!r.form&&!!r.editableFields)},dependencies:[mn,Ae,Dr,np,op,Fn,Ci,Mu,Cr,wr,Rn,Zn,Fu,oa,iD,ke]}),e})();function X3(e,n){if(1&e){const t=te();Se(0),h(1,"app-manage-entity",4),O("refreshRequest",function(){return V(t),B(S(2).loadEntities())}),p(),Ie()}if(2&e){const t=n.$implicit,r=S(2);f(1),_("entity",t)("editableFields",r.editableFields)("manager",r.manager)}}function J3(e,n){if(1&e){const t=te();Se(0),h(1,"app-filter",1),O("entitiesChange",function(o){return V(t),B(S().entities=o)}),p(),h(2,"app-manage-entity",2),O("refreshRequest",function(){return V(t),B(S().loadEntities())}),p(),x(3,X3,2,3,"ng-container",3),Ie()}if(2&e){const t=S();f(1),_("filterFields",t.filterFields)("entities",t.entities),f(1),_("editableFields",t.editableFields.concat(t.additionalFieldOnCreation))("manager",t.manager)("title","create-new")("confirmBtnTxt","confirm")("collapseStatus",!0),f(1),_("ngForOf",t.entities)}}let Nu=(()=>{class e{constructor(t){this.utilsService=t,this.editableFields=[],this.additionalFieldOnCreation=[]}ngOnInit(){this.loadEntities()}loadEntities(){this.manager?.all().then(t=>{t.subscribe({next:r=>{r&&(this.entities=r)}})})}}return e.\u0275fac=function(t){return new(t||e)(T(Hr))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-entities"]],inputs:{title:"title",editableFields:"editableFields",filterFields:"filterFields",entityTitleField:"entityTitleField",manager:"manager",additionalFieldOnCreation:"additionalFieldOnCreation"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"filterFields","entities","entitiesChange"],[3,"editableFields","manager","title","confirmBtnTxt","collapseStatus","refreshRequest"],[4,"ngFor","ngForOf"],[3,"entity","editableFields","manager","refreshRequest"]],template:function(t,r){1&t&&x(0,J3,4,8,"ng-container",0),2&t&&_("ngIf",!!r.title&&!!r.entities)},dependencies:[mn,Ae,Q3,oD]}),e})();const eV=function(){return["name"]};let tV=(()=>{class e{constructor(t){this.taskStatusService=t,this.fields=[{name:"name",type:"text",placeholder:"name",blueprintFormControl:new K("",[re.required]),unique:!0},{name:"description",type:"textarea",placeholder:"description",blueprintFormControl:new K("")},{name:"hex_color",type:"color",placeholder:"color",blueprintFormControl:new K("",[re.required])},{name:"final",type:"checkbox",placeholder:"final",blueprintFormControl:new K("",[re.required])}]}ngOnInit(){this.appendDefaultStatus()}appendDefaultStatus(){this.taskStatusService.all().then(t=>{t.subscribe({next:r=>{if(r){let o=r.map(i=>({value:i.id,text:i.name}));o.push({value:null,text:"null"}),this.fields.push({title:"prev-task-status",name:"default_prev_task_status_id",type:"selectbox",placeholder:"prev-task-status",blueprintFormControl:new K(null),selectOptions:o}),this.fields.push({title:"next-task-status",name:"default_next_task_status_id",type:"selectbox",placeholder:"next-task-status",blueprintFormControl:new K(null),selectOptions:o})}}})})}}return e.\u0275fac=function(t){return new(t||e)(T(lp))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-task-status"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&E(0,"app-manage-entities",0),2&t&&_("editableFields",r.fields)("title","manage-task-status")("filterFields",pt(4,eV))("manager",r.taskStatusService)},dependencies:[Nu]}),e})();const nV=function(){return["name"]};let rV=(()=>{class e{constructor(t){this.taskLabelService=t,this.fields=[{name:"name",type:"text",placeholder:"Name",blueprintFormControl:new K("",[re.required]),unique:!0},{name:"description",type:"textarea",placeholder:"Description",blueprintFormControl:new K("")},{name:"hex_color",type:"color",placeholder:"Color",blueprintFormControl:new K("",[re.required])}]}}return e.\u0275fac=function(t){return new(t||e)(T(tD))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-task-labels"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&E(0,"app-manage-entities",0),2&t&&_("editableFields",r.fields)("title","manage-task-labels")("filterFields",pt(4,nV))("manager",r.taskLabelService)},dependencies:[Nu]}),e})();const oV=function(){return["username","name","surname","email","phone"]};let iV=(()=>{class e{constructor(t,r,o){this.userService=t,this.roleSerivice=r,this.utilsService=o,this.fields=[{name:"username",type:"text",placeholder:"Username",blueprintFormControl:new K("",[re.required]),unique:!0},{name:"name",type:"text",placeholder:"Name",blueprintFormControl:new K(null)},{name:"surname",type:"text",placeholder:"Surname",blueprintFormControl:new K(null)},{name:"avatar_hex_color",type:"color",placeholder:"Color",blueprintFormControl:new K("",[re.required])},{name:"email",type:"email",placeholder:"Email",blueprintFormControl:new K("",[re.required,re.email]),unique:!0},{name:"phone",type:"text",placeholder:"Phone",blueprintFormControl:new K("")},{name:"password",type:"password",placeholder:"Password",blueprintFormControl:new K("",[re.required,this.utilsService.createPasswordStrengthValidator(8)])}]}ngOnInit(){this.appendRoleOptions()}appendRoleOptions(){this.roleSerivice.all().then(t=>{t.subscribe({next:r=>{r&&this.fields.push({title:"role",name:"role_id",type:"selectbox",placeholder:"role",blueprintFormControl:new K("",[re.required]),selectOptions:r.map(o=>({value:o.id,text:o.name}))})}})})}}return e.\u0275fac=function(t){return new(t||e)(T(ku),T(up),T(Hr))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-users"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&E(0,"app-manage-entities",0),2&t&&_("editableFields",r.fields)("title","manage-task-labels")("filterFields",pt(4,oV))("manager",r.userService)},dependencies:[Nu]}),e})();const sV=function(){return["name"]};let aV=(()=>{class e{constructor(t){this.roleService=t,this.fields=[{name:"name",type:"text",placeholder:"name",blueprintFormControl:new K("",[re.required]),unique:!0},{name:"permission_create",type:"checkbox",placeholder:"permission_create",blueprintFormControl:new K("",[re.required])},{name:"permission_read_all",type:"checkbox",placeholder:"permission_read_all",blueprintFormControl:new K("",[re.required])},{name:"permission_move_backward",type:"checkbox",placeholder:"permission_move_backward",blueprintFormControl:new K("",[re.required])},{name:"permission_move_forward",type:"checkbox",placeholder:"permission_move_forward",blueprintFormControl:new K("",[re.required])},{name:"permission_move",type:"checkbox",placeholder:"permission_move",blueprintFormControl:new K("",[re.required])},{name:"permission_edit_own",type:"checkbox",placeholder:"permission_edit_own",blueprintFormControl:new K("",[re.required])},{name:"permission_edit_all",type:"checkbox",placeholder:"permission_edit_all",blueprintFormControl:new K("",[re.required])},{name:"permission_change_role",type:"checkbox",placeholder:"permission_change_role",blueprintFormControl:new K("",[re.required])},{name:"permission_change_assignment",type:"checkbox",placeholder:"permission_change_assignment",blueprintFormControl:new K("",[re.required])},{name:"permission_delete_own",type:"checkbox",placeholder:"permission_delete_own",blueprintFormControl:new K("",[re.required])},{name:"permission_delete_all",type:"checkbox",placeholder:"permission_delete_all",blueprintFormControl:new K("",[re.required])},{name:"permission_manage_task_status",type:"checkbox",placeholder:"permission_manage_task_status",blueprintFormControl:new K("",[re.required])},{name:"permission_manage_task_labels",type:"checkbox",placeholder:"permission_manage_task_labels",blueprintFormControl:new K("",[re.required])},{name:"permission_manage_users",type:"checkbox",placeholder:"permission_manage_users",blueprintFormControl:new K("",[re.required])},{name:"permission_edit_task_deadline",type:"checkbox",placeholder:"permission_edit_task_deadline",blueprintFormControl:new K("",[re.required])},{name:"permission_manage_roles",type:"checkbox",placeholder:"permission_manage_roles",blueprintFormControl:new K("",[re.required])},{name:"permission_remove_work",type:"checkbox",placeholder:"permission_remove_work",blueprintFormControl:new K("",[re.required])}]}}return e.\u0275fac=function(t){return new(t||e)(T(up))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-roles"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&E(0,"app-manage-entities",0),2&t&&_("editableFields",r.fields)("title","manage-task-labels")("filterFields",pt(4,sV))("manager",r.roleService)},dependencies:[Nu]}),e})(),Wr=(()=>{class e{constructor(t,r){this.authService=t,this.router=r}canActivate(){var t=this;return We(function*(){return new Promise((r,o)=>{t.authService.isLogged().then(i=>{i.subscribe({next:s=>{s||(t.router.navigate([Ct.authRequiredRedirectRoute]),o()),r(s)}})})})})()}}return e.\u0275fac=function(t){return new(t||e)($(on),$(gt))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ia=(()=>{class e{constructor(t,r){this.authService=t,this.router=r}canActivate(t){var r=this;return We(function*(){return new Promise((o,i)=>{"roleRequired"in t.data||o(!0);const s=t.data.roleRequired;r.authService.emitMeChangeSource.asObservable().subscribe({next:a=>{if(!a||!a.role)return r.router.navigate(["/home"]),void i();s in a.role&&(Boolean(a.role[s])?o(!0):(r.router.navigate(["/home"]),i()))}}),r.authService.refreshMe()})})()}}return e.\u0275fac=function(t){return new(t||e)($(on),$(gt))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const lV=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:A3},{path:"dashboard",component:u3,canActivate:[Wr]},{path:"login",component:h3},{path:"test",component:x3,canActivate:[Wr]},{path:"my-profile",component:R3,canActivate:[Wr]},{path:"manage-task-status",component:tV,canActivate:[Wr,ia],data:{roleRequired:"permission_manage_task_status"}},{path:"manage-task-labels",component:rV,canActivate:[Wr,ia],data:{roleRequired:"permission_manage_task_labels"}},{path:"manage-users",component:iV,canActivate:[Wr,ia],data:{roleRequired:"permission_manage_users"}},{path:"manage-roles",component:aV,canActivate:[Wr,ia],data:{roleRequired:"permission_manage_roles"}},{path:"**",component:uP}];let uV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({providers:[Wr,ia],imports:[j1.forRoot(lV),j1]}),e})(),cV=(()=>{class e{constructor(t,r){this.appService=t,this.utilsService=r,this.appName=Ct.appName}close(){this.appService.close().then(()=>{window.close()})}}return e.\u0275fac=function(t){return new(t||e)(T(cp),T(Hr))},e.\u0275cmp=ce({type:e,selectors:[["app-footer"]],decls:14,vars:7,consts:[[2,"margin","0 10vw 5vh 10vw"],[1,"footer","clearfix","mb-0","text-muted"],[1,"float-start"],[1,"float-end"],["type","button",1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],["data-bs-toggle","modal","data-bs-target","#close-app-modal","type","button",1,"btn","icon","btn-light"],[1,"bi","bi-power"],[3,"centered","target","title","confirmBtn","confirmBtnTxt","borderless","onConfirm"]],template:function(t,r){1&t&&(h(0,"footer",0)(1,"div",1)(2,"div",2)(3,"p"),v(4,"2023 \xa9 "),h(5,"strong"),v(6),p(),v(7," developed by Nicola Ricciardi"),p()(),h(8,"div",3)(9,"button",4),O("click",function(){return r.utilsService.reload()}),E(10,"i",5),p(),h(11,"button",6),E(12,"i",7),p(),h(13,"app-dialog-modal",8),O("onConfirm",function(){return r.close()}),p()()()()),2&t&&(f(6),ri(r.appName),f(7),_("centered",!0)("target","close-app-modal")("title","close-app-request")("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0))},dependencies:[oa]}),e})();const dV=function(){return["/manage-task-status"]};function fV(e,n){1&e&&(h(0,"li",25)(1,"a",26),E(2,"i",32),h(3,"span"),v(4),w(5,"translate"),p()()()),2&e&&(Le("active",S().urlIncludes("manage-task-status")),f(1),_("routerLink",pt(6,dV)),f(3),b(" ",D(5,4,"manage-task-status")," "))}const hV=function(){return["/manage-task-labels"]};function pV(e,n){1&e&&(h(0,"li",25)(1,"a",26),E(2,"i",33),h(3,"span"),v(4),w(5,"translate"),p()()()),2&e&&(Le("active",S().urlIncludes("manage-task-labels")),f(1),_("routerLink",pt(6,hV)),f(3),b(" ",D(5,4,"manage-task-labels")," "))}const gV=function(){return["/manage-users"]};function mV(e,n){1&e&&(h(0,"li",25)(1,"a",26),E(2,"i",34),h(3,"span"),v(4),w(5,"translate"),p()()()),2&e&&(Le("active",S().urlIncludes("manage-users")),f(1),_("routerLink",pt(6,gV)),f(3),b(" ",D(5,4,"manage-users")," "))}const _V=function(){return["/manage-roles"]};function vV(e,n){1&e&&(h(0,"li",25)(1,"a",26),E(2,"i",35),h(3,"span"),v(4),w(5,"translate"),p()()()),2&e&&(Le("active",S().urlIncludes("manage-roles")),f(1),_("routerLink",pt(6,_V)),f(3),b(" ",D(5,4,"manage-roles")," "))}const yV=function(){return["/"]},bV=function(){return["/home"]},CV=function(){return["/dashboard"]};let wV=(()=>{class e{constructor(t,r){this.router=t,this.authService=r,this.appName=Ct.appName,this.authService.refreshMe()}urlIncludes(t){return this.router.url.includes(t)}}return e.\u0275fac=function(t){return new(t||e)(T(gt),T(on))},e.\u0275cmp=ce({type:e,selectors:[["app-sidebar"]],decls:53,vars:30,consts:[[1,"sidebar-wrapper","active"],[1,"sidebar-header","position-relative"],[1,"d-flex","justify-content-between","align-items-center"],[1,"logo"],["routerLinkActive","router-link-active",3,"routerLink"],[1,"text-capitalized"],[1,"theme-toggle","d-flex","gap-2","align-items-center","mt-2"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","aria-hidden","true","role","img","width","20","height","20","preserveAspectRatio","xMidYMid meet","viewBox","0 0 21 21",1,"iconify","iconify--system-uicons"],["fill","none","fill-rule","evenodd","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["d","M10.5 14.5c2.219 0 4-1.763 4-3.982a4.003 4.003 0 0 0-4-4.018c-2.219 0-4 1.781-4 4c0 2.219 1.781 4 4 4zM4.136 4.136L5.55 5.55m9.9 9.9l1.414 1.414M1.5 10.5h2m14 0h2M4.135 16.863L5.55 15.45m9.899-9.9l1.414-1.415M10.5 19.5v-2m0-14v-2","opacity",".3"],["transform","translate(-210 -1)"],["d","M220.5 2.5v2m6.5.5l-1.5 1.5"],["cx","220.5","cy","11.5","r","4"],["d","m214 5l1.5 1.5m5 14v-2m6.5-.5l-1.5-1.5M214 18l1.5-1.5m-4-5h2m14 0h2"],[1,"form-check","form-switch","fs-6"],["type","checkbox","id","toggle-dark",1,"form-check-input","me-0",2,"cursor","pointer"],[1,"form-check-label"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","aria-hidden","true","role","img","width","20","height","20","preserveAspectRatio","xMidYMid meet","viewBox","0 0 24 24",1,"iconify","iconify--mdi"],["fill","currentColor","d","m17.75 4.09l-2.53 1.94l.91 3.06l-2.63-1.81l-2.63 1.81l.91-3.06l-2.53-1.94L12.44 4l1.06-3l1.06 3l3.19.09m3.5 6.91l-1.64 1.25l.59 1.98l-1.7-1.17l-1.7 1.17l.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95l2.06.05m-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85c-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14c.4-.4.82-.76 1.27-1.08c.75-.53 1.93.36 1.85 1.19c-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82c-2.81 3.14-2.7 7.96.31 10.98c3.02 3.01 7.84 3.12 10.98.31Z"],[1,"sidebar-toggler","x"],["href","javascript:void(0)",1,"sidebar-hide","d-xl-none","d-block"],[1,"bi","bi-x","bi-middle"],[1,"sidebar-menu"],[1,"menu"],[1,"sidebar-title"],[1,"sidebar-item"],["routerLinkActive","router-link-active",1,"sidebar-link",3,"routerLink"],[1,"bi","bi-house-fill"],[1,"bi","bi-grid-fill"],["class","sidebar-item",3,"active",4,"ngIf"],["href","https://github.com/nricciardi/taskup","target","_blank",1,"sidebar-link"],[1,"bi","bi-life-preserver"],[1,"bi","bi-kanban-fill"],[1,"bi","bi-bookmarks-fill"],[1,"bi","bi-people-fill"],[1,"bi","bi-diagram-3-fill"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4)(5,"span",5),v(6),p()()(),h(7,"div",6),mc(),h(8,"svg",7)(9,"g",8),E(10,"path",9),h(11,"g",10),E(12,"path",11)(13,"circle",12)(14,"path",13),p()()(),_c(),h(15,"div",14),E(16,"input",15)(17,"label",16),p(),mc(),h(18,"svg",17),E(19,"path",18),p()(),_c(),h(20,"div",19)(21,"a",20),E(22,"i",21),p()()()(),h(23,"div",22)(24,"ul",23)(25,"li",24),v(26),w(27,"translate"),p(),h(28,"li",25)(29,"a",26),E(30,"i",27),h(31,"span"),v(32),w(33,"translate"),p()()(),h(34,"li",25)(35,"a",26),E(36,"i",28),h(37,"span"),v(38),w(39,"translate"),p()()(),x(40,fV,6,7,"li",29),x(41,pV,6,7,"li",29),x(42,mV,6,7,"li",29),x(43,vV,6,7,"li",29),h(44,"li",24),v(45),w(46,"translate"),p(),h(47,"li",25)(48,"a",30),E(49,"i",31),h(50,"span"),v(51),w(52,"translate"),p()()()()()()),2&t&&(f(4),_("routerLink",pt(27,yV)),f(2),b(" ",r.appName," "),f(20),b(" ",D(27,17,"menu")," "),f(2),Le("active",r.urlIncludes("home")),f(1),_("routerLink",pt(28,bV)),f(3),b(" ",D(33,19,"home")," "),f(2),Le("active",r.urlIncludes("dashboard")),f(1),_("routerLink",pt(29,CV)),f(3),b(" ",D(39,21,"dashboard")," "),f(2),_("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_task_status)),f(1),_("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_task_labels)),f(1),_("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_users)),f(1),_("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_roles)),f(2),b(" ",D(46,23,"raise-support")," "),f(6),b(" ",D(52,25,"documentation")," "))},dependencies:[Ae,Ys,Mh,ke]}),e})();const DV=["throwErrorLogoutModal"];function EV(e,n){1&e&&(h(0,"li",37)(1,"a",38),E(2,"i",39),p(),h(3,"ul",40)(4,"li")(5,"h6",41),v(6,"Mail"),p()(),h(7,"li")(8,"a",42),v(9,"No new mail"),p()()()())}function SV(e,n){1&e&&(h(0,"li",43)(1,"a",44),E(2,"i",45),h(3,"span",46),v(4,"7"),p()(),h(5,"ul",47)(6,"li",41)(7,"h6"),v(8,"Notifications"),p()(),h(9,"li",48)(10,"a",49)(11,"div",50),E(12,"i",51),p(),h(13,"div",52)(14,"p",53),v(15," Successfully check out "),p(),h(16,"p",54),v(17," Order ID #256 "),p()()()(),h(18,"li",48)(19,"a",49)(20,"div",55),E(21,"i",56),p(),h(22,"div",52)(23,"p",53),v(24," Homework submitted "),p(),h(25,"p",54),v(26," Algebra math homework "),p()()()(),h(27,"li")(28,"p",57)(29,"a",58),v(30,"See all notification"),p()()()()())}function IV(e,n){if(1&e&&E(0,"app-text-avatar",59),2&e){const t=S(2);_("color",t.userLogged.avatar_hex_color)("text",t.utilsService.getAvatarText(t.userLogged))("tooltip",t.userLogged.username)}}function TV(e,n){if(1&e&&(h(0,"li")(1,"h6",41),v(2),w(3,"translate"),p()()),2&e){const t=S(2);f(2),dl("",D(3,2,"hello"),", ",t.userLogged.name,"!")}}const MV=function(){return["/my-profile"]};function AV(e,n){if(1&e){const t=te();h(0,"div",17)(1,"ul",18),x(2,EV,10,0,"li",19),x(3,SV,31,0,"li",20),p(),h(4,"div",21)(5,"a",22)(6,"div",23)(7,"div",24)(8,"h6",25),v(9),p(),h(10,"p",26),v(11),p()(),h(12,"div",27),x(13,IV,1,3,"app-text-avatar",28),p()()(),h(14,"ul",29),x(15,TV,4,4,"li",30),h(16,"li")(17,"a",31),E(18,"i",32),v(19),w(20,"translate"),p()(),h(21,"li")(22,"button",33),O("click",function(){return V(t),B(S().appService.openSettings())}),E(23,"i",34),v(24),w(25,"translate"),p()(),h(26,"li"),E(27,"hr",35),p(),h(28,"li")(29,"button",33),O("click",function(){return V(t),B(S().logout())}),E(30,"i",36),v(31),w(32,"translate"),p()()()()()}if(2&e){const t=S();f(2),_("ngIf",!1),f(1),_("ngIf",!1),f(6),b(" ",t.userLogged.username," "),f(2),b(" ",null==t.userLogged.role?null:t.userLogged.role.name," "),f(2),_("ngIf",t.userLogged),f(2),_("ngIf",t.userLogged.name),f(2),_("routerLink",pt(16,MV)),f(2),b(" ",D(20,10,"my-profile")," "),f(5),b(" ",D(25,12,"settings")," "),f(7),b(" ",D(32,14,"logout")," ")}}const xV=function(){return["/login"]};function kV(e,n){1&e&&(h(0,"a",60),v(1),w(2,"translate"),p()),2&e&&(_("routerLink",pt(4,xV)),f(1),b(" ",D(2,2,"login")," "))}let FV=(()=>{class e{constructor(t,r,o,i){this.authService=t,this.router=r,this.utilsService=o,this.appService=i,this.userLogged=null}ngOnInit(){this.authService.observeMe().subscribe({next:t=>{this.userLogged=t},error:t=>{ht.logError(t)}}),this.authService.refreshMe()}logout(){this.authService.logout().then(t=>{this.router.navigate(["/login"])}).catch(t=>{this.throwErrorLogoutModal?.nativeElement.click()})}}return e.\u0275fac=function(t){return new(t||e)(T(on),T(gt),T(Hr),T(cp))},e.\u0275cmp=ce({type:e,selectors:[["app-header"]],viewQuery:function(t,r){if(1&t&&vl(DV,5),2&t){let o;ys(o=bs())&&(r.throwErrorLogoutModal=o.first)}},decls:21,vars:5,consts:[[1,"navbar","navbar-expand","navbar-light","navbar-top"],[1,"container-fluid"],["href","javascript:void(0)",1,"burger-btn","d-block"],[1,"bi","bi-justify","fs-3"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["class","collapse navbar-collapse","id","navbarSupportedContent",4,"ngIf","ngIfElse"],["loginBtn",""],["type","button","data-bs-toggle","modal","data-bs-target","#logoutErrorModal",1,"btn","btn-outline-danger",2,"display","none"],["throwErrorLogoutModal",""],["id","logoutErrorModal","tabindex","-1","role","dialog","aria-labelledby","myModalLabel120","aria-hidden","true",1,"modal","fade","text-left"],["role","document",1,"modal-dialog","modal-dialog-centered","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header","bg-danger"],["id","myModalLabel120",1,"modal-title","white"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],["data-feather","x"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","ms-auto","mb-lg-0"],["class","nav-item dropdown me-1",4,"ngIf"],["class","nav-item dropdown me-3",4,"ngIf"],[1,"dropdown"],["href","#","data-bs-toggle","dropdown","aria-expanded","false"],[1,"user-menu","d-flex"],[1,"user-name","text-end","me-3"],[1,"mb-0","text-gray-600"],[1,"mb-0","text-sm","text-gray-600"],[1,"user-img","d-flex","align-items-center"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end",2,"min-width","11rem"],[4,"ngIf"],["routerLinkActive","router-link-active",1,"dropdown-item",3,"routerLink"],[1,"icon-mid","bi","bi-person","me-2"],[1,"dropdown-item",3,"click"],[1,"icon-mid","bi","bi-gear","me-2"],[1,"dropdown-divider"],[1,"icon-mid","bi","bi-box-arrow-left","me-2"],[1,"nav-item","dropdown","me-1"],["href","#","data-bs-toggle","dropdown","aria-expanded","false",1,"nav-link","active","dropdown-toggle","text-gray-600"],[1,"bi","bi-envelope","bi-sub","fs-4"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end"],[1,"dropdown-header"],["href","#",1,"dropdown-item"],[1,"nav-item","dropdown","me-3"],["href","#","data-bs-toggle","dropdown","data-bs-display","static","aria-expanded","false",1,"nav-link","active","dropdown-toggle","text-gray-600"],[1,"bi","bi-bell","bi-sub","fs-4"],[1,"badge","badge-notification","bg-danger"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end","notification-dropdown"],[1,"dropdown-item","notification-item"],["href","#",1,"d-flex","align-items-center"],[1,"notification-icon","bg-primary"],[1,"bi","bi-cart-check"],[1,"notification-text","ms-4"],[1,"notification-title","font-bold"],[1,"notification-subtitle","font-thin","text-sm"],[1,"notification-icon","bg-success"],[1,"bi","bi-file-earmark-check"],[1,"text-center","py-2","mb-0"],["href","#"],[1,"cursor-arrow",3,"color","text","tooltip"],["routerLinkActive","router-link-active",1,"btn","btn-outline-primary",3,"routerLink"]],template:function(t,r){if(1&t&&(h(0,"header")(1,"nav",0)(2,"div",1)(3,"a",2),E(4,"i",3),p(),h(5,"button",4),E(6,"span",5),p(),x(7,AV,33,17,"div",6),x(8,kV,3,5,"ng-template",null,7,tn),p()()(),E(10,"button",8,9),h(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",13)(16,"h5",14),v(17),w(18,"translate"),p(),h(19,"button",15),E(20,"i",16),p()()()()()),2&t){const o=Ue(9);f(7),_("ngIf",r.userLogged)("ngIfElse",o),f(10),b(" ",D(18,3,"logout-error")," ")}},dependencies:[Ae,Ys,Mh,xu,ke]}),e})(),RV=(()=>{class e{constructor(t){this.translate=t,this.title="frontend",t.addLangs(["en","it"]),this.setBrowserDefaultLanguage()}switchLanguage(t){this.translate.use(t)}setBrowserDefaultLanguage(){const t=this.translate.getBrowserLang();t&&this.translate.setDefaultLang(t)}}return e.\u0275fac=function(t){return new(t||e)(T(_u))},e.\u0275cmp=ce({type:e,selectors:[["app-root"]],decls:8,vars:0,consts:[["id","app"],["id","sidebar"],["id","main",1,"layout-navbar","navbar-fixed"],["id","main-content"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"div",1),E(2,"app-sidebar"),p(),h(3,"div",2),E(4,"app-header"),h(5,"div",3),E(6,"router-outlet"),p(),E(7,"app-footer"),p()())},dependencies:[vh,cV,wV,FV]}),e})();class NV{constructor(n,t="/assets/i18n/",r=".json"){this.http=n,this.prefix=t,this.suffix=r}getTranslation(n){return this.http.get(`${this.prefix}${n}${this.suffix}`)}}let PV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e,bootstrap:[RV]}),e.\u0275inj=Wt({imports:[QF,uV,T2,aO,lP.forRoot({defaultLanguage:"en",useDefaultLang:!0,loader:{provide:Qs,useFactory:n=>new NV(n,"./assets/i18n/",".json"),deps:[yC]}})]}),e})();ZF().bootstrapModule(PV).catch(e=>console.error(e))},321:()=>{const ye=":";class tt extends Error{constructor(C){super(`No translation found for ${xi(C)}.`),this.parsedMessage=C,this.type="MissingTranslationError"}}const ma=function(I,...C){if(ma.translate){const N=ma.translate(I,C);I=N[0],C=N[1]}let A=zu(I[0],I.raw[0]);for(let N=1;Ntypeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)().$localize=ma}},ye=>{var Er=Sr=>ye(ye.s=Sr);Er(321),Er(218)}]); \ No newline at end of file +"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[179],{218:()=>{function ye(e){return"function"==typeof e}function Er(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Kr=Er(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Sr(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class et{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const i of t)i.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(ye(r))try{r()}catch(i){n=i instanceof Kr?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Qn(i)}catch(s){n=n??[],s instanceof Kr?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Kr(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Qn(n);else{if(n instanceof et){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Sr(t,n)}remove(n){const{_finalizers:t}=this;t&&Sr(t,n),n instanceof et&&n._removeParent(this)}}et.EMPTY=(()=>{const e=new et;return e.closed=!0,e})();const Ei=et.EMPTY;function sa(e){return e instanceof et||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function Qn(e){ye(e)?e():e.unsubscribe()}const Ir={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mo={setTimeout(e,n,...t){const{delegate:r}=mo;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=mo;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Pu(e){mo.setTimeout(()=>{const{onUnhandledError:n}=Ir;if(!n)throw e;n(e)})}function aa(){}const Ou=Si("C",void 0,void 0);function Si(e,n,t){return{kind:e,value:n,error:t}}let Xn=null;function Nn(e){if(Ir.useDeprecatedSynchronousErrorHandling){const n=!Xn;if(n&&(Xn={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Xn;if(Xn=null,t)throw r}}else e()}class _o extends et{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,sa(n)&&n.add(this)):this.destination=Ti}static create(n,t,r){return new Jn(n,t,r)}next(n){this.isStopped?Ii(function Vu(e){return Si("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Ii(function Lu(e){return Si("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Ii(Ou,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const la=Function.prototype.bind;function vo(e,n){return la.call(e,n)}class ua{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Gt(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Gt(r)}else Gt(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Gt(t)}}}class Jn extends _o{constructor(n,t,r){let o;if(super(),ye(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&Ir.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&vo(n.next,i),error:n.error&&vo(n.error,i),complete:n.complete&&vo(n.complete,i)}):o=n}this.destination=new ua(o)}}function Gt(e){Ir.useDeprecatedSynchronousErrorHandling?function Bu(e){Ir.useDeprecatedSynchronousErrorHandling&&Xn&&(Xn.errorThrown=!0,Xn.error=e)}(e):Pu(e)}function Ii(e,n){const{onStoppedNotification:t}=Ir;t&&mo.setTimeout(()=>t(e,n))}const Ti={closed:!0,next:aa,error:function ca(e){throw e},complete:aa},Mi="function"==typeof Symbol&&Symbol.observable||"@@observable";function er(e){return e}function fa(e){return 0===e.length?er:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}let be=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const i=function Uu(e){return e&&e instanceof _o||function ju(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}(e)&&sa(e)}(t)?t:new Jn(t,r,o);return Nn(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=ha(r))((o,i)=>{const s=new Jn({next:a=>{try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Mi](){return this}pipe(...t){return fa(t)(this)}toPromise(t){return new(t=ha(t))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function ha(e){var n;return null!==(n=e??Ir.Promise)&&void 0!==n?n:Promise}const $u=Er(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let zt=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new pa(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new $u}next(t){Nn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Nn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Nn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Ei:(this.currentObservers=null,i.push(t),new et(()=>{this.currentObservers=null,Sr(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new be;return t.source=this,t}}return e.create=(n,t)=>new pa(n,t),e})();class pa extends zt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:Ei}}function Ai(e){return ye(e?.lift)}function tt(e){return n=>{if(Ai(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function nt(e,n,t,r,o){return new Hu(e,n,t,r,o)}class Hu extends _o{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ie(e,n){return tt((t,r)=>{let o=0;t.subscribe(nt(r,i=>{r.next(e.call(n,i,o++))}))})}function Lt(e){return this instanceof Lt?(this.v=e,this):new Lt(e)}function Fi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function q(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const _p=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function vp(e){return ye(e?.then)}function yp(e){return ye(e[Mi])}function bp(e){return Symbol.asyncIterator&&ye(e?.[Symbol.asyncIterator])}function Cp(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const wp=function lD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Dp(e){return ye(e?.[wp])}function Ep(e){return function Yr(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(g){r[g]&&(o[g]=function(m){return new Promise(function(y,M){i.push([g,m,y,M])>1||a(g,m)})})}function a(g,m){try{!function l(g){g.value instanceof Lt?Promise.resolve(g.value.v).then(u,c):d(i[0][2],g)}(r[g](m))}catch(y){d(i[0][3],y)}}function u(g){a("next",g)}function c(g){a("throw",g)}function d(g,m){g(m),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield Lt(t.read());if(o)return yield Lt(void 0);yield yield Lt(r)}}finally{t.releaseLock()}})}function Sp(e){return ye(e?.getReader)}function an(e){if(e instanceof be)return e;if(null!=e){if(yp(e))return function uD(e){return new be(n=>{const t=e[Mi]();if(ye(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(_p(e))return function cD(e){return new be(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Pu)})}(e);if(bp(e))return Ip(e);if(Dp(e))return function fD(e){return new be(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Sp(e))return function hD(e){return Ip(Ep(e))}(e)}throw Cp(e)}function Ip(e){return new be(n=>{(function pD(e,n){var t,r,o,i;return function C(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Fi(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function tr(e,n,t,r=0,o=!1){const i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function _t(e,n,t=1/0){return ye(n)?_t((r,o)=>ie((i,s)=>n(r,i,o,s))(an(e(r,o))),t):("number"==typeof n&&(t=n),tt((r,o)=>function gD(e,n,t,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const g=()=>{d&&!l.length&&!u&&n.complete()},m=M=>u{i&&n.next(M),u++;let k=!1;an(t(M,c++)).subscribe(nt(n,R=>{o?.(R),i?m(R):n.next(R)},()=>{k=!0},void 0,()=>{if(k)try{for(u--;l.length&&uy(R)):y(R)}g()}catch(R){n.error(R)}}))};return e.subscribe(nt(n,m,()=>{d=!0,g()})),()=>{a?.()}}(r,o,e,t)))}function Co(e=1/0){return _t(er,e)}const Pn=new be(e=>e.complete());function Tp(e){return e&&ye(e.schedule)}function qu(e){return e[e.length-1]}function Mp(e){return ye(qu(e))?e.pop():void 0}function Ri(e){return Tp(qu(e))?e.pop():void 0}function Ap(e,n=0){return tt((t,r)=>{t.subscribe(nt(r,o=>tr(r,e,()=>r.next(o),n),()=>tr(r,e,()=>r.complete(),n),o=>tr(r,e,()=>r.error(o),n)))})}function xp(e,n=0){return tt((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function kp(e,n){if(!e)throw new Error("Iterable cannot be null");return new be(t=>{tr(t,n,()=>{const r=e[Symbol.asyncIterator]();tr(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function rt(e,n){return n?function DD(e,n){if(null!=e){if(yp(e))return function vD(e,n){return an(e).pipe(xp(n),Ap(n))}(e,n);if(_p(e))return function bD(e,n){return new be(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(vp(e))return function yD(e,n){return an(e).pipe(xp(n),Ap(n))}(e,n);if(bp(e))return kp(e,n);if(Dp(e))return function CD(e,n){return new be(t=>{let r;return tr(t,n,()=>{r=e[wp](),tr(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void t.error(s)}i?t.complete():t.next(o)},0,!0)}),()=>ye(r?.return)&&r.return()})}(e,n);if(Sp(e))return function wD(e,n){return kp(Ep(e),n)}(e,n)}throw Cp(e)}(e,n):an(e)}function Fp(e={}){const{connector:n=(()=>new zt),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const g=()=>{a?.unsubscribe(),a=void 0},m=()=>{g(),s=l=void 0,c=d=!1},y=()=>{const M=s;m(),M?.unsubscribe()};return tt((M,k)=>{u++,!d&&!c&&g();const R=l=l??n();k.add(()=>{u--,0===u&&!d&&!c&&(a=Wu(y,o))}),R.subscribe(k),!s&&u>0&&(s=new Jn({next:H=>R.next(H),error:H=>{d=!0,g(),a=Wu(m,t,H),R.error(H)},complete:()=>{c=!0,g(),a=Wu(m,r),R.complete()}}),an(M).subscribe(s))})(i)}}function Wu(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new Jn({next:()=>{r.unsubscribe(),e()}});return an(n(...t)).subscribe(r)}function Re(e){for(let n in e)if(e[n]===Re)return n;throw Error("Could not find renamed property on target object.")}function Ku(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Pe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Pe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Yu(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const SD=Re({__forward_ref__:Re});function Oe(e){return e.__forward_ref__=Oe,e.toString=function(){return Pe(this())},e}function J(e){return Zu(e)?e():e}function Zu(e){return"function"==typeof e&&e.hasOwnProperty(SD)&&e.__forward_ref__===Oe}function Qu(e){return e&&!!e.\u0275providers}const Rp="https://g.co/ng/security#xss";class L extends Error{constructor(n,t){super(_a(n,t)),this.code=n}}function _a(e,n){return`NG0${Math.abs(e)}${n?": "+n.trim():""}`}function se(e){return"string"==typeof e?e:null==e?"":String(e)}function va(e,n){throw new L(-201,!1)}function ln(e,n){null==e&&function De(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function j(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Wt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ya(e){return Np(e,ba)||Np(e,Op)}function Np(e,n){return e.hasOwnProperty(n)?e[n]:null}function Pp(e){return e&&(e.hasOwnProperty(Xu)||e.hasOwnProperty(ND))?e[Xu]:null}const ba=Re({\u0275prov:Re}),Xu=Re({\u0275inj:Re}),Op=Re({ngInjectableDef:Re}),ND=Re({ngInjectorDef:Re});var ee=(()=>((ee=ee||{})[ee.Default=0]="Default",ee[ee.Host=1]="Host",ee[ee.Self=2]="Self",ee[ee.SkipSelf=4]="SkipSelf",ee[ee.Optional=8]="Optional",ee))();let Ju;function un(e){const n=Ju;return Ju=e,n}function Lp(e,n,t){const r=ya(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ee.Optional?null:void 0!==n?n:void va(Pe(e))}const Be=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ni={},ec="__NG_DI_FLAG__",Ca="ngTempTokenPath",OD="ngTokenPath",LD=/\n/gm,VD="\u0275",Vp="__source";let Pi;function wo(e){const n=Pi;return Pi=e,n}function BD(e,n=ee.Default){if(void 0===Pi)throw new L(-203,!1);return null===Pi?Lp(e,void 0,n):Pi.get(e,n&ee.Optional?null:void 0,n)}function $(e,n=ee.Default){return(function PD(){return Ju}()||BD)(J(e),n)}function he(e,n=ee.Default){return $(e,wa(n))}function wa(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function tc(e){const n=[];for(let t=0;t((On=On||{})[On.OnPush=0]="OnPush",On[On.Default=1]="Default",On))(),Ln=(()=>{return(e=Ln||(Ln={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ln;var e})();const rr={},Ce=[],Da=Re({\u0275cmp:Re}),nc=Re({\u0275dir:Re}),rc=Re({\u0275pipe:Re}),jp=Re({\u0275mod:Re}),or=Re({\u0275fac:Re}),Li=Re({__NG_ELEMENT_ID__:Re});let HD=0;function ce(e){return nr(()=>{const n=$p(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===On.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ln.Emulated,id:"c"+HD++,styles:e.styles||Ce,_:null,schemas:e.schemas||null,tView:null};Hp(t);const r=e.dependencies;return t.directiveDefs=Ea(r,!1),t.pipeDefs=Ea(r,!0),t})}function zD(e){return Ee(e)||wt(e)}function qD(e){return null!==e}function cn(e){return nr(()=>({type:e.type,bootstrap:e.bootstrap||Ce,declarations:e.declarations||Ce,imports:e.imports||Ce,exports:e.exports||Ce,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Up(e,n){if(null==e)return rr;const t={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),t[o]=r,n&&(n[o]=i)}return t}function oe(e){return nr(()=>{const n=$p(e);return Hp(n),n})}function At(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ee(e){return e[Da]||null}function wt(e){return e[nc]||null}function Vt(e){return e[rc]||null}function Kt(e,n){const t=e[jp]||null;if(!t&&!0===n)throw new Error(`Type ${Pe(e)} does not have '\u0275mod' property.`);return t}function $p(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||Ce,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Up(e.inputs,n),outputs:Up(e.outputs)}}function Hp(e){e.features?.forEach(n=>n(e))}function Ea(e,n){if(!e)return null;const t=n?Vt:zD;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(qD)}const ir=0,z=1,de=2,ze=3,Cn=4,Zr=5,Dt=6,Eo=7,Ke=8,Sa=9,Ia=10,pe=11,oc=12,Vi=13,Gp=14,So=15,Et=16,Bi=17,Io=18,Vn=19,ji=20,zp=21,je=22,ic=1,qp=2,Ta=7,Ma=8,To=9,xt=10;function Yt(e){return Array.isArray(e)&&"object"==typeof e[ic]}function wn(e){return Array.isArray(e)&&!0===e[ic]}function sc(e){return 0!=(4&e.flags)}function Ui(e){return e.componentOffset>-1}function Aa(e){return 1==(1&e.flags)}function Dn(e){return!!e.template}function KD(e){return 0!=(256&e[de])}function Qr(e,n){return e.hasOwnProperty(or)?e[or]:null}class QD{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Zt(){return Yp}function Yp(e){return e.type.prototype.ngOnChanges&&(e.setInput=JD),XD}function XD(){const e=Qp(this),n=e?.current;if(n){const t=e.previous;if(t===rr)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function JD(e,n,t,r){const o=this.declaredInputs[t],i=Qp(e)||function e0(e,n){return e[Zp]=n}(e,{previous:rr,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new QD(l&&l.currentValue,n,a===rr),e[r]=n}Zt.ngInherit=!0;const Zp="__ngSimpleChanges__";function Qp(e){return e[Zp]||null}const dn=function(e,n,t){},Xp="svg";function vt(e){for(;Array.isArray(e);)e=e[ir];return e}function xa(e,n){return vt(n[e])}function Qt(e,n){return vt(n[e.index])}function eg(e,n){return e.data[n]}function Mo(e,n){return e[n]}function Xt(e,n){const t=n[e];return Yt(t)?t:t[ir]}function ka(e){return 64==(64&e[de])}function Mr(e,n){return null==n?null:e[n]}function tg(e){e[Io]=0}function lc(e,n){e[Zr]+=n;let t=e,r=e[ze];for(;null!==r&&(1===n&&1===t[Zr]||-1===n&&0===t[Zr]);)r[Zr]+=n,t=r,r=r[ze]}const ae={lFrame:dg(null),bindingsEnabled:!0};function rg(){return ae.bindingsEnabled}function P(){return ae.lFrame.lView}function _e(){return ae.lFrame.tView}function V(e){return ae.lFrame.contextLView=e,e[Ke]}function B(e){return ae.lFrame.contextLView=null,e}function yt(){let e=og();for(;null!==e&&64===e.type;)e=e.parent;return e}function og(){return ae.lFrame.currentTNode}function Bn(e,n){const t=ae.lFrame;t.currentTNode=e,t.isParent=n}function uc(){return ae.lFrame.isParent}function cc(){ae.lFrame.isParent=!1}function kt(){const e=ae.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Ao(){return ae.lFrame.bindingIndex++}function ar(e){const n=ae.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function p0(e,n){const t=ae.lFrame;t.bindingIndex=t.bindingRootIndex=e,dc(n)}function dc(e){ae.lFrame.currentDirectiveIndex=e}function lg(){return ae.lFrame.currentQueryIndex}function hc(e){ae.lFrame.currentQueryIndex=e}function m0(e){const n=e[z];return 2===n.type?n.declTNode:1===n.type?e[Dt]:null}function ug(e,n,t){if(t&ee.SkipSelf){let o=n,i=e;for(;!(o=o.parent,null!==o||t&ee.Host||(o=m0(i),null===o||(i=i[So],10&o.type))););if(null===o)return!1;n=o,e=i}const r=ae.lFrame=cg();return r.currentTNode=n,r.lView=e,!0}function pc(e){const n=cg(),t=e[z];ae.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function cg(){const e=ae.lFrame,n=null===e?null:e.child;return null===n?dg(e):n}function dg(e){const n={currentTNode:null,isParent:!0,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:!1};return null!==e&&(e.child=n),n}function fg(){const e=ae.lFrame;return ae.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const hg=fg;function gc(){const e=fg();e.isParent=!0,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 Ft(){return ae.lFrame.selectedIndex}function Xr(e){ae.lFrame.selectedIndex=e}function He(){const e=ae.lFrame;return eg(e.tView,e.selectedIndex)}function mc(){ae.lFrame.currentNamespace=Xp}function _c(){!function b0(){ae.lFrame.currentNamespace=null}()}function Fa(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[l]<0&&(e[Io]+=65536),(a>11>16&&(3&e[de])===n){e[de]+=2048,dn(4,a,i);try{i.call(a)}finally{dn(5,a,i)}}}else{dn(4,a,i);try{i.call(a)}finally{dn(5,a,i)}}}const xo=-1;class Hi{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function bc(e,n,t){let r=0;for(;rn){s=i-1;break}}}for(;i>16}(e),r=n;for(;t>0;)r=r[So],t--;return r}let Cc=!0;function La(e){const n=Cc;return Cc=e,n}const yg=255,bg=5;let M0=0;const jn={};function Va(e,n){const t=Cg(e,n);if(-1!==t)return t;const r=n[z];r.firstCreatePass&&(e.injectorIndex=n.length,wc(r.data,e),wc(n,null),wc(r.blueprint,null));const o=Dc(e,n),i=e.injectorIndex;if(vg(o)){const s=Pa(o),a=Oa(o,n),l=a[z].data;for(let u=0;u<8;u++)n[i+u]=a[s+u]|l[s+u]}return n[i+8]=o,i}function wc(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Cg(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Dc(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=Mg(o),null===r)return xo;if(t++,o=o[So],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return xo}function Ec(e,n,t){!function A0(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Li)&&(r=t[Li]),null==r&&(r=t[Li]=M0++);const o=r&yg;n.data[e+(o>>bg)]|=1<=0?n&yg:R0:n}(t);if("function"==typeof i){if(!ug(n,e,r))return r&ee.Host?wg(o,0,r):Dg(n,t,r,o);try{const s=i(r);if(null!=s||r&ee.Optional)return s;va()}finally{hg()}}else if("number"==typeof i){let s=null,a=Cg(e,n),l=xo,u=r&ee.Host?n[Et][Dt]:null;for((-1===a||r&ee.SkipSelf)&&(l=-1===a?Dc(e,n):n[a+8],l!==xo&&Tg(r,!1)?(s=n[z],a=Pa(l),n=Oa(l,n)):a=-1);-1!==a;){const c=n[z];if(Ig(i,a,c.data)){const d=k0(a,n,t,s,r,u);if(d!==jn)return d}l=n[a+8],l!==xo&&Tg(r,n[z].data[a+8]===u)&&Ig(i,a,n)?(s=c,a=Pa(l),n=Oa(l,n)):a=-1}}return o}function k0(e,n,t,r,o,i){const s=n[z],a=s.data[e+8],c=Ba(a,s,t,null==r?Ui(a)&&Cc:r!=s&&0!=(3&a.type),o&ee.Host&&i===a);return null!==c?Jr(n,s,c,a):jn}function Ba(e,n,t,r,o){const i=e.providerIndexes,s=n.data,a=1048575&i,l=e.directiveStart,c=i>>20,g=o?a+c:e.directiveEnd;for(let m=r?a:a+c;m=l&&y.type===t)return m}if(o){const m=s[l];if(m&&Dn(m)&&m.type===t)return l}return null}function Jr(e,n,t,r){let o=e[t];const i=n.data;if(function E0(e){return e instanceof Hi}(o)){const s=o;s.resolving&&function ID(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new L(-200,`Circular dependency in DI detected for ${e}${t}`)}(function we(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():se(e)}(i[t]));const a=La(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?un(s.injectImpl):null;ug(e,r,ee.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&function w0(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=Yp(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}o&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,o),i&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,i),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,i))}(t,i[t],n)}finally{null!==l&&un(l),La(a),s.resolving=!1,hg()}}return o}function Ig(e,n,t){return!!(t[n+(e>>bg)]&1<{const n=e.prototype.constructor,t=n[or]||Sc(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[or]||Sc(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Sc(e){return Zu(e)?()=>{const n=Sc(J(e));return n&&n()}:Qr(e)}function Mg(e){const n=e[z],t=n.type;return 2===t?n.declTNode:1===t?e[Dt]:null}const Ro="__parameters__";function Po(e,n,t){return nr(()=>{const r=function Ic(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Ro)?l[Ro]:Object.defineProperty(l,Ro,{value:[]})[Ro];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class W{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=j({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function eo(e,n){e.forEach(t=>Array.isArray(t)?eo(t,n):n(t))}function xg(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Ua(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Jt(e,n,t){let r=Oo(e,n);return r>=0?e[1|r]=t:(r=~r,function V0(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Mc(e,n){const t=Oo(e,n);if(t>=0)return e[1|t]}function Oo(e,n){return function kg(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const i=r+(o-r>>1),s=e[i<n?o=i:r=i+1}return~(o<((Bt=Bt||{})[Bt.Important=1]="Important",Bt[Bt.DashCase=2]="DashCase",Bt))();const Nc=new Map;let sE=0;const Oc="__ngContext__";function St(e,n){Yt(n)?(e[Oc]=n[ji],function lE(e){Nc.set(e[ji],e)}(n)):e[Oc]=n}let Lc;function Vc(e,n){return Lc(e,n)}function Ji(e){const n=e[ze];return wn(n)?n[ze]:n}function Bc(e){return Qg(e[Vi])}function jc(e){return Qg(e[Cn])}function Qg(e){for(;null!==e&&!wn(e);)e=e[Cn];return e}function Vo(e,n,t,r,o){if(null!=r){let i,s=!1;wn(r)?i=r:Yt(r)&&(s=!0,r=r[ir]);const a=vt(r);0===e&&null!==t?null==o?rm(n,t,a):to(n,t,a,o||null,!0):1===e&&null!==t?to(n,t,a,o||null,!0):2===e?function Wc(e,n,t){const r=za(e,n);r&&function ME(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=i&&function kE(e,n,t,r,o){const i=t[Ta];i!==vt(t)&&Vo(n,e,r,i,o);for(let a=xt;a0&&(e[t-1][Cn]=r[Cn]);const i=Ua(e,xt+n);!function bE(e,n){es(e,n,n[pe],2,null,null),n[ir]=null,n[Dt]=null}(r[z],r);const s=i[Vn];null!==s&&s.detachView(i[z]),r[ze]=null,r[Cn]=null,r[de]&=-65}return r}function em(e,n){if(!(128&n[de])){const t=n[pe];t.destroyNode&&es(e,n,t,3,null,null),function DE(e){let n=e[Vi];if(!n)return Gc(e[z],e);for(;n;){let t=null;if(Yt(n))t=n[Vi];else{const r=n[xt];r&&(t=r)}if(!t){for(;n&&!n[Cn]&&n!==e;)Yt(n)&&Gc(n[z],n),n=n[ze];null===n&&(n=e),Yt(n)&&Gc(n[z],n),t=n&&n[Cn]}n=t}}(n)}}function Gc(e,n){if(!(128&n[de])){n[de]&=-65,n[de]|=128,function TE(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[o=s]():r[o=-s].unsubscribe(),i+=2}else{const s=r[o=t[i+1]];t[i].call(s)}if(null!==r){for(let i=o+1;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ln.None||i===Ln.Emulated)return null}return Qt(r,t)}}(e,n.parent,t)}function to(e,n,t,r,o){e.insertBefore(n,t,r,o)}function rm(e,n,t){e.appendChild(n,t)}function om(e,n,t,r,o){null!==r?to(e,n,t,r,o):rm(e,n,t)}function za(e,n){return e.parentNode(n)}let zc,Zc,Ya,am=function sm(e,n,t){return 40&e.type?Qt(e,t):null};function qa(e,n,t,r){const o=tm(e,r,n),i=n[pe],a=function im(e,n,t){return am(e,n,t)}(r.parent||n[Dt],r,n);if(null!=o)if(Array.isArray(t))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ya}()?.createScriptURL(e)||e}class _m{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rp})`}}function Ar(e){return e instanceof _m?e.changingThisBreaksApplicationSecurity:e}function ts(e,n){const t=function HE(e){return e instanceof _m&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Rp})`)}return t===n}const WE=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;var ot=(()=>((ot=ot||{})[ot.NONE=0]="NONE",ot[ot.HTML=1]="HTML",ot[ot.STYLE=2]="STYLE",ot[ot.SCRIPT=3]="SCRIPT",ot[ot.URL=4]="URL",ot[ot.RESOURCE_URL=5]="RESOURCE_URL",ot))();function Em(e){const n=rs();return n?n.sanitize(ot.URL,e)||"":ts(e,"URL")?Ar(e):function Xc(e){return(e=String(e)).match(WE)?e:"unsafe:"+e}(se(e))}function Sm(e){const n=rs();if(n)return mm(n.sanitize(ot.RESOURCE_URL,e)||"");if(ts(e,"ResourceURL"))return mm(Ar(e));throw new L(904,!1)}function rs(){const e=P();return e&&e[oc]}const Qa=new W("ENVIRONMENT_INITIALIZER"),Tm=new W("INJECTOR",-1),Mm=new W("INJECTOR_DEF_TYPES");class Am{get(n,t=Ni){if(t===Ni){const r=new Error(`NullInjectorError: No provider for ${Pe(n)}!`);throw r.name="NullInjectorError",r}return t}}function aS(...e){return{\u0275providers:xm(0,e),\u0275fromNgModule:!0}}function xm(e,...n){const t=[],r=new Set;let o;return eo(n,i=>{const s=i;nd(s,t,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&km(o,t),t}function km(e,n){for(let t=0;t{n.push(i)})}}function nd(e,n,t,r){if(!(e=J(e)))return!1;let o=null,i=Pp(e);const s=!i&&Ee(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Pp(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)nd(u,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{eo(i.imports,c=>{nd(c,n,t,r)&&(u||(u=[]),u.push(c))})}finally{}void 0!==u&&km(u,n)}if(!a){const u=Qr(o)||(()=>new o);n.push({provide:o,useFactory:u,deps:Ce},{provide:Mm,useValue:o,multi:!0},{provide:Qa,useValue:()=>$(o),multi:!0})}const l=i.providers;null==l||a||rd(l,c=>{n.push(c)})}}return o!==e&&void 0!==e.providers}function rd(e,n){for(let t of e)Qu(t)&&(t=t.\u0275providers),Array.isArray(t)?rd(t,n):n(t)}const lS=Re({provide:String,useValue:Re});function od(e){return null!==e&&"object"==typeof e&&lS in e}function no(e){return"function"==typeof e}const id=new W("Set Injector scope."),Xa={},cS={};let sd;function Ja(){return void 0===sd&&(sd=new Am),sd}class Un{}class Nm extends Un{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ld(n,s=>this.processProvider(s)),this.records.set(Tm,jo(void 0,this)),o.has("environment")&&this.records.set(Un,jo(void 0,this));const i=this.records.get(id);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Mm.multi,Ce,ee.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const t=wo(this),r=un(void 0);try{return n()}finally{wo(t),un(r)}}get(n,t=Ni,r=ee.Default){this.assertNotDestroyed(),r=wa(r);const o=wo(this),i=un(void 0);try{if(!(r&ee.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function gS(e){return"function"==typeof e||"object"==typeof e&&e instanceof W}(n)&&ya(n);a=l&&this.injectableDefInScope(l)?jo(ad(n),Xa):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&ee.Self?Ja():this.parent).get(n,t=r&ee.Optional&&t===Ni?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Ca]=s[Ca]||[]).unshift(Pe(n)),o)throw s;return function UD(e,n,t,r){const o=e[Ca];throw n[Vp]&&o.unshift(n[Vp]),e.message=function $D(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==VD?e.slice(2):e;let o=Pe(n);if(Array.isArray(n))o=n.map(Pe).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Pe(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(LD,"\n ")}`}("\n"+e.message,o,t,r),e[OD]=o,e[Ca]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{un(i),wo(o)}}resolveInjectorInitializers(){const n=wo(this),t=un(void 0);try{const r=this.get(Qa.multi,Ce,ee.Self);for(const o of r)o()}finally{wo(n),un(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Pe(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new L(205,!1)}processProvider(n){let t=no(n=J(n))?n:J(n&&n.provide);const r=function fS(e){return od(e)?jo(void 0,e.useValue):jo(Pm(e),Xa)}(n);if(no(n)||!0!==n.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=jo(void 0,Xa,!0),o.factory=()=>tc(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===Xa&&(t.value=cS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function pS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=J(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function ad(e){const n=ya(e),t=null!==n?n.factory:Qr(e);if(null!==t)return t;if(e instanceof W)throw new L(204,!1);if(e instanceof Function)return function dS(e){const n=e.length;if(n>0)throw function Wi(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new L(204,!1)}function Pm(e,n,t){let r;if(no(e)){const o=J(e);return Qr(o)||ad(o)}if(od(e))r=()=>J(e.useValue);else if(function Rm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...tc(e.deps||[]));else if(function Fm(e){return!(!e||!e.useExisting)}(e))r=()=>$(J(e.useExisting));else{const o=J(e&&(e.useClass||e.provide));if(!function hS(e){return!!e.deps}(e))return Qr(o)||ad(o);r=()=>new o(...tc(e.deps))}return r}function jo(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function ld(e,n){for(const t of e)Array.isArray(t)?ld(t,n):t&&Qu(t)?ld(t.\u0275providers,n):n(t)}class mS{}class Om{}class vS{resolveComponentFactory(n){throw function _S(e){const n=Error(`No component factory found for ${Pe(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let os=(()=>{class e{}return e.NULL=new vS,e})();function yS(){return Uo(yt(),P())}function Uo(e,n){return new Ut(Qt(e,n))}let Ut=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=yS,e})();function bS(e){return e instanceof Ut?e.nativeElement:e}class Vm{}let ur=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function CS(){const e=P(),t=Xt(yt().index,e);return(Yt(t)?t:e)[pe]}(),e})(),wS=(()=>{class e{}return e.\u0275prov=j({token:e,providedIn:"root",factory:()=>null}),e})();class is{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const DS=new is("15.2.5"),ud={},cd="ngOriginalError";function dd(e){return e[cd]}class $o{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&dd(n);for(;t&&dd(t);)t=dd(t);return t||null}}function cr(e){return e instanceof Function?e():e}function jm(e,n,t){let r=e.length;for(;;){const o=e.indexOf(n,t);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=n.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}t=o+1}}const Um="ng-template";function NS(e,n,t){let r=0,o=!0;for(;ri?"":o[d+1].toLowerCase();const m=8&r?g:null;if(m&&-1!==jm(m,u,0)||2&r&&u!==g){if(En(r))return!1;s=!0}}}}else{if(!s&&!En(r)&&!En(l))return!1;if(s&&En(l))continue;s=!1,r=l|1&r}}return En(r)||s}function En(e){return 0==(1&e)}function LS(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let i=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!En(s)&&(n+=Gm(i,o),o=""),r=s,i=i||!En(r);t++}return""!==o&&(n+=Gm(i,o)),n}const le={};function f(e){zm(_e(),P(),Ft()+e,!1)}function zm(e,n,t,r){if(!r)if(3==(3&n[de])){const i=e.preOrderCheckHooks;null!==i&&Ra(n,i,t)}else{const i=e.preOrderHooks;null!==i&&Na(n,i,0,t)}Xr(t)}function Ym(e,n=null,t=null,r){const o=Zm(e,n,t,r);return o.resolveInjectorInitializers(),o}function Zm(e,n=null,t=null,r,o=new Set){const i=[t||Ce,aS(e)];return r=r||("object"==typeof e?void 0:Pe(e)),new Nm(i,n||Ja(),r||null,o)}let $n=(()=>{class e{static create(t,r){if(Array.isArray(t))return Ym({name:""},r,t,"");{const o=t.name??"";return Ym({name:o},t.parent,t.providers,o)}}}return e.THROW_IF_NOT_FOUND=Ni,e.NULL=new Am,e.\u0275prov=j({token:e,providedIn:"any",factory:()=>$(Tm)}),e.__NG_ELEMENT_ID__=-1,e})();function T(e,n=ee.Default){const t=P();return null===t?$(e,n):Eg(yt(),t,J(e),n)}function o_(e,n){const t=e.contentQueries;if(null!==t)for(let r=0;rje&&zm(e,n,je,!1),dn(s?2:0,o),t(r,o)}finally{Xr(i),dn(s?3:1,o)}}function vd(e,n,t){if(sc(n)){const o=n.directiveEnd;for(let i=n.directiveStart;i0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,i)}}(e,n,r,ss(e,t,o.hostVars,le),o)}function Hn(e,n,t,r,o,i){const s=Qt(e,n);!function Ed(e,n,t,r,o,i,s){if(null==i)e.removeAttribute(n,o,t);else{const a=null==s?se(i):s(i,r||"",o);e.setAttribute(n,o,a,t)}}(n[pe],s,i,e.value,t,r,o)}function MI(e,n,t,r,o,i){const s=i[n];if(null!==s){const a=r.setInput;for(let l=0;l0&&Sd(t)}}function Sd(e){for(let r=Bc(e);null!==r;r=jc(r))for(let o=xt;o0&&Sd(i)}const t=e[z].components;if(null!==t)for(let r=0;r0&&Sd(o)}}function RI(e,n){const t=Xt(n,e),r=t[z];(function NI(e,n){for(let t=n.length;t-1&&(Hc(n,r),Ua(t,r))}this._attachedToViewContainer=!1}em(this._lView[z],this._lView)}onDestroy(n){a_(this._lView[z],this._lView,null,n)}markForCheck(){Id(this._cdRefInjectingView||this._lView)}detach(){this._lView[de]&=-65}reattach(){this._lView[de]|=64}detectChanges(){ol(this._lView[z],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new L(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function wE(e,n){es(e,n,n[pe],2,null,null)}(this._lView[z],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new L(902,!1);this._appRef=n}}class PI extends as{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;ol(n[z],n,n[Ke],!1)}checkNoChanges(){}get context(){return null}}class v_ extends os{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Ee(n);return new ls(t,this.ngModule)}}function y_(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class LI{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=wa(r);const o=this.injector.get(n,ud,r);return o!==ud||t===ud?o:this.parentInjector.get(n,t,r)}}class ls extends Om{get inputs(){return y_(this.componentDef.inputs)}get outputs(){return y_(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function HS(e){return e.map($S).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,o){let i=(o=o||this.ngModule)instanceof Un?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new LI(n,i):n,a=s.get(Vm,null);if(null===a)throw new L(407,!1);const l=s.get(wS,null),u=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function hI(e,n,t){return e.selectRootElement(n,t===Ln.ShadowDom)}(u,r,this.componentDef.encapsulation):$c(u,c,function OI(e){const n=e.toLowerCase();return"svg"===n?Xp:"math"===n?"math":null}(c)),g=this.componentDef.onPush?288:272,m=Cd(0,null,null,1,0,null,null,null,null,null),y=tl(null,m,null,g,null,null,a,u,l,s,null);let M,k;pc(y);try{const R=this.componentDef;let H,F=null;R.findHostDirectiveDefs?(H=[],F=new Map,R.findHostDirectiveDefs(R,H,F),H.push(R)):H=[R];const X=function BI(e,n){const t=e[z],r=je;return e[r]=n,zo(t,r,2,"#host",null)}(y,d),Ne=function jI(e,n,t,r,o,i,s,a){const l=o[z];!function UI(e,n,t,r){for(const o of e)n.mergedAttrs=Gi(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(il(n,n.mergedAttrs,!0),null!==t&&fm(r,t,n))}(r,e,n,s);const u=i.createRenderer(n,t),c=tl(o,s_(t),null,t.onPush?32:16,o[e.index],e,i,u,a||null,null,null);return l.firstCreatePass&&Dd(l,e,r.length-1),rl(o,c),o[e.index]=c}(X,d,R,H,y,a,u);k=eg(m,je),d&&function HI(e,n,t,r){if(r)bc(e,t,["ng-version",DS.full]);else{const{attrs:o,classes:i}=function GS(e){const n=[],t=[];let r=1,o=2;for(;r0&&dm(e,t,i.join(" "))}}(u,R,d,r),void 0!==t&&function GI(e,n,t){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Gi(o.hostAttrs,t=Gi(t,o.hostAttrs))}}(r)}function Ad(e){return e===rr?{}:e===Ce?[]:e}function WI(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function KI(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,i)=>{n(r,o,i),t(r,o,i)}:n}function YI(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function al(e){return!!xd(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function xd(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Gn(e,n,t){return e[n]=t}function It(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function ro(e,n,t,r){const o=It(e,n,t);return It(e,n+1,r)||o}function ve(e,n,t,r){const o=P();return It(o,Ao(),n)&&(_e(),Hn(He(),o,e,n,t,r)),ve}function Wo(e,n,t,r){return It(e,Ao(),t)?n+se(t)+r:le}function Ko(e,n,t,r,o,i){const a=ro(e,function sr(){return ae.lFrame.bindingIndex}(),t,o);return ar(2),a?n+se(t)+r+se(o)+i:le}function x(e,n,t,r,o,i,s,a){const l=P(),u=_e(),c=e+je,d=u.firstCreatePass?function iT(e,n,t,r,o,i,s,a,l){const u=n.consts,c=zo(n,e,4,s||null,Mr(u,a));wd(n,t,c,Mr(u,l)),Fa(n,c);const d=c.tView=Cd(2,c,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u);return null!==n.queries&&(n.queries.template(n,c),d.queries=n.queries.embeddedTView(c)),c}(c,u,l,n,t,r,o,i,s):u.data[c];Bn(d,!1);const g=l[pe].createComment("");qa(u,l,g,d),St(g,l),rl(l,l[c]=h_(g,l,g,d)),Aa(d)&&yd(u,l,d),null!=s&&bd(l,d,a)}function Ue(e){return Mo(function f0(){return ae.lFrame.contextLView}(),je+e)}function _(e,n,t){const r=P();return It(r,Ao(),n)&&en(_e(),He(),r,e,n,r[pe],t,!1),_}function kd(e,n,t,r,o){const s=o?"class":"style";Md(e,t,n.inputs[s],s,r)}function h(e,n,t,r){const o=P(),i=_e(),s=je+e,a=o[pe],l=i.firstCreatePass?function aT(e,n,t,r,o,i){const s=n.consts,l=zo(n,e,2,r,Mr(s,o));return wd(n,t,l,Mr(s,i)),null!==l.attrs&&il(l,l.attrs,!1),null!==l.mergedAttrs&&il(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,i,o,n,t,r):i.data[s],u=o[s]=$c(a,n,function C0(){return ae.lFrame.currentNamespace}()),c=Aa(l);return Bn(l,!0),fm(a,u,l),32!=(32&l.flags)&&qa(i,o,u,l),0===function a0(){return ae.lFrame.elementDepthCount}()&&St(u,o),function l0(){ae.lFrame.elementDepthCount++}(),c&&(yd(i,o,l),vd(i,l,o)),null!==r&&bd(o,l),h}function p(){let e=yt();uc()?cc():(e=e.parent,Bn(e,!1));const n=e;!function u0(){ae.lFrame.elementDepthCount--}();const t=_e();return t.firstCreatePass&&(Fa(t,e),sc(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function S0(e){return 0!=(8&e.flags)}(n)&&kd(t,n,P(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function I0(e){return 0!=(16&e.flags)}(n)&&kd(t,n,P(),n.stylesWithoutHost,!1),p}function E(e,n,t,r){return h(e,n,t,r),p(),E}function Se(e,n,t){const r=P(),o=_e(),i=e+je,s=o.firstCreatePass?function lT(e,n,t,r,o){const i=n.consts,s=Mr(i,r),a=zo(n,e,8,"ng-container",s);return null!==s&&il(a,s,!0),wd(n,t,a,Mr(i,o)),null!==n.queries&&n.queries.elementStart(n,a),a}(i,o,r,n,t):o.data[i];Bn(s,!0);const a=r[i]=r[pe].createComment("");return qa(o,r,a,s),St(a,r),Aa(s)&&(yd(o,r,s),vd(o,s,r)),null!=t&&bd(r,s),Se}function Ie(){let e=yt();const n=_e();return uc()?cc():(e=e.parent,Bn(e,!1)),n.firstCreatePass&&(Fa(n,e),sc(e)&&n.queries.elementEnd(e)),Ie}function te(){return P()}function cs(e){return!!e&&"function"==typeof e.then}function N_(e){return!!e&&"function"==typeof e.subscribe}const Fd=N_;function O(e,n,t,r){const o=P(),i=_e(),s=yt();return function O_(e,n,t,r,o,i,s){const a=Aa(r),u=e.firstCreatePass&&g_(e),c=n[Ke],d=p_(n);let g=!0;if(3&r.type||s){const M=Qt(r,n),k=s?s(M):M,R=d.length,H=s?X=>s(vt(X[r.index])):r.index;let F=null;if(!s&&a&&(F=function uT(e,n,t,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,n,o,r.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=i,F.__ngLastListenerFn__=i,g=!1;else{i=V_(r,n,c,i,!1);const X=t.listen(k,o,i);d.push(i,X),u&&u.push(o,H,R,R+1)}}else i=V_(r,n,c,i,!1);const m=r.outputs;let y;if(g&&null!==m&&(y=m[o])){const M=y.length;if(M)for(let k=0;k-1?Xt(e.index,n):n);let l=L_(n,t,r,s),u=i.__ngNextListenerFn__;for(;u;)l=L_(n,t,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function S(e=1){return function _0(e){return(ae.lFrame.contextLView=function v0(e,n){for(;e>0;)n=n[So],e--;return n}(e,ae.lFrame.contextLView))[Ke]}(e)}function $t(e,n,t){return Rd(e,"",n,"",t),$t}function Rd(e,n,t,r,o){const i=P(),s=Wo(i,n,t,r);return s!==le&&en(_e(),He(),i,e,s,i[pe],o,!1),Rd}function ul(e,n){return e<<17|n<<2}function xr(e){return e>>17&32767}function Nd(e){return 2|e}function oo(e){return(131068&e)>>2}function Pd(e,n){return-131069&e|n<<2}function Od(e){return 1|e}function W_(e,n,t,r,o){const i=e[t+1],s=null===n;let a=r?xr(i):oo(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];vT(e[a],n)&&(l=!0,e[a+1]=r?Od(c):Nd(c)),a=r?xr(c):oo(c)}l&&(e[t+1]=r?Nd(i):Od(i))}function vT(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Oo(e,n)>=0}const dt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function K_(e){return e.substring(dt.key,dt.keyEnd)}function Y_(e,n){const t=dt.textEnd;return t===n?-1:(n=dt.keyEnd=function wT(e,n,t){for(;n32;)n++;return n}(e,dt.key=n,t),ti(e,n,t))}function ti(e,n,t){for(;n=0;t=Y_(n,t))Jt(e,K_(n),!0)}function Sn(e,n,t,r){const o=P(),i=_e(),s=ar(2);i.firstUpdatePass&&nv(i,e,s,r),n!==le&&It(o,s,n)&&ov(i,i.data[Ft()],o,o[pe],e,o[s+1]=function FT(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Pe(Ar(e)))),e}(n,t),r,s)}function tv(e,n){return n>=e.expandoStartIndex}function nv(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[Ft()],s=tv(e,t);sv(i,r)&&null===n&&!s&&(n=!1),n=function IT(e,n,t,r){const o=function fc(e){const n=ae.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=ds(t=Ld(null,e,n,t,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=Ld(o,e,n,t,r),null===i){let l=function TT(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==oo(r))return e[xr(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=Ld(null,e,n,l[1],r),l=ds(l,n.attrs,r),function MT(e,n,t,r){e[xr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else i=function AT(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(u=!0)):c=t,o)if(0!==l){const g=xr(e[a+1]);e[r+1]=ul(g,a),0!==g&&(e[g+1]=Pd(e[g+1],r)),e[a+1]=function pT(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=ul(a,0),0!==a&&(e[a+1]=Pd(e[a+1],r)),a=r;else e[r+1]=ul(l,0),0===a?a=r:e[l+1]=Pd(e[l+1],r),l=r;u&&(e[r+1]=Nd(e[r+1])),W_(e,c,r,!0),W_(e,c,r,!1),function _T(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&Oo(i,n)>=0&&(t[r+1]=Od(t[r+1]))}(n,c,e,r,i),s=ul(a,l),i?n.classBindings=s:n.styleBindings=s}(o,i,n,t,s,r)}}function Ld(e,n,t,r,o){let i=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let g=t[o+1];g===le&&(g=d?Ce:void 0);let m=d?Mc(g,r):c===r?g:void 0;if(u&&!cl(m)&&(m=Mc(l,r)),cl(m)&&(a=m,s))return a;const y=e[o+1];o=s?xr(y):oo(y)}if(null!==n){let l=i?n.residualClasses:n.residualStyles;null!=l&&(a=Mc(l,r))}return a}function cl(e){return void 0!==e}function sv(e,n){return 0!=(e.flags&(n?8:16))}function v(e,n=""){const t=P(),r=_e(),o=e+je,i=r.firstCreatePass?zo(r,o,1,n,null):r.data[o],s=t[o]=function Uc(e,n){return e.createText(n)}(t[pe],n);qa(r,t,s,i),Bn(i,!1)}function ri(e){return b("",e,""),ri}function b(e,n,t){const r=P(),o=Wo(r,e,n,t);return o!==le&&dr(r,Ft(),o),b}function dl(e,n,t,r,o){const i=P(),s=Ko(i,e,n,t,r,o);return s!==le&&dr(i,Ft(),s),dl}const io=void 0;var XT=["en",[["a","p"],["AM","PM"],io],[["AM","PM"],io,io],[["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"]],io,[["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"]],io,[["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 a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",io,"{1} 'at' {0}",io],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function QT(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let oi={};function Rt(e){const n=function JT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=Iv(n);if(t)return t;const r=n.split("-")[0];if(t=Iv(r),t)return t;if("en"===r)return XT;throw new L(701,!1)}function Iv(e){return e in oi||(oi[e]=Be.ng&&Be.ng.common&&Be.ng.common.locales&&Be.ng.common.locales[e]),oi[e]}var G=(()=>((G=G||{})[G.LocaleId=0]="LocaleId",G[G.DayPeriodsFormat=1]="DayPeriodsFormat",G[G.DayPeriodsStandalone=2]="DayPeriodsStandalone",G[G.DaysFormat=3]="DaysFormat",G[G.DaysStandalone=4]="DaysStandalone",G[G.MonthsFormat=5]="MonthsFormat",G[G.MonthsStandalone=6]="MonthsStandalone",G[G.Eras=7]="Eras",G[G.FirstDayOfWeek=8]="FirstDayOfWeek",G[G.WeekendRange=9]="WeekendRange",G[G.DateFormat=10]="DateFormat",G[G.TimeFormat=11]="TimeFormat",G[G.DateTimeFormat=12]="DateTimeFormat",G[G.NumberSymbols=13]="NumberSymbols",G[G.NumberFormats=14]="NumberFormats",G[G.CurrencyCode=15]="CurrencyCode",G[G.CurrencySymbol=16]="CurrencySymbol",G[G.CurrencyName=17]="CurrencyName",G[G.Currencies=18]="Currencies",G[G.Directionality=19]="Directionality",G[G.PluralCase=20]="PluralCase",G[G.ExtraData=21]="ExtraData",G))();const ii="en-US";let Tv=ii;function jd(e,n,t,r,o){if(e=J(e),Array.isArray(e))for(let i=0;i>20;if(no(e)||!e.multi){const m=new Hi(l,o,T),y=$d(a,n,o?c:c+g,d);-1===y?(Ec(Va(u,s),i,a),Ud(i,e,n.length),n.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(m),s.push(m)):(t[y]=m,s[y]=m)}else{const m=$d(a,n,c+g,d),y=$d(a,n,c,c+g),k=y>=0&&t[y];if(o&&!k||!o&&!(m>=0&&t[m])){Ec(Va(u,s),i,a);const R=function ZM(e,n,t,r,o){const i=new Hi(e,t,T);return i.multi=[],i.index=n,i.componentProviders=0,Xv(i,o,r&&!t),i}(o?YM:KM,t.length,o,r,l);!o&&k&&(t[y].providerFactory=R),Ud(i,e,n.length,0),n.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(R),s.push(R)}else Ud(i,e,m>-1?m:y,Xv(t[o?y:m],l,!o&&r));!o&&r&&k&&t[y].componentProviders++}}}function Ud(e,n,t,r){const o=no(n),i=function uS(e){return!!e.useClass}(n);if(o||i){const l=(i?J(n.useClass):n).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const c=u.indexOf(t);-1===c?u.push(t,[r,l]):u[c+1].push(r,l)}else u.push(t,l)}}}function Xv(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function $d(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function WM(e,n,t){const r=_e();if(r.firstCreatePass){const o=Dn(e);jd(t,r.data,r.blueprint,o,!0),jd(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}class si{}class Jv{}class ey extends si{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new v_(this);const r=Kt(n);this._bootstrapComponents=cr(r.bootstrap),this._r3Injector=Zm(n,t,[{provide:si,useValue:this},{provide:os,useValue:this.componentFactoryResolver}],Pe(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Gd extends Jv{constructor(n){super(),this.moduleType=n}create(n){return new ey(this.moduleType,n)}}class XM extends si{constructor(n,t,r){super(),this.componentFactoryResolver=new v_(this),this.instance=null;const o=new Nm([...n,{provide:si,useValue:this},{provide:os,useValue:this.componentFactoryResolver}],t||Ja(),r,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function ml(e,n,t=null){return new XM(e,n,t).injector}let JM=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const r=xm(0,t.type),o=r.length>0?ml([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,o)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=j({token:e,providedIn:"environment",factory:()=>new e($(Un))}),e})();function ty(e){e.getStandaloneInjector=n=>n.get(JM).getOrCreateStandaloneInjector(e)}function pt(e,n,t){const r=kt()+e,o=P();return o[r]===le?Gn(o,r,t?n.call(t):n()):function us(e,n){return e[n]}(o,r)}function _s(e,n){const t=e[n];return t===le?void 0:t}function cy(e,n,t,r,o,i){const s=n+t;return It(e,s,o)?Gn(e,s+1,i?r.call(i,o):r(o)):_s(e,s+1)}function dy(e,n,t,r,o,i,s){const a=n+t;return ro(e,a,o,i)?Gn(e,a+2,s?r.call(s,o,i):r(o,i)):_s(e,a+2)}function w(e,n){const t=_e();let r;const o=e+je;t.firstCreatePass?(r=function gA(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[o]=r,r.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(o,r.onDestroy)):r=t.data[o];const i=r.factory||(r.factory=Qr(r.type)),s=un(T);try{const a=La(!1),l=i();return La(a),function sT(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,P(),o,l),l}finally{un(s)}}function D(e,n,t){const r=e+je,o=P(),i=Mo(o,r);return vs(o,r)?cy(o,kt(),n,i.transform,t,i):i.transform(t)}function qd(e,n,t,r){const o=e+je,i=P(),s=Mo(i,o);return vs(i,o)?dy(i,kt(),n,s.transform,t,r,s):s.transform(t,r)}function vs(e,n){return e[z].data[n].pure}function Wd(e){return n=>{setTimeout(e,void 0,n)}}const Y=class yA extends zt{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=Wd(i),o&&(o=Wd(o)),s&&(s=Wd(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof et&&n.add(a),a}};function bA(){return this._results[Symbol.iterator]()}class Kd{get changes(){return this._changes||(this._changes=new Y)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Kd.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=bA)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const r=this;r.dirty=!1;const o=function fn(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function O0(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=DA,e})();const CA=fr,wA=class extends CA{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(n,t){const r=this._declarationTContainer.tView,o=tl(this._declarationLView,r,n,16,null,r.declTNode,null,null,null,null,t||null);o[Bi]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[Vn];return null!==s&&(o[Vn]=s.createEmbeddedView(r)),_d(r,o,n),new as(o)}};function DA(){return _l(yt(),P())}function _l(e,n){return 4&e.type?new wA(n,e,Uo(e,n)):null}let Tn=(()=>{class e{}return e.__NG_ELEMENT_ID__=EA,e})();function EA(){return _y(yt(),P())}const SA=Tn,gy=class extends SA{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Uo(this._hostTNode,this._hostLView)}get injector(){return new ko(this._hostTNode,this._hostLView)}get parentInjector(){const n=Dc(this._hostTNode,this._hostLView);if(vg(n)){const t=Oa(n,this._hostLView),r=Pa(n);return new ko(t[z].data[r+8],t)}return new ko(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=my(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-xt}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=n.createEmbeddedView(t||{},i);return this.insert(s,o),s}createComponent(n,t,r,o,i){const s=n&&!function qi(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const d=t||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const l=s?n:new ls(Ee(n)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const g=(s?u:this.parentInjector).get(Un,null);g&&(i=g)}const c=l.create(u,o,void 0,i);return this.insert(c.hostView,a),c}insert(n,t){const r=n._lView,o=r[z];if(function s0(e){return wn(e[ze])}(r)){const c=this.indexOf(n);if(-1!==c)this.detach(c);else{const d=r[ze],g=new gy(d,d[Dt],d[ze]);g.detach(g.indexOf(n))}}const i=this._adjustIndex(t),s=this._lContainer;!function EE(e,n,t,r){const o=xt+r,i=t.length;r>0&&(t[o-1][Cn]=n),r0)r.push(s[a/2]);else{const u=i[a+1],c=n[-l];for(let d=xt;d{class e{constructor(t){this.appInits=t,this.resolve=bl,this.reject=bl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)($(Cl,8))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ws=new W("AppId",{providedIn:"root",factory:function Uy(){return`${lf()}${lf()}${lf()}`}});function lf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $y=new W("Platform Initializer"),uf=new W("Platform ID",{providedIn:"platform",factory:()=>"unknown"});let QA=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const hr=new W("LocaleId",{providedIn:"root",factory:()=>he(hr,ee.Optional|ee.SkipSelf)||function XA(){return typeof $localize<"u"&&$localize.locale||ii}()});class ex{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let Hy=(()=>{class e{compileModuleSync(t){return new Gd(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),i=cr(Kt(t).declarations).reduce((s,a)=>{const l=Ee(a);return l&&s.push(new ls(l)),s},[]);return new ex(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const rx=(()=>Promise.resolve(0))();function cf(e){typeof Zone>"u"?rx.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ye{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Y(!1),this.onMicrotaskEmpty=new Y(!1),this.onStable=new Y(!1),this.onError=new Y(!1),typeof Zone>"u")throw new L(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function ox(){let e=Be.requestAnimationFrame,n=Be.cancelAnimationFrame;if(typeof Zone<"u"&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function ax(e){const n=()=>{!function sx(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Be,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ff(e),e.isCheckStableRunning=!0,df(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ff(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,i,s,a)=>{try{return qy(e),t.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&n(),Wy(e)}},onInvoke:(t,r,o,i,s,a,l)=>{try{return qy(e),t.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),Wy(e)}},onHasTask:(t,r,o,i)=>{t.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,ff(e),df(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,o,i)=>(t.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ye.isInAngularZone())throw new L(909,!1)}static assertNotInAngularZone(){if(Ye.isInAngularZone())throw new L(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,ix,bl,bl);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const ix={};function df(e){if(0==e._nesting&&!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=!0}}}function ff(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function qy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Wy(e){e._nesting--,df(e)}class lx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Y,this.onMicrotaskEmpty=new Y,this.onStable=new Y,this.onError=new Y}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}const Ky=new W(""),Dl=new W("");let gf,hf=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,gf||(function ux(e){gf=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ye.assertNotInAngularZone(),cf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())cf(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}}return e.\u0275fac=function(t){return new(t||e)($(Ye),$(pf),$(Dl))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),pf=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return gf?.findTestabilityInTree(this,t,r)??null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const pr=!1;let kr=null;const Yy=new W("AllowMultipleToken"),mf=new W("PlatformDestroyListeners"),Zy=new W("appBootstrapListener");class Qy{constructor(n,t){this.name=n,this.token=t}}function Jy(e,n,t=[]){const r=`Platform: ${n}`,o=new W(r);return(i=[])=>{let s=_f();if(!s||s.injector.get(Yy,!1)){const a=[...t,...i,{provide:o,useValue:!0}];e?e(a):function fx(e){if(kr&&!kr.get(Yy,!1))throw new L(400,!1);kr=e;const n=e.get(tb);(function Xy(e){const n=e.get($y,null);n&&n.forEach(t=>t())})(e)}(function eb(e=[],n){return $n.create({name:n,providers:[{provide:id,useValue:"platform"},{provide:mf,useValue:new Set([()=>kr=null])},...e]})}(a,r))}return function px(e){const n=_f();if(!n)throw new L(401,!1);return n}()}}function _f(){return kr?.get(tb)??null}let tb=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function rb(e,n){let t;return t="noop"===e?new lx:("zone.js"===e?void 0:e)||new Ye(n),t}(r?.ngZone,function nb(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:Ye,useValue:o}];return o.run(()=>{const s=$n.create({providers:i,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get($o,null);if(!l)throw new L(402,!1);return o.runOutsideAngular(()=>{const u=o.onError.subscribe({next:c=>{l.handleError(c)}});a.onDestroy(()=>{Sl(this._modules,a),u.unsubscribe()})}),function ob(e,n,t){try{const r=t();return cs(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(l,o,()=>{const u=a.injector.get(wl);return u.runInitializers(),u.donePromise.then(()=>(function Mv(e){ln(e,"Expected localeId to be defined"),"string"==typeof e&&(Tv=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(hr,ii)||ii),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,r=[]){const o=ib({},r);return function cx(e,n,t){const r=new Gd(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(t){const r=t.injector.get(El);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new L(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new L(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(mf,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)($($n))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function ib(e,n){return Array.isArray(n)?n.reduce(ib,e):{...e,...n}}let El=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(t,r,o){this._zone=t,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new be(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new be(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Ye.assertNotInAngularZone(),cf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Ye.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=function ED(...e){const n=Ri(e),t=function _D(e,n){return"number"==typeof qu(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?an(r[0]):Co(t)(rt(r,n)):Pn}(i,s.pipe(Fp()))}bootstrap(t,r){const o=t instanceof Om;if(!this._injector.get(wl).done){!o&&function Do(e){const n=Ee(e)||wt(e)||Vt(e);return null!==n&&n.standalone}(t);throw new L(405,pr)}let s;s=o?t:this._injector.get(os).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function dx(e){return e.isBoundToModule}(s)?void 0:this._injector.get(si),u=s.create($n.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(Ky,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Sl(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new L(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Sl(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Zy,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Sl(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new L(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(t){return new(t||e)($(Ye),$(Un),$($o))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Sl(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let Ds=(()=>{class e{}return e.__NG_ELEMENT_ID__=mx,e})();function mx(e){return function _x(e,n,t){if(Ui(e)&&!t){const r=Xt(e.index,n);return new as(r,r)}return 47&e.type?new as(n[Et],n):null}(yt(),P(),16==(16&e))}class cb{constructor(){}supports(n){return al(n)}create(n){return new Dx(n)}}const wx=(e,n)=>n;class Dx{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||wx}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(o,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,o),r=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new Ex(t,r),i,o),n}_verifyReinsertion(n,t,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new db),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new db),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Ex{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Sx{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class db{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new Sx,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function fb(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r{if(t&&t.key===o)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(o,r);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,t);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new Tx(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}}class Tx{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function pb(){return new Ml([new cb])}let Ml=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||pb()),deps:[[e,new Yi,new Ki]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new L(901,!1)}}return e.\u0275prov=j({token:e,providedIn:"root",factory:pb}),e})();function gb(){return new Es([new hb])}let Es=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||gb()),deps:[[e,new Yi,new Ki]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(r)return r;throw new L(901,!1)}}return e.\u0275prov=j({token:e,providedIn:"root",factory:gb}),e})();const xx=Jy(null,"core",[]);let kx=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)($(El))},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({}),e})();function ui(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let wf=null;function gr(){return wf}class Nx{}const Pt=new W("DocumentToken");let Df=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return function Px(){return $(mb)}()},providedIn:"platform"}),e})();const Ox=new W("Location Initialized");let mb=(()=>{class e extends Df{constructor(t){super(),this._doc=t,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gr().getBaseHref(this._doc)}onPopState(t){const r=gr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=gr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,r,o){_b()?this._history.pushState(t,r,o):this._location.hash=o}replaceState(t,r,o){_b()?this._history.replaceState(t,r,o):this._location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)($(Pt))},e.\u0275prov=j({token:e,factory:function(){return function Lx(){return new mb($(Pt))}()},providedIn:"platform"}),e})();function _b(){return!!window.history.pushState}function Ef(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function vb(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function mr(e){return e&&"?"!==e[0]?"?"+e:e}let ao=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return he(bb)},providedIn:"root"}),e})();const yb=new W("appBaseHref");let bb=(()=>{class e extends ao{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??he(Pt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ef(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+mr(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){const s=this.prepareExternalUrl(o+mr(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){const s=this.prepareExternalUrl(o+mr(i));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)($(Df),$(yb,8))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Vx=(()=>{class e extends ao{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=Ef(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+mr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+mr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)($(Df),$(yb,8))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),Sf=(()=>{class e{constructor(t){this._subject=new Y,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function Ux(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(vb(Cb(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+mr(r))}normalize(t){return e.stripTrailingSlash(function jx(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Cb(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+mr(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+mr(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r,complete:o})}}return e.normalizeQueryParams=mr,e.joinWithSlash=Ef,e.stripTrailingSlash=vb,e.\u0275fac=function(t){return new(t||e)($(ao))},e.\u0275prov=j({token:e,factory:function(){return function Bx(){return new Sf($(ao))}()},providedIn:"root"}),e})();function Cb(e){return e.replace(/\/index.html$/,"")}var Ze=(()=>((Ze=Ze||{})[Ze.Format=0]="Format",Ze[Ze.Standalone=1]="Standalone",Ze))(),me=(()=>((me=me||{})[me.Narrow=0]="Narrow",me[me.Abbreviated=1]="Abbreviated",me[me.Wide=2]="Wide",me[me.Short=3]="Short",me))(),Ge=(()=>((Ge=Ge||{})[Ge.Short=0]="Short",Ge[Ge.Medium=1]="Medium",Ge[Ge.Long=2]="Long",Ge[Ge.Full=3]="Full",Ge))(),Q=(()=>((Q=Q||{})[Q.Decimal=0]="Decimal",Q[Q.Group=1]="Group",Q[Q.List=2]="List",Q[Q.PercentSign=3]="PercentSign",Q[Q.PlusSign=4]="PlusSign",Q[Q.MinusSign=5]="MinusSign",Q[Q.Exponential=6]="Exponential",Q[Q.SuperscriptingExponent=7]="SuperscriptingExponent",Q[Q.PerMille=8]="PerMille",Q[Q.Infinity=9]="Infinity",Q[Q.NaN=10]="NaN",Q[Q.TimeSeparator=11]="TimeSeparator",Q[Q.CurrencyDecimal=12]="CurrencyDecimal",Q[Q.CurrencyGroup=13]="CurrencyGroup",Q))();function Al(e,n){return gn(Rt(e)[G.DateFormat],n)}function xl(e,n){return gn(Rt(e)[G.TimeFormat],n)}function kl(e,n){return gn(Rt(e)[G.DateTimeFormat],n)}function pn(e,n){const t=Rt(e),r=t[G.NumberSymbols][n];if(typeof r>"u"){if(n===Q.CurrencyDecimal)return t[G.NumberSymbols][Q.Decimal];if(n===Q.CurrencyGroup)return t[G.NumberSymbols][Q.Group]}return r}function Db(e){if(!e[G.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[G.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gn(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Tf(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const ek=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ss={},tk=/((?:[^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]*)/;var ft=(()=>((ft=ft||{})[ft.Short=0]="Short",ft[ft.ShortGMT=1]="ShortGMT",ft[ft.Long=2]="Long",ft[ft.Extended=3]="Extended",ft))(),ne=(()=>((ne=ne||{})[ne.FullYear=0]="FullYear",ne[ne.Month=1]="Month",ne[ne.Date=2]="Date",ne[ne.Hours=3]="Hours",ne[ne.Minutes=4]="Minutes",ne[ne.Seconds=5]="Seconds",ne[ne.FractionalSeconds=6]="FractionalSeconds",ne[ne.Day=7]="Day",ne))(),fe=(()=>((fe=fe||{})[fe.DayPeriods=0]="DayPeriods",fe[fe.Days=1]="Days",fe[fe.Months=2]="Months",fe[fe.Eras=3]="Eras",fe))();function nk(e,n,t,r){let o=function dk(e){if(Ib(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return Fl(o,i-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(ek))return function fk(e){const n=new Date(0);let t=0,r=0;const o=e[8]?n.setUTCFullYear:n.setFullYear,i=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-t,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(n,s,a,l,u),n}(r)}const n=new Date(e);if(!Ib(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=_r(t,n)||n;let a,s=[];for(;n;){if(a=tk.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;n=c}}let l=o.getTimezoneOffset();r&&(l=Sb(r,l),o=function ck(e,n,t){const r=t?-1:1,o=e.getTimezoneOffset();return function uk(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,r*(Sb(n,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function lk(e){if(Af[e])return Af[e];let n;switch(e){case"G":case"GG":case"GGG":n=Ve(fe.Eras,me.Abbreviated);break;case"GGGG":n=Ve(fe.Eras,me.Wide);break;case"GGGGG":n=Ve(fe.Eras,me.Narrow);break;case"y":n=st(ne.FullYear,1,0,!1,!0);break;case"yy":n=st(ne.FullYear,2,0,!0,!0);break;case"yyy":n=st(ne.FullYear,3,0,!1,!0);break;case"yyyy":n=st(ne.FullYear,4,0,!1,!0);break;case"Y":n=Ol(1);break;case"YY":n=Ol(2,!0);break;case"YYY":n=Ol(3);break;case"YYYY":n=Ol(4);break;case"M":case"L":n=st(ne.Month,1,1);break;case"MM":case"LL":n=st(ne.Month,2,1);break;case"MMM":n=Ve(fe.Months,me.Abbreviated);break;case"MMMM":n=Ve(fe.Months,me.Wide);break;case"MMMMM":n=Ve(fe.Months,me.Narrow);break;case"LLL":n=Ve(fe.Months,me.Abbreviated,Ze.Standalone);break;case"LLLL":n=Ve(fe.Months,me.Wide,Ze.Standalone);break;case"LLLLL":n=Ve(fe.Months,me.Narrow,Ze.Standalone);break;case"w":n=Mf(1);break;case"ww":n=Mf(2);break;case"W":n=Mf(1,!0);break;case"d":n=st(ne.Date,1);break;case"dd":n=st(ne.Date,2);break;case"c":case"cc":n=st(ne.Day,1);break;case"ccc":n=Ve(fe.Days,me.Abbreviated,Ze.Standalone);break;case"cccc":n=Ve(fe.Days,me.Wide,Ze.Standalone);break;case"ccccc":n=Ve(fe.Days,me.Narrow,Ze.Standalone);break;case"cccccc":n=Ve(fe.Days,me.Short,Ze.Standalone);break;case"E":case"EE":case"EEE":n=Ve(fe.Days,me.Abbreviated);break;case"EEEE":n=Ve(fe.Days,me.Wide);break;case"EEEEE":n=Ve(fe.Days,me.Narrow);break;case"EEEEEE":n=Ve(fe.Days,me.Short);break;case"a":case"aa":case"aaa":n=Ve(fe.DayPeriods,me.Abbreviated);break;case"aaaa":n=Ve(fe.DayPeriods,me.Wide);break;case"aaaaa":n=Ve(fe.DayPeriods,me.Narrow);break;case"b":case"bb":case"bbb":n=Ve(fe.DayPeriods,me.Abbreviated,Ze.Standalone,!0);break;case"bbbb":n=Ve(fe.DayPeriods,me.Wide,Ze.Standalone,!0);break;case"bbbbb":n=Ve(fe.DayPeriods,me.Narrow,Ze.Standalone,!0);break;case"B":case"BB":case"BBB":n=Ve(fe.DayPeriods,me.Abbreviated,Ze.Format,!0);break;case"BBBB":n=Ve(fe.DayPeriods,me.Wide,Ze.Format,!0);break;case"BBBBB":n=Ve(fe.DayPeriods,me.Narrow,Ze.Format,!0);break;case"h":n=st(ne.Hours,1,-12);break;case"hh":n=st(ne.Hours,2,-12);break;case"H":n=st(ne.Hours,1);break;case"HH":n=st(ne.Hours,2);break;case"m":n=st(ne.Minutes,1);break;case"mm":n=st(ne.Minutes,2);break;case"s":n=st(ne.Seconds,1);break;case"ss":n=st(ne.Seconds,2);break;case"S":n=st(ne.FractionalSeconds,1);break;case"SS":n=st(ne.FractionalSeconds,2);break;case"SSS":n=st(ne.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Nl(ft.Short);break;case"ZZZZZ":n=Nl(ft.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Nl(ft.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Nl(ft.Long);break;default:return null}return Af[e]=n,n}(c);u+=d?d(o,t,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Fl(e,n,t){const r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function _r(e,n){const t=function $x(e){return Rt(e)[G.LocaleId]}(e);if(Ss[t]=Ss[t]||{},Ss[t][n])return Ss[t][n];let r="";switch(n){case"shortDate":r=Al(e,Ge.Short);break;case"mediumDate":r=Al(e,Ge.Medium);break;case"longDate":r=Al(e,Ge.Long);break;case"fullDate":r=Al(e,Ge.Full);break;case"shortTime":r=xl(e,Ge.Short);break;case"mediumTime":r=xl(e,Ge.Medium);break;case"longTime":r=xl(e,Ge.Long);break;case"fullTime":r=xl(e,Ge.Full);break;case"short":const o=_r(e,"shortTime"),i=_r(e,"shortDate");r=Rl(kl(e,Ge.Short),[o,i]);break;case"medium":const s=_r(e,"mediumTime"),a=_r(e,"mediumDate");r=Rl(kl(e,Ge.Medium),[s,a]);break;case"long":const l=_r(e,"longTime"),u=_r(e,"longDate");r=Rl(kl(e,Ge.Long),[l,u]);break;case"full":const c=_r(e,"fullTime"),d=_r(e,"fullDate");r=Rl(kl(e,Ge.Full),[c,d])}return r&&(Ss[t][n]=r),r}function Rl(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return null!=n&&r in n?n[r]:t})),e}function An(e,n,t="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=t));let s=String(e);for(;s.length0||a>-t)&&(a+=t),e===ne.Hours)0===a&&-12===t&&(a=12);else if(e===ne.FractionalSeconds)return function rk(e,n){return An(e,3).substring(0,n)}(a,n);const l=pn(s,Q.MinusSign);return An(a,n,l,r,o)}}function Ve(e,n,t=Ze.Format,r=!1){return function(o,i){return function ik(e,n,t,r,o,i){switch(t){case fe.Months:return function zx(e,n,t){const r=Rt(e),i=gn([r[G.MonthsFormat],r[G.MonthsStandalone]],n);return gn(i,t)}(n,o,r)[e.getMonth()];case fe.Days:return function Gx(e,n,t){const r=Rt(e),i=gn([r[G.DaysFormat],r[G.DaysStandalone]],n);return gn(i,t)}(n,o,r)[e.getDay()];case fe.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function Yx(e){const n=Rt(e);return Db(n),(n[G.ExtraData][2]||[]).map(r=>"string"==typeof r?Tf(r):[Tf(r[0]),Tf(r[1])])}(n),c=function Zx(e,n,t){const r=Rt(e);Db(r);const i=gn([r[G.ExtraData][0],r[G.ExtraData][1]],n)||[];return gn(i,t)||[]}(n,o,r),d=u.findIndex(g=>{if(Array.isArray(g)){const[m,y]=g,M=s>=m.hours&&a>=m.minutes,k=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case ft.Short:return(o>=0?"+":"")+An(s,2,i)+An(Math.abs(o%60),2,i);case ft.ShortGMT:return"GMT"+(o>=0?"+":"")+An(s,1,i);case ft.Long:return"GMT"+(o>=0?"+":"")+An(s,2,i)+":"+An(Math.abs(o%60),2,i);case ft.Extended:return 0===r?"Z":(o>=0?"+":"")+An(s,2,i)+":"+An(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const sk=0,Pl=4;function Eb(e){return Fl(e.getFullYear(),e.getMonth(),e.getDate()+(Pl-e.getDay()))}function Mf(e,n=!1){return function(t,r){let o;if(n){const i=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();o=1+Math.floor((s+i)/7)}else{const i=Eb(t),s=function ak(e){const n=Fl(e,sk,1).getDay();return Fl(e,0,1+(n<=Pl?Pl:Pl+7)-n)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return An(o,e,pn(r,Q.MinusSign))}}function Ol(e,n=!1){return function(t,r){return An(Eb(t).getFullYear(),e,pn(r,Q.MinusSign),n)}}const Af={};function Sb(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function Ib(e){return e instanceof Date&&!isNaN(e.valueOf())}function xb(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}const Pf=/\s+/,kb=[];let Fb=(()=>{class e{constructor(t,r,o,i){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=kb,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Pf):kb}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Pf):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,Boolean(t[r]));this._applyStateDiff()}_updateState(t,r){const o=this.stateMap.get(t);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],o=t[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(Pf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(t){return new(t||e)(T(Ml),T(Es),T(Ut),T(ur))},e.\u0275dir=oe({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class Sk{constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let mn=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new Sk(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),Pb(a,o)}});for(let o=0,i=r.length;o{Pb(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(T(Tn),T(fr),T(Ml))},e.\u0275dir=oe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function Pb(e,n){e.context.$implicit=n.item}let Ae=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new Tk,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ob("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ob("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(T(Tn),T(fr))},e.\u0275dir=oe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Tk{constructor(){this.$implicit=null,this.ngIf=null}}function Ob(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Pe(n)}'.`)}function xn(e,n){return new L(2100,!1)}class xk{createSubscription(n,t){return n.subscribe({next:t,error:r=>{throw r}})}dispose(n){n.unsubscribe()}}class kk{createSubscription(n,t){return n.then(t,r=>{throw r})}dispose(n){}}const Fk=new kk,Rk=new xk;let Vb=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(cs(t))return Fk;if(N_(t))return Rk;throw xn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(T(Ds,16))},e.\u0275pipe=At({name:"async",type:e,pure:!1,standalone:!0}),e})();const Bk=new W("DATE_PIPE_DEFAULT_TIMEZONE"),jk=new W("DATE_PIPE_DEFAULT_OPTIONS");let Bb=(()=>{class e{constructor(t,r,o){this.locale=t,this.defaultTimezone=r,this.defaultOptions=o}transform(t,r,o,i){if(null==t||""===t||t!=t)return null;try{return nk(t,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw xn()}}}return e.\u0275fac=function(t){return new(t||e)(T(hr,16),T(Bk,24),T(jk,24))},e.\u0275pipe=At({name:"date",type:e,pure:!0,standalone:!0}),e})(),Zk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({}),e})();let eF=(()=>{class e{}return e.\u0275prov=j({token:e,providedIn:"root",factory:()=>new tF($(Pt),window)}),e})();class tF{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function nF(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=$b(this.window.history)||$b(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function $b(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Hb{}class AF extends Nx{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class $f extends AF{static makeCurrent(){!function Rx(e){wf||(wf=e)}(new $f)}onAndCancel(n,t,r){return n.addEventListener(t,r,!1),()=>{n.removeEventListener(t,r,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).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,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function xF(){return Ms=Ms||document.querySelector("base"),Ms?Ms.getAttribute("href"):null}();return null==t?null:function kF(e){jl=jl||document.createElement("a"),jl.setAttribute("href",e);const n=jl.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Ms=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return xb(document.cookie,n)}}let jl,Ms=null;const Kb=new W("TRANSITION_ID"),RF=[{provide:Cl,useFactory:function FF(e,n,t){return()=>{t.get(wl).donePromise.then(()=>{const r=gr(),o=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const Ul=new W("EventManagerPlugins");let $l=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}addGlobalEventListener(t,r,o){return this._findPluginFor(r).addGlobalEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const o=this._plugins;for(let i=0;i{class e{constructor(){this.usageCount=new Map}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(t){}onStyleAdded(t){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(t,r){const o=this.usageCount;let i=o.get(t)??0;return i+=r,i>0?o.set(t,i):o.delete(t),i}ngOnDestroy(){for(const t of this.getAllStyles())this.onStyleRemoved(t);this.usageCount.clear()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),As=(()=>{class e extends Zb{constructor(t){super(),this.doc=t,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.forEach(i=>i.remove()),r.delete(t)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}addStyleToHost(t,r){const o=this.doc.createElement("style");o.textContent=r,t.appendChild(o);const i=this.styleRef.get(r);i?i.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}}return e.\u0275fac=function(t){return new(t||e)($(Pt))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const Hf={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/MathML/"},Gf=/%COMP%/g,Jb=new W("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function eC(e,n){return n.flat(100).map(t=>t.replace(Gf,e))}function tC(e){return n=>{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let zf=(()=>{class e{constructor(t,r,o,i){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.rendererByCompId=new Map,this.defaultRenderer=new qf(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(t,r);return o instanceof oC?o.applyToHost(t):o instanceof Wf&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.eventManager,a=this.sharedStylesHost,l=this.removeStylesOnCompDestory;switch(r.encapsulation){case Ln.Emulated:i=new oC(s,a,r,this.appId,l);break;case Ln.ShadowDom:return new $F(s,a,t,r);default:i=new Wf(s,a,r,l)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)($($l),$(As),$(ws),$(Jb))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();class qf{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(Hf[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){(rC(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(rC(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?document.querySelector(n):n;if(!r)throw new Error(`The selector "${n}" did not match any elements`);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const i=Hf[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=Hf[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(Bt.DashCase|Bt.Important)?n.style.setProperty(t,r,o&Bt.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&Bt.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,tC(r)):this.eventManager.addEventListener(n,t,tC(r))}}function rC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class $F extends qf{constructor(n,t,r,o){super(n),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=eC(o.id,o.styles);for(const s of i){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Wf extends qf{constructor(n,t,r,o,i=r.id){super(n),this.sharedStylesHost=t,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=eC(i,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class oC extends Wf{constructor(n,t,r,o,i){const s=o+"-"+r.id;super(n,t,r,i,s),this.contentAttr=function BF(e){return"_ngcontent-%COMP%".replace(Gf,e)}(s),this.hostAttr=function jF(e){return"_nghost-%COMP%".replace(Gf,e)}(s)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let HF=(()=>{class e extends Yb{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}}return e.\u0275fac=function(t){return new(t||e)($(Pt))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const iC=["alt","control","meta","shift"],GF={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let qF=(()=>{class e extends Yb{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gr().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),iC.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let o=GF[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),iC.forEach(s=>{s!==o&&(0,zF[s])(t)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)($(Pt))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const ZF=Jy(xx,"browser",[{provide:uf,useValue:"browser"},{provide:$y,useValue:function WF(){$f.makeCurrent()},multi:!0},{provide:Pt,useFactory:function YF(){return function LE(e){Zc=e}(document),document},deps:[]}]),lC=new W(""),uC=[{provide:Dl,useClass:class NF{addToWindow(n){Be.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},Be.getAllAngularTestabilities=()=>n.getAllTestabilities(),Be.getAllAngularRootElements=()=>n.getAllRootElements(),Be.frameworkStabilizers||(Be.frameworkStabilizers=[]),Be.frameworkStabilizers.push(r=>{const o=Be.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?gr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:Ky,useClass:hf,deps:[Ye,pf,Dl]},{provide:hf,useClass:hf,deps:[Ye,pf,Dl]}],cC=[{provide:id,useValue:"root"},{provide:$o,useFactory:function KF(){return new $o},deps:[]},{provide:Ul,useClass:HF,multi:!0,deps:[Pt,Ye,uf]},{provide:Ul,useClass:qF,multi:!0,deps:[Pt]},{provide:zf,useClass:zf,deps:[$l,As,ws,Jb]},{provide:Vm,useExisting:zf},{provide:Zb,useExisting:As},{provide:As,useClass:As,deps:[Pt]},{provide:$l,useClass:$l,deps:[Ul,Ye]},{provide:Hb,useClass:PF,deps:[]},[]];let QF=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:ws,useValue:t.appId},{provide:Kb,useExisting:ws},RF]}}}return e.\u0275fac=function(t){return new(t||e)($(lC,12))},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({providers:[...cC,...uC],imports:[Zk,kx]}),e})(),dC=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return e.\u0275fac=function(t){return new(t||e)($(Pt))},e.\u0275prov=j({token:e,factory:function(t){let r=null;return r=t?new t:function JF(){return new dC($(Pt))}(),r},providedIn:"root"}),e})();function Z(...e){return rt(e,Ri(e))}function vr(e,n){return ye(n)?_t(e,n,1):_t(e,1)}function _n(e,n){return tt((t,r)=>{let o=0;t.subscribe(nt(r,i=>e.call(n,i,o++)&&r.next(i)))})}typeof window<"u"&&window;class Hl{}class Zf{}class yr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const o=t.slice(0,r),i=o.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(t=>{let r=n[t];const o=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(t,o))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof yr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new yr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof yr?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const o=("a"===n.op?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":const i=n.value;if(i){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class i2{encodeKey(n){return pC(n)}encodeValue(n){return pC(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const a2=/%(\d[a-f0-9])/gi,l2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function pC(e){return encodeURIComponent(e).replace(a2,(n,t)=>l2[t]??n)}function Gl(e){return`${e}`}class Rr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new i2,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function s2(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],o=Array.isArray(r)?r.map(Gl):[Gl(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(i=>{t.push({param:r,value:i,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Rr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Gl(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(Gl(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class u2{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function gC(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function mC(e){return typeof Blob<"u"&&e instanceof Blob}function _C(e){return typeof FormData<"u"&&e instanceof FormData}class xs{constructor(n,t,r,o){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function c2(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new yr),this.context||(this.context=new u2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(g,n.setHeaders[g]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((d,g)=>d.set(g,n.setParams[g]),u)),new xs(t,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var at=(()=>((at=at||{})[at.Sent=0]="Sent",at[at.UploadProgress=1]="UploadProgress",at[at.ResponseHeader=2]="ResponseHeader",at[at.DownloadProgress=3]="DownloadProgress",at[at.Response=4]="Response",at[at.User=5]="User",at))();class Qf{constructor(n,t=200,r="OK"){this.headers=n.headers||new yr,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Xf extends Qf{constructor(n={}){super(n),this.type=at.ResponseHeader}clone(n={}){return new Xf({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class zl extends Qf{constructor(n={}){super(n),this.type=at.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new zl({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class vC extends Qf{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Jf(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let yC=(()=>{class e{constructor(t){this.handler=t}request(t,r,o={}){let i;if(t instanceof xs)i=t;else{let l,u;l=o.headers instanceof yr?o.headers:new yr(o.headers),o.params&&(u=o.params instanceof Rr?o.params:new Rr({fromObject:o.params})),i=new xs(t,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=Z(i).pipe(vr(l=>this.handler.handle(l)));if(t instanceof xs||"events"===o.observe)return s;const a=s.pipe(_n(l=>l instanceof zl));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ie(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ie(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ie(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ie(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Rr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,Jf(o,r))}post(t,r,o={}){return this.request("POST",t,Jf(o,r))}put(t,r,o={}){return this.request("PUT",t,Jf(o,r))}}return e.\u0275fac=function(t){return new(t||e)($(Hl))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();function bC(e,n){return n(e)}function f2(e,n){return(t,r)=>n.intercept(t,{handle:o=>e(o,r)})}const p2=new W("HTTP_INTERCEPTORS"),ks=new W("HTTP_INTERCEPTOR_FNS");function g2(){let e=null;return(n,t)=>(null===e&&(e=(he(p2,{optional:!0})??[]).reduceRight(f2,bC)),e(n,t))}let CC=(()=>{class e extends Hl{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null}handle(t){if(null===this.chain){const r=Array.from(new Set(this.injector.get(ks)));this.chain=r.reduceRight((o,i)=>function h2(e,n,t){return(r,o)=>t.runInContext(()=>n(r,i=>e(i,o)))}(o,i,this.injector),bC)}return this.chain(t,r=>this.backend.handle(r))}}return e.\u0275fac=function(t){return new(t||e)($(Zf),$(Un))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const y2=/^\)\]\}',?\n/;let DC=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new be(r=>{const o=this.xhrFactory.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((m,y)=>o.setRequestHeader(m,y.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&o.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();o.responseType="json"!==m?m:"text"}const i=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const m=o.statusText||"OK",y=new yr(o.getAllResponseHeaders()),M=function b2(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||t.url;return s=new Xf({headers:y,status:o.status,statusText:m,url:M}),s},l=()=>{let{headers:m,status:y,statusText:M,url:k}=a(),R=null;204!==y&&(R=typeof o.response>"u"?o.responseText:o.response),0===y&&(y=R?200:0);let H=y>=200&&y<300;if("json"===t.responseType&&"string"==typeof R){const F=R;R=R.replace(y2,"");try{R=""!==R?JSON.parse(R):null}catch(X){R=F,H&&(H=!1,R={error:X,text:R})}}H?(r.next(new zl({body:R,headers:m,status:y,statusText:M,url:k||void 0})),r.complete()):r.error(new vC({error:R,headers:m,status:y,statusText:M,url:k||void 0}))},u=m=>{const{url:y}=a(),M=new vC({error:m,status:o.status||0,statusText:o.statusText||"Unknown Error",url:y||void 0});r.error(M)};let c=!1;const d=m=>{c||(r.next(a()),c=!0);let y={type:at.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),"text"===t.responseType&&o.responseText&&(y.partialText=o.responseText),r.next(y)},g=m=>{let y={type:at.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),r.next(y)};return o.addEventListener("load",l),o.addEventListener("error",u),o.addEventListener("timeout",u),o.addEventListener("abort",u),t.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",g)),o.send(i),r.next({type:at.Sent}),()=>{o.removeEventListener("error",u),o.removeEventListener("abort",u),o.removeEventListener("load",l),o.removeEventListener("timeout",u),t.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",g)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(t){return new(t||e)($(Hb))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();const eh=new W("XSRF_ENABLED"),EC=new W("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),SC=new W("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class IC{}let D2=(()=>{class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=xb(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)($(Pt),$(uf),$(EC))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();function E2(e,n){const t=e.url.toLowerCase();if(!he(eh)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=he(IC).getToken(),o=he(SC);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var Xe=(()=>((Xe=Xe||{})[Xe.Interceptors=0]="Interceptors",Xe[Xe.LegacyInterceptors=1]="LegacyInterceptors",Xe[Xe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Xe[Xe.NoXsrfProtection=3]="NoXsrfProtection",Xe[Xe.JsonpSupport=4]="JsonpSupport",Xe[Xe.RequestsMadeViaParent=5]="RequestsMadeViaParent",Xe))();function ci(e,n){return{\u0275kind:e,\u0275providers:n}}function S2(...e){const n=[yC,DC,CC,{provide:Hl,useExisting:CC},{provide:Zf,useExisting:DC},{provide:ks,useValue:E2,multi:!0},{provide:eh,useValue:!0},{provide:IC,useClass:D2}];for(const t of e)n.push(...t.\u0275providers);return function sS(e){return{\u0275providers:e}}(n)}const TC=new W("LEGACY_INTERCEPTOR_FN");let T2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({providers:[S2(ci(Xe.LegacyInterceptors,[{provide:TC,useFactory:g2},{provide:ks,useExisting:TC,multi:!0}]))]}),e})();class vn extends zt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}const Fs=Er(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:M2}=Array,{getPrototypeOf:A2,prototype:x2,keys:k2}=Object;function MC(e){if(1===e.length){const n=e[0];if(M2(n))return{args:n,keys:null};if(function F2(e){return e&&"object"==typeof e&&A2(e)===x2}(n)){const t=k2(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:R2}=Array;function AC(e){return ie(n=>function N2(e,n){return R2(n)?e(...n):e(n)}(e,n))}function xC(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function kC(...e){const n=Ri(e),t=Mp(e),{args:r,keys:o}=MC(e);if(0===r.length)return rt([],n);const i=new be(function P2(e,n,t=er){return r=>{FC(n,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=rt(e[l],n);let c=!1;u.subscribe(nt(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>xC(o,s):er));return t?i.pipe(AC(t)):i}function FC(e,n,t){e?tr(t,e,n):n()}function Rs(...e){return function O2(){return Co(1)}()(rt(e,Ri(e)))}function ql(e){return new be(n=>{an(e()).subscribe(n)})}function Ns(e,n){const t=ye(e)?e:()=>e,r=o=>o.error(t());return new be(n?o=>n.schedule(r,0,o):r)}function th(){return tt((e,n)=>{let t=null;e._refCount++;const r=nt(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class RC extends be{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Ai(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new et;const t=this.getSubject();n.add(this.source.subscribe(nt(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=et.EMPTY)}return n}refCount(){return th()(this)}}function yn(e,n){return tt((t,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();t.subscribe(nt(r,l=>{o?.unsubscribe();let u=0;const c=i++;an(e(l,c)).subscribe(o=nt(r,d=>r.next(n?n(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function kn(e){return e<=0?()=>Pn:tt((n,t)=>{let r=0;n.subscribe(nt(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function Wl(e){return tt((n,t)=>{let r=!1;n.subscribe(nt(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function NC(e=V2){return tt((n,t)=>{let r=!1;n.subscribe(nt(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function V2(){return new Fs}function Nr(e,n){const t=arguments.length>=2;return r=>r.pipe(e?_n((o,i)=>e(o,i,r)):er,kn(1),t?Wl(n):NC(()=>new Fs))}function Tt(e,n,t){const r=ye(e)||n||t?{next:e,error:n,complete:t}:e;return r?tt((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(nt(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):er}function Pr(e){return tt((n,t)=>{let i,r=null,o=!1;r=n.subscribe(nt(t,void 0,void 0,s=>{i=an(e(s,Pr(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}function PC(e,n){return tt(function B2(e,n,t,r,o){return(i,s)=>{let a=t,l=n,u=0;i.subscribe(nt(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}function nh(e){return e<=0?()=>Pn:tt((n,t)=>{let r=[];n.subscribe(nt(t,o=>{r.push(o),e{for(const o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}function OC(e,n){const t=arguments.length>=2;return r=>r.pipe(e?_n((o,i)=>e(o,i,r)):er,nh(1),t?Wl(n):NC(()=>new Fs))}function rh(e){return tt((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}const ue="primary",Ps=Symbol("RouteTitle");class $2{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function di(e){return new $2(e)}function H2(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return e===n}function VC(e){return Array.prototype.concat.apply([],e)}function BC(e){return e.length>0?e[e.length-1]:null}function bt(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function Or(e){return Fd(e)?e:cs(e)?rt(Promise.resolve(e)):Z(e)}const Kl=!1,z2={exact:function $C(e,n,t){if(!lo(e.segments,n.segments)||!Yl(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!$C(e.children[r],n.children[r],t))return!1;return!0},subset:HC},jC={exact:function q2(e,n){return Wn(e,n)},subset:function W2(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>LC(e[t],n[t]))},ignored:()=>!0};function UC(e,n,t){return z2[t.paths](e.root,n.root,t.matrixParams)&&jC[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function HC(e,n,t){return GC(e,n,n.segments,t)}function GC(e,n,t,r){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!lo(o,t)||n.hasChildren()||!Yl(o,t,r))}if(e.segments.length===t.length){if(!lo(e.segments,t)||!Yl(e.segments,t,r))return!1;for(const o in n.children)if(!e.children[o]||!HC(e.children[o],n.children[o],r))return!1;return!0}{const o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!!(lo(e.segments,o)&&Yl(e.segments,o,r)&&e.children[ue])&&GC(e.children[ue],n,i,r)}}function Yl(e,n,t){return n.every((r,o)=>jC[t](e[o].parameters,r.parameters))}class Lr{constructor(n=new ge([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=di(this.queryParams)),this._queryParamMap}toString(){return Z2.serialize(this)}}class ge{constructor(n,t){this.segments=n,this.children=t,this.parent=null,bt(t,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Zl(this)}}class Os{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=di(this.parameters)),this._parameterMap}toString(){return WC(this)}}function lo(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let Ls=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return new oh},providedIn:"root"}),e})();class oh{parse(n){const t=new iR(n);return new Lr(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Vs(n.root,!0)}`,r=function J2(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(o=>`${Ql(t)}=${Ql(o)}`).join("&"):`${Ql(t)}=${Ql(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function Q2(e){return encodeURI(e)}(n.fragment)}`:""}`}}const Z2=new oh;function Zl(e){return e.segments.map(n=>WC(n)).join("/")}function Vs(e,n){if(!e.hasChildren())return Zl(e);if(n){const t=e.children[ue]?Vs(e.children[ue],!1):"",r=[];return bt(e.children,(o,i)=>{i!==ue&&r.push(`${i}:${Vs(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function Y2(e,n){let t=[];return bt(e.children,(r,o)=>{o===ue&&(t=t.concat(n(r,o)))}),bt(e.children,(r,o)=>{o!==ue&&(t=t.concat(n(r,o)))}),t}(e,(r,o)=>o===ue?[Vs(e.children[ue],!1)]:[`${o}:${Vs(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[ue]?`${Zl(e)}/${t[0]}`:`${Zl(e)}/(${t.join("//")})`}}function zC(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ql(e){return zC(e).replace(/%3B/gi,";")}function ih(e){return zC(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xl(e){return decodeURIComponent(e)}function qC(e){return Xl(e.replace(/\+/g,"%20"))}function WC(e){return`${ih(e.path)}${function X2(e){return Object.keys(e).map(n=>`;${ih(n)}=${ih(e[n])}`).join("")}(e.parameters)}`}const eR=/^[^\/()?;=#]+/;function Jl(e){const n=e.match(eR);return n?n[0]:""}const tR=/^[^=?&#]+/,rR=/^[^&#]+/;class iR{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ge([],{}):new ge([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[ue]=new ge(n,t)),r}parseSegment(){const n=Jl(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new L(4009,Kl);return this.capture(n),new Os(Xl(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=Jl(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=Jl(this.remaining);o&&(r=o,this.capture(r))}n[Xl(t)]=Xl(r)}parseQueryParam(n){const t=function nR(e){const n=e.match(tR);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function oR(e){const n=e.match(rR);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=qC(t),i=qC(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Jl(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new L(4010,Kl);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=ue);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[ue]:new ge([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new L(4011,Kl)}}function sh(e){return e.segments.length>0?new ge([],{[ue]:e}):e}function eu(e){const n={};for(const r of Object.keys(e.children)){const i=eu(e.children[r]);(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function sR(e){if(1===e.numberOfChildren&&e.children[ue]){const n=e.children[ue];return new ge(e.segments.concat(n.segments),n.children)}return e}(new ge(e.segments,n))}function uo(e){return e instanceof Lr}const ah=!1;function aR(e,n,t,r,o){if(0===t.length)return fi(n.root,n.root,n.root,r,o);const i=function XC(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new QC(!0,0,e);let n=0,t=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return bt(i.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new QC(t,n,r)}(t);return i.toRoot()?fi(n.root,n.root,new ge([],{}),r,o):function s(l){const u=function uR(e,n,t,r){if(e.isAbsolute)return new hi(n.root,!0,0);if(-1===r)return new hi(t,t===n.root,0);return function JC(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new L(4005,ah&&"Invalid number of '../'");o=r.segments.length}return new hi(r,!1,o-i)}(t,r+(Bs(e.commands[0])?0:1),e.numberOfDoubleDots)}(i,n,e.snapshot?._urlSegment,l),c=u.processChildren?pi(u.segmentGroup,u.index,i.commands):lh(u.segmentGroup,u.index,i.commands);return fi(n.root,u.segmentGroup,c,r,o)}(e.snapshot?._lastPathIndex)}function Bs(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function js(e){return"object"==typeof e&&null!=e&&e.outlets}function fi(e,n,t,r,o){let s,i={};r&&bt(r,(l,u)=>{i[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=e===n?t:ZC(e,n,t);const a=sh(eu(s));return new Lr(a,i,o)}function ZC(e,n,t){const r={};return bt(e.children,(o,i)=>{r[i]=o===n?t:ZC(o,n,t)}),new ge(e.segments,r)}class QC{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&Bs(r[0]))throw new L(4003,ah&&"Root segment cannot have matrix parameters");const o=r.find(js);if(o&&o!==BC(r))throw new L(4004,ah&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class hi{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function lh(e,n,t){if(e||(e=new ge([],{})),0===e.segments.length&&e.hasChildren())return pi(e,n,t);const r=function dR(e,n,t){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return i;const s=e.segments[o],a=t[r];if(js(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!t1(l,u,s))return i;r+=2}else{if(!t1(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=lh(e.children[s],n,i))}),bt(e.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new ge(e.segments,o))}}function uh(e,n,t){const r=e.segments.slice(0,n);let o=0;for(;o{"string"==typeof t&&(t=[t]),null!==t&&(n[r]=uh(new ge([],{}),0,t))}),n}function e1(e){const n={};return bt(e,(t,r)=>n[r]=`${t}`),n}function t1(e,n,t){return e==t.path&&Wn(n,t.parameters)}const Us="imperative";class Kn{constructor(n,t){this.id=n,this.url=t}}class ch extends Kn{constructor(n,t,r="imperative",o=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class co extends Kn{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class tu extends Kn{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class nu extends Kn{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=16}}class dh extends Kn{constructor(n,t,r,o){super(n,t),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class hR extends Kn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pR extends Kn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gR extends Kn{constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class mR extends Kn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _R extends Kn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vR{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yR{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bR{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CR{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wR{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class DR{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class n1{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let IR=(()=>{class e{createUrlTree(t,r,o,i,s,a){return aR(t||r.root,o,i,s,a)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),MR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(n){return IR.\u0275fac(n)},providedIn:"root"}),e})();class r1{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=fh(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=fh(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=hh(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return hh(n,this._root).map(t=>t.value)}}function fh(e,n){if(e===n.value)return n;for(const t of n.children){const r=fh(e,t);if(r)return r}return null}function hh(e,n){if(e===n.value)return[n];for(const t of n.children){const r=hh(e,t);if(r.length)return r.unshift(n),r}return[]}class br{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function gi(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class o1 extends r1{constructor(n,t){super(n),this.snapshot=t,ph(this,n)}toString(){return this.snapshot.toString()}}function i1(e,n){const t=function AR(e,n){const s=new ru([],{},{},"",{},ue,n,null,e.root,-1,{});return new a1("",new br(s,[]))}(e,n),r=new vn([new Os("",{})]),o=new vn({}),i=new vn({}),s=new vn({}),a=new vn(""),l=new mi(r,o,s,a,i,ue,n,t.root);return l.snapshot=t.root,new o1(new br(l,[]),t)}class mi{constructor(n,t,r,o,i,s,a,l){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.title=this.data?.pipe(ie(u=>u[Ps]))??Z(void 0),this._futureSnapshot=l}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._paramMap=this.params.pipe(ie(n=>di(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ie(n=>di(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function s1(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const o=t[r],i=t[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function xR(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class ru{get title(){return this.data?.[Ps]}constructor(n,t,r,o,i,s,a,l,u,c,d){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=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||(this._paramMap=di(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=di(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class a1 extends r1{constructor(n,t){super(t),this.url=n,ph(this,t)}toString(){return l1(this._root)}}function ph(e,n){n.value._routerState=e,n.children.forEach(t=>ph(e,t))}function l1(e){const n=e.children.length>0?` { ${e.children.map(l1).join(", ")} } `:"";return`${e.value}${n}`}function gh(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Wn(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),Wn(n.params,t.params)||e.params.next(t.params),function G2(e,n){if(e.length!==n.length)return!1;for(let t=0;tWn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||mh(e.parent,n.parent))}function $s(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const o=function FR(e,n,t){return n.children.map(r=>{for(const o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return $s(e,r,o);return $s(e,r)})}(e,n,t);return new br(r,o)}{if(e.shouldAttach(n.value)){const i=e.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>$s(e,a)),s}}const r=function RR(e){return new mi(new vn(e.url),new vn(e.params),new vn(e.queryParams),new vn(e.fragment),new vn(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(i=>$s(e,i));return new br(r,o)}}const _h="ngNavigationCancelingError";function u1(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=uo(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=c1(!1,0,n);return o.url=t,o.navigationBehaviorOptions=r,o}function c1(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[_h]=!0,r.cancellationCode=n,t&&(r.url=t),r}function d1(e){return f1(e)&&uo(e.url)}function f1(e){return e&&e[_h]}class NR{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Hs,this.attachRef=null}}let Hs=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new NR,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ou=!1;let vh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=ue,this.activateEvents=new Y,this.deactivateEvents=new Y,this.attachEvents=new Y,this.detachEvents=new Y,this.parentContexts=he(Hs),this.location=he(Tn),this.changeDetector=he(Ds),this.environmentInjector=he(Un)}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new L(4012,ou);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new L(4012,ou);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new L(4012,ou);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new L(4013,ou);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new PR(t,a,o.injector);if(r&&function OR(e){return!!e.resolveComponentFactory}(r)){const u=r.resolveComponentFactory(s);this.activated=o.createComponent(u,o.length,l)}else this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=oe({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zt]}),e})();class PR{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===mi?this.route:n===Hs?this.childContexts:this.parent.get(n,t)}}let yh=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["ng-component"]],standalone:!0,features:[ty],decls:1,vars:0,template:function(t,r){1&t&&E(0,"router-outlet")},dependencies:[vh],encapsulation:2}),e})();function h1(e,n){return e.providers&&!e._injector&&(e._injector=ml(e.providers,n,`Route: ${e.path}`)),e._injector??n}function Ch(e){const n=e.children&&e.children.map(Ch),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==ue&&(t.component=yh),t}function bn(e){return e.outlet||ue}function p1(e,n){const t=e.filter(r=>bn(r)===n);return t.push(...e.filter(r=>bn(r)!==n)),t}function Gs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class UR{constructor(n,t,r,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),gh(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const o=gi(t);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),bt(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=gi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=gi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(n,t,r){const o=gi(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new DR(i.value.snapshot))}),n.children.length&&this.forwardEvent(new CR(n.value.snapshot))}activateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(gh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),gh(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Gs(o.snapshot),l=a?.get(os)??null;s.attachRef=null,s.route=o,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class g1{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class iu{constructor(n,t){this.component=n,this.route=t}}function $R(e,n,t){const r=e._root;return zs(r,n?n._root:null,t,[r.value])}function _i(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function kD(e){return null!==ya(e)}(e)?n.get(e):e:r}function zs(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=gi(n);return e.children.forEach(s=>{(function GR(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function zR(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!lo(e.url,n.url);case"pathParamsOrQueryParamsChange":return!lo(e.url,n.url)||!Wn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mh(e,n)||!Wn(e.queryParams,n.queryParams);default:return!mh(e,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new g1(r)):(i.data=s.data,i._resolvedData=s._resolvedData),zs(e,n,i.component?a?a.children:null:t,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new iu(a.outlet.component,s))}else s&&qs(n,a,o),o.canActivateChecks.push(new g1(r)),zs(e,null,i.component?a?a.children:null:t,r,o)})(s,i[s.value.outlet],t,r.concat([s.value]),o),delete i[s.value.outlet]}),bt(i,(s,a)=>qs(s,t.getContext(a),o)),o}function qs(e,n,t){const r=gi(e),o=e.value;bt(r,(i,s)=>{qs(i,o.component?n?n.children.getContext(s):null:n,t)}),t.canDeactivateChecks.push(new iu(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function Ws(e){return"function"==typeof e}function wh(e){return e instanceof Fs||"EmptyError"===e?.name}const su=Symbol("INITIAL_VALUE");function vi(){return yn(e=>kC(e.map(n=>n.pipe(kn(1),function L2(...e){const n=Ri(e);return tt((t,r)=>{(n?Rs(e,t,n):Rs(e,t)).subscribe(r)})}(su)))).pipe(ie(n=>{for(const t of n)if(!0!==t){if(t===su)return su;if(!1===t||t instanceof Lr)return t}return!0}),_n(n=>n!==su),kn(1)))}function m1(e){return function da(...e){return fa(e)}(Tt(n=>{if(uo(n))throw u1(0,n)}),ie(n=>!0===n))}const Dh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _1(e,n,t,r,o){const i=Eh(e,n,t);return i.matched?function lN(e,n,t,r){const o=n.canMatch;return o&&0!==o.length?Z(o.map(s=>{const a=_i(s,e);return Or(function QR(e){return e&&Ws(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(vi(),m1()):Z(!0)}(r=h1(n,r),n,t).pipe(ie(s=>!0===s?i:{...Dh})):Z(i)}function Eh(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Dh}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(n.matcher||H2)(t,e,n);if(!o)return{...Dh};const i={};bt(o.posParams,(a,l)=>{i[l]=a.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function au(e,n,t,r){if(t.length>0&&function dN(e,n,t){return t.some(r=>lu(e,n,r)&&bn(r)!==ue)}(e,t,r)){const i=new ge(n,function cN(e,n,t,r){const o={};o[ue]=r,r._sourceSegment=e,r._segmentIndexShift=n.length;for(const i of t)if(""===i.path&&bn(i)!==ue){const s=new ge([],{});s._sourceSegment=e,s._segmentIndexShift=n.length,o[bn(i)]=s}return o}(e,n,r,new ge(t,e.children)));return i._sourceSegment=e,i._segmentIndexShift=n.length,{segmentGroup:i,slicedSegments:[]}}if(0===t.length&&function fN(e,n,t){return t.some(r=>lu(e,n,r))}(e,t,r)){const i=new ge(e.segments,function uN(e,n,t,r,o){const i={};for(const s of r)if(lu(e,t,s)&&!o[bn(s)]){const a=new ge([],{});a._sourceSegment=e,a._segmentIndexShift=n.length,i[bn(s)]=a}return{...o,...i}}(e,n,t,r,e.children));return i._sourceSegment=e,i._segmentIndexShift=n.length,{segmentGroup:i,slicedSegments:t}}const o=new ge(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:t}}function lu(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function v1(e,n,t,r){return!!(bn(e)===r||r!==ue&&lu(n,t,e))&&("**"===e.path||Eh(n,e,t).matched)}function y1(e,n,t){return 0===n.length&&!e.children[t]}const uu=!1;class cu{constructor(n){this.segmentGroup=n||null}}class b1{constructor(n){this.urlTree=n}}function Ks(e){return Ns(new cu(e))}function C1(e){return Ns(new b1(e))}class mN{constructor(n,t,r,o,i){this.injector=n,this.configLoader=t,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0}apply(){const n=au(this.urlTree.root,[],[],this.config).segmentGroup,t=new ge(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,t,ue).pipe(ie(i=>this.createUrlTree(eu(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Pr(i=>{if(i instanceof b1)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof cu?this.noMatchError(i):i}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,ue).pipe(ie(o=>this.createUrlTree(eu(o),n.queryParams,n.fragment))).pipe(Pr(o=>{throw o instanceof cu?this.noMatchError(o):o}))}noMatchError(n){return new L(4002,uu)}createUrlTree(n,t,r){const o=sh(n);return new Lr(o,t,r)}expandSegmentGroup(n,t,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(n,t,r).pipe(ie(i=>new ge([],i))):this.expandSegment(n,r,t,r.segments,o,!0)}expandChildren(n,t,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return rt(o).pipe(vr(i=>{const s=r.children[i],a=p1(t,i);return this.expandSegmentGroup(n,a,s,i).pipe(ie(l=>({segment:l,outlet:i})))}),PC((i,s)=>(i[s.outlet]=s.segment,i),{}),OC())}expandSegment(n,t,r,o,i,s){return rt(r).pipe(vr(a=>this.expandSegmentAgainstRoute(n,t,r,a,o,i,s).pipe(Pr(u=>{if(u instanceof cu)return Z(null);throw u}))),Nr(a=>!!a),Pr((a,l)=>{if(wh(a))return y1(t,o,i)?Z(new ge([],{})):Ks(t);throw a}))}expandSegmentAgainstRoute(n,t,r,o,i,s,a){return v1(o,t,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,t,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s):Ks(t):Ks(t)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?C1(i):this.lineralizeSegments(r,i).pipe(_t(s=>{const a=new ge(s,{});return this.expandSegment(n,a,t,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=Eh(t,o,i);if(!a)return Ks(t);const d=this.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?C1(d):this.lineralizeSegments(o,d).pipe(_t(g=>this.expandSegment(n,t,r,g.concat(u),s,!1)))}matchSegmentAgainstRoute(n,t,r,o,i){return"**"===r.path?(n=h1(r,n),r.loadChildren?(r._loadedRoutes?Z({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(n,r)).pipe(ie(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new ge(o,{})))):Z(new ge(o,{}))):_1(t,r,o,n).pipe(yn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=r._injector??n,r,o).pipe(_t(c=>{const d=c.injector??n,g=c.routes,{segmentGroup:m,slicedSegments:y}=au(t,a,l,g),M=new ge(m.segments,m.children);if(0===y.length&&M.hasChildren())return this.expandChildren(d,g,M).pipe(ie(F=>new ge(a,F)));if(0===g.length&&0===y.length)return Z(new ge(a,{}));const k=bn(r)===i;return this.expandSegment(d,M,g,y,k?ue:i,!0).pipe(ie(H=>new ge(a.concat(H.segments),H.children)))})):Ks(t)))}getChildConfig(n,t,r){return t.children?Z({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?Z({routes:t._loadedRoutes,injector:t._loadedInjector}):function aN(e,n,t,r){const o=n.canLoad;return void 0===o||0===o.length?Z(!0):Z(o.map(s=>{const a=_i(s,e);return Or(function WR(e){return e&&Ws(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(vi(),m1())}(n,t,r).pipe(_t(o=>o?this.configLoader.loadChildren(n,t).pipe(Tt(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):function pN(e){return Ns(c1(uu,3))}())):Z({routes:[],injector:n})}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return Z(r);if(o.numberOfChildren>1||!o.children[ue])return n.redirectTo,Ns(new L(4e3,uu));o=o.children[ue]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,o){const i=this.createSegmentGroup(n,t.root,r,o);return new Lr(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return bt(n,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,o){const i=this.createSegments(n,t.segments,r,o);let s={};return bt(t.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,r,o)}),new ge(i,s)}createSegments(n,t,r,o){return t.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){const o=r[t.path.substring(1)];if(!o)throw new L(4001,uu);return o}findOrReturn(n,t){let r=0;for(const o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}}class vN{}class CN{constructor(n,t,r,o,i,s,a){this.injector=n,this.rootComponentType=t,this.config=r,this.urlTree=o,this.url=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const n=au(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,ue).pipe(ie(t=>{if(null===t)return null;const r=new ru([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ue,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new br(r,t),i=new a1(this.url,o);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(n){const t=n.value,r=s1(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,t,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,o)}processChildren(n,t,r){return rt(Object.keys(r.children)).pipe(vr(o=>{const i=r.children[o],s=p1(t,o);return this.processSegmentGroup(n,s,i,o)}),PC((o,i)=>o&&i?(o.push(...i),o):null),function j2(e,n=!1){return tt((t,r)=>{let o=0;t.subscribe(nt(r,i=>{const s=e(i,o++);(s||n)&&r.next(i),!s&&r.complete()}))})}(o=>null!==o),Wl(null),OC(),ie(o=>{if(null===o)return null;const i=D1(o);return function wN(e){e.sort((n,t)=>n.value.outlet===ue?-1:t.value.outlet===ue?1:n.value.outlet.localeCompare(t.value.outlet))}(i),i}))}processSegment(n,t,r,o,i){return rt(t).pipe(vr(s=>this.processSegmentAgainstRoute(s._injector??n,s,r,o,i)),Nr(s=>!!s),Pr(s=>{if(wh(s))return y1(r,o,i)?Z([]):Z(null);throw s}))}processSegmentAgainstRoute(n,t,r,o,i){if(t.redirectTo||!v1(t,r,o,i))return Z(null);let s;if("**"===t.path){const a=o.length>0?BC(o).parameters:{},l=S1(r)+o.length;s=Z({snapshot:new ru(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,I1(t),bn(t),t.component??t._loadedComponent??null,t,E1(r),l,T1(t)),consumedSegments:[],remainingSegments:[]})}else s=_1(r,t,o,n).pipe(ie(({matched:a,consumedSegments:l,remainingSegments:u,parameters:c})=>{if(!a)return null;const d=S1(r)+l.length;return{snapshot:new ru(l,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,I1(t),bn(t),t.component??t._loadedComponent??null,t,E1(r),d,T1(t)),consumedSegments:l,remainingSegments:u}}));return s.pipe(yn(a=>{if(null===a)return Z(null);const{snapshot:l,consumedSegments:u,remainingSegments:c}=a;n=t._injector??n;const d=t._loadedInjector??n,g=function DN(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(t),{segmentGroup:m,slicedSegments:y}=au(r,u,c,g.filter(k=>void 0===k.redirectTo));if(0===y.length&&m.hasChildren())return this.processChildren(d,g,m).pipe(ie(k=>null===k?null:[new br(l,k)]));if(0===g.length&&0===y.length)return Z([new br(l,[])]);const M=bn(t)===i;return this.processSegment(d,g,m,y,M?ue:i).pipe(ie(k=>null===k?null:[new br(l,k)]))}))}}function EN(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function D1(e){const n=[],t=new Set;for(const r of e){if(!EN(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),t.add(o)):n.push(r)}for(const r of t){const o=D1(r.children);n.push(new br(r.value,o))}return n.filter(r=>!t.has(r))}function E1(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function S1(e){let n=e,t=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift??0;return t-1}function I1(e){return e.data||{}}function T1(e){return e.resolve||{}}function M1(e){return"string"==typeof e.title||null===e.title}function Sh(e){return yn(n=>{const t=e(n);return t?rt(t).pipe(ie(()=>n)):Z(n)})}const yi=new W("ROUTES");let Ih=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=he(Hy)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Z(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Or(t.loadComponent()).pipe(ie(x1),Tt(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),rh(()=>{this.componentLoaders.delete(t)})),o=new RC(r,()=>new zt).pipe(th());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Z({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ie(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u,c=!1;Array.isArray(a)?u=a:(l=a.create(t).injector,u=VC(l.get(yi,[],ee.Self|ee.Optional)));return{routes:u.map(Ch),injector:l}}),rh(()=>{this.childrenLoaders.delete(r)})),s=new RC(i,()=>new zt).pipe(th());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(t){return Or(t()).pipe(ie(x1),_t(r=>r instanceof Jv||Array.isArray(r)?Z(r):rt(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function x1(e){return function FN(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let fu=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new zt,this.configLoader=he(Ih),this.environmentInjector=he(Un),this.urlSerializer=he(Ls),this.rootContexts=he(Hs),this.navigationId=0,this.afterPreactivation=()=>Z(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new yR(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new vR(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t){return this.transitions=new vn({id:0,targetPageId:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Us,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(_n(r=>0!==r.id),ie(r=>({...r,extractedUrl:t.urlHandlingStrategy.extract(r.rawUrl)})),yn(r=>{let o=!1,i=!1;return Z(r).pipe(Tt(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),yn(s=>{const a=t.browserUrlTree.toString(),l=!t.navigated||s.extractedUrl.toString()!==a||a!==t.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const c="";return this.events.next(new nu(s.id,t.serializeUrl(r.rawUrl),c,0)),t.rawUrlTree=s.rawUrl,s.resolve(null),Pn}if(t.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return k1(s.source)&&(t.browserUrlTree=s.extractedUrl),Z(s).pipe(yn(c=>{const d=this.transitions?.getValue();return this.events.next(new ch(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Pn:Promise.resolve(c)}),function _N(e,n,t,r){return yn(o=>function gN(e,n,t,r,o){return new mN(e,n,t,r,o).apply()}(e,n,t,o.extractedUrl,r).pipe(ie(i=>({...o,urlAfterRedirects:i}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,t.config),Tt(c=>{this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},r.urlAfterRedirects=c.urlAfterRedirects}),function IN(e,n,t,r,o){return _t(i=>function bN(e,n,t,r,o,i,s="emptyOnly"){return new CN(e,n,t,r,o,s,i).recognize().pipe(yn(a=>null===a?function yN(e){return new be(n=>n.error(e))}(new vN):Z(a)))}(e,n,t,i.urlAfterRedirects,r.serialize(i.urlAfterRedirects),r,o).pipe(ie(s=>({...i,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Tt(c=>{if(r.targetSnapshot=c.targetSnapshot,"eager"===t.urlUpdateStrategy){if(!c.extras.skipLocationChange){const g=t.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);t.setBrowserUrl(g,c)}t.browserUrlTree=c.urlAfterRedirects}const d=new hR(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:c,extractedUrl:d,source:g,restoredState:m,extras:y}=s,M=new ch(c,this.urlSerializer.serialize(d),g,m);this.events.next(M);const k=i1(d,this.rootComponentType).snapshot;return Z(r={...s,targetSnapshot:k,urlAfterRedirects:d,extras:{...y,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new nu(s.id,t.serializeUrl(r.extractedUrl),c,1)),t.rawUrlTree=s.rawUrl,s.resolve(null),Pn}}),Tt(s=>{const a=new pR(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ie(s=>r={...s,guards:$R(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function JR(e,n){return _t(t=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return 0===s.length&&0===i.length?Z({...t,guardsResult:!0}):function eN(e,n,t,r){return rt(e).pipe(_t(o=>function sN(e,n,t,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?Z(i.map(a=>{const l=Gs(n)??o,u=_i(a,l);return Or(function ZR(e){return e&&Ws(e.canDeactivate)}(u)?u.canDeactivate(e,n,t,r):l.runInContext(()=>u(e,n,t,r))).pipe(Nr())})).pipe(vi()):Z(!0)}(o.component,o.route,t,n,r)),Nr(o=>!0!==o,!0))}(s,r,o,e).pipe(_t(a=>a&&function qR(e){return"boolean"==typeof e}(a)?function tN(e,n,t,r){return rt(n).pipe(vr(o=>Rs(function rN(e,n){return null!==e&&n&&n(new bR(e)),Z(!0)}(o.route.parent,r),function nN(e,n){return null!==e&&n&&n(new wR(e)),Z(!0)}(o.route,r),function iN(e,n,t){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function HR(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>ql(()=>Z(s.guards.map(l=>{const u=Gs(s.node)??t,c=_i(l,u);return Or(function YR(e){return e&&Ws(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(Nr())})).pipe(vi())));return Z(i).pipe(vi())}(e,o.path,t),function oN(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return Z(!0);const o=r.map(i=>ql(()=>{const s=Gs(n)??t,a=_i(i,s);return Or(function KR(e){return e&&Ws(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(Nr())}));return Z(o).pipe(vi())}(e,o.route,t))),Nr(o=>!0!==o,!0))}(r,i,e,n):Z(a)),ie(a=>({...t,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Tt(s=>{if(r.guardsResult=s.guardsResult,uo(s.guardsResult))throw u1(0,s.guardsResult);const a=new gR(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),_n(s=>!!s.guardsResult||(t.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Sh(s=>{if(s.guards.canActivateChecks.length)return Z(s).pipe(Tt(a=>{const l=new mR(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),yn(a=>{let l=!1;return Z(a).pipe(function TN(e,n){return _t(t=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return Z(t);let i=0;return rt(o).pipe(vr(s=>function MN(e,n,t,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!M1(o)&&(i[Ps]=o.title),function AN(e,n,t,r){const o=function xN(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return Z({});const i={};return rt(o).pipe(_t(s=>function kN(e,n,t,r){const o=Gs(n)??r,i=_i(e,o);return Or(i.resolve?i.resolve(n,t):o.runInContext(()=>i(n,t)))}(e[s],n,t,r).pipe(Nr(),Tt(a=>{i[s]=a}))),nh(1),function U2(e){return ie(()=>e)}(i),Pr(s=>wh(s)?Pn:Ns(s)))}(i,e,n,r).pipe(ie(s=>(e._resolvedData=s,e.data=s1(e,t).resolve,o&&M1(o)&&(e.data[Ps]=o.title),null)))}(s.route,r,e,n)),Tt(()=>i++),nh(1),_t(s=>i===o.length?Z(t):Pn))})}(t.paramsInheritanceStrategy,this.environmentInjector),Tt({next:()=>l=!0,complete:()=>{l||(t.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Tt(a=>{const l=new _R(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Sh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(Tt(c=>{l.component=c}),ie(()=>{})));for(const c of l.children)u.push(...a(c));return u};return kC(a(s.targetSnapshot.root)).pipe(Wl(),kn(1))}),Sh(()=>this.afterPreactivation()),ie(s=>{const a=function kR(e,n,t){const r=$s(e,n._root,t?t._root:void 0);return new o1(r,n)}(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Tt(s=>{t.currentUrlTree=s.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),t.routerState=s.targetRouterState,"deferred"===t.urlUpdateStrategy&&(s.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,s),t.browserUrlTree=s.urlAfterRedirects)}),((e,n,t)=>ie(r=>(new UR(n,r.targetRouterState,r.currentRouterState,t).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,s=>this.events.next(s)),Tt({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new co(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),rh(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Pr(s=>{if(i=!0,f1(s)){d1(s)||(t.navigated=!0,t.restoreHistory(r,!0));const a=new tu(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),d1(s)){const l=t.urlHandlingStrategy.merge(s.url,t.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||k1(r.source)};t.scheduleNavigation(l,Us,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{t.restoreHistory(r,!0);const a=new dh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(t.errorHandler(s))}catch(l){r.reject(l)}}return Pn}))}))}cancelNavigationTransition(t,r,o){const i=new tu(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function k1(e){return e!==Us}let F1=(()=>{class e{buildTitle(t){let r,o=t.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===ue);return r}getResolvedTitleForRoute(t){return t.data[Ps]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return he(RN)},providedIn:"root"}),e})(),RN=(()=>{class e extends F1{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(t){return new(t||e)($(dC))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),NN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return he(ON)},providedIn:"root"}),e})();class PN{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let ON=(()=>{class e extends PN{}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hu=new W("",{providedIn:"root",factory:()=>({})});let VN=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:function(){return he(BN)},providedIn:"root"}),e})(),BN=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function jN(e){throw e}function UN(e,n,t){return n.parse("/")}const $N={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},HN={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let gt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=he(QA),this.isNgZoneEnabled=!1,this.options=he(hu,{optional:!0})||{},this.errorHandler=this.options.errorHandler||jN,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||UN,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=he(VN),this.routeReuseStrategy=he(NN),this.urlCreationStrategy=he(MR),this.titleStrategy=he(F1),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=VC(he(yi,{optional:!0})??[]),this.navigationTransitions=he(fu),this.urlSerializer=he(Ls),this.location=he(Sf),this.isNgZoneEnabled=he(Ye)instanceof Ye&&Ye.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Lr,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=i1(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Us,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(t){this.config=t.map(Ch),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),this.urlCreationStrategy.createUrlTree(o,this.routerState,this.currentUrlTree,t,c,u??null)}navigateByUrl(t,r={skipLocationChange:!1}){const o=uo(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Us,null,r)}navigate(t,r={skipLocationChange:!1}){return function GN(e){for(let n=0;n{const i=t[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u,c;return s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,g)=>{a=d,l=g}),c="computed"===this.canceledNavigationResolution?o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:c,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(t,r){const o=this.urlSerializer.serialize(t),i={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===o?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ys=(()=>{class e{constructor(t,r,o,i,s,a){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new zt;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(u=>{u instanceof co&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(t){this._preserveFragment=ui(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=ui(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=ui(t)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function Im(e,n,t){return function iS(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Sm:Em}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,t,r):o.removeAttribute(i,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(t){return new(t||e)(T(gt),T(mi),function ja(e){return function x0(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(t,r,o,i,s){this.router=t,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Y,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof co&&this.update()})}ngAfterContentInit(){Z(this.links.changes,Z(null)).pipe(Co()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=rt(t).pipe(Co()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){const r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const t=this.hasActiveLinks();this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const r=function zN(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&t.isActive(o.urlTree,r)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}}return e.\u0275fac=function(t){return new(t||e)(T(gt),T(Ut),T(ur),T(Ds),T(Ys,8))},e.\u0275dir=oe({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(t,r,o){if(1&t&&function by(e,n,t,r){const o=_e();if(o.firstCreatePass){const i=yt();wy(o,new vy(n,t,r),i.index),function kA(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(o,e),2==(2&t)&&(o.staticContentQueries=!0)}Cy(o,P(),t)}(o,Ys,5),2&t){let i;ys(i=bs())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Zt]}),e})();class R1{}let qN=(()=>{class e{constructor(t,r,o,i,s){this.router=t,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(_n(t=>t instanceof co),vr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ml(i.providers,t,`Route: ${i.path}`));const s=i._injector??t,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return rt(o).pipe(Co())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):Z(null);const i=o.pipe(_t(s=>null===s?Z(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?rt([i,this.loader.loadComponent(r)]).pipe(Co()):i})}}return e.\u0275fac=function(t){return new(t||e)($(gt),$(Hy),$(Un),$(R1),$(Ih))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ah=new W("");let N1=(()=>{class e{constructor(t,r,o,i,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof ch?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof co&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof n1&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new n1(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(t){!function r_(){throw new Error("invalid")}()},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();var nn=(()=>((nn=nn||{})[nn.COMPLETE=0]="COMPLETE",nn[nn.FAILED=1]="FAILED",nn[nn.REDIRECTING=2]="REDIRECTING",nn))();const bi=!1;function Vr(e,n){return{\u0275kind:e,\u0275providers:n}}const xh=new W("",{providedIn:"root",factory:()=>!1});function O1(){const e=he($n);return n=>{const t=e.get(El);if(n!==t.components[0])return;const r=e.get(gt),o=e.get(L1);1===e.get(kh)&&r.initialNavigation(),e.get(V1,null,ee.Optional)?.setUpPreloading(),e.get(Ah,null,ee.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.unsubscribe())}}const L1=new W(bi?"bootstrap done indicator":"",{factory:()=>new zt}),kh=new W(bi?"initial navigation":"",{providedIn:"root",factory:()=>1});function QN(){let e=[];return e=bi?[{provide:Qa,multi:!0,useFactory:()=>{const n=he(gt);return()=>n.events.subscribe(t=>{console.group?.(`Router Event: ${t.constructor.name}`),console.log(function ER(e){if(!("type"in e))return`Unknown Router Event: ${e.constructor.name}`;switch(e.type){case 14:return`ActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state}, shouldActivate: ${e.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 2:return`NavigationCancel(id: ${e.id}, url: '${e.url}')`;case 16:return`NavigationSkipped(id: ${e.id}, url: '${e.url}')`;case 1:return`NavigationEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${e.id}, url: '${e.url}', error: ${e.error})`;case 0:return`NavigationStart(id: ${e.id}, url: '${e.url}')`;case 6:return`ResolveEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 5:return`ResolveStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 10:return`RouteConfigLoadEnd(path: ${e.route.path})`;case 9:return`RouteConfigLoadStart(path: ${e.route.path})`;case 4:return`RoutesRecognized(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case 15:return`Scroll(anchor: '${e.anchor}', position: '${e.position?`${e.position[0]}, ${e.position[1]}`:null}')`}}(t)),console.log(t),console.groupEnd?.()})}}]:[],Vr(1,e)}const V1=new W(bi?"router preloader":"");function XN(e){return Vr(0,[{provide:V1,useExisting:qN},{provide:R1,useExisting:e}])}const Zs=!1,B1=new W(Zs?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),JN=[Sf,{provide:Ls,useClass:oh},gt,Hs,{provide:mi,useFactory:function P1(e){return e.routerState.root},deps:[gt]},Ih,Zs?{provide:xh,useValue:!0}:[]];function eP(){return new Qy("Router",gt)}let j1=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[JN,Zs&&r?.enableTracing?QN().\u0275providers:[],{provide:yi,multi:!0,useValue:t},{provide:B1,useFactory:oP,deps:[[gt,new Ki,new Yi]]},{provide:hu,useValue:r||{}},r?.useHash?{provide:ao,useClass:Vx}:{provide:ao,useClass:bb},{provide:Ah,useFactory:()=>{const e=he(eF),n=he(Ye),t=he(hu),r=he(fu),o=he(Ls);return t.scrollOffset&&e.setOffset(t.scrollOffset),new N1(o,r,e,n,t)}},r?.preloadingStrategy?XN(r.preloadingStrategy).\u0275providers:[],{provide:Qy,multi:!0,useFactory:eP},r?.initialNavigation?iP(r):[],[{provide:U1,useFactory:O1},{provide:Zy,multi:!0,useExisting:U1}]]}}static forChild(t){return{ngModule:e,providers:[{provide:yi,multi:!0,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)($(B1,8))},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({imports:[yh]}),e})();function oP(e){if(Zs&&e)throw new L(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function iP(e){return["disabled"===e.initialNavigation?Vr(3,[{provide:Cl,multi:!0,useFactory:()=>{const n=he(gt);return()=>{n.setUpLocationChangeListener()}}},{provide:kh,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Vr(2,[{provide:kh,useValue:0},{provide:Cl,multi:!0,deps:[$n],useFactory:n=>{const t=n.get(Ox,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const o=n.get(gt),i=n.get(L1);(function WN(e,n){e.events.pipe(_n(t=>t instanceof co||t instanceof tu||t instanceof dh||t instanceof nu),ie(t=>t instanceof co||t instanceof nu?nn.COMPLETE:t instanceof tu&&(0===t.code||1===t.code)?nn.REDIRECTING:nn.FAILED),_n(t=>t!==nn.REDIRECTING),kn(1)).subscribe(()=>{n()})})(o,()=>{r(!0)}),n.get(fu).afterPreactivation=()=>(r(!0),i.closed?Z(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const U1=new W(Zs?"Router Initializer":"");function fo(e){return!!e&&(e instanceof be||ye(e.lift)&&ye(e.subscribe))}function $1(...e){const n=Mp(e),{args:t,keys:r}=MC(e),o=new be(i=>{const{length:s}=t;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=g},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?xC(r,a):a),i.complete())}))}});return n?o.pipe(AC(n)):o}const Fh={now:()=>(Fh.delegate||Date).now(),delegate:void 0};class aP extends zt{constructor(n=1/0,t=1/0,r=Fh){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;t||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;snew aP(r,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class Qs{}let G1=(()=>{class e extends Qs{getTranslation(t){return Z({})}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();class Rh{}let z1=(()=>{class e{handle(t){return t.key}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();function pu(e,n){if(e===n)return!0;if(null===e||null===n)return!1;if(e!=e&&n!=n)return!0;let o,i,s,t=typeof e;if(t==typeof n&&"object"==t){if(!Array.isArray(e)){if(Array.isArray(n))return!1;for(i in s=Object.create(null),e){if(!pu(e[i],n[i]))return!1;s[i]=!0}for(i in n)if(!(i in s)&&typeof n[i]<"u")return!1;return!0}if(!Array.isArray(n))return!1;if((o=e.length)==n.length){for(i=0;i{Nh(n[r])?r in e?t[r]=q1(e[r],n[r]):Object.assign(t,{[r]:n[r]}):Object.assign(t,{[r]:n[r]})}),t}class gu{}let W1=(()=>{class e extends gu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,r){let o;return o="string"==typeof t?this.interpolateString(t,r):"function"==typeof t?this.interpolateFunction(t,r):t,o}getValue(t,r){let o="string"==typeof r?r.split("."):[r];r="";do{r+=o.shift(),!Br(t)||!Br(t[r])||"object"!=typeof t[r]&&o.length?o.length?r+=".":t=void 0:(t=t[r],r="")}while(o.length);return t}interpolateFunction(t,r){return t(r)}interpolateString(t,r){return r?t.replace(this.templateMatcher,(o,i)=>{let s=this.getValue(r,i);return Br(s)?s:o}):t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();class mu{}let K1=(()=>{class e extends mu{compile(t,r){return t}compileTranslations(t,r){return t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})();class Y1{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Y,this.onLangChange=new Y,this.onDefaultLangChange=new Y}}const Ph=new W("USE_STORE"),Oh=new W("USE_DEFAULT_LANG"),Lh=new W("DEFAULT_LANGUAGE"),Vh=new W("USE_EXTEND");let _u=(()=>{class e{constructor(t,r,o,i,s,a=!0,l=!1,u=!1,c){this.store=t,this.currentLoader=r,this.compiler=o,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=l,this.extend=u,this.pending=!1,this._onTranslationChange=new Y,this._onLangChange=new Y,this._onDefaultLangChange=new Y,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let r=this.retrieveTranslations(t);typeof r<"u"?(null==this.defaultLang&&(this.defaultLang=t),r.pipe(kn(1)).subscribe(o=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Z(this.translations[t]);let r=this.retrieveTranslations(t);return typeof r<"u"?(this.currentLang||(this.currentLang=t),r.pipe(kn(1)).subscribe(o=>{this.changeLang(t)}),r):(this.changeLang(t),Z(this.translations[t]))}retrieveTranslations(t){let r;return(typeof this.translations[t]>"u"||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),r=this._translationRequests[t]),r}getTranslation(t){this.pending=!0;const r=this.currentLoader.getTranslation(t).pipe(H1(1),kn(1));return this.loadingTranslations=r.pipe(ie(o=>this.compiler.compileTranslations(o,t)),H1(1),kn(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[t]=this.extend&&this.translations[t]?{...o,...this.translations[t]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),r}setTranslation(t,r,o=!1){r=this.compiler.compileTranslations(r,t),this.translations[t]=(o||this.extend)&&this.translations[t]?q1(this.translations[t],r):r,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(r=>{-1===this.langs.indexOf(r)&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,r,o){let i;if(r instanceof Array){let s={},a=!1;for(let l of r)s[l]=this.getParsedResult(t,l,o),fo(s[l])&&(a=!0);return a?$1(r.map(u=>fo(s[u])?s[u]:Z(s[u]))).pipe(ie(u=>{let c={};return u.forEach((d,g)=>{c[r[g]]=d}),c})):s}if(t&&(i=this.parser.interpolate(this.parser.getValue(t,r),o)),typeof i>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),o)),typeof i>"u"){let s={key:r,translateService:this};typeof o<"u"&&(s.interpolateParams=o),i=this.missingTranslationHandler.handle(s)}return typeof i<"u"?i:r}get(t,r){if(!Br(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(vr(o=>fo(o=this.getParsedResult(o,t,r))?o:Z(o)));{let o=this.getParsedResult(this.translations[this.currentLang],t,r);return fo(o)?o:Z(o)}}getStreamOnTranslationChange(t,r){if(!Br(t)||!t.length)throw new Error('Parameter "key" required');return Rs(ql(()=>this.get(t,r)),this.onTranslationChange.pipe(yn(o=>{const i=this.getParsedResult(o.translations,t,r);return"function"==typeof i.subscribe?i:Z(i)})))}stream(t,r){if(!Br(t)||!t.length)throw new Error('Parameter "key" required');return Rs(ql(()=>this.get(t,r)),this.onLangChange.pipe(yn(o=>{const i=this.getParsedResult(o.translations,t,r);return fo(i)?i:Z(i)})))}instant(t,r){if(!Br(t)||!t.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],t,r);if(fo(o)){if(t instanceof Array){let i={};return t.forEach((s,a)=>{i[t[a]]=t[a]}),i}return t}return o}set(t,r,o=this.currentLang){this.translations[o][t]=this.compiler.compile(r,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof t>"u"?void 0:(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return e.\u0275fac=function(t){return new(t||e)($(Y1),$(Qs),$(mu),$(gu),$(Rh),$(Oh),$(Ph),$(Vh),$(Lh))},e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),ke=(()=>{class e{constructor(t,r){this.translate=t,this._ref=r,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(t,r,o){let i=s=>{this.value=void 0!==s?s:t,this.lastKey=t,this._ref.markForCheck()};if(o){let s=this.translate.getParsedResult(o,t,r);fo(s.subscribe)?s.subscribe(i):i(s)}this.translate.get(t,r).subscribe(i)}transform(t,...r){if(!t||!t.length)return t;if(pu(t,this.lastKey)&&pu(r,this.lastParams))return this.value;let o;if(Br(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){let i=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(i)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else"object"==typeof r[0]&&!Array.isArray(r[0])&&(o=r[0]);return this.lastKey=t,this.lastParams=r,this.updateValue(t,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(i=>{this.lastKey&&i.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,o,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(i=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,o,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return e.\u0275fac=function(t){return new(t||e)(T(_u,16),T(Ds,16))},e.\u0275pipe=At({name:"translate",type:e,pure:!1}),e.\u0275prov=j({token:e,factory:e.\u0275fac}),e})(),lP=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[t.loader||{provide:Qs,useClass:G1},t.compiler||{provide:mu,useClass:K1},t.parser||{provide:gu,useClass:W1},t.missingTranslationHandler||{provide:Rh,useClass:z1},Y1,{provide:Ph,useValue:t.isolate},{provide:Oh,useValue:t.useDefaultLang},{provide:Vh,useValue:t.extend},{provide:Lh,useValue:t.defaultLanguage},_u]}}static forChild(t={}){return{ngModule:e,providers:[t.loader||{provide:Qs,useClass:G1},t.compiler||{provide:mu,useClass:K1},t.parser||{provide:gu,useClass:W1},t.missingTranslationHandler||{provide:Rh,useClass:z1},{provide:Ph,useValue:t.isolate},{provide:Oh,useValue:t.useDefaultLang},{provide:Vh,useValue:t.extend},{provide:Lh,useValue:t.defaultLanguage},_u]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({}),e})(),uP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-page-not-found"]],decls:14,vars:9,consts:[["id","error"],[1,"error-page","container"],[1,"col-md-8","col-12","offset-md-2"],[1,"text-center"],["src","./assets/svg/error-404.svg","alt","Not Found",1,"img-error"],[1,"error-title"],[1,"fs-5","text-gray-600"],["href","index.html",1,"btn","btn-lg","btn-outline-primary","mt-3"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),E(4,"img",4),h(5,"h1",5),v(6),w(7,"translate"),p(),h(8,"p",6),v(9),w(10,"translate"),p(),h(11,"a",7),v(12),w(13,"translate"),p()()()()()),2&t&&(f(6),b(" ",D(7,3,"page-not-found")," "),f(3),b(" ",D(10,5,"page-not-found-description")," "),f(3),b(" ",D(13,7,"go-home")," "))},dependencies:[ke]}),e})(),Z1=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(T(ur),T(Ut))},e.\u0275dir=oe({type:e}),e})(),ho=(()=>{class e extends Z1{}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275dir=oe({type:e,features:[Me]}),e})();const Yn=new W("NgValueAccessor"),cP={provide:Yn,useExisting:Oe(()=>Ci),multi:!0};let Ci=(()=>{class e extends ho{writeValue(t){this.setProperty("checked",t)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275dir=oe({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,r){1&t&&O("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[$e([cP]),Me]}),e})();const dP={provide:Yn,useExisting:Oe(()=>Fn),multi:!0},hP=new W("CompositionEventMode");let Fn=(()=>{class e extends Z1{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function fP(){const e=gr()?gr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return e.\u0275fac=function(t){return new(t||e)(T(ur),T(Ut),T(hP,8))},e.\u0275dir=oe({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,r){1&t&&O("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[$e([dP]),Me]}),e})();const pP=!1;function jr(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function Q1(e){return null!=e&&"number"==typeof e.length}const Mt=new W("NgValidators"),Ur=new W("NgAsyncValidators"),gP=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class re{static min(n){return function X1(e){return n=>{if(jr(n.value)||jr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(jr(n.value)||jr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function ew(e){return jr(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function tw(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function nw(e){return jr(e.value)||gP.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function rw(e){return n=>jr(n.value)||!Q1(n.value)?null:n.value.lengthQ1(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function iw(e){if(!e)return vu;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(jr(r.value))return null;const o=r.value;return n.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return dw(n)}static composeAsync(n){return fw(n)}}function vu(e){return null}function sw(e){return null!=e}function aw(e){const n=cs(e)?rt(e):e;if(pP&&!Fd(n)){let t="Expected async validator to return Promise or Observable.";throw"object"==typeof e&&(t+=" Are you using a synchronous validator where an async validator is expected?"),new L(-1101,t)}return n}function lw(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function uw(e,n){return n.map(t=>t(e))}function cw(e){return e.map(n=>function mP(e){return!e.validate}(n)?n:t=>n.validate(t))}function dw(e){if(!e)return null;const n=e.filter(sw);return 0==n.length?null:function(t){return lw(uw(t,n))}}function Bh(e){return null!=e?dw(cw(e)):null}function fw(e){if(!e)return null;const n=e.filter(sw);return 0==n.length?null:function(t){return $1(uw(t,n).map(aw)).pipe(ie(lw))}}function jh(e){return null!=e?fw(cw(e)):null}function hw(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function pw(e){return e._rawValidators}function gw(e){return e._rawAsyncValidators}function Uh(e){return e?Array.isArray(e)?e:[e]:[]}function yu(e,n){return Array.isArray(e)?e.includes(n):e===n}function mw(e,n){const t=Uh(n);return Uh(e).forEach(o=>{yu(t,o)||t.push(o)}),t}function _w(e,n){return Uh(n).filter(t=>!yu(e,t))}class vw{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Bh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=jh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Ot extends vw{get formDirective(){return null}get path(){return null}}class $r extends vw{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class yw{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Cr=(()=>{class e extends yw{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(T($r,2))},e.\u0275dir=oe({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Le("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Me]}),e})(),wr=(()=>{class e extends yw{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(T(Ot,10))},e.\u0275dir=oe({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,r){2&t&&Le("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Me]}),e})();function bw(e,n){return e?`with name: '${n}'`:`at index: ${n}`}const Gh=!1,Xs="VALID",Cu="INVALID",wi="PENDING",Js="DISABLED";function zh(e){return(wu(e)?e.validators:e)||null}function qh(e,n){return(wu(n)?n.asyncValidators:e)||null}function wu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Dw{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Xs}get invalid(){return this.status===Cu}get pending(){return this.status==wi}get disabled(){return this.status===Js}get enabled(){return this.status!==Js}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(mw(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(mw(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(_w(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(_w(n,this._rawAsyncValidators))}hasValidator(n){return yu(this._rawValidators,n)}hasAsyncValidator(n){return yu(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=wi,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Js,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Xs,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xs||this.status===wi)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Js:Xs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=wi,this._hasOwnPendingAsyncValidator=!0;const t=aw(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?Js:this.errors?Cu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wi)?wi:this._anyControlsHaveStatus(Cu)?Cu:Xs}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){wu(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function DP(e){return Array.isArray(e)?Bh(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function EP(e){return Array.isArray(e)?jh(e):e||null}(this._rawAsyncValidators)}}class rn extends Dw{constructor(n,t,r){super(zh(t),qh(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){(function ww(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new L(1002,Gh?function wP(e,n){return`Must supply a value for form control ${bw(e,n)}`}(n,o):"")})})(this,!0,n),Object.keys(n).forEach(r=>{(function Cw(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new L(1e3,Gh?function bP(e){return`\n There are no form controls registered with this ${e?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(n):"");if(!r[t])throw new L(1001,Gh?function CP(e,n){return`Cannot find form control ${bw(e,n)}`}(n,t):"")})(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,i)=>{r=t(r,o,i)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const Di=new W("CallSetDisabledState",{providedIn:"root",factory:()=>Du}),Du="always";function ea(e,n,t=Du){Wh(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function TP(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Ew(e,n)})}(e,n),function AP(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function MP(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Ew(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function IP(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Su(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Tu(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Iu(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Wh(e,n){const t=pw(e);null!==n.validator?e.setValidators(hw(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=gw(e);null!==n.asyncValidator?e.setAsyncValidators(hw(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Iu(n._rawValidators,o),Iu(n._rawAsyncValidators,o)}function Tu(e,n){let t=!1;if(null!==e){if(null!==n.validator){const o=pw(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==n.validator);i.length!==o.length&&(t=!0,e.setValidators(i))}}if(null!==n.asyncValidator){const o=gw(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==n.asyncValidator);i.length!==o.length&&(t=!0,e.setAsyncValidators(i))}}}const r=()=>{};return Iu(n._rawValidators,r),Iu(n._rawAsyncValidators,r),t}function Ew(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Tw(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Mw(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const K=class extends Dw{constructor(n=null,t,r){super(zh(t),qh(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),wu(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=Mw(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Tw(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Tw(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){Mw(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let Dr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=oe({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const VP={provide:Yn,useExisting:Oe(()=>Xh),multi:!0};let Xh=(()=>{class e extends ho{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275dir=oe({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,r){1&t&&O("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[$e([VP]),Me]}),e})(),Rw=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({}),e})();const Jh=new W("NgModelWithFormControlWarning"),HP={provide:Ot,useExisting:Oe(()=>Rn)};let Rn=(()=>{class e extends Ot{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Y,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Tu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return ea(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Su(t.control||null,t,!1),function RP(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,function Iw(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,o=this.form.get(t.path);r!==o&&(Su(r||null,t),(e=>e instanceof K)(o)&&(ea(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function Sw(e,n){Wh(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function xP(e,n){return Tu(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wh(this.form,this),this._oldForm&&Tu(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(T(Mt,10),T(Ur,10),T(Di,8))},e.\u0275dir=oe({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,r){1&t&&O("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$e([HP]),Me,Zt]}),e})();const qP={provide:$r,useExisting:Oe(()=>Zn)};let Zn=(()=>{class e extends $r{set isDisabled(t){}constructor(t,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Y,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Zh(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===Fn?t=i:function FP(e){return Object.getPrototypeOf(e.constructor)===ho}(i)?r=i:o=i}),o||r||t||null}(0,i)}ngOnChanges(t){this._added||this._setUpControl(),function Yh(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function Eu(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(T(Ot,13),T(Mt,10),T(Ur,10),T(Yn,10),T(Jh,8))},e.\u0275dir=oe({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[$e([qP]),Me,Zt]}),e})();const WP={provide:Yn,useExisting:Oe(()=>Mu),multi:!0};function Vw(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let Mu=(()=>{class e extends ho{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const o=Vw(this._getOptionId(t),t);this.setProperty("value",o)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function KP(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275dir=oe({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,r){1&t&&O("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[$e([WP]),Me]}),e})(),np=(()=>{class e{constructor(t,r,o){this._element=t,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Vw(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(T(Ut),T(ur),T(Mu,9))},e.\u0275dir=oe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const YP={provide:Yn,useExisting:Oe(()=>rp),multi:!0};function Bw(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let rp=(()=>{class e extends ho{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const o=t.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class e{constructor(t,r,o){this._element=t,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Bw(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Bw(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(T(Ut),T(ur),T(rp,9))},e.\u0275dir=oe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})(),iO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({imports:[Rw]}),e})(),aO=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Jh,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Di,useValue:t.callSetDisabledState??Du}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({imports:[iO]}),e})();const Ct=Object.assign({verbose:!0,production:!1},{eelCallRefreshInterval:1e3,fullDateFormat:"dd/MM/yyyy H:mm",dateFormat:"dd/MM/yyyy",timeFormat:"H:mm",warningDateDayBefore:7,dangerDateDayBefore:3,alertTimeout:5e3,updateLastVisitInterval:6e4,authRequiredRedirectRoute:"/login",basePriorityValue:10,appName:"Taskup",timeBeforeClose:1e3});function Yw(e,n,t,r,o,i,s){try{var a=e[i](s),l=a.value}catch(u){return void t(u)}a.done?n(l):Promise.resolve(l).then(r,o)}function We(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var i=e.apply(n,t);function s(l){Yw(i,r,o,s,a,"next",l)}function a(l){Yw(i,r,o,s,a,"throw",l)}s(void 0)})}}class uO extends et{constructor(n,t){super()}schedule(n,t=0){return this}}const Au={setInterval(e,n,...t){const{delegate:r}=Au;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Au;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class na{constructor(n,t=na.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}na.now=Fh.now;const Zw=new class dO extends na{constructor(n,t=na.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class cO extends uO{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return Au.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Au.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Sr(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),fO=Zw;function sp(e=0,n=Zw){return e<0&&(e=0),function pO(e=0,n,t=fO){let r=-1;return null!=n&&(Tp(n)?t=n:r=n),new be(o=>{let i=function hO(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;i<0&&(i=0);let s=0;return t.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}(e,e,n)}let ht=(()=>{class e{constructor(){}static logError(...t){Ct.verbose&&console.error("E:",...t)}static logInfo(...t){Ct.verbose&&console.info("I:",...t)}static logWarning(...t){Ct.verbose&&console.warn("W:",...t)}static logSuccess(...t){Ct.verbose&&console.log("S:",...t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ra=(()=>{class e{constructor(){this.max_attempt=3,this.interval=10,this.logger_except=["auth_is_logged"]}callWithOptions(t,r,...o){var i=this;return We(function*(){return new be(null===t.take?a=>{let l=sp(t.interval).pipe(_n(()=>eel&&eel._websocket.readyState===WebSocket.OPEN)).subscribe(i.get_observable_body(a,r,...o));t.obs?.subscribe({next:u=>{u&&l.unsubscribe()}})}:a=>{sp(t.interval).pipe(_n(()=>eel&&eel._websocket.readyState===WebSocket.OPEN),kn(t.take)).subscribe(i.get_observable_body(a,r,...o))})})()}call(t,...r){var o=this;return We(function*(){return new be(s=>{sp(10).pipe(_n(()=>eel&&eel._websocket.readyState===WebSocket.OPEN),kn(1)).subscribe(o.get_observable_body(s,t,...r))})})()}get_observable_body(t,r,...o){var s,i=this;return{next:(s=We(function*(){i.logger_except.includes(r)||ht.logSuccess("WebSocket Connection is OPEN!");let a=0;const l=function(){var u=We(function*(){a+=1;try{i.logger_except.includes(r)||ht.logInfo("Eel Call:",r);let c=yield eel[r](...o)();i.logger_except.includes(r)||ht.logInfo("Eel Result:",c),t.next(c)}catch(c){ht.logError(String(c)),t.error(c),a<=i.max_attempt&&setTimeout(l,1e3)}});return function(){return u.apply(this,arguments)}}();return yield l()}),function(){return s.apply(this,arguments)}),error:s=>{ht.logError(s),t.error(s)}}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),gO=(()=>{class e{constructor(t){this.eelService=t,this.GET_DATA="dashboard_get_data"}getData(){return this.eelService.call(this.GET_DATA)}}return e.\u0275fac=function(t){return new(t||e)($(ra))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),on=(()=>{class e{get loggedUser(){return this._loggedUser}constructor(t){this.eelService=t,this.LOGIN="auth_login",this.LOGOUT="auth_logout",this.ME="auth_me",this.IS_LOGGED="auth_is_logged",this.REFRESH_ME="auth_refresh_me",this.UPDATE_LAST_VISIT="auth_update_last_visit",this._loggedUser=null,this.emitMeChangeSource=new vn(null)}login(t,r,o=!1,i=!0){return new Promise((a,l)=>{this.eelService.call(this.LOGIN,t,r,o).then(u=>{u.subscribe({next:c=>{c||l(),i&&this.refreshMe(),a(!0)},error:()=>l()})}).catch(u=>{l()})})}logout(t=!0){return new Promise((o,i)=>{this.eelService.call(this.LOGOUT).then(s=>{s.subscribe({next:a=>{t&&this.refreshMe(),o(!0)},error:()=>i()})}).catch(s=>{i()})})}me(){return this.eelService.call(this.ME)}observeMe(){return this.emitMeChangeSource.asObservable()}refreshMe(){this.eelService.call(this.REFRESH_ME).then(t=>{t.subscribe({next:r=>{this.me().then(o=>{o.subscribe({next:i=>{this._loggedUser=i,this.emitMeChangeSource.next(i)},error:i=>{ht.logError(i)}})}).catch(o=>{ht.logError(o)})}})})}isLogged(){return this.eelService.call(this.IS_LOGGED)}observeIsLogged(t=!1){let r=!1,o={take:null,interval:Ct.eelCallRefreshInterval,obs:new be(s=>{setInterval(()=>{s.next(r)},Ct.eelCallRefreshInterval+1)})};return new Promise((s,a)=>{this.eelService.callWithOptions(o,this.IS_LOGGED).then(l=>{l.subscribe({next:u=>{r=u&&t}}),s(l)}).catch(l=>{a()})})}updateLastVisit(){this.eelService.call(this.UPDATE_LAST_VISIT).then(t=>{t.subscribe({next:r=>{ht.logInfo("Updated last visit of logged user"),this.refreshMe()}})})}}return e.\u0275fac=function(t){return new(t||e)($(ra))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),go=(()=>{class e{constructor(t){this.eelService=t}all(){var t=this;return We(function*(){return t.eelService.call(t.ALL)})()}find(t){var r=this;return We(function*(){return r.eelService.call(r.FIND,t)})()}deleteById(t){var r=this;return We(function*(){return r.eelService.call(r.DELETE_BY_ID,t)})()}update(t,r){var o=this;return We(function*(){return o.eelService.call(o.UPDATE,t,r)})()}create(t){var r=this;return We(function*(){return r.eelService.call(r.CREATE,t)})()}checkAlreadyUsed(t,r){var o=this;return We(function*(){return o.eelService.call(o.CHECK_ALREADY_USED,t,r)})()}}return e.\u0275fac=function(t){return new(t||e)($(ra))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ap=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="task_all",this.FIND="task_find",this.DELETE_BY_ID="task_delete_by_id",this.UPDATE="task_update",this.REMOVE_ASSIGNMENT="task_remove_assignment",this.ADD_ASSIGNMENT="task_add_assignment",this.ADD_LABEL="task_add_label",this.REMOVE_LABEL="task_remove_label",this.CREATE="task_create",this.CHECK_ALREADY_USED="task_check_already_used"}removeAssignment(t,r){var o=this;return We(function*(){return o.eelService.call(o.REMOVE_ASSIGNMENT,t,r)})()}addAssignment(t,r){var o=this;return We(function*(){return o.eelService.call(o.ADD_ASSIGNMENT,t,r)})()}addLabel(t,r){var o=this;return We(function*(){return o.eelService.call(o.ADD_LABEL,t,r)})()}removeLabel(t,r){var o=this;return We(function*(){return o.eelService.call(o.REMOVE_LABEL,t,r)})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Hr=(()=>{class e{constructor(t){this.authService=t}getAvatarText(t){return t?.name&&t?.surname?t.name.substring(0,1)+t.surname.substring(0,1):t?t.username.substring(0,2):"-"}canDelete(t){let r=this.authService.loggedUser;return!!r&&!!(r.role?.permission_delete_all||t==r.id&&r.role?.permission_delete_own)}canModify(t){let r=this.authService.loggedUser;return!!r&&!!(r.role?.permission_edit_all||t==r.id&&r.role?.permission_edit_own)}createPasswordStrengthValidator(t){return r=>{const o=r.value;if(!o)return null;const i=/[A-Z]+/.test(o),s=/[a-z]+/.test(o),a=/[0-9]+/.test(o);return i&&s&&a&&o.length>=t?null:{passwordStrength:!0}}}datetimeNow(){const t=new Date;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")} ${String(t.getHours()).padStart(2,"0")}:${String(t.getMinutes()).padStart(2,"0")}:${String(t.getSeconds()).padStart(2,"0")}`}dateNow(){const t=new Date;return`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`}reload(){window.location.reload()}}return e.\u0275fac=function(t){return new(t||e)($(on))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Qw(e,n){return t=>{if(t.parent&&n){const r=t.parent?.controls[e];return r&&r.updateValueAndValidity(),null}return t.parent&&t.parent.value&&t.value===t.parent?.controls[e].value?null:{matching:!0}}}let lp=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="task_status_all",this.FIND="task_status_find",this.DELETE_BY_ID="task_status_delete_by_id",this.UPDATE="task_status_update",this.CREATE="task_status_create",this.CHECK_ALREADY_USED="task_status_check_already_used"}getTaskById(t){var r=this;return We(function*(){let o=yield r.find(t);return yield function mO(e,n){const t="object"==typeof n;return new Promise((r,o)=>{const i=new Jn({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{t?r(n.defaultValue):o(new Fs)}});e.subscribe(i)})}(o)})()}getAll(){var t=this;return We(function*(){return new Promise((r,o)=>{t.all().then(i=>{i.subscribe({next:s=>{r(s)},error:s=>{o(s)}})})})})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_O=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="task_assignment_all",this.FIND="task_assignment_find",this.DELETE_BY_ID="task_assignment_delete_by_id",this.UPDATE="task_assignment_update",this.REMOVE_ASSIGNMENT="task_assignment_remove_assignment",this.ADD_ASSIGNMENT="task_assignment_add_assignment",this.ADD_LABEL="task_assignment_add_label",this.REMOVE_LABEL="task_assignment_remove_label",this.CREATE="task_assignment_create",this.CHECK_ALREADY_USED="task_assignment_check_already_used",this.UPDATE_BY_TASK_USER_ID_FROM_DICT="task_assignment_update_by_task_user_id_from_dict"}updateByTaskUserId(t,r,o){return this.eelService.call(this.UPDATE_BY_TASK_USER_ID_FROM_DICT,t,r,o)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function vO(e,n){if(1&e&&(Se(0),h(1,"div",1)(2,"span",2),v(3),w(4,"translate"),p()(),Ie()),2&e){const t=S();f(1),ni("background-color",t.color),_("title",t.tooltip),f(2),b(" ",D(4,4,t.text)," ")}}let xu=(()=>{class e{constructor(){this.tooltip=""}darkTxt(){return!!this.color&&parseInt(this.color,16)>.75*parseInt("ffffff",16)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-text-avatar"]],inputs:{color:"color",text:"text",tooltip:"tooltip"},decls:1,vars:1,consts:[[4,"ngIf"],["data-bs-toggle","tooltip","data-bs-placement","top",1,"avatar",3,"title"],[1,"avatar-content","text-uppercase"]],template:function(t,r){1&t&&x(0,vO,5,6,"ng-container",0),2&t&&_("ngIf",r.text&&r.color)},dependencies:[Ae,ke],styles:[".dark-txt[_ngcontent-%COMP%]{color:#7e848f}"]}),e})(),Gr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-close-btn"]],decls:6,vars:3,consts:[["type","button","data-bs-dismiss","modal",1,"btn"],["closeBtn",""],[1,"bx","bx-x","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&(h(0,"button",0,1),E(2,"i",2),h(3,"span",3),v(4),w(5,"translate"),p()()),2&t&&(f(4),b(" ",D(5,1,"close")," "))},dependencies:[ke]}),e})(),zr=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-x-btn"]],decls:2,vars:0,consts:[["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close","rounded-pill"],[1,"bi","bi-x"]],template:function(t,r){1&t&&(h(0,"button",0),E(1,"i",1),p())}}),e})();function yO(e,n){if(1&e&&(h(0,"div",9)(1,"p"),v(2),w(3,"translate"),p()()),2&e){const t=S(2);f(2),b(" ",D(3,1,t.body)," ")}}function bO(e,n){if(1&e){const t=te();h(0,"button",10),O("click",function(){return V(t),B(S(2).onConfirm.emit())}),E(1,"i",11),h(2,"span",12),v(3),w(4,"translate"),p()()}if(2&e){const t=S(2);f(3),b(" ",D(4,1,t.confirmBtnTxt)," ")}}function CO(e,n){if(1&e&&(h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),w(6,"translate"),p(),E(7,"app-x-btn"),p(),x(8,yO,4,3,"div",6),h(9,"div",7),E(10,"app-close-btn"),x(11,bO,5,3,"button",8),p()()()()),2&e){const t=S();Le("modal-borderless",t.borderless),_("id",t.target),ve("aria-labelledby",t.target),f(1),Le("modal-dialog-centered",t.centered),f(4),b(" ",D(6,9,t.title)," "),f(3),_("ngIf",t.body),f(3),_("ngIf",t.confirmBtn)}}let oa=(()=>{class e{constructor(){this.target="dialog",this.centered=!1,this.confirmBtn=!1,this.confirmBtnTxt="submit",this.borderless=!1,this.onConfirm=new Y}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-dialog-modal"]],inputs:{body:"body",title:"title",target:"target",centered:"centered",confirmBtn:"confirmBtn",confirmBtnTxt:"confirmBtnTxt",borderless:"borderless"},outputs:{onConfirm:"onConfirm"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id","modal-borderless",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["class","modal-body",4,"ngIf"],[1,"modal-footer"],["type","button","class","btn btn-primary ml-1","data-bs-dismiss","modal",3,"click",4,"ngIf"],[1,"modal-body"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&x(0,CO,12,11,"div",0),2&t&&_("ngIf",r.title&&r.target)},dependencies:[Ae,Gr,zr,ke]}),e})(),up=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="role_all",this.FIND="role_find",this.DELETE_BY_ID="role_delete_by_id",this.UPDATE="role_update",this.CREATE="role_create",this.CHECK_ALREADY_USED="role_check_already_used"}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function wO(e,n){if(1&e&&(h(0,"div",14),v(1),w(2,"translate"),h(3,"strong"),v(4),p()()),2&e){const t=S(2);f(1),b(" ",D(2,2,"role"),": "),f(3),ri(t.role.name)}}const DO=function(e){return{date:e}};function EO(e,n){if(1&e&&(h(0,"div",15),v(1),w(2,"translate"),p()),2&e){const t=S(2);f(1),b(" ",qd(2,1,"assignment-date",function ly(e,n,t,r){return cy(P(),kt(),e,n,t,r)}(4,DO,t.assignmentDate))," ")}}function SO(e,n){if(1&e){const t=te();h(0,"button",16),O("click",function(){return V(t),B(S(2).onRemoveFromTask.emit())}),v(1),w(2,"translate"),p()}2&e&&(f(1),b(" ",D(2,1,"remove-from-task")," "))}function IO(e,n){if(1&e&&(h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),p(),E(6,"app-x-btn"),p(),h(7,"div",6),E(8,"p"),h(9,"div")(10,"span",7),v(11),p(),h(12,"span",7),v(13),p(),v(14),h(15,"strong",7),v(16),p(),v(17),p(),x(18,wO,5,4,"div",8),x(19,EO,3,6,"div",9),p(),h(20,"div",10)(21,"div",11)(22,"div",12),E(23,"app-close-btn"),p(),h(24,"div",12),x(25,SO,3,3,"button",13),p()()()()()()),2&e){const t=S();_("id",t.target),ve("aria-labelledby",t.target),f(4),_("id",t.target),f(1),b(" ",t.user.username," "),f(6),ri(t.user.name?t.user.name+" ":""),f(2),ri(t.user.surname?t.user.surname+" ":""),f(1),b(" ",t.user.name||t.user.surname?" aka ":""," "),f(2),b(" ",t.user.username," "),f(1),b(" (",t.user.email,") "),f(1),_("ngIf",t.role),f(1),_("ngIf",t.assignmentDate),f(6),_("ngIf",t.editable)}}let TO=(()=>{class e{constructor(t){this.roleService=t,this.editable=!1,this.onRemoveFromTask=new Y}ngOnInit(){const t=this.user?.role_id;t&&this.roleService.find(t).then(r=>{r.subscribe({next:o=>{this.role=o}})})}}return e.\u0275fac=function(t){return new(t||e)(T(up))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-assigned-user-modal"]],inputs:{user:"user",target:"target",assignmentDate:"assignmentDate",editable:"editable"},outputs:{onRemoveFromTask:"onRemoveFromTask"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","text-capitalize",3,"id"],[1,"modal-body"],[1,"text-capitalize"],["class","mt-1",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"modal-footer"],[1,"row","justify-content-between"],[1,"col-auto"],["class","btn btn-outline-primary","data-bs-dismiss","modal",3,"click",4,"ngIf"],[1,"mt-1"],[1,"mt-5"],["data-bs-dismiss","modal",1,"btn","btn-outline-primary",3,"click"]],template:function(t,r){1&t&&x(0,IO,26,12,"div",0),2&t&&_("ngIf",r.user)},dependencies:[Ae,Gr,zr,ke]}),e})();function MO(e,n){if(1&e&&(Se(0),h(1,"div",1),w(2,"translate"),h(3,"span",2),E(4,"i"),p()(),Ie()),2&e){const t=S();f(1),ni("background-color",t.color),Le("shiny",t.shiny),_("title",D(2,7,t.tooltip)),f(3),ev(t.iconClass)}}let AO=(()=>{class e{constructor(){this.tooltip="",this.shiny=!1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-icon-avatar"]],inputs:{color:"color",iconClass:"iconClass",tooltip:"tooltip",shiny:"shiny"},decls:1,vars:1,consts:[[4,"ngIf"],["data-bs-toggle","tooltip","data-bs-placement","top",1,"avatar","me-3",3,"title"],[1,"avatar-content","text-uppercase"]],template:function(t,r){1&t&&x(0,MO,5,9,"ng-container",0),2&t&&_("ngIf",r.iconClass&&r.color)},dependencies:[Ae,ke],styles:[".shiny[_ngcontent-%COMP%]{box-shadow:#ffee004d 0 0 0 3px}"]}),e})(),ku=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="user_all",this.FIND="user_find",this.DELETE_BY_ID="user_delete_by_id",this.UPDATE="user_update",this.CREATE="user_create",this.CHECK_ALREADY_USED="user_check_already_used"}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function xO(e,n){1&e&&(h(0,"span",16),v(1),w(2,"translate"),p()),2&e&&(f(1),b(" ",D(2,1,"select")," "))}function kO(e,n){if(1&e&&(h(0,"span",16),v(1),p()),2&e){const t=S();f(1),b(" ",null==t.userSelected?null:t.userSelected.username," ")}}function FO(e,n){if(1&e){const t=te();h(0,"button",17),O("click",function(){const i=V(t).$implicit;return B(S().selectUser(i))}),v(1),p()}if(2&e){const t=n.$implicit;f(1),b(" ",t.username," ")}}function RO(e,n){1&e&&(Se(0),h(1,"div",18)(2,"p"),v(3),w(4,"translate"),p()(),Ie()),2&e&&(f(3),b(" ",D(4,1,"no-users")," "))}let NO=(()=>{class e{constructor(t){this.userService=t,this.alreadyAssignedUsers=[],this.noUsers=!1,this.onAddAssignment=new Y,this.onClose=new Y}ngOnInit(){}ngOnDestroy(){this.onClose.emit()}selectUser(t){this.userSelected=t}setUsersCanBeAssign(){this.noUsers=!1,this.userService.all().then(t=>{t.subscribe({next:r=>{this.usersCanBeAssign=r.filter(o=>!this.alreadyAssignedUsers.map(i=>i.id).includes(o.id)),(!this.usersCanBeAssign||0==this.usersCanBeAssign.length)&&(this.noUsers=!0)}})})}}return e.\u0275fac=function(t){return new(t||e)(T(ku))},e.\u0275cmp=ce({type:e,selectors:[["app-new-assignment-modal"]],inputs:{target:"target",alreadyAssignedUsers:"alreadyAssignedUsers"},outputs:{onAddAssignment:"onAddAssignment",onClose:"onClose"},decls:26,vars:16,consts:[["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split",3,"click"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],[1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-primary",3,"click"],[4,"ngIf"],[1,"modal-footer"],[1,"sr-only"],[1,"dropdown-item",3,"click"],[1,"alert","alert-light-warning"]],template:function(t,r){if(1&t&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),v(5),w(6,"translate"),p(),E(7,"app-x-btn"),p(),h(8,"div",5)(9,"p"),v(10),w(11,"translate"),p(),h(12,"div",6)(13,"div",7)(14,"button",8),O("click",function(){return r.setUsersCanBeAssign()}),x(15,xO,3,3,"span",9),x(16,kO,2,1,"ng-template",null,10,tn),p(),h(18,"div",11),x(19,FO,2,1,"button",12),p(),h(20,"button",13),O("click",function(){return r.onAddAssignment.emit(r.userSelected),r.userSelected=void 0}),v(21),w(22,"translate"),p()()(),x(23,RO,5,3,"ng-container",14),p(),h(24,"div",15),E(25,"app-close-btn"),p()()()()),2&t){const o=Ue(17);_("id",r.target),ve("aria-labelledby",r.target),f(4),_("id",r.target),f(1),b(" ",D(6,10,"add-new-assignment")," "),f(5),b(" ",D(11,12,"add-new-assignment-description")," "),f(5),_("ngIf",void 0===r.userSelected)("ngIfElse",o),f(4),_("ngForOf",r.usersCanBeAssign),f(2),b(" ",D(22,14,"add")," "),f(2),_("ngIf",r.noUsers)}},dependencies:[mn,Ae,Gr,zr,ke]}),e})(),Xw=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="todo_all",this.FIND="todo_find",this.DELETE_BY_ID="todo_delete_by_id",this.ALL_OF="todo_all_of",this.UPDATE="todo_update",this.CREATE="todo_create",this.CHECK_ALREADY_USED="todo_already_used"}allOf(t){var r=this;return We(function*(){return r.eelService.call(r.ALL_OF,t)})()}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function PO(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),w(6,"translate"),p(),E(7,"app-x-btn"),p(),h(8,"div",6)(9,"form",7),E(10,"input",8),p()(),h(11,"div",9),E(12,"app-close-btn"),h(13,"button",10),O("click",function(){return V(t),B(S().manageDeadlineForm.reset())}),v(14),w(15,"translate"),p(),h(16,"button",11),O("click",function(){return V(t),B(S()._onSubmit())}),E(17,"i",12),h(18,"span",13),v(19),w(20,"translate"),p()()()()()()}if(2&e){const t=S();_("id",t.target),ve("aria-labelledby",t.target),f(4),_("id",t.target),f(1),b(" ",D(6,9,"deadline")," "),f(4),_("formGroup",t.manageDeadlineForm),f(1),_("id",t.target+"-input"),f(4),b(" ",D(15,11,"reset")," "),f(2),_("disabled",t.manageDeadlineForm.invalid),f(3),b(" ",D(20,13,"confirm")," ")}}let OO=(()=>{class e{constructor(){this.value=null,this.onSubmit=new Y,this.manageDeadlineForm=new rn({deadline:new K(null)})}ngAfterContentInit(){this.manageDeadlineForm.controls.deadline.setValue(this.value??null)}_onSubmit(){this.manageDeadlineForm.valid&&(this.onSubmit.emit(this.manageDeadlineForm.controls.deadline.value),this.value=null,this.manageDeadlineForm.reset())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-manage-deadline"]],inputs:{value:"value",target:"target"},outputs:{onSubmit:"onSubmit"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[3,"formGroup"],["type","datetime-local","placeholder","dd/mm/yyyy HH:mm","formControlName","deadline",1,"form-control","flatpickr-time-picker-24h","mt-2",3,"id"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary","ml-1",3,"click"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&x(0,PO,21,15,"div",0),2&t&&_("ngIf",r.target)},dependencies:[Ae,Dr,Fn,Cr,wr,Rn,Zn,Gr,zr,ke]}),e})();function LO(e,n){if(1&e&&(h(0,"span",4),v(1),w(2,"date"),p()),2&e){const t=S(2);Le("bg-light-primary",t.getDeadlineStatus()===t.DeadlineStatus.PRIMARY)("bg-light-warning",t.getDeadlineStatus()===t.DeadlineStatus.WARNING)("bg-light-danger",t.getDeadlineStatus()===t.DeadlineStatus.DANGER)("bg-light-success",t.getDeadlineStatus()===t.DeadlineStatus.DONE)("done",!!t.done)("cursor-pointer",t.editable),ve("data-bs-toggle",t.editable?"modal":"")("data-bs-target",t.editable?"#modify-deadline"+t.id+"-modal":""),f(1),b(" ",qd(2,15,t.deadline,t.dateFormat)," ")}}function VO(e,n){if(1&e){const t=te();h(0,"app-manage-deadline",5),O("onSubmit",function(o){return V(t),B(S(2).onDeadlineModified.emit(o))}),p()}if(2&e){const t=S(2);_("value",t.deadline)("target","modify-deadline"+t.id+"-modal")}}function BO(e,n){if(1&e){const t=te();h(0,"span",6),v(1),w(2,"translate"),p(),h(3,"app-manage-deadline",5),O("onSubmit",function(o){return V(t),B(S(2).onDeadlineModified.emit(o))}),p()}if(2&e){const t=S(2);ve("data-bs-toggle",t.editable?"modal":"")("data-bs-target",t.editable?"#add-deadline"+t.id+"-modal":""),f(1),b(" ",D(2,5,"add-deadline")," "),f(2),_("value",t.deadline)("target","add-deadline"+t.id+"-modal")}}function jO(e,n){if(1&e&&(Se(0),x(1,LO,3,18,"span",1),x(2,VO,1,2,"app-manage-deadline",2),x(3,BO,4,7,"ng-template",null,3,tn),Ie()),2&e){const t=Ue(4),r=S();f(1),_("ngIf",!!r.deadline)("ngIfElse",t),f(1),_("ngIf",!!r.deadline)}}var qr=(()=>{return(e=qr||(qr={}))[e.PRIMARY=0]="PRIMARY",e[e.WARNING=1]="WARNING",e[e.DANGER=2]="DANGER",e[e.DONE=3]="DONE",qr;var e})();let Jw=(()=>{class e{constructor(){this.dateFormat=Ct.fullDateFormat,this.DeadlineStatus=qr,this.deadline=null,this.done=!1,this.editable=!1,this.creable=!1,this.onDeadlineModified=new Y}getDeadlineStatus(){if(!this.deadline)return null;if(this.done)return qr.DONE;const t=new Date(Date.now()),r=new Date(this.deadline),o=new Date(r);if(o.setDate(o.getDate()-Ct.dangerDateDayBefore),t>o)return qr.DANGER;const i=new Date(r);return i.setDate(i.getDate()-Ct.warningDateDayBefore),t>i?qr.WARNING:qr.PRIMARY}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-deadline-badge"]],inputs:{deadline:"deadline",done:"done",editable:"editable",id:"id",creable:"creable"},outputs:{onDeadlineModified:"onDeadlineModified"},decls:1,vars:1,consts:[[4,"ngIf"],["class","badge",3,"bg-light-primary","bg-light-warning","bg-light-danger","bg-light-success","done","cursor-pointer",4,"ngIf","ngIfElse"],[3,"value","target","onSubmit",4,"ngIf"],["newDeadline",""],[1,"badge"],[3,"value","target","onSubmit"],[1,"badge","bg-light-secondary","cursor-pointer"]],template:function(t,r){1&t&&x(0,jO,5,3,"ng-container",0),2&t&&_("ngIf",r.id)},dependencies:[Ae,OO,Bb,ke],styles:[".done[_ngcontent-%COMP%]{text-decoration:line-through!important}"]}),e})();function UO(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),w(6,"translate"),p(),E(7,"app-x-btn"),p(),h(8,"div",6)(9,"form",7)(10,"label",8),v(11),w(12,"translate"),p(),h(13,"textarea",9),v(14," "),p(),E(15,"input",10),p()(),h(16,"div",11),E(17,"app-close-btn"),h(18,"button",12),O("click",function(){return V(t),B(S()._onSubmit())}),E(19,"i",13),h(20,"span",14),v(21),w(22,"translate"),p()()()()()()}if(2&e){const t=S();_("id",t.target),ve("aria-labelledby",t.target),f(4),_("id",t.target),f(1),b(" ",D(6,8,"add-new-todo")," "),f(4),_("formGroup",t.newItemForm),f(2),b(" ",D(12,10,"description")," "),f(7),_("disabled",t.newItemForm.invalid),f(3),b(" ",D(22,12,"confirm")," ")}}let eD=(()=>{class e{constructor(){this.onClose=new Y,this.onSubmit=new Y,this.newItemForm=new rn({description:new K(null,[re.required]),deadline:new K(null)})}ngAfterContentInit(){this.newItemForm.setValue({description:this.baseData?.description??null,deadline:this.baseData?.deadline??null})}_onSubmit(){this.newItemForm.valid&&(this.onSubmit.emit({description:this.newItemForm.controls.description.value,deadline:this.newItemForm.controls.deadline.value}),this.baseData=void 0,this.newItemForm.reset())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-new-todo-item-modal"]],inputs:{target:"target",baseData:"baseData"},outputs:{onClose:"onClose",onSubmit:"onSubmit"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[3,"formGroup"],["for","description",1,"form-label"],["placeholder","Description","aria-label","Description","aria-describedby","description-icon","formControlName","description","id","description","rows","6",1,"form-control"],["type","datetime-local","placeholder","Deadline","formControlName","deadline",1,"form-control","flatpickr-time-picker-24h","mt-2"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[1,"d-none","d-sm-block"]],template:function(t,r){1&t&&x(0,UO,23,14,"div",0),2&t&&_("ngIf",r.target)},dependencies:[Ae,Dr,Fn,Cr,wr,Rn,Zn,Gr,zr,ke]}),e})();function $O(e,n){if(1&e&&E(0,"app-deadline-badge",19),2&e){const t=S(2);_("deadline",t.item.deadline)("done",!!t.item.done)("editable",t.utilsService.canModify(t.item.author_id))("id","deadline-todo-"+t.item.id)}}function HO(e,n){if(1&e&&E(0,"app-text-avatar",20),2&e){const t=S(2);_("color",t.item.author.avatar_hex_color)("text",t.utilsService.getAvatarText(t.item.author))("tooltip",t.item.author.username)}}function GO(e,n){1&e&&(h(0,"button",21),E(1,"i",22),p()),2&e&&ve("data-bs-target","#modify-todo-item-"+S(2).item.id)}function zO(e,n){1&e&&(h(0,"button",23),E(1,"i",24),p()),2&e&&ve("data-bs-target","#delete-todo-item-"+S(2).item.id)}const qO=function(e,n){return{description:e,deadline:n}};function WO(e,n){if(1&e){const t=te();h(0,"li",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"input",5),O("click",function(){return V(t),B(S().done())}),p()()(),h(5,"div",6)(6,"span",7),v(7),p()(),h(8,"div",8)(9,"div",9)(10,"div",10),x(11,$O,1,4,"app-deadline-badge",11),p(),h(12,"div",12),x(13,HO,1,3,"app-text-avatar",13),p(),h(14,"div",14),x(15,GO,2,1,"button",15),h(16,"app-new-todo-item-modal",16),O("onSubmit",function(o){return V(t),B(S().modify(o))}),p(),x(17,zO,2,1,"button",17),h(18,"app-dialog-modal",18),O("onConfirm",function(){return V(t),B(S().delete())}),p()()()()()()}if(2&e){const t=S();f(4),_("id","checkbox-todo-"+t.item.id)("checked",!!t.item.done),f(2),Le("done",!!t.item.done),f(1),b(" ",t.item.description," "),f(4),_("ngIf",t.item.deadline),f(2),_("ngIf",t.item.author),f(2),_("ngIf",t.utilsService.canModify(t.item.author_id)),f(1),_("target","modify-todo-item-"+t.item.id)("baseData",function uy(e,n,t,r,o){return dy(P(),kt(),e,n,t,r,o)}(16,qO,t.item.description,t.item.deadline)),f(1),_("ngIf",t.utilsService.canDelete(t.item.author_id)),f(1),_("target","delete-todo-item-"+t.item.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}}let KO=(()=>{class e{constructor(t,r){this.utilsService=t,this.todoService=r,this.refreshRequest=new Y}done(){this.item&&this.todoService.update(this.item.id,{done:!this.item.done}).then(t=>{t.subscribe({next:r=>{this.refreshRequest.emit()}})})}delete(){this.item&&this.todoService.deleteById(this.item.id).then(t=>{t.subscribe({next:r=>{this.refreshRequest.emit()}})})}modify(t){this.item&&this.todoService.update(this.item.id,t).then(r=>{r.subscribe({next:o=>{this.refreshRequest.emit()}})})}}return e.\u0275fac=function(t){return new(t||e)(T(Hr),T(Xw))},e.\u0275cmp=ce({type:e,selectors:[["app-task-todo-item"]],inputs:{item:"item"},outputs:{refreshRequest:"refreshRequest"},decls:1,vars:1,consts:[["class","widget-todo-item",4,"ngIf"],[1,"widget-todo-item"],[1,"row"],[1,"col-1"],[1,"checkbox","checkbox-shadow"],["type","checkbox",1,"form-check-input",3,"id","checked","click"],[1,"col-8"],[1,"widget-todo-title","ml-50"],[1,"col-xxl-3"],[1,"row","justify-content-between"],[1,"col-6","d-flex","justify-content-center"],["style","margin-right: 1vw;",3,"deadline","done","editable","id",4,"ngIf"],[1,"col-2","d-flex","justify-content-center"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],[1,"col-4","d-flex","justify-content-center"],["class","btn btn-sm icon btn-light mr-1","data-bs-toggle","modal",4,"ngIf"],[3,"target","baseData","onSubmit"],["class","btn btn-sm icon btn-light","data-bs-toggle","modal",4,"ngIf"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[2,"margin-right","1vw",3,"deadline","done","editable","id"],[1,"cursor-arrow",3,"color","text","tooltip"],["data-bs-toggle","modal",1,"btn","btn-sm","icon","btn-light","mr-1"],[1,"bi","bi-pencil"],["data-bs-toggle","modal",1,"btn","btn-sm","icon","btn-light"],[1,"bi","bi-trash"]],template:function(t,r){1&t&&x(0,WO,19,19,"li",0),2&t&&_("ngIf",r.item)},dependencies:[Ae,xu,oa,Jw,eD],styles:[".done[_ngcontent-%COMP%]{text-decoration:line-through!important;opacity:.8;filter:grayscale(1)}"]}),e})();const YO=["showTodoBtn"];function ZO(e,n){if(1&e){const t=te();h(0,"app-task-todo-item",27),O("refreshRequest",function(){V(t);const o=S(2);return o.loadTodoItems(),B(o.onRefresh.emit())}),p()}2&e&&_("item",n.$implicit)}function QO(e,n){if(1&e&&(Se(0),h(1,"div",17)(2,"div",18)(3,"span",19),v(4),w(5,"translate"),p()(),h(6,"div",20)(7,"div",21)(8,"div",22)(9,"span",19),v(10),w(11,"translate"),p()(),h(12,"div",23)(13,"span",19),v(14),w(15,"translate"),p()(),h(16,"div",24)(17,"span",19),v(18),w(19,"translate"),p()()()()(),h(20,"ul",25),x(21,ZO,1,1,"app-task-todo-item",26),p(),Ie()),2&e){const t=S();f(4),b(" ",D(5,5,"description")," "),f(6),b(" ",D(11,7,"deadline")," "),f(4),b(" ",D(15,9,"author")," "),f(4),b(" ",D(19,11,"actions")," "),f(3),_("ngForOf",t.todoItems)}}function XO(e,n){1&e&&(h(0,"p",28)(1,"span",19),v(2),w(3,"translate"),p()()),2&e&&(f(2),b(" ",D(3,1,"no-todo-items")," "))}function JO(e,n){if(1&e){const t=te();Se(0),h(1,"div",29)(2,"a",30),O("click",function(){return V(t),S(),B(Ue(12).click())}),v(3),w(4,"translate"),p()(),Ie()}2&e&&(f(3),b(" ",D(4,1,"show-list")," "))}let eL=(()=>{class e{constructor(t,r){this.todoService=t,this.authService=r,this.todoCollapseStatus=!1,this.onRefresh=new Y,this.todoItems=[]}ngOnInit(){this.loadTodoItems()}ngAfterViewInit(){this.todoCollapseStatus&&(this.showTodoBtn?.nativeElement.click(),this.todoCollapseStatus=!0)}loadTodoItems(){this.taskId&&this.todoService.allOf(this.taskId).then(t=>{t.subscribe({next:r=>{r&&(this.todoItems=r)}})})}newTodo(t){!this.taskId||!this.authService.loggedUser||this.todoService.create({description:t.description,deadline:t.deadline,task_id:this.taskId,author_id:this.authService.loggedUser.id}).then(r=>{r.subscribe({next:o=>{this.loadTodoItems()}})})}}return e.\u0275fac=function(t){return new(t||e)(T(Xw),T(on))},e.\u0275cmp=ce({type:e,selectors:[["app-task-todo-list"]],viewQuery:function(t,r){if(1&t&&vl(YO,5),2&t){let o;ys(o=bs())&&(r.showTodoBtn=o.first)}},inputs:{taskId:"taskId",todoCollapseStatus:"todoCollapseStatus"},outputs:{onRefresh:"onRefresh"},decls:21,vars:15,consts:[[1,"card","widget-todo"],[1,"card-header","border-bottom"],[1,"row","justify-content-between"],[1,"col-auto"],[1,"card-title","d-flex"],[1,"bx","bx-check","font-medium-5","pl-25","pr-75"],["data-bs-toggle","modal",1,"btn","icon","btn-light"],[1,"bi","bi-plus"],["type","button","data-bs-toggle","collapse","aria-expanded","false",1,"btn","icon","btn-light",3,"click"],["showTodoBtn",""],[1,"bi","bi-eye"],[1,"card-body","px-0","py-1"],[1,"collapse",3,"id"],[4,"ngIf","ngIfElse"],["noTodo",""],[4,"ngIf"],[3,"target","onSubmit"],[1,"row","justify-content-between","widget-todo-item"],[1,"col-8","offset-1","d-flex","justify-content-start"],[1,"badge","bg-light-secondary"],[1,"col-3","d-none","d-xxl-block"],[1,"row"],[1,"col-6","d-flex","justify-content-center"],[1,"col-2","d-flex","justify-content-center"],[1,"col-4","d-flex","justify-content-center"],["id","widget-todo-list",1,"widget-todo-list-wrapper"],[3,"item","refreshRequest",4,"ngFor","ngForOf"],[3,"item","refreshRequest"],[1,"text-center"],[1,"d-flex","justify-content-center"],["href","javascript:void(0)",1,"text-center",3,"click"]],template:function(t,r){if(1&t&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),E(5,"i",5),v(6),w(7,"translate"),p()(),h(8,"div",3)(9,"button",6),E(10,"i",7),p(),h(11,"button",8,9),O("click",function(){return r.todoCollapseStatus=!r.todoCollapseStatus}),E(13,"i",10),p()()()(),h(14,"div",11)(15,"div",12),x(16,QO,22,13,"ng-container",13),x(17,XO,4,3,"ng-template",null,14,tn),p(),x(19,JO,5,3,"ng-container",15),p(),h(20,"app-new-todo-item-modal",16),O("onSubmit",function(i){return r.newTodo(i)}),p()()),2&t){const o=Ue(18);f(6),b(" ",D(7,13,"sub-task")," "),f(3),ve("data-bs-target","#new-todo-"+r.taskId),f(2),ve("data-bs-target","#show-todo-"+r.taskId)("aria-controls","show-todo-"+r.taskId),f(2),Le("bi-eye",!r.todoCollapseStatus)("bi-eye-slash",r.todoCollapseStatus),f(2),_("id","show-todo-"+r.taskId),f(1),_("ngIf",r.todoItems.length>0)("ngIfElse",o),f(3),_("ngIf",!r.todoCollapseStatus),f(1),_("target","new-todo-"+r.taskId)}},dependencies:[mn,Ae,KO,eD,ke]}),e})();function tL(e,n){1&e&&E(0,"i",3),2&e&&_("ngClass",S(2).icon)}function nL(e,n){if(1&e&&(h(0,"span",1),x(1,tL,1,1,"i",2),v(2),w(3,"translate"),p()),2&e){const t=S();let r;ni("background-color",t.color+" !important")("color",t.textColor+" !important"),f(1),_("ngIf",t.icon),f(1),b(" ",D(3,6,null!==(r=t.text)&&void 0!==r?r:""),"\n")}}let rL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-badge"]],inputs:{text:"text",icon:"icon",color:"color",textColor:"textColor"},decls:1,vars:1,consts:[["class","badge bg-secondary m-1",3,"background-color","color",4,"ngIf"],[1,"badge","bg-secondary","m-1"],["class","bi",3,"ngClass",4,"ngIf"],[1,"bi",3,"ngClass"]],template:function(t,r){1&t&&x(0,nL,4,8,"span",0),2&t&&_("ngIf",r.text||r.icon)},dependencies:[Fb,Ae,ke]}),e})();function oL(e,n){if(1&e&&(h(0,"p"),v(1),p()),2&e){const t=S(2);f(1),b(" ",t.label.description," ")}}function iL(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),v(5),p(),E(6,"app-x-btn"),p(),h(7,"div",6),x(8,oL,2,1,"p",7),p(),h(9,"div",8)(10,"div",9)(11,"div",10),E(12,"app-close-btn"),p(),h(13,"div",10)(14,"button",11),O("click",function(){return V(t),B(S().onRemoveFromTask.emit())}),v(15),w(16,"translate"),p()()()()()()()}if(2&e){const t=S();_("id",t.target),ve("aria-labelledby",t.target),f(4),_("id",t.target),f(1),b(" ",t.label.name," "),f(3),_("ngIf",t.label.description),f(7),b(" ",D(16,6,"remove-from-task")," ")}}let sL=(()=>{class e{constructor(){this.onRemoveFromTask=new Y}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-manage-task-label-modal"]],inputs:{target:"target",label:"label"},outputs:{onRemoveFromTask:"onRemoveFromTask"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","text-capitalize",3,"id"],[1,"modal-body"],[4,"ngIf"],[1,"modal-footer"],[1,"row","justify-content-between"],[1,"col-auto"],["data-bs-dismiss","modal",1,"btn","btn-outline-primary",3,"click"]],template:function(t,r){1&t&&x(0,iL,17,8,"div",0),2&t&&_("ngIf",r.label)},dependencies:[Ae,Gr,zr,ke]}),e})(),tD=(()=>{class e extends go{constructor(){super(...arguments),this.ALL="task_label_all",this.FIND="task_label_find",this.DELETE_BY_ID="task_label_delete_by_id",this.UPDATE="task_label_update",this.CREATE="task_label_create",this.CHECK_ALREADY_USED="task_label_check_already_used"}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function aL(e,n){1&e&&(h(0,"span",16),v(1),w(2,"translate"),p()),2&e&&(f(1),b(" ",D(2,1,"select")," "))}function lL(e,n){if(1&e&&(h(0,"span",16),v(1),p()),2&e){const t=S();f(1),b(" ",null==t.labelSelected?null:t.labelSelected.name," ")}}function uL(e,n){if(1&e){const t=te();h(0,"button",17),O("click",function(){const i=V(t).$implicit;return B(S().select(i))}),v(1),p()}if(2&e){const t=n.$implicit;f(1),b(" ",t.name," ")}}function cL(e,n){1&e&&(Se(0),h(1,"div",18)(2,"p"),v(3),w(4,"translate"),p()(),Ie()),2&e&&(f(3),b(" ",D(4,1,"no-labels")," "))}let dL=(()=>{class e{constructor(t,r){this.taskService=t,this.taskLabelService=r,this.alreadyAssignedLabels=[],this.noLabels=!1,this.onAdd=new Y,this.onClose=new Y}ngOnDestroy(){this.onClose.emit()}select(t){this.labelSelected=t}setLabelsCanBeAssign(){this.noLabels=!1,this.taskLabelService.all().then(t=>{t.subscribe({next:r=>{this.labelsCanBeAssign=r.filter(o=>!this.alreadyAssignedLabels.map(i=>i.id).includes(o.id)),(!this.labelsCanBeAssign||0==this.labelsCanBeAssign.length)&&(this.noLabels=!0)}})})}}return e.\u0275fac=function(t){return new(t||e)(T(ap),T(tD))},e.\u0275cmp=ce({type:e,selectors:[["app-add-task-label-modal"]],inputs:{target:"target",alreadyAssignedLabels:"alreadyAssignedLabels"},outputs:{onAdd:"onAdd",onClose:"onClose"},decls:26,vars:16,consts:[["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"modal-body"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split",3,"click"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],[1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-primary",3,"click"],[4,"ngIf"],[1,"modal-footer"],[1,"sr-only"],[1,"dropdown-item",3,"click"],[1,"alert","alert-light-warning"]],template:function(t,r){if(1&t&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5",4),v(5),w(6,"translate"),p(),E(7,"app-x-btn"),p(),h(8,"div",5)(9,"p"),v(10),w(11,"translate"),p(),h(12,"div",6)(13,"div",7)(14,"button",8),O("click",function(){return r.setLabelsCanBeAssign()}),x(15,aL,3,3,"span",9),x(16,lL,2,1,"ng-template",null,10,tn),p(),h(18,"div",11),x(19,uL,2,1,"button",12),p(),h(20,"button",13),O("click",function(){return r.onAdd.emit(r.labelSelected),r.labelSelected=void 0}),v(21),w(22,"translate"),p()()(),x(23,cL,5,3,"ng-container",14),p(),h(24,"div",15),E(25,"app-close-btn"),p()()()()),2&t){const o=Ue(17);_("id",r.target),ve("aria-labelledby",r.target),f(4),_("id",r.target),f(1),b(" ",D(6,10,"add-new-label")," "),f(5),b(" ",D(11,12,"add-new-label-description")," "),f(5),_("ngIf",void 0===r.labelSelected)("ngIfElse",o),f(4),_("ngForOf",r.labelsCanBeAssign),f(2),b(" ",D(22,14,"add")," "),f(2),_("ngIf",r.noLabels)}},dependencies:[mn,Ae,Gr,zr,ke]}),e})(),fL=(()=>{class e{constructor(t){this.el=t,this.offset=20,this.base=10}ngAfterViewInit(){this.refreshHeight()}onChange(t){this.refreshHeight()}refreshHeight(){const t=this.el.nativeElement;let r=this.base;t.scrollHeight&&(r=t.scrollHeight+0),t.style.height=r+"px",t.style.overflowY="hidden"}}return e.\u0275fac=function(t){return new(t||e)(T(Ut))},e.\u0275dir=oe({type:e,selectors:[["","appAutoHeight",""]],hostBindings:function(t,r){1&t&&O("input",function(){return r.onChange()})},inputs:{offset:"offset",base:"base"}}),e})();const hL=["closeBtn"];function pL(e,n){if(1&e&&(h(0,"div",18)(1,"h5",19),v(2),w(3,"translate"),p(),E(4,"app-x-btn"),p()),2&e){const t=S(2);f(1),_("id",t.target),f(1),b(" ",D(3,2,t.title)," ")}}function gL(e,n){if(1&e&&(h(0,"p"),v(1),w(2,"translate"),p()),2&e){const t=S(2);f(1),b(" ",D(2,1,t.description)," ")}}function mL(e,n){1&e&&(h(0,"span",20),v(1),w(2,"translate"),p()),2&e&&(f(1),b(" ",D(2,1,"select")," "))}function _L(e,n){if(1&e&&(h(0,"span",20),v(1),p()),2&e){const t=S(2);f(1),b(" ",t.showMaskFn(t.selectedItem)," ")}}function vL(e,n){if(1&e){const t=te();h(0,"button",21),O("click",function(){const i=V(t).$implicit;return B(S(2).select(i))}),v(1),p()}if(2&e){const t=n.$implicit,r=S(2);_("disabled",r.disableCurrent&&r.comparatorFn(t,r.currentValue)),f(1),b(" ",r.showMaskFn(t)," ")}}function yL(e,n){1&e&&(Se(0),h(1,"div",22)(2,"p"),v(3),w(4,"translate"),p()(),Ie()),2&e&&(f(3),b(" ",D(4,1,"no-items")," "))}const bL=function(){return[]};function CL(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3),x(3,pL,5,4,"div",4),h(4,"div",5),x(5,gL,3,3,"p",6),h(6,"div",7)(7,"div",8)(8,"button",9),O("click",function(){V(t);const o=S();return o.onSelect.emit(o.selectedItem),B(o.selectedItem=void 0)}),v(9),w(10,"translate"),p(),h(11,"button",10),x(12,mL,3,3,"span",11),x(13,_L,2,1,"ng-template",null,12,tn),p(),h(15,"div",13),x(16,vL,2,2,"button",14),p()()(),x(17,yL,5,3,"ng-container",6),p(),h(18,"div",15),E(19,"app-close-btn")(20,"button",16,17),p()()()()}if(2&e){const t=Ue(14),r=S();_("id",r.target),ve("aria-labelledby",r.target),f(3),_("ngIf",r.title),f(2),_("ngIf",r.description),f(4),b(" ",D(10,9,r.confirmBtnText)," "),f(3),_("ngIf",void 0===r.selectedItem)("ngIfElse",t),f(4),_("ngForOf",r.getItems()),f(1),_("ngIf",r.getItems()==pt(11,bL))}}let wL=(()=>{class e{constructor(){this.options=[],this.selectOne=!0,this.confirmBtnText="add",this.showMaskFn=t=>t,this.comparatorFn=(t,r)=>t==r,this.showCurrentInList=!1,this.disableCurrent=!0,this.onClose=new Y,this.onSelect=new Y}ngOnInit(){}getItems(){if(!this.options)return[];let t=this.options;return!this.showCurrentInList&&this.currentValue&&(t=this.options.filter(r=>!this.comparatorFn(r,this.currentValue))),t}select(t){this.onSelect.emit(t),this.selectOne&&this.closeBtn&&(this.closeBtn.nativeElement.click(),this.onClose.emit())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-dropdown-modal"]],viewQuery:function(t,r){if(1&t&&vl(hL,5),2&t){let o;ys(o=bs())&&(r.closeBtn=o.first)}},inputs:{target:"target",options:"options",currentValue:"currentValue",title:"title",description:"description",selectOne:"selectOne",confirmBtnText:"confirmBtnText",showMaskFn:"showMaskFn",comparatorFn:"comparatorFn",showCurrentInList:"showCurrentInList",disableCurrent:"disableCurrent"},outputs:{onClose:"onClose",onSelect:"onSelect"},decls:1,vars:1,consts:[["class","modal fade text-left","tabindex","-1","role","dialog","aria-hidden","true",3,"id",4,"ngIf"],["tabindex","-1","role","dialog","aria-hidden","true",1,"modal","fade","text-left",3,"id"],["role","document",1,"modal-dialog","modal-dialog-scrollable"],[1,"modal-content"],["class","modal-header",4,"ngIf"],[1,"modal-body"],[4,"ngIf"],[1,"d-flex","justify-content-center",2,"padding-bottom","20vh"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button",1,"btn","btn-outline-primary",3,"click"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split"],["class","sr-only",4,"ngIf","ngIfElse"],["selected",""],[1,"dropdown-menu"],["class","dropdown-item",3,"disabled","click",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"d-none"],["closeBtn",""],[1,"modal-header"],[1,"modal-title",3,"id"],[1,"sr-only"],[1,"dropdown-item",3,"disabled","click"],[1,"alert","alert-light-warning"]],template:function(t,r){1&t&&x(0,CL,22,12,"div",0),2&t&&_("ngIf",r.target)},dependencies:[mn,Ae,Gr,zr,ke]}),e})();function DL(e,n){if(1&e){const t=te();h(0,"app-badge",54),O("click",function(){return V(t),B(S(3).updateLastWatched())}),p()}2&e&&_("icon","bi-bell-fill")("color","#db5c5c")("text","news")}function EL(e,n){if(1&e&&(Se(0),h(1,"div",50),E(2,"app-badge",51),h(3,"span",52),v(4),p(),x(5,DL,1,3,"app-badge",53),p(),Ie()),2&e){const t=S(2);f(2),_("text",t.task.priority.toString())("color","#e2d3f2")("textColor","#181e24"),f(2),b(" ",t.task.name," "),f(1),_("ngIf",t.hasNews)}}function SL(e,n){if(1&e){const t=te();h(0,"div",29)(1,"div",55)(2,"input",56,57),O("input",function(){V(t);const o=Ue(3);return B(S(2).blueprintModificateTask.priority=+o.value)}),w(4,"translate"),p()(),h(5,"div",6)(6,"div",58)(7,"textarea",59,60),O("input",function(){V(t);const o=Ue(8);return B(S(2).blueprintModificateTask.name=o.value)}),w(9,"translate"),v(10," "),p()()()()}if(2&e){const t=S(2);f(2),$t("placeholder",D(4,6,"priority")),_("value",t.task.priority),f(5),$t("placeholder",D(9,8,"name")),_("value",null==t.blueprintModificateTask?null:t.blueprintModificateTask.name)("base",0)("offset",10)}}function IL(e,n){1&e&&(E(0,"i",61),w(1,"translate")),2&e&&ve("title",D(1,1,"not-assigned"))}function TL(e,n){1&e&&(h(0,"button",70),E(1,"i",71),v(2),w(3,"translate"),p()),2&e&&(ve("data-bs-target","#move-task-"+S(3).task.id),f(2),b(" ",D(3,2,"move-task")," "))}function ML(e,n){if(1&e){const t=te();h(0,"button",69),O("click",function(){V(t),S(2);const o=Ue(30);return S().inModify=!0,B(o.click())}),E(1,"i",72),v(2),w(3,"translate"),p()}2&e&&(f(2),b(" ",D(3,1,"modify")," "))}function AL(e,n){1&e&&(h(0,"button",70),E(1,"i",73),v(2),w(3,"translate"),p()),2&e&&(ve("data-bs-target","#delete-request-"+S(3).task.id),f(2),b(" ",D(3,2,"delete")," "))}function xL(e,n){if(1&e){const t=te();h(0,"div",62)(1,"div",63)(2,"button",64),E(3,"i",65),p(),h(4,"div",66),x(5,TL,4,4,"button",67),x(6,ML,4,3,"button",68),x(7,AL,4,4,"button",67),h(8,"button",69),O("click",function(){return V(t),B(S(2).refreshTask())}),E(9,"i",42),v(10),w(11,"translate"),p()()()()}if(2&e){const t=S(2);f(5),_("ngIf",null==t.authService.loggedUser.role?null:t.authService.loggedUser.role.permission_move),f(1),_("ngIf",t.utilsService.canModify(t.task.author_id)),f(1),_("ngIf",t.utilsService.canDelete(t.task.author_id)),f(3),b(" ",D(11,4,"refresh")," ")}}function kL(e,n){if(1&e){const t=te();h(0,"div")(1,"button",74),O("click",function(){return V(t),B(S(2).initBlueprintTask())}),v(2),w(3,"translate"),p(),h(4,"button",75),O("click",function(){V(t);const o=S(2);return B(o.modify(o.blueprintModificateTask))}),v(5),w(6,"translate"),E(7,"i",76),p()()}2&e&&(f(2),b(" ",D(3,2,"reset")," "),f(3),b(" ",D(6,4,"submit")," "))}function FL(e,n){if(1&e){const t=te();Se(0),E(1,"app-badge",77),h(2,"app-manage-task-label-modal",78),O("onRemoveFromTask",function(){const i=V(t).$implicit;return B(S(2).removeLabelFromTask(i))}),p(),Ie()}if(2&e){const t=n.$implicit,r=S(2);f(1),_("text",t.name)("color",t.hex_color),ve("data-bs-target","#label-"+t.id+"-task-"+r.task.id+"-modal"),f(1),_("target","label-"+t.id+"-task-"+r.task.id+"-modal")("label",t)}}function RL(e,n){if(1&e&&(Se(0),v(1),Ie()),2&e){const t=S(2);f(1),b(" ",t.task.description," ")}}function NL(e,n){if(1&e){const t=te();h(0,"div",58)(1,"textarea",79,80),O("input",function(){V(t);const o=Ue(2);return B(S(2).blueprintModificateTask.description=o.value)}),w(3,"translate"),v(4," "),p()()}if(2&e){const t=S(2);f(1),$t("placeholder",D(3,2,"description")),_("value",null==t.blueprintModificateTask?null:t.blueprintModificateTask.description)}}function PL(e,n){if(1&e&&E(0,"app-text-avatar",81),2&e){const t=S(2);_("color",t.task.author.avatar_hex_color)("text",t.utilsService.getAvatarText(t.task.author))("tooltip",t.task.author.username)}}function OL(e,n){if(1&e){const t=te();h(0,"button",82),O("click",function(){V(t);const o=S(2);return B(o.modify({task_status_id:null==o.task.task_status?null:o.task.task_status.default_prev_task_status_id}))}),E(1,"i",83),v(2),w(3,"async"),p()}if(2&e){const t=S(2);let r;f(2),b(" ",null==(r=D(3,1,t.prevStatus))?null:r.name," ")}}function LL(e,n){if(1&e){const t=te();Se(0),E(1,"app-text-avatar",84),h(2,"app-manage-assigned-user-modal",85),O("onRemoveFromTask",function(){const i=V(t).$implicit;return B(S(2).removeUserFromTask(i.user.id))}),p(),Ie()}if(2&e){const t=n.$implicit,r=S(2);f(1),_("color",t.user.avatar_hex_color)("text",r.utilsService.getAvatarText(t.user))("tooltip",t.user.username),ve("data-bs-target","#manage-assignment-user-"+t.user.id+"-modal"),f(1),_("user",t.user)("target","manage-assignment-user-"+t.user.id+"-modal")("assignmentDate",t.assigned_at)("editable",!(null==r.authService.loggedUser.role||!r.authService.loggedUser.role.permission_change_assignment))}}function VL(e,n){if(1&e){const t=te();Se(0),E(1,"app-icon-avatar",86),h(2,"app-new-assignment-modal",87),O("onAddAssignment",function(o){return V(t),B(S(2).addAssignment(o))})("onClose",function(){V(t);const o=S(2);return B(o.onAddAssignment.emit({target:o.task.id,new:o.task}))}),p(),Ie()}if(2&e){const t=S(2);f(1),ve("data-bs-target","#new-assignment-modal-"+t.task.id),f(1),_("target","new-assignment-modal-"+t.task.id)("alreadyAssignedUsers",t.getAssignedUsers())}}function BL(e,n){if(1&e){const t=te();h(0,"button",88),O("click",function(){V(t);const o=S(2);return B(o.modify({task_status_id:null==o.task.task_status?null:o.task.task_status.default_next_task_status_id}))}),v(1),w(2,"async"),E(3,"i",89),p()}if(2&e){const t=S(2);let r;f(1),b(" ",null==(r=D(2,1,t.nextStatus))?null:r.name," ")}}const nD=function(){return[]};function jL(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"h4",4)(4,"div",5)(5,"div",6),x(6,EL,6,5,"ng-container",7),x(7,SL,11,10,"ng-template",null,8,tn),p(),h(9,"div",9)(10,"div",10),x(11,IL,2,3,"i",11),p(),x(12,xL,12,6,"div",12),x(13,kL,8,6,"ng-template",null,13,tn),p()()(),h(15,"div",14)(16,"app-deadline-badge",15),O("onDeadlineModified",function(o){return V(t),B(S().modify({deadline:o}))}),p(),h(17,"span",16),v(18," | "),p(),x(19,FL,3,5,"ng-container",17),E(20,"app-badge",18),h(21,"app-add-task-label-modal",19),O("onAdd",function(o){return V(t),B(S().addLabelToTask(o))})("onClose",function(){V(t);const o=S();return B(o.onAddLabel.emit({target:o.task.id,new:o.task}))}),p()(),h(22,"p",20),x(23,RL,2,1,"ng-container",7),p(),x(24,NL,5,4,"ng-template",null,21,tn),h(26,"div",22)(27,"div",23)(28,"h2",24)(29,"button",25,26),v(31),w(32,"translate"),p()(),h(33,"div",27)(34,"div",28)(35,"div",29)(36,"div",30)(37,"div",1)(38,"div",2)(39,"div",3)(40,"div",29)(41,"div",31)(42,"div",32)(43,"label"),v(44),w(45,"translate"),p()(),h(46,"div",32)(47,"div",33)(48,"div",34),E(49,"input",35),h(50,"div",36),E(51,"i",37),p()()()()(),h(52,"div",31)(53,"div",32)(54,"label"),v(55),w(56,"translate"),p()(),h(57,"div",32)(58,"div",29)(59,"div",38)(60,"div",33)(61,"div",34),E(62,"input",35),h(63,"div",36),E(64,"i",39),p()()()(),h(65,"div",38),x(66,PL,1,3,"app-text-avatar",40),p()()()(),h(67,"div",31)(68,"div",32)(69,"label"),v(70),w(71,"translate"),p()(),h(72,"div",32)(73,"div",33)(74,"div",34),E(75,"input",35),h(76,"div",36),E(77,"i",41),p()()()()(),h(78,"div",31)(79,"div",32)(80,"label"),v(81),w(82,"translate"),p()(),h(83,"div",32)(84,"div",33)(85,"div",34),E(86,"input",35),h(87,"div",36),E(88,"i",42),p()()()()()()()()()()()()()()(),h(89,"app-task-todo-list",43),O("onRefresh",function(){return V(t),B(S().refreshTask())}),p()()(),h(90,"div",44)(91,"div",32),x(92,OL,4,3,"button",45),p(),h(93,"div",32),x(94,LL,3,8,"ng-container",17),x(95,VL,3,3,"ng-container",46),p(),h(96,"div",32),x(97,BL,4,3,"button",47),p()(),h(98,"app-dialog-modal",48),O("onConfirm",function(){return V(t),B(S().delete())}),p(),h(99,"app-dropdown-modal",49),O("onSelect",function(o){return V(t),B(S().changeStatus(o))}),p()()}if(2&e){const t=Ue(8),r=Ue(14),o=Ue(25),i=S();let s,a,l;f(6),_("ngIf",!i.inModify)("ngIfElse",t),f(5),_("ngIf",!i.userAssignedToTask(i.authService.loggedUser.id)&&!i.inModify),f(1),_("ngIf",!i.inModify)("ngIfElse",r),f(4),_("deadline",i.task.deadline)("done",!(null==i.task.task_status||!i.task.task_status.final))("editable",null!==(s=i.authService.loggedUser&&i.authService.loggedUser.role&&i.authService.loggedUser.role.permission_edit_task_deadline)&&void 0!==s&&s)("id","deadline-tas-"+i.task.id),f(3),_("ngForOf",i.task.labels),f(1),_("text","+"),ve("data-bs-target","#add-label-task-"+i.task.id+"-modal"),f(1),_("target","add-label-task-"+i.task.id+"-modal")("alreadyAssignedLabels",null!==(a=i.task.labels)&&void 0!==a?a:pt(60,nD)),f(2),_("ngIf",!i.inModify)("ngIfElse",o),f(3),_("id","moreDeatilsAccordion-"+i.task.id),f(3),ve("data-bs-target","#flush-collapseDetails-"+i.task.id),f(2),b(" ",D(32,50,"more-details")," "),f(2),_("id","flush-collapseDetails-"+i.task.id),ve("data-bs-parent","#moreDeatilsAccordion-"+i.task.id),f(11),b(" ",D(45,52,"id-code")," "),f(5),_("value",i.task.id),f(6),b(" ",D(56,54,"author")," "),f(7),_("value",null==i.task.author?null:i.task.author.email),f(4),_("ngIf",i.task.author),f(4),b(" ",D(71,56,"created-at")," "),f(5),_("value",i.task.created_at),f(6),b(" ",D(82,58,"updated-at")," "),f(5),_("value",i.task.updated_at),f(3),_("taskId",i.task.id)("todoCollapseStatus",i.todoCollapseStatus),f(3),_("ngIf",null==i.task.task_status?null:i.task.task_status.default_prev_task_status_id),f(2),_("ngForOf",i.task.assigned_users),f(1),_("ngIf",!(null==i.authService.loggedUser.role||!i.authService.loggedUser.role.permission_change_assignment)),f(2),_("ngIf",null==i.task.task_status?null:i.task.task_status.default_next_task_status_id),f(1),_("target","delete-request-"+i.task.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0),f(1),_("target","move-task-"+i.task.id)("title","move-task")("currentValue",i.task.task_status)("options",null!==(l=i.taskStatus)&&void 0!==l?l:pt(61,nD))("confirmBtnText","move")("showMaskFn",i.taskStatusMaskFn)("comparatorFn",i.compareTaskStatusFn)("showCurrentInList",!0)("disableCurrent",!0)}}let UL=(()=>{class e{taskStatusMaskFn(t){return t.name}compareTaskStatusFn(t,r){return t.id==r.id}constructor(t,r,o,i,s){this.taskService=t,this.authService=r,this.utilsService=o,this.taskStatusService=i,this.taskAssignmentService=s,this.todoCollapseStatus=!1,this.taskStatus=null,this.onDeletion=new Y,this.onModify=new Y,this.onRemoveAssignment=new Y,this.onAddAssignment=new Y,this.onRemoveLabel=new Y,this.onAddLabel=new Y,this._hasNews=!1,this._inModify=!1}get hasNews(){return this._hasNews}set hasNews(t){this._hasNews=t}ngOnInit(){this.task&&this.task.task_status&&(this.task.task_status.default_next_task_status_id&&(this.nextStatus=this.taskStatusService.getTaskById(this.task.task_status.default_next_task_status_id)),this.task.task_status.default_prev_task_status_id&&(this.prevStatus=this.taskStatusService.getTaskById(this.task.task_status.default_prev_task_status_id))),this.refreshHasNews()}get inModify(){return this._inModify}set inModify(t){this._inModify=t,this.task&&t&&this.initBlueprintTask()}initBlueprintTask(){this.task&&(this.blueprintModificateTask={id:this.task.id,name:this.task.name,description:this.task.description,priority:this.task.priority})}userAssignedToTask(t){if(!t||!this.task)return!1;let r=this.task.assigned_users?.map(o=>o.user.id).includes(t);return r||!1}getAssignedUsers(){return this.task?.assigned_users?.map(t=>t.user)??[]}removeUserFromTask(t){var r=this;return We(function*(){if(!r.task)return;ht.logInfo(`Removing user with id ${t} from task: ${r.task.id} - ${r.task.name}`);const o=r.task.id;r.taskService.removeAssignment(o,t).then(i=>{i.subscribe({next:s=>{r.refreshTask(()=>{r.onRemoveAssignment.emit({target:o,new:r.task})})}})})})()}addAssignment(t){var r=this;return We(function*(){r.task&&(ht.logInfo(`Add user ${t.username} to task: ${r.task.id} - ${r.task.name}`),r.taskService.addAssignment(r.task.id,t.id).then(i=>{i.subscribe({next:s=>{r.refreshTask()}})}))})()}delete(){if(!this.task)return;ht.logInfo("Remove task "+this.task?.name);const t=this.task.id;this.taskService.deleteById(t).then(r=>{r.subscribe({next:o=>{this.onDeletion.emit(t)}})})}removeLabelFromTask(t){if(!this.task)return;ht.logInfo("Remove label");const r=this.task.id;this.taskService.removeLabel(r,t.id).then(o=>{o.subscribe({next:i=>{this.refreshTask(()=>{this.onRemoveLabel.emit({target:r,new:this.task})})}})})}addLabelToTask(t){this.task&&(ht.logInfo("Add label"),this.taskService.addLabel(this.task.id,t.id).then(o=>{o.subscribe({next:i=>{this.refreshTask()}})}))}modify(t){if(!this.task)return;ht.logInfo("Modify task "+this.task?.name);const r=this.task.id;this.taskService.update(r,t).then(o=>{o.subscribe({next:i=>{this.refreshTask(()=>{this.onModify.emit({target:r,new:this.task})})}})})}refreshHasNews(){if(!this.authService.loggedUser||!this.task)return this.hasNews=!1,this.hasNews;if(this.userAssignedToTask(this.authService.loggedUser.id)){const t=this.task.assigned_users?.find(r=>r.user.id==this.authService.loggedUser.id);return t?null==t.last_watched_at?(this.hasNews=!0,this.hasNews):(this.hasNews=this.task.updated_at>t.last_watched_at,this.hasNews):(this.hasNews=!1,this.hasNews)}return null==this.authService.loggedUser.last_visit_at?(this.hasNews=!0,this.hasNews):(this.hasNews=this.task.updated_at>this.authService.loggedUser.last_visit_at,this.hasNews)}updateLastWatched(){!this.authService.loggedUser||!this.task||(this.userAssignedToTask(this.authService.loggedUser.id)?this.taskAssignmentService.updateByTaskUserId(this.task.id,this.authService.loggedUser.id,{last_watched_at:this.utilsService.datetimeNow()}).then(t=>{t.subscribe({next:r=>{ht.logInfo("Updated last watched"),this.refreshTask(()=>{this.refreshHasNews()})}})}):(this.hasNews=!1,this.authService.updateLastVisit()))}refreshTask(t=(()=>{})){this.task&&this.taskService.find(this.task.id).then(r=>{r.subscribe({next:o=>{this.task=o,t()}})})}changeStatus(t){!this.task||!t||this.modify({task_status_id:t.id})}}return e.\u0275fac=function(t){return new(t||e)(T(ap),T(on),T(Hr),T(lp),T(_O))},e.\u0275cmp=ce({type:e,selectors:[["app-task-preview"]],inputs:{task:"task",todoCollapseStatus:"todoCollapseStatus",taskStatus:"taskStatus"},outputs:{onDeletion:"onDeletion",onModify:"onModify",onRemoveAssignment:"onRemoveAssignment",onAddAssignment:"onAddAssignment",onRemoveLabel:"onRemoveLabel",onAddLabel:"onAddLabel"},decls:1,vars:1,consts:[["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],[1,"card-body"],[1,"card-title"],[1,"row","justify-content-between"],[1,"col-md-10"],[4,"ngIf","ngIfElse"],["titleModification",""],[1,"col-md-2","d-flex","justify-content-end"],[1,"mr-3"],["class","bi bi-clipboard2-x-fill not-assigned-task","data-bs-toggle","tooltip","data-bs-placement","top",4,"ngIf"],["class","btn-group mb-1",4,"ngIf","ngIfElse"],["confirmModifyBtn",""],[1,"d-flex","justify-content-start"],[3,"deadline","done","editable","id","onDeadlineModified"],[1,"separator"],[4,"ngFor","ngForOf"],["data-bs-toggle","modal",1,"cursor-pointer",3,"text"],[3,"target","alreadyAssignedLabels","onAdd","onClose"],[1,"card-text","mt-2"],["descriptionModification",""],[1,"accordion","accordion-flush","mb-1",3,"id"],[1,"accordion-item","rounded"],[1,"accordion-header"],["type","button","data-bs-toggle","collapse","aria-expanded","false","aria-controls","flush-collapseOne",1,"accordion-button","collapsed","rounded"],["openMoreDetailsBtn",""],[1,"accordion-collapse","collapse","rounded",3,"id"],[1,"accordion-body"],[1,"row"],[1,"col-12"],[1,"col-md-6"],[1,"col-md-auto"],[1,"form-group","has-icon-left"],[1,"position-relative"],["type","text","readonly","",1,"form-control",3,"value"],[1,"form-control-icon"],[1,"bi","bi-fingerprint"],[1,"col-auto"],[1,"bi","bi-person"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],[1,"bi","bi-hourglass-top"],[1,"bi","bi-arrow-clockwise"],[3,"taskId","todoCollapseStatus","onRefresh"],[1,"card-footer","d-flex","justify-content-between"],["class","btn btn-lg icon icon-left btn-outline-primary",3,"click",4,"ngIf"],[4,"ngIf"],["class","btn btn-lg icon icon-right btn-outline-primary",3,"click",4,"ngIf"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[3,"target","title","currentValue","options","confirmBtnText","showMaskFn","comparatorFn","showCurrentInList","disableCurrent","onSelect"],[1,"d-flex"],["data-bs-toggle","tooltip","data-bs-placement","top","title","Priority",1,"cursor-arrow",2,"font-size","small",3,"text","color","textColor"],[1,"text-break"],["class","cursor-pointer","style","font-size: medium;",3,"icon","color","text","click",4,"ngIf"],[1,"cursor-pointer",2,"font-size","medium",3,"icon","color","text","click"],[1,"col-md-2"],["type","number",1,"form-control","form-control-sm",3,"placeholder","value","input"],["priorityInput",""],[1,"form-group"],["id","task-title","appAutoHeight","",1,"form-control",3,"placeholder","value","base","offset","input"],["titleTA",""],["data-bs-toggle","tooltip","data-bs-placement","top",1,"bi","bi-clipboard2-x-fill","not-assigned-task"],[1,"btn-group","mb-1"],[1,"dropdown","icon-left"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","icon","btn-sm","btn-light","me-1"],[1,"bi","bi-three-dots-vertical"],[1,"dropdown-menu"],["class","dropdown-item","data-bs-toggle","modal",4,"ngIf"],["class","dropdown-item",3,"click",4,"ngIf"],[1,"dropdown-item",3,"click"],["data-bs-toggle","modal",1,"dropdown-item"],[1,"bi","bi-arrow-left-right","me-50"],[1,"bi","bi-pencil","me-50"],[1,"bi","bi-trash","me-50"],[1,"btn","icon","icon-right","btn-light",3,"click"],[1,"btn","icon","icon-right","btn-primary",3,"click"],[1,"bi","bi-check-lg"],["data-bs-toggle","modal",1,"cursor-pointer",3,"text","color"],[3,"target","label","onRemoveFromTask"],["id","task-description","appAutoHeight","",1,"form-control",3,"placeholder","value","input"],["descriptionTA",""],[1,"cursor-arrow",3,"color","text","tooltip"],[1,"btn","btn-lg","icon","icon-left","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-left"],["data-bs-toggle","modal",1,"cursor-pointer","me-3",3,"color","text","tooltip"],[3,"user","target","assignmentDate","editable","onRemoveFromTask"],["color","#5b6370","iconClass","bi bi-plus","tooltip","add-new-user","data-bs-toggle","modal",1,"cursor-pointer"],[3,"target","alreadyAssignedUsers","onAddAssignment","onClose"],[1,"btn","btn-lg","icon","icon-right","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-right"]],template:function(t,r){1&t&&x(0,jL,100,62,"div",0),2&t&&_("ngIf",r.task&&r.authService.loggedUser)},dependencies:[mn,Ae,xu,oa,TO,AO,NO,eL,rL,sL,dL,Jw,fL,wL,Vb,ke],styles:[".not-assigned-task[_ngcontent-%COMP%]{color:#de8c2f}.rounded[_ngcontent-%COMP%]{border-radius:15px}.separator[_ngcontent-%COMP%]{margin-left:.5vw;margin-right:.5vw}"]}),e})();function $L(e,n){if(1&e){const t=te();h(0,"app-task-preview",3),O("onDeletion",function(o){return V(t),B(S(2).onDeletion.emit(o))})("onAddAssignment",function(o){return V(t),B(S(2).onAddAssignment.emit(o))})("onRemoveAssignment",function(o){return V(t),B(S(2).onRemoveAssignment.emit(o))})("onModify",function(o){return V(t),B(S(2).onModify.emit(o))}),p()}if(2&e){const t=n.$implicit,r=n.index,o=S(2);_("todoCollapseStatus",0==r)("task",t)("taskStatus",o.taskStatus)}}function HL(e,n){if(1&e){const t=te();h(0,"div",4)(1,"div",5)(2,"button",6),O("click",function(){return V(t),B(S(2).scrollTop())}),E(3,"i",7),p()()()}}function GL(e,n){if(1&e&&(Se(0),x(1,$L,1,3,"app-task-preview",1),x(2,HL,4,0,"div",2),Ie()),2&e){const t=S();f(1),_("ngForOf",t.tasks),f(1),_("ngIf",t.tasks.length>1)}}let zL=(()=>{class e{constructor(t){this.authService=t,this.tasks=null,this.taskStatus=null,this.nextTaskStatus=null,this.prevTaskStatus=null,this.onTop=[],this.onDeletion=new Y,this.onModify=new Y,this.onRemoveAssignment=new Y,this.onAddAssignment=new Y,this.onRemoveLabel=new Y,this.onAddLabel=new Y,this.authService.refreshMe()}ngOnInit(){this.setOnTop()}setOnTop(){if(!this.tasks)return;const t=[],r=[];for(const o of this.tasks)this.onTop.includes(o.id)?t.push(o):r.push(o);this.tasks=[...t,...r]}scrollTop(){window.scroll(0,0)}}return e.\u0275fac=function(t){return new(t||e)(T(on))},e.\u0275cmp=ce({type:e,selectors:[["app-task-preview-list"]],inputs:{tasks:"tasks",taskStatus:"taskStatus",nextTaskStatus:"nextTaskStatus",prevTaskStatus:"prevTaskStatus",onTop:"onTop"},outputs:{onDeletion:"onDeletion",onModify:"onModify",onRemoveAssignment:"onRemoveAssignment",onAddAssignment:"onAddAssignment",onRemoveLabel:"onRemoveLabel",onAddLabel:"onAddLabel"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"todoCollapseStatus","task","taskStatus","onDeletion","onAddAssignment","onRemoveAssignment","onModify",4,"ngFor","ngForOf"],["class","row justify-content-center",4,"ngIf"],[3,"todoCollapseStatus","task","taskStatus","onDeletion","onAddAssignment","onRemoveAssignment","onModify"],[1,"row","justify-content-center"],[1,"col-auto"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-up-square"]],template:function(t,r){1&t&&x(0,GL,3,2,"ng-container",0),2&t&&_("ngIf",r.tasks)},dependencies:[mn,Ae,UL]}),e})(),rD=(()=>{class e{constructor(){this.title=""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-page-heading"]],inputs:{title:"title"},decls:4,vars:3,consts:[[1,"page-heading"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"h3"),v(2),w(3,"translate"),p()()),2&t&&(f(2),b(" ",D(3,1,r.title)," "))},dependencies:[ke]}),e})(),qL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-loader"]],decls:3,vars:0,consts:[[1,"row","justify-content-center"],[1,"col-auto"],["src","./assets/svg/grid.svg","alt","loader",1,"me-4"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"div",1),E(2,"img",2),p()())}}),e})();function WL(e,n){1&e&&E(0,"button",3)}function KL(e,n){if(1&e&&(h(0,"div",1),v(1),w(2,"translate"),x(3,WL,1,0,"button",2),p()),2&e){const t=S();f(1),b(" ",D(2,2,t.title)," "),f(2),_("ngIf",t.dismissable)}}let Fu=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-error-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-danger alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-danger","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&x(0,KL,4,4,"div",0),2&t&&_("ngIf",r.title)},dependencies:[Ae,ke]}),e})();function YL(e,n){if(1&e&&(h(0,"div",9)(1,"h4",10),v(2),w(3,"translate"),p()()),2&e){const t=S(2);f(2),b(" ",D(3,1,t.title)," ")}}function ZL(e,n){if(1&e){const t=te();h(0,"div",26)(1,"div",27)(2,"label",28),v(3),w(4,"translate"),p(),h(5,"input",29),O("input",function(){return V(t),B(S(3).filter())}),p()()()}if(2&e){const t=n.$implicit;f(3),b(" ",D(4,4,t)," "),f(2),_("name",t)("placeholder",t)("formControlName",t)}}function QL(e,n){if(1&e){const t=te();h(0,"form",11)(1,"div",12)(2,"div",13)(3,"h5",14),v(4),w(5,"translate"),p()(),h(6,"div",13)(7,"div",15)(8,"input",16,17),O("change",function(){V(t);const o=Ue(9),i=S(2);return i.filterMode=o.checked,B(i.filter())}),p(),h(10,"label",18),E(11,"i",19),v(12," / "),E(13,"i",20),p()()()(),h(14,"div",21),x(15,ZL,6,6,"div",22),p(),h(16,"div",23)(17,"button",24),O("click",function(){return V(t),B(S(2).reset())}),v(18),w(19,"translate"),p(),h(20,"button",25),O("click",function(){return V(t),B(S(2).filter())}),v(21),w(22,"translate"),p()()()}if(2&e){const t=S(2);_("formGroup",t.filterForm),f(4),b(" ",D(5,6,"filters")," "),f(4),_("checked",t.filterMode),f(7),_("ngForOf",t.filterFields),f(3),b(" ",D(19,8,"reset")," "),f(3),b(" ",D(22,10,"submit")," ")}}function XL(e,n){if(1&e&&(h(0,"section",1)(1,"div",2)(2,"div",3)(3,"div",4),x(4,YL,4,3,"div",5),h(5,"div",6)(6,"div",7),x(7,QL,23,12,"form",8),p()()()()()()),2&e){const t=S();f(4),_("ngIf",t.title),f(3),_("ngIf",t.filterForm)}}let oD=(()=>{class e{constructor(){this.entities=[],this.entitiesChange=new Y,this.onFilter=new Y,this.onReset=new Y,this._filterMode=!1}get filterMode(){return this._filterMode}set filterMode(t){this._filterMode=t,this.onFilter.emit()}ngOnInit(){if(this.filterFields){this.filterForm=new rn({});for(let t=0;t{for(let i=0;i{for(let i=0;i{return(e=Ru||(Ru={})).PRIORITY="priority",e.DEADLINE="deadline",e.CREATION="created_at",Ru;var e})();let u3=(()=>{class e{constructor(t,r,o){this.dashboardService=t,this.authService=r,this.taskService=o,this.OrderBy=Ru,this._orderBy=this.OrderBy.PRIORITY,this.loadingError=!1,this.dashboard=null,this.onTopTaskIdList=[],this.creationForm=new rn({name:new K("",[re.required]),description:new K(""),priority:new K("",[re.required]),selfAssigned:new K(!1,[re.required])}),this._orderReverse=!0,this.authService.refreshMe(),this.authService.updateLastVisit(),this.updateLastVisitInterval=setInterval(()=>{this.authService.updateLastVisit()},Ct.updateLastVisitInterval)}ngOnDestroy(){clearInterval(this.updateLastVisitInterval),this.authService.updateLastVisit()}get taskStatusIdIndex(){return this._taskStatusIdIndex}set taskStatusIdIndex(t){this._taskStatusIdIndex=t}get orderBy(){return this._orderBy}set orderBy(t){this._orderBy=t}get orderReverse(){return this._orderReverse}set orderReverse(t){this._orderReverse=t}ngOnInit(){this.loadDashboard()}loadDashboard(){this.dashboard=null,this.dashboardService.getData().then(t=>{t.subscribe({next:r=>{r?(this.dashboard=r,this.taskStatusIdIndex||(this.taskStatusIdIndex=this.dashboard.default_task_status_id),this.loadingError=!1):this.loadingError=!0}})})}getTaskStatusById(t){this.taskStatusIdIndex||(this.taskStatusIdIndex=this.dashboard?.default_task_status_id);const r=this.dashboard?.task_status?.filter(o=>o.id==t);return r?r[0]:null}getCurrentTaskStatus(){return this.taskStatusIdIndex?this.getTaskStatusById(this.taskStatusIdIndex):null}getNextTaskStatus(){let t=this.getCurrentTaskStatus();return t?t.default_next_task_status:null}getPrevTaskStatus(){let t=this.getCurrentTaskStatus();return t?t.default_prev_task_status:null}getAllTaskBasedOnStatusId(t){if(!this.dashboard||!t)return null;let r=this.dashboard.tasks.filter(o=>void 0!==o&&o.task_status_id===t);return r?(r?.sort((o,i)=>{const s=o[this.orderBy],a=i[this.orderBy];let l=0;return s>a&&(l=1),sr.id!=t))}updateTask(t){if(this.dashboard?.tasks){for(let r=0;r{o.subscribe({next:i=>{this.creationForm.reset(),r?this.taskService.addAssignment(i.id,this.authService.loggedUser.id).then(s=>{s.subscribe({next:a=>{this.taskService.find(i.id).then(l=>{l.subscribe({next:u=>{this.dashboard?.tasks.push(u)}})})}})}):this.dashboard?.tasks.push(i)}})})}}return e.\u0275fac=function(t){return new(t||e)(T(gO),T(on),T(ap))},e.\u0275cmp=ce({type:e,selectors:[["app-dashboard"]],decls:89,vars:35,consts:[[1,"row","justify-content-between"],[1,"col-auto"],[3,"title"],["heading",""],["data-bs-toggle","collapse","data-bs-target","#dashboard-operations","aria-expanded","false","aria-controls","dashboard-operations",1,"btn","icon","btn-light"],[1,"bi","bi-toggles2"],["id","dashboard-operations",1,"collapse","mb-5"],[3,"filterFields","entities","entitiesChange",4,"ngIf"],[1,"row","justify-content-center"],[1,"btn-group","mb-1"],[1,"dropdown"],["type","button","id","dropdownMenuButton","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","btn-primary","dropdown-toggle","me-1"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu"],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],["class","card sticky-top","style","z-index: 1; box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;",3,"background-color",4,"ngIf"],[1,"row","justify-content-between","mb-1"],[4,"ngIf"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[1,"fab-container","pos-fixed"],[1,"fab","shadow"],[1,"fab-content"],["data-bs-toggle","modal","data-bs-target","#create-new-task",1,"material-icons","cursor-pointer"],[1,"bi","bi-plus"],["id","create-new-task","tabindex","-1","role","dialog","aria-labelledby","create-new-task-title","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal-dialog-centered","modal-dialog-centered","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header"],["id","create-new-task-title",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],["data-feather","x"],[1,"modal-body"],["id","basic-vertical-layouts"],[1,"row","match-height"],[1,"col-12"],[1,"card"],[1,"card-content"],[1,"card-body"],[1,"form-body"],[3,"formGroup"],[1,"row"],[1,"form-group"],[1,"form-floating"],["placeholder","Leave a name here","formControlName","name",1,"form-control",2,"height","15vh"],["for","floatingTextarea"],[1,"row","align-items-center"],[1,"col-md-9"],["type","number","formControlName","priority",1,"form-control",3,"placeholder"],[1,"col-md-3"],[1,"form-check"],[1,"checkbox"],["type","checkbox","id","self-assigned","formControlName","selfAssigned",1,"form-check-input",3,"checked"],["for","self-assigned"],[1,"row","mt-2"],["placeholder","Leave a description here","formControlName","description",1,"form-control",2,"height","30vh"],[1,"modal-footer"],["type","button","data-bs-dismiss","modal",1,"btn","btn-light-secondary"],[1,"bx","bx-x","d-block","d-sm-none"],[1,"d-none","d-sm-block"],["type","button","data-bs-dismiss","modal",1,"btn","btn-primary","ml-1",3,"disabled","click"],[1,"bx","bx-check","d-block","d-sm-none"],[3,"filterFields","entities","entitiesChange"],[1,"dropdown-item",3,"click"],[1,"card","sticky-top",2,"z-index","1","box-shadow","rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px"],[1,"row","justify-content-between","align-items-center"],[1,"col-sm-auto"],["class","btn btn-lg icon icon-left btn-outline-primary",3,"click",4,"ngIf"],[1,"col-sm-8"],[1,"text-center"],["class","btn btn-lg icon icon-right btn-outline-primary",3,"click",4,"ngIf"],[1,"btn","btn-lg","icon","icon-left","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-left"],[1,"btn","btn-lg","icon","icon-right","btn-outline-primary",3,"click"],[1,"bi","bi-arrow-right"],[1,"btn-group","dropdown","me-1","mb-1"],["type","button",1,"btn","btn-light",3,"click"],["type","button","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false","data-reference","parent",1,"btn","btn-light","dropdown-toggle","dropdown-toggle-split"],[1,"sr-only"],[1,"dropdown-menu"],[3,"tasks","taskStatus","onTop","onDeletion","onAddAssignment","onRemoveAssignment","onModify"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"div",1),E(2,"app-page-heading",2,3),p(),h(4,"div",1)(5,"button",4),E(6,"i",5),p()()(),h(7,"div",6),x(8,e3,1,3,"app-filter",7),h(9,"div",8)(10,"div",1)(11,"div",9)(12,"div",10)(13,"button",11),v(14),w(15,"translate"),p(),h(16,"div",12),x(17,t3,2,1,"button",13),p()()()()()(),x(18,o3,13,7,"div",14),h(19,"div",15)(20,"div",1),x(21,i3,19,15,"ng-container",16),p(),h(22,"div",1)(23,"button",17),O("click",function(){return r.loadDashboard()}),E(24,"i",18),p()()(),x(25,s3,4,3,"ng-container",16),x(26,a3,2,0,"ng-container",16),x(27,l3,2,1,"ng-container",16),h(28,"div",19)(29,"div",20)(30,"div",21)(31,"span",22),E(32,"i",23),p()()()(),h(33,"div",24)(34,"div",25)(35,"div",26)(36,"div",27)(37,"h5",28),v(38),w(39,"translate"),p(),h(40,"button",29),E(41,"i",30),p()(),h(42,"div",31)(43,"section",32)(44,"div",33)(45,"div",34)(46,"div",35)(47,"div",36)(48,"div",37)(49,"div",38)(50,"form",39)(51,"div",40)(52,"div",34)(53,"div",41)(54,"div",42),E(55,"textarea",43),h(56,"label",44),v(57),w(58,"translate"),p()()()()(),h(59,"div",45)(60,"div",46),E(61,"input",47),w(62,"translate"),p(),h(63,"div",48)(64,"div",49)(65,"div",50),E(66,"input",51),h(67,"label",52),v(68),w(69,"translate"),p()()()()(),h(70,"div",53)(71,"div",34)(72,"div",41)(73,"div",42),E(74,"textarea",54),h(75,"label",44),v(76),w(77,"translate"),p()()()()()()()()()()()()()(),h(78,"div",55)(79,"button",56),E(80,"i",57),h(81,"span",58),v(82),w(83,"translate"),p()(),h(84,"button",59),O("click",function(){return r.newTask(),r.orderBy=r.OrderBy.CREATION,r.orderReverse=!0}),E(85,"i",60),h(86,"span",58),v(87),w(88,"translate"),p()()()()()()),2&t&&(f(2),_("title","dashboard"),f(6),_("ngIf",r.dashboard&&(null==r.dashboard?null:r.dashboard.tasks)),f(6),b(" ",D(15,19,"task-status")," "),f(3),_("ngForOf",null==r.dashboard?null:r.dashboard.task_status),f(1),_("ngIf",r.getCurrentTaskStatus()),f(3),_("ngIf",r.dashboard&&!r.loadingError),f(4),_("ngIf",r.dashboard&&!r.loadingError),f(1),_("ngIf",!r.dashboard&&!r.loadingError),f(1),_("ngIf",r.loadingError),f(11),b(" ",D(39,21,"add-task")," "),f(12),_("formGroup",r.creationForm),f(7),b(" ",D(58,23,"name")," "),f(4),$t("placeholder",D(62,25,"priority")),f(5),_("checked",r.creationForm.controls.selfAssigned.value),f(2),b(" ",D(69,27,"assign-yourself")," "),f(8),b(" ",D(77,29,"description")," "),f(6),b(" ",D(83,31,"close")," "),f(2),_("disabled",r.creationForm.invalid),f(3),b(" ",D(88,33,"confirm")," "))},dependencies:[mn,Ae,Dr,Fn,Xh,Ci,Cr,wr,Rn,Zn,zL,rD,qL,Fu,oD,ke],styles:['.pos-fixed[_ngcontent-%COMP%]{position:fixed!important}.fab-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;-webkit-user-select:none;user-select:none;position:absolute;bottom:30px;right:30px}.fab-container[_ngcontent-%COMP%]:hover{height:100%}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(2){transform:translateY(-80px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(3){transform:translateY(-140px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(4){transform:translateY(-200px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(5){transform:translateY(-260px)}.fab-container[_ngcontent-%COMP%]:hover .sub-button[_ngcontent-%COMP%]:nth-child(6){transform:translateY(-320px)}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%]{position:relative;height:70px;width:70px;background-color:#4ba2ff;border-radius:50%;z-index:2}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%]:before{content:" ";position:absolute;bottom:0;right:0;height:35px;width:35px;background-color:inherit;border-radius:0 0 10px;z-index:-1}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%] .fab-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%;border-radius:50%}.fab-container[_ngcontent-%COMP%] .fab[_ngcontent-%COMP%] .fab-content[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;font-size:48px}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;justify-content:center;bottom:10px;right:10px;height:50px;width:50px;background-color:#4ba2ff;border-radius:50%;transition:all .3s ease}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%]:hover{cursor:pointer}.fab-container[_ngcontent-%COMP%] .sub-button[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;padding-top:6px}']}),e})();function c3(e,n){1&e&&(h(0,"button",22),v(1),w(2,"translate"),p()),2&e&&(_("disabled",!S().loginForm.valid),f(1),b(" ",D(2,2,"login")," "))}function d3(e,n){1&e&&(h(0,"button",23),E(1,"span",24),v(2),w(3,"translate"),p()),2&e&&(f(2),b(" ",D(3,1,"loading+dots")," "))}function f3(e,n){1&e&&(h(0,"div",25),E(1,"app-error-alert",26),p()),2&e&&(f(1),_("title","login-error"))}let h3=(()=>{class e{constructor(t,r){this.authService=t,this.router=r,this.loginForm=new rn({email:new K("",[re.required,re.email]),password:new K("",[re.required]),keep:new K(!1)}),this.loading=!1,this.loginError=!1,this.showPsw=!1}ngOnInit(){this.authService.isLogged().then(t=>{t.subscribe({next:r=>{r&&this.router.navigate(["/home"])}})})}onSubmit(){if(ht.logInfo("try to login..."),this.loginForm.valid){this.loading=!0,this.loginError=!1;const{email:t,password:r,keep:o}=this.loginForm.value;this.authService.login(t,r,o).then(i=>{i&&(this.router.navigate(["/home"]),this.loading=!1)}).catch(i=>{this.loginError=!0})}}}return e.\u0275fac=function(t){return new(t||e)(T(on),T(gt))},e.\u0275cmp=ce({type:e,selectors:[["app-login"]],decls:33,vars:18,consts:[["id","auth"],[1,"row","h-100","justify-content-center"],[1,"col-lg-5","col-12"],[1,"auth-title"],[1,"auth-subtitle","mb-5"],[3,"formGroup","submit"],[1,"form-group","position-relative","has-icon-left","mb-4"],["type","email","placeholder","Email","formControlName","email",1,"form-control","form-control-xl"],[1,"form-control-icon"],[1,"bi","bi-person"],["placeholder","Password","formControlName","password",1,"form-control","form-control-xl",3,"type"],[1,"bi","bi-shield-lock"],[1,"form-check","form-switch"],["type","checkbox","id","showPsw",1,"form-check-input",3,"checked","change"],["showPswCheckbox",""],["for","showPsw",1,"form-check-label"],[1,"form-check","form-check-lg","d-flex","align-items-end"],["type","checkbox","value","","id","keepCheck","formControlName","keep",1,"form-check-input","me-2"],["for","keepCheck",1,"form-check-label","text-gray-600"],["class","btn btn-primary btn-block btn-lg shadow-lg mt-5","type","submit",3,"disabled",4,"ngIf","ngIfElse"],["loadingBtn",""],["class","mt-3",4,"ngIf"],["type","submit",1,"btn","btn-primary","btn-block","btn-lg","shadow-lg","mt-5",3,"disabled"],["type","button","disabled","",1,"btn","btn-primary","btn-block","btn-lg","shadow-lg","mt-5"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"mt-3"],[3,"title"]],template:function(t,r){if(1&t){const o=te();h(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),v(4),w(5,"translate"),p(),h(6,"p",4),v(7),w(8,"translate"),p(),h(9,"form",5),O("submit",function(){return r.onSubmit()}),h(10,"div",6),E(11,"input",7),h(12,"div",8),E(13,"i",9),p()(),h(14,"div",6),E(15,"input",10),h(16,"div",8),E(17,"i",11),p()(),h(18,"div",12)(19,"input",13,14),O("change",function(){V(o);const s=Ue(20);return B(r.showPsw=s.checked)}),p(),h(21,"label",15),v(22),w(23,"translate"),p()(),h(24,"div",16),E(25,"input",17),h(26,"label",18),v(27),w(28,"translate"),p()(),x(29,c3,3,4,"button",19),x(30,d3,4,3,"ng-template",null,20,tn),x(32,f3,2,1,"div",21),p()()()()}if(2&t){const o=Ue(31);f(4),b(" ",D(5,10,"login")," "),f(3),b(" ",D(8,12,"login-description")," "),f(2),_("formGroup",r.loginForm),f(6),_("type",r.showPsw?"text":"password"),f(4),_("checked",r.showPsw),f(3),b(" ",D(23,14,"show-password")," "),f(5),b(" ",D(28,16,"keep-me")," "),f(2),_("ngIf",!r.loading||r.loginError)("ngIfElse",o),f(3),_("ngIf",r.loginError)}},dependencies:[Ae,Dr,Fn,Ci,Cr,wr,Rn,Zn,Fu,ke]}),e})(),p3=(()=>{class e extends ra{constructor(){super(...arguments),this.PROJECT_INFORMATION="project_project_information"}getProjectInformation(){return this.call(this.PROJECT_INFORMATION)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),cp=(()=>{class e extends ra{constructor(){super(...arguments),this.OPEN_SETTINGS="app_open_settings",this.OPEN_PROJECT="app_open_project",this.VERSION="app_version",this.CLOSE="app_close",this.INIT_PROJECT="app_init_project",this.PATHS_STORED="app_get_projects_paths_stored",this.REMOVE_WORK_DIR="app_remove_work_dir"}openSettings(){this.call(this.OPEN_SETTINGS).then(t=>{t.subscribe({next:()=>{}})})}removeWorkDir(){this.call(this.REMOVE_WORK_DIR).then(t=>{t.subscribe({next:()=>{window.location.reload()}})})}version(){return this.call(this.VERSION)}openProject(t){return this.call(this.OPEN_PROJECT,t)}close(){return new Promise((t,r)=>{this.call(this.CLOSE).then(o=>{o.subscribe({next:()=>{}}),setTimeout(()=>{t()},Ct.timeBeforeClose)})})}initProject(t,r,o,i){return this.call(this.INIT_PROJECT,t,r,o,i)}projectsPathsStored(){return this.call(this.PATHS_STORED)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=Te(e)))(r||e)}}(),e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function g3(e,n){1&e&&E(0,"button",3)}function m3(e,n){if(1&e&&(h(0,"div",1),v(1),w(2,"translate"),x(3,g3,1,0,"button",2),p()),2&e){const t=S();f(1),b(" ",D(2,2,t.title)," "),f(2),_("ngIf",t.dismissable)}}let iD=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-success-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-success alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-success","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&x(0,m3,4,4,"div",0),2&t&&_("ngIf",r.title)},dependencies:[Ae,ke]}),e})();function _3(e,n){1&e&&E(0,"button",3)}function v3(e,n){if(1&e&&(h(0,"div",1),v(1),w(2,"translate"),x(3,_3,1,0,"button",2),p()),2&e){const t=S();f(1),b(" ",D(2,2,t.title)," "),f(2),_("ngIf",t.dismissable)}}let y3=(()=>{class e{constructor(){this.dismissable=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-warning-alert"]],inputs:{title:"title",dismissable:"dismissable"},decls:1,vars:1,consts:[["class","alert alert-light-warning alert-dismissible show fade",4,"ngIf"],[1,"alert","alert-light-warning","alert-dismissible","show","fade"],["type","button","class","btn-close","data-bs-dismiss","alert","aria-label","Close",4,"ngIf"],["type","button","data-bs-dismiss","alert","aria-label","Close",1,"btn-close"]],template:function(t,r){1&t&&x(0,v3,4,4,"div",0),2&t&&_("ngIf",r.title)},dependencies:[Ae,ke]}),e})();function b3(e,n){1&e&&(h(0,"div",76)(1,"div",1)(2,"span",77),v(3),w(4,"translate"),p()()()),2&e&&(f(3),b(" ",D(4,1,"remove-work")," "))}function C3(e,n){if(1&e){const t=te();Se(0),h(1,"div",5)(2,"div",35)(3,"label"),v(4),w(5,"translate"),p()(),h(6,"div",66)(7,"div",67)(8,"div",68),E(9,"input",69),h(10,"div",70),E(11,"i",71),p()()()()(),h(12,"div",5)(13,"div",35)(14,"label"),v(15),w(16,"translate"),p()(),h(17,"div",66)(18,"div",67)(19,"div",68),E(20,"input",72),h(21,"div",70),E(22,"i",73),p()()()()(),x(23,b3,5,3,"div",74),h(24,"app-dialog-modal",75),O("onConfirm",function(){return V(t),B(S(2).appService.removeWorkDir())}),p(),Ie()}if(2&e){const t=S(2);f(4),b(" ",D(5,11,"path")," "),f(5),_("value",t.projectInformation.path),f(6),b(" ",D(16,13,"database-path")," "),f(5),_("value",t.projectInformation.database_path),f(3),_("ngIf",!(null==t.authService.loggedUser||null==t.authService.loggedUser.role||!t.authService.loggedUser.role.permission_remove_work)),f(1),_("centered",!0)("target","remove-work-dir-modal")("title","delete-request")("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}}function w3(e,n){1&e&&E(0,"app-warning-alert",78),2&e&&_("dismissable",!1)}function D3(e,n){if(1&e&&(h(0,"div",20)(1,"div",8)(2,"form",33)(3,"div",34),x(4,C3,25,15,"ng-container",64),x(5,w3,1,1,"ng-template",null,65,tn),p()()()()),2&e){const t=Ue(6),r=S();f(4),_("ngIf",null!==r.projectInformation)("ngIfElse",t)}}function E3(e,n){1&e&&E(0,"app-error-alert",81),2&e&&_("dismissable",!0)("title","init-project-error")}function S3(e,n){1&e&&E(0,"app-success-alert",81),2&e&&_("dismissable",!0)("title","init-project-success")}function I3(e,n){if(1&e&&(h(0,"div",79)(1,"div",1),x(2,E3,1,2,"app-error-alert",80),p(),h(3,"div",1),x(4,S3,1,2,"app-success-alert",80),p()()),2&e){const t=S();f(2),_("ngIf",!1===t.showInitResult),f(2),_("ngIf",!0===t.showInitResult)}}function T3(e,n){if(1&e&&(h(0,"option",82),v(1),p()),2&e){const t=n.$implicit;_("value",t),f(1),b(" ",t," ")}}function M3(e,n){1&e&&(h(0,"div",79)(1,"div",1),E(2,"app-error-alert",81),p()()),2&e&&(f(2),_("dismissable",!0)("title","opening-error"))}let A3=(()=>{class e{constructor(t,r,o,i,s){this.projectService=t,this.appService=r,this.userService=o,this.authService=i,this.utilsService=s,this.differentUser=!1,this.projectsPaths=[],this.showOpenError=!1,this.initProjectForm=new rn({path:new K("",[re.required]),openOnInit:new K(!1,[re.required]),forceInit:new K(!1,[re.required]),username:new K("",[re.required]),email:new K("",[re.required,re.email]),password:new K("",[re.required,this.utilsService.createPasswordStrengthValidator(8)]),repassword:new K("",[re.required,Qw("password")])}),this.openProjectForm=new rn({path:new K("",[re.required])}),this.authService.refreshMe()}ngOnInit(){this.loadProjectsPaths(),this.loadProjectInformation()}loadProjectsPaths(){this.appService.projectsPathsStored().then(t=>{t.subscribe({next:r=>{r&&(this.projectsPaths=r)}})})}loadProjectInformation(){this.projectService.getProjectInformation().then(t=>{t.subscribe({next:r=>{this.projectInformation=r}})})}updatePath(t){this.openProjectForm.controls.path.setValue(t),this.openProjectForm.controls.path.updateValueAndValidity()}open(){this.showOpenError=!1,this.openProjectForm.valid&&this.appService.openProject(this.openProjectForm.controls.path.value).then(t=>{t.subscribe({next:r=>{r?window.location.reload():this.showOpenError=!0},error:r=>this.showOpenError=!0})})}fillInitForm(){this.initProjectForm.controls.username.setValue(this.authService.loggedUser?.username),this.initProjectForm.controls.email.setValue(this.authService.loggedUser?.email)}init(){if(this.initProjectForm.valid){this.showInitResult=void 0;const t=this.initProjectForm.controls.openOnInit.value;this.appService.initProject(this.initProjectForm.controls.path.value,{email:this.initProjectForm.controls.email.value,username:this.initProjectForm.controls.username.value,password:this.initProjectForm.controls.password.value},t,!!this.initProjectForm.controls.forceInit.value).then(s=>{s.subscribe({next:a=>{this.showInitResult=!!a,a&&t&&setTimeout(()=>{window.location.reload()},500)},error:a=>this.showInitResult=!0})})}}}return e.\u0275fac=function(t){return new(t||e)(T(p3),T(cp),T(ku),T(on),T(Hr))},e.\u0275cmp=ce({type:e,selectors:[["app-home"]],decls:161,vars:109,consts:[[1,"row","justify-content-between"],[1,"col-auto"],[3,"title"],["heading",""],[1,"section"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-body"],["role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","info-tab","data-bs-toggle","tab","href","#info","role","tab","aria-controls","info","aria-selected","true",1,"nav-link","active"],["id","new-tab","data-bs-toggle","tab","href","#new","role","tab","aria-controls","new","aria-selected","false",1,"nav-link"],["id","open-tab","data-bs-toggle","tab","href","#open","role","tab","aria-controls","open","aria-selected","false",1,"nav-link"],[1,"tab-content"],["id","info","role","tabpanel","aria-labelledby","info-tab",1,"tab-pane","fade","show","active"],[1,"card-header"],[1,"card-title"],["class","card-content",4,"ngIf"],["id","new","role","tabpanel","aria-labelledby","new-tab",1,"tab-pane","fade"],[1,"card-content"],[3,"formGroup"],[1,"col-md-9","mb-4"],["type","text","formControlName","path",1,"form-control",3,"placeholder"],["path",""],[1,"col-md-3","align-self-center"],[1,"form-check"],[1,"checkbox"],["type","checkbox","id","force-init","formControlName","forceInit",1,"form-check-input"],["for","force-init"],[1,"mt-2"],["id","basic-horizontal-layouts"],[1,"row","match-height"],[1,"form","form-horizontal"],[1,"form-body"],[1,"col-md-4"],[1,"col-md-8","form-group"],["type","text","name","username","formControlName","username",1,"form-control",3,"placeholder"],["type","email","formControlName","email",1,"form-control",3,"placeholder"],["type","password","formControlName","password",1,"form-control",3,"placeholder"],["type","password","formControlName","repassword",1,"form-control",3,"placeholder"],[2,"color","#b8a244"],[1,"col-sm-12","d-flex","justify-content-between"],["type","button",1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-box-arrow-down"],["type","reset",1,"btn","btn-light-secondary","me-1","mb-1"],[1,"row","justify-content-between","mt-2"],["type","checkbox","id","open-on-init","formControlName","openOnInit",1,"form-check-input"],["for","open-on-init"],[1,"btn","icon","icon-right","btn-primary",3,"disabled","click"],[1,"bi","bi-folder-plus"],["class","row justify-content-center mt-2",4,"ngIf"],["id","open","role","tabpanel","aria-labelledby","open-tab",1,"tab-pane","fade"],[1,"col-md-6","mb-4"],[1,"input-group","mb-3"],["for","inputGroupSelect01",1,"input-group-text"],["id","inputGroupSelect01",1,"form-select",3,"change"],["select",""],["value","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"row","justify-content-end"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],[1,"bi","bi-box-arrow-up-right"],[4,"ngIf","ngIfElse"],["noProject",""],[1,"col-md-8"],[1,"form-group","has-icon-left"],[1,"position-relative"],["type","text","placeholder","Path","id","path","readonly","",1,"form-control",3,"value"],[1,"form-control-icon"],[1,"bi","bi-folder-fill"],["type","text","placeholder","Database","id","database","readonly","",1,"form-control",3,"value"],[1,"bi","bi-database-fill"],["class","row justify-content-center mt-5",4,"ngIf"],[3,"centered","target","title","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[1,"row","justify-content-center","mt-5"],["data-bs-toggle","modal","data-bs-target","#remove-work-dir-modal",1,"red-underling","cursor-pointer"],["title","no-project",3,"dismissable"],[1,"row","justify-content-center","mt-2"],[3,"dismissable","title",4,"ngIf"],[3,"dismissable","title"],[3,"value"]],template:function(t,r){if(1&t){const o=te();h(0,"div",0)(1,"div",1),E(2,"app-page-heading",2,3),p()(),h(4,"section",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"ul",9)(10,"li",10)(11,"a",11),v(12),w(13,"translate"),p()(),h(14,"li",10)(15,"a",12),v(16),w(17,"translate"),p()(),h(18,"li",10)(19,"a",13),v(20),w(21,"translate"),p()()(),h(22,"div",14)(23,"div",15),E(24,"p"),h(25,"div",7)(26,"div",16)(27,"h4",17),v(28),w(29,"translate"),p()(),x(30,D3,7,2,"div",18),p()(),h(31,"div",19),E(32,"p"),h(33,"div",7)(34,"div",16)(35,"h4",17),v(36),w(37,"translate"),p()(),h(38,"div",20)(39,"div",8)(40,"form",21)(41,"div",5)(42,"div",22)(43,"h6"),v(44),w(45,"translate"),p(),E(46,"input",23,24),w(48,"translate"),p(),h(49,"div",25)(50,"div",26)(51,"div",27),E(52,"input",28),h(53,"label",29),v(54),w(55,"translate"),p()()()()(),h(56,"h6",30),v(57),w(58,"translate"),p(),h(59,"section",31)(60,"div",32)(61,"div",6)(62,"div",7)(63,"div",20)(64,"div",8)(65,"form",33)(66,"div",34)(67,"div",5)(68,"div",35)(69,"label"),v(70),w(71,"translate"),p()(),h(72,"div",36),E(73,"input",37),w(74,"translate"),p(),h(75,"div",35)(76,"label"),v(77),w(78,"translate"),p()(),h(79,"div",36),E(80,"input",38),w(81,"translate"),p(),h(82,"div",35)(83,"label"),v(84),w(85,"translate"),p()(),h(86,"div",36),E(87,"input",39),w(88,"translate"),p(),h(89,"div",35)(90,"label"),v(91),w(92,"translate"),p()(),h(93,"div",36),E(94,"input",40),w(95,"translate"),h(96,"small",41),v(97),w(98,"translate"),p()(),h(99,"div",42)(100,"button",43),O("click",function(){return r.fillInitForm()}),E(101,"i",44),p(),h(102,"button",45),v(103),w(104,"translate"),p()()()()()()()()()()(),h(105,"div",46)(106,"div",1)(107,"div",26)(108,"div",27),E(109,"input",47),h(110,"label",48),v(111),w(112,"translate"),p()()()(),h(113,"div",1)(114,"button",49),O("click",function(){return r.init()}),v(115),w(116,"translate"),E(117,"i",50),p()()(),x(118,I3,5,2,"div",51),p()()()()(),h(119,"div",52),E(120,"p"),h(121,"div",7)(122,"div",16)(123,"h4",17),v(124),w(125,"translate"),p()(),h(126,"div",20)(127,"div",8)(128,"form",21)(129,"div",5)(130,"div",53)(131,"h6"),v(132),w(133,"translate"),p(),h(134,"div",54)(135,"label",55),v(136),w(137,"translate"),p(),h(138,"select",56,57),O("change",function(){V(o);const s=Ue(139);return B(s.value?r.updatePath(s.value):"")}),h(140,"option",58),v(141),w(142,"translate"),p(),x(143,T3,2,2,"option",59),p()()(),h(144,"div",53)(145,"h6"),v(146),w(147,"translate"),p(),E(148,"input",23,24),w(150,"translate"),p()(),h(151,"div",60)(152,"div",1)(153,"button",61),O("click",function(){return r.loadProjectsPaths()}),E(154,"i",62),p()(),h(155,"div",1)(156,"button",49),O("click",function(){return r.open()}),v(157),w(158,"translate"),E(159,"i",63),p()()(),x(160,M3,3,2,"div",51),p()()()()()()()()()()()}2&t&&(f(2),_("title","home"),f(10),b(" ",D(13,53,"project-information")," "),f(4),b(" ",D(17,55,"init-project")," "),f(4),b(" ",D(21,57,"open-project")," "),f(8),b(" ",D(29,59,"project-information")," "),f(2),_("ngIf",void 0!==r.projectInformation),f(6),b(" ",D(37,61,"init-project")," "),f(4),_("formGroup",r.initProjectForm),f(4),b(" ",D(45,63,"insert-path")," "),f(2),$t("placeholder",D(48,65,"path")),f(8),b(" ",D(55,67,"force-init")," "),f(3),b(" ",D(58,69,"insert-pm-data")," "),f(13),b(" ",D(71,71,"username")," "),f(3),Le("is-valid",r.initProjectForm.controls.username.dirty&&r.initProjectForm.controls.username.valid)("is-invalid",r.initProjectForm.controls.username.dirty&&!r.initProjectForm.controls.username.valid),$t("placeholder",D(74,73,"username")),f(4),b(" ",D(78,75,"email")," "),f(3),Le("is-valid",r.initProjectForm.controls.email.dirty&&r.initProjectForm.controls.email.valid)("is-invalid",r.initProjectForm.controls.email.dirty&&!r.initProjectForm.controls.email.valid),$t("placeholder",D(81,77,"email")),f(4),b(" ",D(85,79,"password")," "),f(3),Le("is-valid",r.initProjectForm.controls.password.dirty&&r.initProjectForm.controls.password.valid)("is-invalid",r.initProjectForm.controls.password.dirty&&!r.initProjectForm.controls.password.valid),$t("placeholder",D(88,81,"password")),f(4),b(" ",D(92,83,"repassword")," "),f(3),Le("is-valid",r.initProjectForm.controls.repassword.dirty&&r.initProjectForm.controls.repassword.valid)("is-invalid",r.initProjectForm.controls.repassword.dirty&&!r.initProjectForm.controls.repassword.valid),$t("placeholder",D(95,85,"repassword")),f(3),b(" ",D(98,87,"password-warning")," "),f(6),b(" ",D(104,89,"reset")," "),f(8),b(" ",D(112,91,"open-at-end")," "),f(3),_("disabled",r.initProjectForm.invalid),f(1),b(" ",D(116,93,"init")," "),f(3),_("ngIf",void 0!==r.showInitResult),f(6),b(" ",D(125,95,"open-project")," "),f(4),_("formGroup",r.openProjectForm),f(4),b(" ",D(133,97,"select-project")," "),f(4),b(" ",D(137,99,"projects")," "),f(5),b(" ",D(142,101,"select")," "),f(2),_("ngForOf",r.projectsPaths),f(3),b(" ",D(147,103,"insert-path")," "),f(2),$t("placeholder",D(150,105,"path")),f(8),_("disabled",r.openProjectForm.invalid),f(1),b(" ",D(158,107,"open")," "),f(3),_("ngIf",r.showOpenError))},dependencies:[mn,Ae,Dr,np,op,Fn,Ci,Cr,wr,Rn,Zn,rD,Fu,oa,iD,y3,ke],styles:[".red-underling[_ngcontent-%COMP%]{text-decoration:underline;color:#f75e66}"]}),e})(),x3=(()=>{class e{constructor(t,r){this.taskStatusService=t,this.authService=r}ngOnInit(){}test(){var t=this;return We(function*(){t.authService.isLogged().then(r=>{r.subscribe({next:o=>{console.log("value: ",o)}})})})()}}return e.\u0275fac=function(t){return new(t||e)(T(lp),T(on))},e.\u0275cmp=ce({type:e,selectors:[["app-test"]],decls:3,vars:0,consts:[["id","graph-container"],[1,"btn","btn-primary",3,"click"]],template:function(t,r){1&t&&(E(0,"div",0),h(1,"button",1),O("click",function(){return r.test()}),v(2," Test now\n"),p())}}),e})();function k3(e,n){if(1&e){const t=te();h(0,"div",41)(1,"button",42),O("click",function(){return V(t),B(S(2).submitMasterData())}),v(2),w(3,"translate"),p(),h(4,"button",44),O("click",function(){V(t);const o=S(2);return B(o.loadDefaultValues(o.blueprintMasterDataUserForm))}),v(5),w(6,"translate"),p()()}if(2&e){const t=S(2);f(1),_("disabled",t.blueprintMasterDataUserForm.invalid),f(1),b(" ",D(3,3,"confirm")," "),f(3),b(" ",D(6,5,"reset")," ")}}function F3(e,n){if(1&e){const t=te();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h4",5),v(5),w(6,"translate"),p(),h(7,"p"),v(8),w(9,"translate"),p()(),h(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"a",10),v(15),w(16,"translate"),p(),h(17,"a",11),v(18),w(19,"translate"),p(),h(20,"a",12),v(21),w(22,"translate"),p()()(),h(23,"div",13)(24,"div",14)(25,"div",15)(26,"section",16)(27,"div",17)(28,"div",2)(29,"div",3)(30,"div",4)(31,"h4",5),v(32),w(33,"translate"),p()(),h(34,"div",18)(35,"div",6)(36,"form",19)(37,"div",20)(38,"div",7)(39,"div",21)(40,"label"),v(41),w(42,"translate"),p()(),h(43,"div",22),E(44,"input",23),p(),h(45,"div",21)(46,"label"),v(47),w(48,"translate"),p()(),h(49,"div",22),E(50,"input",24),p(),h(51,"div",21)(52,"label"),v(53),w(54,"translate"),p()(),h(55,"div",22),E(56,"input",25),p(),h(57,"div",21)(58,"label"),v(59),w(60,"translate"),p()(),h(61,"div",22),E(62,"input",26),p(),h(63,"div",21)(64,"label"),v(65),w(66,"translate"),p()(),h(67,"div",22),E(68,"input",27),p(),x(69,k3,7,7,"div",28),p()()()()()()()()()(),h(70,"div",29)(71,"div",1)(72,"div",30)(73,"div",31)(74,"label",32),v(75),w(76,"translate"),p(),h(77,"input",33,34),O("input",function(){V(t);const o=Ue(78);return B(S().colorPicked=o.value)}),p()()(),h(79,"div",30),E(80,"app-text-avatar",35),p()(),h(81,"div",1)(82,"div",30)(83,"button",36),O("click",function(){V(t);const o=Ue(78),i=S();return B(o.value=i.colorPicked=i.loggedUser.avatar_hex_color)}),v(84),w(85,"translate"),p()(),h(86,"div",30)(87,"button",37),O("click",function(){V(t);const o=S();return B(o.modify({avatar_hex_color:o.colorPicked},!0))}),v(88),w(89,"translate"),p()()()(),h(90,"div",38)(91,"section",16)(92,"div",17)(93,"div",2)(94,"div",3)(95,"div",4)(96,"h4",5),v(97),w(98,"translate"),p(),h(99,"p"),v(100),w(101,"translate"),p()(),h(102,"div",18)(103,"div",6)(104,"form",19)(105,"div",20)(106,"div",7)(107,"div",21)(108,"label"),v(109),w(110,"translate"),p()(),h(111,"div",22),E(112,"input",39),p(),h(113,"div",21)(114,"label"),v(115),w(116,"translate"),p()(),h(117,"div",22),E(118,"input",40),p(),h(119,"div",41)(120,"button",42),O("click",function(){return V(t),B(S().submitPasswordData())}),v(121),w(122,"translate"),p(),h(123,"button",43),v(124),w(125,"translate"),p()()()()()()()()()()()()()()()()()()()}if(2&e){const t=S();f(5),b(" ",D(6,43,"my-profile")," "),f(3),b(" ",D(9,45,"logout-after-update")," "),f(7),b(" ",D(16,47,"master-data")," "),f(3),b(" ",D(19,49,"avatar")," "),f(3),b(" ",D(22,51,"password")," "),f(11),b(" ",D(33,53,"master-data")," "),f(4),_("formGroup",t.blueprintMasterDataUserForm),f(5),b(" ",D(42,55,"username")," "),f(3),Le("is-valid",t.blueprintMasterDataUserForm.controls.username.dirty&&!t.blueprintMasterDataUserForm.controls.username.errors)("is-invalid",t.blueprintMasterDataUserForm.controls.username.dirty&&t.blueprintMasterDataUserForm.controls.username.errors),f(3),b(" ",D(48,57,"email")," "),f(3),Le("is-valid",t.blueprintMasterDataUserForm.controls.email.dirty&&!t.blueprintMasterDataUserForm.controls.email.errors)("is-invalid",t.blueprintMasterDataUserForm.controls.email.dirty&&t.blueprintMasterDataUserForm.controls.email.errors),f(3),b(" ",D(54,59,"name")," "),f(6),b(" ",D(60,61,"surname")," "),f(6),b(" ",D(66,63,"phone")," "),f(4),_("ngIf",t.blueprintMasterDataUserForm.dirty),f(6),b(" ",D(76,65,"pick-color-for-avatar")," "),f(2),_("value",t.loggedUser.avatar_hex_color),f(3),_("color",t.colorPicked?t.colorPicked:t.loggedUser.avatar_hex_color)("text",t.utilsService.getAvatarText(t.loggedUser)),f(4),b(" ",D(85,67,"reset")," "),f(4),b(" ",D(89,69,"update")," "),f(9),b(" ",D(98,71,"password")," "),f(3),b(" ",D(101,73,"password-requirements")," "),f(4),_("formGroup",t.blueprintPasswordUserForm),f(5),b(" ",D(110,75,"password")," "),f(3),Le("is-valid",t.blueprintPasswordUserForm.controls.password.dirty&&!t.blueprintPasswordUserForm.controls.password.errors)("is-invalid",t.blueprintPasswordUserForm.controls.password.dirty&&t.blueprintPasswordUserForm.controls.password.errors),f(3),b(" ",D(116,77,"repassword")," "),f(3),Le("is-valid",t.blueprintPasswordUserForm.controls.repassword.dirty&&!t.blueprintPasswordUserForm.controls.repassword.errors)("is-invalid",t.blueprintPasswordUserForm.controls.repassword.dirty&&t.blueprintPasswordUserForm.controls.repassword.errors),f(2),_("disabled",t.blueprintPasswordUserForm.invalid),f(1),b(" ",D(122,79,"submit")," "),f(3),b(" ",D(125,81,"reset")," ")}}let R3=(()=>{class e{constructor(t,r,o){this.authService=t,this.utilsService=r,this.userService=o,this.blueprintMasterDataUserForm=new rn({username:new K("",[re.required],this.checkUnique("username")),name:new K(null),surname:new K(null),email:new K("",[re.required],this.checkUnique("email")),phone:new K(null)}),this.blueprintPasswordUserForm=new rn({password:new K("",[re.required,this.utilsService.createPasswordStrengthValidator(8)]),repassword:new K("",[re.required,Qw("password")])}),this.loadLoggedUser()}ngOnInit(){}loadLoggedUser(){this.authService.me().then(t=>{t.subscribe({next:r=>{this.loggedUser=r,this.loadDefaultValues(this.blueprintMasterDataUserForm)}})})}loadDefaultValues(t){if(!this.loggedUser)return;const r=Object.keys(t.controls);for(let o=0;o{i.subscribe({next:s=>{r&&window.location.reload()},error:s=>{}})}))}submitMasterData(){this.blueprintMasterDataUserForm.valid&&this.modify(this.blueprintMasterDataUserForm.value,!0)}submitPasswordData(){this.blueprintPasswordUserForm.valid&&this.modify({password:this.blueprintPasswordUserForm.controls.password.value},!0)}checkUnique(t){return r=>new be(o=>{this.userService.checkAlreadyUsed(t,r.value).then(i=>{i.subscribe({next:s=>{o.next(r.value!=this.loggedUser[t]&&s),o.complete()}})})}).pipe(ie(o=>o?{uniqueError:!0}:null))}}return e.\u0275fac=function(t){return new(t||e)(T(on),T(Hr),T(ku))},e.\u0275cmp=ce({type:e,selectors:[["app-my-profile"]],decls:1,vars:1,consts:[["class","row justify-content-center",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-title"],[1,"card-body"],[1,"row"],[1,"col-3"],["id","v-pills-tab","role","tablist","aria-orientation","vertical",1,"nav","flex-column","nav-pills"],["id","v-pills-master-data-tab","data-bs-toggle","pill","href","#v-pills-master-data","role","tab","aria-controls","v-pills-master-data","aria-selected","true",1,"nav-link","active"],["id","v-pills-avatar-tab","data-bs-toggle","pill","href","#v-pills-avatar","role","tab","aria-controls","v-pills-avatar","aria-selected","false",1,"nav-link"],["id","v-pills-password-tab","data-bs-toggle","pill","href","#v-pills-password","role","tab","aria-controls","v-pills-password","aria-selected","false",1,"nav-link"],[1,"col-9"],["id","v-pills-tabContent",1,"tab-content"],["id","v-pills-master-data","role","tabpanel","aria-labelledby","v-pills-master-data-tab",1,"tab-pane","fade","show","active"],["id","basic-horizontal-layouts"],[1,"row","match-height"],[1,"card-content"],[1,"form","form-horizontal",3,"formGroup"],[1,"form-body"],[1,"col-md-4"],[1,"col-md-8","form-group"],["type","text","id","username","name","username","placeholder","Username","formControlName","username",1,"form-control"],["type","email","id","email","name","email","placeholder","Email","formControlName","email",1,"form-control"],["type","text","id","name","name","name","placeholder","Name","formControlName","name",1,"form-control"],["type","text","id","surname","name","surname","placeholder","Surname","formControlName","surname",1,"form-control"],["type","text","id","phone","name","phone","placeholder","Phone","formControlName","phone",1,"form-control"],["class","col-sm-12 d-flex justify-content-end",4,"ngIf"],["id","v-pills-avatar","role","tabpanel","aria-labelledby","v-pills-avatar-tab",1,"tab-pane","fade"],[1,"col-auto"],[1,"form-group"],["for","color-picker"],["type","color","id","color-picker",1,"form-control",3,"value","input"],["colorPicker",""],[3,"color","text"],[1,"btn","btn-outline-secondary",3,"click"],[1,"btn","btn-outline-primary",3,"click"],["id","v-pills-password","role","tabpanel","aria-labelledby","v-pills-password-tab",1,"tab-pane","fade"],["type","password","id","password","name","password","placeholder","Password","formControlName","password",1,"form-control"],["type","password","id","repassword","name","repassword","placeholder","Re-password","formControlName","repassword",1,"form-control"],[1,"col-sm-12","d-flex","justify-content-end"],["type","button",1,"btn","btn-primary","me-1","mb-1",3,"disabled","click"],["type","reset",1,"btn","btn-light-secondary","me-1","mb-1"],["type","button",1,"btn","btn-light-secondary","me-1","mb-1",3,"click"]],template:function(t,r){1&t&&x(0,F3,126,83,"div",0),2&t&&_("ngIf",r.loggedUser)},dependencies:[Ae,Dr,Fn,Cr,wr,Rn,Zn,xu,ke]}),e})();function N3(e,n){if(1&e){const t=te();h(0,"div",4)(1,"div",5)(2,"div",6)(3,"h5",7),v(4),w(5,"translate"),p()(),h(6,"div",6)(7,"button",8),O("click",function(){V(t);const o=S(2);return B(o.collapseStatus=!o.collapseStatus)}),E(8,"i",9),p()()()()}if(2&e){const t=S(2);f(4),b(" ",D(5,1,t.title)," ")}}function P3(e,n){1&e&&(E(0,"i",26),w(1,"translate")),2&e&&$t("title",D(1,1,"unique"))}function O3(e,n){if(1&e){const t=te();h(0,"div",30)(1,"input",31),O("change",function(){V(t),S();const o=Ue(2);return B(o.type="password"==o.type?"text":"password")}),p(),h(2,"label",32),v(3),w(4,"translate"),p()()}2&e&&(f(3),b(" ",D(4,1,"show-password")," "))}function L3(e,n){if(1&e&&(Se(0),E(1,"input",27,28),w(3,"translate"),x(4,O3,5,3,"div",29),Ie()),2&e){const t=S().$implicit,r=S(3);let o;f(1),Le("is-valid",r.form.controls[t.name].dirty&&r.form.controls[t.name].valid)("is-invalid",r.form.controls[t.name].dirty&&!r.form.controls[t.name].valid),$t("placeholder",D(3,9,null!==(o=t.placeholder)&&void 0!==o?o:"")),_("type",t.type)("name",t.name)("formControlName",t.name),f(3),_("ngIf","password"==t.type)}}function V3(e,n){if(1&e&&(Se(0),h(1,"div",33),E(2,"textarea",34),p(),Ie()),2&e){const t=S(2).$implicit,r=S(3);f(2),Le("is-valid",r.form.controls[t.name].dirty&&r.form.controls[t.name].valid)("is-invalid",r.form.controls[t.name].dirty&&!r.form.controls[t.name].valid),_("formControlName",t.name)}}function B3(e,n){if(1&e&&(Se(0),h(1,"div",35)(2,"div",36),E(3,"input",37),p()(),Ie()),2&e){const t=S(2).$implicit;f(3),_("name",t.name)("placeholder",t.placeholder)("formControlName",t.name)}}function j3(e,n){if(1&e&&(h(0,"option",43),v(1),w(2,"translate"),p()),2&e){const t=n.$implicit;_("ngValue",t.value),f(1),b(" ",D(2,2,t.text)," ")}}function U3(e,n){if(1&e&&(Se(0),h(1,"div",38)(2,"label",39),v(3),w(4,"translate"),p(),h(5,"select",40)(6,"option",41),v(7),w(8,"translate"),p(),x(9,j3,3,4,"option",42),p()(),Ie()),2&e){const t=S(2).$implicit;let r;f(3),b(" ",D(4,4,null!==(r=t.placeholder)&&void 0!==r?r:t.name)," "),f(2),_("formControlName",t.name),f(2),b(" ",D(8,6,"choose")," "),f(2),_("ngForOf",t.selectOptions)}}function $3(e,n){if(1&e&&(x(0,V3,3,5,"ng-container",0),x(1,B3,4,3,"ng-container",0),x(2,U3,10,8,"ng-container",0)),2&e){const t=S().$implicit;_("ngIf","textarea"==t.type),f(1),_("ngIf","checkbox"==t.type),f(1),_("ngIf","selectbox"==t.type)}}function H3(e,n){if(1&e&&(h(0,"div",20)(1,"div",21)(2,"div",5)(3,"div",6)(4,"label"),v(5),w(6,"translate"),p()(),h(7,"div",6),x(8,P3,2,3,"i",22),p()()(),h(9,"div",23),x(10,L3,5,11,"ng-container",24),x(11,$3,3,3,"ng-template",null,25,tn),p()()),2&e){const t=n.$implicit,r=Ue(12);let o;f(5),b(" ",D(6,4,null!==(o=t.title)&&void 0!==o?o:t.name)," "),f(3),_("ngIf",!0===t.unique),f(2),_("ngIf","textarea"!==t.type&&"checkbox"!==t.type&&"selectbox"!==t.type)("ngIfElse",r)}}function G3(e,n){1&e&&(h(0,"button",44),E(1,"i",45),p()),2&e&&ve("data-bs-target","#delete-request-"+S(3).entity.id)}function z3(e,n){if(1&e){const t=te();h(0,"app-dialog-modal",46),O("onConfirm",function(){return V(t),B(S(3).delete())}),p()}2&e&&_("target","delete-request-"+S(3).entity.id)("centered",!0)("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0)}function q3(e,n){1&e&&E(0,"app-error-alert",48),2&e&&_("title","operation-error")}function W3(e,n){1&e&&E(0,"app-success-alert",48),2&e&&_("title","operation-successful")}function K3(e,n){if(1&e&&(Se(0),x(1,q3,1,1,"app-error-alert",47),x(2,W3,1,1,"app-success-alert",47),Ie()),2&e){const t=S(3);f(1),_("ngIf",!t.submitResult),f(1),_("ngIf",!!t.submitResult)}}function Y3(e,n){if(1&e){const t=te();h(0,"div",10)(1,"div",11)(2,"form",12)(3,"div",13),x(4,H3,13,6,"div",14),h(5,"div",5)(6,"div",6),x(7,G3,2,1,"button",15),p(),h(8,"div",16)(9,"button",17),O("click",function(){return V(t),B(S(2).setFormDefaultValue())}),v(10),w(11,"translate"),p(),h(12,"button",18),O("click",function(){return V(t),B(S(2).submit())}),v(13),w(14,"translate"),p(),x(15,z3,1,5,"app-dialog-modal",19),p()(),x(16,K3,3,2,"ng-container",0),p()()()()}if(2&e){const t=S(2);f(2),_("formGroup",t.form),f(2),_("ngForOf",t.editableFields),f(3),_("ngIf",t.entity),f(3),b(" ",D(11,8,"reset")," "),f(2),_("disabled",t.form.invalid),f(1),b(" ",D(14,10,t.confirmBtnTxt)," "),f(2),_("ngIf",t.entity),f(1),_("ngIf",void 0!==t.submitResult)}}function Z3(e,n){if(1&e&&(Se(0),h(1,"div",1),x(2,N3,9,3,"div",2),x(3,Y3,17,12,"div",3),p(),Ie()),2&e){const t=S();f(2),_("ngIf",t.title),f(1),_("ngIf",!t.collapseStatus)}}let Q3=(()=>{class e{constructor(){this.editableFields=[],this.confirmBtnTxt="modify",this.collapseStatus=!1,this.refreshRequest=new Y,this.onConfirm=new Y}ngOnInit(){this.createForm()}createForm(){this.form=new rn({});for(let t=0;t{setTimeout(()=>{this.submitResult=void 0},Ct.alertTimeout)};this.onConfirm.emit(t),this.manager&&this.manager.update(r,t).then(i=>{i.subscribe({next:s=>{s&&(this.entity=s,this.form?.markAsPristine()),!r&&s&&(this.entity=void 0,this.form?.reset(),this.refreshRequest.emit()),this.submitResult=!!s,o()},error:s=>{this.submitResult=!1,o()}})}).catch(i=>{this.submitResult=!1,o()})}delete(){if(!this.entity)return;const r=()=>{setTimeout(()=>{this.submitResult=void 0},Ct.alertTimeout)};this.manager&&this.manager?.deleteById(this.entity.id).then(o=>{o.subscribe({next:i=>{this.submitResult=i=!!i,i&&(this.entity=void 0,this.refreshRequest.emit()),r()},error:i=>{this.submitResult=!1,r()}})}).catch(o=>{this.submitResult=!1,r()})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ce({type:e,selectors:[["app-manage-entity"]],inputs:{manager:"manager",entity:"entity",title:"title",editableFields:"editableFields",confirmBtnTxt:"confirmBtnTxt",collapseStatus:"collapseStatus"},outputs:{refreshRequest:"refreshRequest",onConfirm:"onConfirm"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"card"],["class","card-header",4,"ngIf"],["class","card-content",4,"ngIf"],[1,"card-header"],[1,"row","justify-content-between"],[1,"col-auto"],[1,"card-title"],[1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-plus"],[1,"card-content"],[1,"card-body"],[1,"form","form-horizontal",3,"formGroup"],[1,"form-body"],["class","row",4,"ngFor","ngForOf"],["type","button","class","btn icon btn-light","data-bs-toggle","modal",4,"ngIf"],[1,"col-sm-auto","d-flex","justify-content-end"],["type","button",1,"btn","btn-light-secondary","me-1","mb-1",3,"click"],["type","button",1,"btn","btn-primary","me-1","mb-1",3,"disabled","click"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm",4,"ngIf"],[1,"row"],[1,"col-md-4"],["class","bi bi-1-square-fill","data-bs-toggle","tooltip","data-bs-placement","top",3,"title",4,"ngIf"],[1,"col-md-8","form-group"],[4,"ngIf","ngIfElse"],["otherTypes",""],["data-bs-toggle","tooltip","data-bs-placement","top",1,"bi","bi-1-square-fill",3,"title"],[1,"form-control",3,"type","name","placeholder","formControlName"],["input",""],["class","form-check form-switch",4,"ngIf"],[1,"form-check","form-switch"],["type","checkbox",1,"form-check-input",3,"change"],[1,"form-check-label"],[1,"form-group","mb-3"],["rows","5",1,"form-control",3,"formControlName"],[1,"form-check"],[1,"checkbox"],["type","checkbox",1,"form-check-input","cursor-pointer",3,"name","placeholder","formControlName"],[1,"input-group","mb-3"],[1,"input-group-text"],[1,"form-select",3,"formControlName"],["selected","","value",""],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],["type","button","data-bs-toggle","modal",1,"btn","icon","btn-light"],[1,"bi","bi-trash"],["title","delete-request",3,"target","centered","confirmBtn","confirmBtnTxt","borderless","onConfirm"],[3,"title",4,"ngIf"],[3,"title"]],template:function(t,r){1&t&&x(0,Z3,4,2,"ng-container",0),2&t&&_("ngIf",!!r.form&&!!r.editableFields)},dependencies:[mn,Ae,Dr,np,op,Fn,Ci,Mu,Cr,wr,Rn,Zn,Fu,oa,iD,ke]}),e})();function X3(e,n){if(1&e){const t=te();Se(0),h(1,"app-manage-entity",4),O("refreshRequest",function(){return V(t),B(S(2).loadEntities())}),p(),Ie()}if(2&e){const t=n.$implicit,r=S(2);f(1),_("entity",t)("editableFields",r.editableFields)("manager",r.manager)}}function J3(e,n){if(1&e){const t=te();Se(0),h(1,"app-filter",1),O("entitiesChange",function(o){return V(t),B(S().entities=o)}),p(),h(2,"app-manage-entity",2),O("refreshRequest",function(){return V(t),B(S().loadEntities())}),p(),x(3,X3,2,3,"ng-container",3),Ie()}if(2&e){const t=S();f(1),_("filterFields",t.filterFields)("entities",t.entities),f(1),_("editableFields",t.editableFields.concat(t.additionalFieldOnCreation))("manager",t.manager)("title","create-new")("confirmBtnTxt","confirm")("collapseStatus",!0),f(1),_("ngForOf",t.entities)}}let Nu=(()=>{class e{constructor(t){this.utilsService=t,this.editableFields=[],this.additionalFieldOnCreation=[]}ngOnInit(){this.loadEntities()}loadEntities(){this.manager?.all().then(t=>{t.subscribe({next:r=>{r&&(this.entities=r)}})})}}return e.\u0275fac=function(t){return new(t||e)(T(Hr))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-entities"]],inputs:{title:"title",editableFields:"editableFields",filterFields:"filterFields",entityTitleField:"entityTitleField",manager:"manager",additionalFieldOnCreation:"additionalFieldOnCreation"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"filterFields","entities","entitiesChange"],[3,"editableFields","manager","title","confirmBtnTxt","collapseStatus","refreshRequest"],[4,"ngFor","ngForOf"],[3,"entity","editableFields","manager","refreshRequest"]],template:function(t,r){1&t&&x(0,J3,4,8,"ng-container",0),2&t&&_("ngIf",!!r.title&&!!r.entities)},dependencies:[mn,Ae,Q3,oD]}),e})();const eV=function(){return["name"]};let tV=(()=>{class e{constructor(t){this.taskStatusService=t,this.fields=[{name:"name",type:"text",placeholder:"name",blueprintFormControl:new K("",[re.required]),unique:!0},{name:"description",type:"textarea",placeholder:"description",blueprintFormControl:new K("")},{name:"hex_color",type:"color",placeholder:"color",blueprintFormControl:new K("",[re.required])},{name:"final",type:"checkbox",placeholder:"final",blueprintFormControl:new K("",[re.required])}]}ngOnInit(){this.appendDefaultStatus()}appendDefaultStatus(){this.taskStatusService.all().then(t=>{t.subscribe({next:r=>{if(r){let o=r.map(i=>({value:i.id,text:i.name}));o.push({value:null,text:"null"}),this.fields.push({title:"prev-task-status",name:"default_prev_task_status_id",type:"selectbox",placeholder:"prev-task-status",blueprintFormControl:new K(null),selectOptions:o}),this.fields.push({title:"next-task-status",name:"default_next_task_status_id",type:"selectbox",placeholder:"next-task-status",blueprintFormControl:new K(null),selectOptions:o})}}})})}}return e.\u0275fac=function(t){return new(t||e)(T(lp))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-task-status"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&E(0,"app-manage-entities",0),2&t&&_("editableFields",r.fields)("title","manage-task-status")("filterFields",pt(4,eV))("manager",r.taskStatusService)},dependencies:[Nu]}),e})();const nV=function(){return["name"]};let rV=(()=>{class e{constructor(t){this.taskLabelService=t,this.fields=[{name:"name",type:"text",placeholder:"Name",blueprintFormControl:new K("",[re.required]),unique:!0},{name:"description",type:"textarea",placeholder:"Description",blueprintFormControl:new K("")},{name:"hex_color",type:"color",placeholder:"Color",blueprintFormControl:new K("",[re.required])}]}}return e.\u0275fac=function(t){return new(t||e)(T(tD))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-task-labels"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&E(0,"app-manage-entities",0),2&t&&_("editableFields",r.fields)("title","manage-task-labels")("filterFields",pt(4,nV))("manager",r.taskLabelService)},dependencies:[Nu]}),e})();const oV=function(){return["username","name","surname","email","phone"]};let iV=(()=>{class e{constructor(t,r,o){this.userService=t,this.roleSerivice=r,this.utilsService=o,this.fields=[{name:"username",type:"text",placeholder:"Username",blueprintFormControl:new K("",[re.required]),unique:!0},{name:"name",type:"text",placeholder:"Name",blueprintFormControl:new K(null)},{name:"surname",type:"text",placeholder:"Surname",blueprintFormControl:new K(null)},{name:"avatar_hex_color",type:"color",placeholder:"Color",blueprintFormControl:new K("",[re.required])},{name:"email",type:"email",placeholder:"Email",blueprintFormControl:new K("",[re.required,re.email]),unique:!0},{name:"phone",type:"text",placeholder:"Phone",blueprintFormControl:new K("")},{name:"password",type:"password",placeholder:"Password",blueprintFormControl:new K("",[re.required,this.utilsService.createPasswordStrengthValidator(8)])}]}ngOnInit(){this.appendRoleOptions()}appendRoleOptions(){this.roleSerivice.all().then(t=>{t.subscribe({next:r=>{r&&this.fields.push({title:"role",name:"role_id",type:"selectbox",placeholder:"role",blueprintFormControl:new K("",[re.required]),selectOptions:r.map(o=>({value:o.id,text:o.name}))})}})})}}return e.\u0275fac=function(t){return new(t||e)(T(ku),T(up),T(Hr))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-users"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&E(0,"app-manage-entities",0),2&t&&_("editableFields",r.fields)("title","manage-task-labels")("filterFields",pt(4,oV))("manager",r.userService)},dependencies:[Nu]}),e})();const sV=function(){return["name"]};let aV=(()=>{class e{constructor(t){this.roleService=t,this.fields=[{name:"name",type:"text",placeholder:"name",blueprintFormControl:new K("",[re.required]),unique:!0},{name:"permission_create",type:"checkbox",placeholder:"permission_create",blueprintFormControl:new K("",[re.required])},{name:"permission_read_all",type:"checkbox",placeholder:"permission_read_all",blueprintFormControl:new K("",[re.required])},{name:"permission_move_backward",type:"checkbox",placeholder:"permission_move_backward",blueprintFormControl:new K("",[re.required])},{name:"permission_move_forward",type:"checkbox",placeholder:"permission_move_forward",blueprintFormControl:new K("",[re.required])},{name:"permission_move",type:"checkbox",placeholder:"permission_move",blueprintFormControl:new K("",[re.required])},{name:"permission_edit_own",type:"checkbox",placeholder:"permission_edit_own",blueprintFormControl:new K("",[re.required])},{name:"permission_edit_all",type:"checkbox",placeholder:"permission_edit_all",blueprintFormControl:new K("",[re.required])},{name:"permission_change_role",type:"checkbox",placeholder:"permission_change_role",blueprintFormControl:new K("",[re.required])},{name:"permission_change_assignment",type:"checkbox",placeholder:"permission_change_assignment",blueprintFormControl:new K("",[re.required])},{name:"permission_delete_own",type:"checkbox",placeholder:"permission_delete_own",blueprintFormControl:new K("",[re.required])},{name:"permission_delete_all",type:"checkbox",placeholder:"permission_delete_all",blueprintFormControl:new K("",[re.required])},{name:"permission_manage_task_status",type:"checkbox",placeholder:"permission_manage_task_status",blueprintFormControl:new K("",[re.required])},{name:"permission_manage_task_labels",type:"checkbox",placeholder:"permission_manage_task_labels",blueprintFormControl:new K("",[re.required])},{name:"permission_manage_users",type:"checkbox",placeholder:"permission_manage_users",blueprintFormControl:new K("",[re.required])},{name:"permission_edit_task_deadline",type:"checkbox",placeholder:"permission_edit_task_deadline",blueprintFormControl:new K("",[re.required])},{name:"permission_manage_roles",type:"checkbox",placeholder:"permission_manage_roles",blueprintFormControl:new K("",[re.required])},{name:"permission_remove_work",type:"checkbox",placeholder:"permission_remove_work",blueprintFormControl:new K("",[re.required])}]}}return e.\u0275fac=function(t){return new(t||e)(T(up))},e.\u0275cmp=ce({type:e,selectors:[["app-manage-roles"]],decls:1,vars:5,consts:[[3,"editableFields","title","filterFields","manager"]],template:function(t,r){1&t&&E(0,"app-manage-entities",0),2&t&&_("editableFields",r.fields)("title","manage-task-labels")("filterFields",pt(4,sV))("manager",r.roleService)},dependencies:[Nu]}),e})(),Wr=(()=>{class e{constructor(t,r){this.authService=t,this.router=r}canActivate(){var t=this;return We(function*(){return new Promise((r,o)=>{t.authService.isLogged().then(i=>{i.subscribe({next:s=>{s||(t.router.navigate([Ct.authRequiredRedirectRoute]),o()),r(s)}})})})})()}}return e.\u0275fac=function(t){return new(t||e)($(on),$(gt))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ia=(()=>{class e{constructor(t,r){this.authService=t,this.router=r}canActivate(t){var r=this;return We(function*(){return new Promise((o,i)=>{"roleRequired"in t.data||o(!0);const s=t.data.roleRequired;r.authService.emitMeChangeSource.asObservable().subscribe({next:a=>{if(!a||!a.role)return r.router.navigate(["/home"]),void i();s in a.role&&(Boolean(a.role[s])?o(!0):(r.router.navigate(["/home"]),i()))}}),r.authService.refreshMe()})})()}}return e.\u0275fac=function(t){return new(t||e)($(on),$(gt))},e.\u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const lV=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:A3},{path:"dashboard",component:u3,canActivate:[Wr]},{path:"login",component:h3},{path:"test",component:x3,canActivate:[Wr]},{path:"my-profile",component:R3,canActivate:[Wr]},{path:"manage-task-status",component:tV,canActivate:[Wr,ia],data:{roleRequired:"permission_manage_task_status"}},{path:"manage-task-labels",component:rV,canActivate:[Wr,ia],data:{roleRequired:"permission_manage_task_labels"}},{path:"manage-users",component:iV,canActivate:[Wr,ia],data:{roleRequired:"permission_manage_users"}},{path:"manage-roles",component:aV,canActivate:[Wr,ia],data:{roleRequired:"permission_manage_roles"}},{path:"**",component:uP}];let uV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=Wt({providers:[Wr,ia],imports:[j1.forRoot(lV,{useHash:!0}),j1]}),e})(),cV=(()=>{class e{constructor(t,r){this.appService=t,this.utilsService=r,this.appName=Ct.appName}close(){this.appService.close().then(()=>{window.close()})}}return e.\u0275fac=function(t){return new(t||e)(T(cp),T(Hr))},e.\u0275cmp=ce({type:e,selectors:[["app-footer"]],decls:14,vars:7,consts:[[2,"margin","0 10vw 5vh 10vw"],[1,"footer","clearfix","mb-0","text-muted"],[1,"float-start"],[1,"float-end"],["type","button",1,"btn","icon","btn-light",3,"click"],[1,"bi","bi-arrow-clockwise"],["data-bs-toggle","modal","data-bs-target","#close-app-modal","type","button",1,"btn","icon","btn-light"],[1,"bi","bi-power"],[3,"centered","target","title","confirmBtn","confirmBtnTxt","borderless","onConfirm"]],template:function(t,r){1&t&&(h(0,"footer",0)(1,"div",1)(2,"div",2)(3,"p"),v(4,"2023 \xa9 "),h(5,"strong"),v(6),p(),v(7," developed by Nicola Ricciardi"),p()(),h(8,"div",3)(9,"button",4),O("click",function(){return r.utilsService.reload()}),E(10,"i",5),p(),h(11,"button",6),E(12,"i",7),p(),h(13,"app-dialog-modal",8),O("onConfirm",function(){return r.close()}),p()()()()),2&t&&(f(6),ri(r.appName),f(7),_("centered",!0)("target","close-app-modal")("title","close-app-request")("confirmBtn",!0)("confirmBtnTxt","confirm")("borderless",!0))},dependencies:[oa]}),e})();const dV=function(){return["/manage-task-status"]};function fV(e,n){1&e&&(h(0,"li",25)(1,"a",26),E(2,"i",32),h(3,"span"),v(4),w(5,"translate"),p()()()),2&e&&(Le("active",S().urlIncludes("manage-task-status")),f(1),_("routerLink",pt(6,dV)),f(3),b(" ",D(5,4,"manage-task-status")," "))}const hV=function(){return["/manage-task-labels"]};function pV(e,n){1&e&&(h(0,"li",25)(1,"a",26),E(2,"i",33),h(3,"span"),v(4),w(5,"translate"),p()()()),2&e&&(Le("active",S().urlIncludes("manage-task-labels")),f(1),_("routerLink",pt(6,hV)),f(3),b(" ",D(5,4,"manage-task-labels")," "))}const gV=function(){return["/manage-users"]};function mV(e,n){1&e&&(h(0,"li",25)(1,"a",26),E(2,"i",34),h(3,"span"),v(4),w(5,"translate"),p()()()),2&e&&(Le("active",S().urlIncludes("manage-users")),f(1),_("routerLink",pt(6,gV)),f(3),b(" ",D(5,4,"manage-users")," "))}const _V=function(){return["/manage-roles"]};function vV(e,n){1&e&&(h(0,"li",25)(1,"a",26),E(2,"i",35),h(3,"span"),v(4),w(5,"translate"),p()()()),2&e&&(Le("active",S().urlIncludes("manage-roles")),f(1),_("routerLink",pt(6,_V)),f(3),b(" ",D(5,4,"manage-roles")," "))}const yV=function(){return["/"]},bV=function(){return["/home"]},CV=function(){return["/dashboard"]};let wV=(()=>{class e{constructor(t,r){this.router=t,this.authService=r,this.appName=Ct.appName,this.authService.refreshMe()}urlIncludes(t){return this.router.url.includes(t)}}return e.\u0275fac=function(t){return new(t||e)(T(gt),T(on))},e.\u0275cmp=ce({type:e,selectors:[["app-sidebar"]],decls:53,vars:30,consts:[[1,"sidebar-wrapper","active"],[1,"sidebar-header","position-relative"],[1,"d-flex","justify-content-between","align-items-center"],[1,"logo"],["routerLinkActive","router-link-active",3,"routerLink"],[1,"text-capitalized"],[1,"theme-toggle","d-flex","gap-2","align-items-center","mt-2"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","aria-hidden","true","role","img","width","20","height","20","preserveAspectRatio","xMidYMid meet","viewBox","0 0 21 21",1,"iconify","iconify--system-uicons"],["fill","none","fill-rule","evenodd","stroke","currentColor","stroke-linecap","round","stroke-linejoin","round"],["d","M10.5 14.5c2.219 0 4-1.763 4-3.982a4.003 4.003 0 0 0-4-4.018c-2.219 0-4 1.781-4 4c0 2.219 1.781 4 4 4zM4.136 4.136L5.55 5.55m9.9 9.9l1.414 1.414M1.5 10.5h2m14 0h2M4.135 16.863L5.55 15.45m9.899-9.9l1.414-1.415M10.5 19.5v-2m0-14v-2","opacity",".3"],["transform","translate(-210 -1)"],["d","M220.5 2.5v2m6.5.5l-1.5 1.5"],["cx","220.5","cy","11.5","r","4"],["d","m214 5l1.5 1.5m5 14v-2m6.5-.5l-1.5-1.5M214 18l1.5-1.5m-4-5h2m14 0h2"],[1,"form-check","form-switch","fs-6"],["type","checkbox","id","toggle-dark",1,"form-check-input","me-0",2,"cursor","pointer"],[1,"form-check-label"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","aria-hidden","true","role","img","width","20","height","20","preserveAspectRatio","xMidYMid meet","viewBox","0 0 24 24",1,"iconify","iconify--mdi"],["fill","currentColor","d","m17.75 4.09l-2.53 1.94l.91 3.06l-2.63-1.81l-2.63 1.81l.91-3.06l-2.53-1.94L12.44 4l1.06-3l1.06 3l3.19.09m3.5 6.91l-1.64 1.25l.59 1.98l-1.7-1.17l-1.7 1.17l.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95l2.06.05m-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85c-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14c.4-.4.82-.76 1.27-1.08c.75-.53 1.93.36 1.85 1.19c-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82c-2.81 3.14-2.7 7.96.31 10.98c3.02 3.01 7.84 3.12 10.98.31Z"],[1,"sidebar-toggler","x"],["href","javascript:void(0)",1,"sidebar-hide","d-xl-none","d-block"],[1,"bi","bi-x","bi-middle"],[1,"sidebar-menu"],[1,"menu"],[1,"sidebar-title"],[1,"sidebar-item"],["routerLinkActive","router-link-active",1,"sidebar-link",3,"routerLink"],[1,"bi","bi-house-fill"],[1,"bi","bi-grid-fill"],["class","sidebar-item",3,"active",4,"ngIf"],["href","https://github.com/nricciardi/taskup","target","_blank",1,"sidebar-link"],[1,"bi","bi-life-preserver"],[1,"bi","bi-kanban-fill"],[1,"bi","bi-bookmarks-fill"],[1,"bi","bi-people-fill"],[1,"bi","bi-diagram-3-fill"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4)(5,"span",5),v(6),p()()(),h(7,"div",6),mc(),h(8,"svg",7)(9,"g",8),E(10,"path",9),h(11,"g",10),E(12,"path",11)(13,"circle",12)(14,"path",13),p()()(),_c(),h(15,"div",14),E(16,"input",15)(17,"label",16),p(),mc(),h(18,"svg",17),E(19,"path",18),p()(),_c(),h(20,"div",19)(21,"a",20),E(22,"i",21),p()()()(),h(23,"div",22)(24,"ul",23)(25,"li",24),v(26),w(27,"translate"),p(),h(28,"li",25)(29,"a",26),E(30,"i",27),h(31,"span"),v(32),w(33,"translate"),p()()(),h(34,"li",25)(35,"a",26),E(36,"i",28),h(37,"span"),v(38),w(39,"translate"),p()()(),x(40,fV,6,7,"li",29),x(41,pV,6,7,"li",29),x(42,mV,6,7,"li",29),x(43,vV,6,7,"li",29),h(44,"li",24),v(45),w(46,"translate"),p(),h(47,"li",25)(48,"a",30),E(49,"i",31),h(50,"span"),v(51),w(52,"translate"),p()()()()()()),2&t&&(f(4),_("routerLink",pt(27,yV)),f(2),b(" ",r.appName," "),f(20),b(" ",D(27,17,"menu")," "),f(2),Le("active",r.urlIncludes("home")),f(1),_("routerLink",pt(28,bV)),f(3),b(" ",D(33,19,"home")," "),f(2),Le("active",r.urlIncludes("dashboard")),f(1),_("routerLink",pt(29,CV)),f(3),b(" ",D(39,21,"dashboard")," "),f(2),_("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_task_status)),f(1),_("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_task_labels)),f(1),_("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_users)),f(1),_("ngIf",r.authService.loggedUser&&(null==r.authService.loggedUser.role?null:r.authService.loggedUser.role.permission_manage_roles)),f(2),b(" ",D(46,23,"raise-support")," "),f(6),b(" ",D(52,25,"documentation")," "))},dependencies:[Ae,Ys,Mh,ke]}),e})();const DV=["throwErrorLogoutModal"];function EV(e,n){1&e&&(h(0,"li",37)(1,"a",38),E(2,"i",39),p(),h(3,"ul",40)(4,"li")(5,"h6",41),v(6,"Mail"),p()(),h(7,"li")(8,"a",42),v(9,"No new mail"),p()()()())}function SV(e,n){1&e&&(h(0,"li",43)(1,"a",44),E(2,"i",45),h(3,"span",46),v(4,"7"),p()(),h(5,"ul",47)(6,"li",41)(7,"h6"),v(8,"Notifications"),p()(),h(9,"li",48)(10,"a",49)(11,"div",50),E(12,"i",51),p(),h(13,"div",52)(14,"p",53),v(15," Successfully check out "),p(),h(16,"p",54),v(17," Order ID #256 "),p()()()(),h(18,"li",48)(19,"a",49)(20,"div",55),E(21,"i",56),p(),h(22,"div",52)(23,"p",53),v(24," Homework submitted "),p(),h(25,"p",54),v(26," Algebra math homework "),p()()()(),h(27,"li")(28,"p",57)(29,"a",58),v(30,"See all notification"),p()()()()())}function IV(e,n){if(1&e&&E(0,"app-text-avatar",59),2&e){const t=S(2);_("color",t.userLogged.avatar_hex_color)("text",t.utilsService.getAvatarText(t.userLogged))("tooltip",t.userLogged.username)}}function TV(e,n){if(1&e&&(h(0,"li")(1,"h6",41),v(2),w(3,"translate"),p()()),2&e){const t=S(2);f(2),dl("",D(3,2,"hello"),", ",t.userLogged.name,"!")}}const MV=function(){return["/my-profile"]};function AV(e,n){if(1&e){const t=te();h(0,"div",17)(1,"ul",18),x(2,EV,10,0,"li",19),x(3,SV,31,0,"li",20),p(),h(4,"div",21)(5,"a",22)(6,"div",23)(7,"div",24)(8,"h6",25),v(9),p(),h(10,"p",26),v(11),p()(),h(12,"div",27),x(13,IV,1,3,"app-text-avatar",28),p()()(),h(14,"ul",29),x(15,TV,4,4,"li",30),h(16,"li")(17,"a",31),E(18,"i",32),v(19),w(20,"translate"),p()(),h(21,"li")(22,"button",33),O("click",function(){return V(t),B(S().appService.openSettings())}),E(23,"i",34),v(24),w(25,"translate"),p()(),h(26,"li"),E(27,"hr",35),p(),h(28,"li")(29,"button",33),O("click",function(){return V(t),B(S().logout())}),E(30,"i",36),v(31),w(32,"translate"),p()()()()()}if(2&e){const t=S();f(2),_("ngIf",!1),f(1),_("ngIf",!1),f(6),b(" ",t.userLogged.username," "),f(2),b(" ",null==t.userLogged.role?null:t.userLogged.role.name," "),f(2),_("ngIf",t.userLogged),f(2),_("ngIf",t.userLogged.name),f(2),_("routerLink",pt(16,MV)),f(2),b(" ",D(20,10,"my-profile")," "),f(5),b(" ",D(25,12,"settings")," "),f(7),b(" ",D(32,14,"logout")," ")}}const xV=function(){return["/login"]};function kV(e,n){1&e&&(h(0,"a",60),v(1),w(2,"translate"),p()),2&e&&(_("routerLink",pt(4,xV)),f(1),b(" ",D(2,2,"login")," "))}let FV=(()=>{class e{constructor(t,r,o,i){this.authService=t,this.router=r,this.utilsService=o,this.appService=i,this.userLogged=null}ngOnInit(){this.authService.observeMe().subscribe({next:t=>{this.userLogged=t},error:t=>{ht.logError(t)}}),this.authService.refreshMe()}logout(){this.authService.logout().then(t=>{this.router.navigate(["/login"])}).catch(t=>{this.throwErrorLogoutModal?.nativeElement.click()})}}return e.\u0275fac=function(t){return new(t||e)(T(on),T(gt),T(Hr),T(cp))},e.\u0275cmp=ce({type:e,selectors:[["app-header"]],viewQuery:function(t,r){if(1&t&&vl(DV,5),2&t){let o;ys(o=bs())&&(r.throwErrorLogoutModal=o.first)}},decls:21,vars:5,consts:[[1,"navbar","navbar-expand","navbar-light","navbar-top"],[1,"container-fluid"],["href","javascript:void(0)",1,"burger-btn","d-block"],[1,"bi","bi-justify","fs-3"],["type","button","data-bs-toggle","collapse","data-bs-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["class","collapse navbar-collapse","id","navbarSupportedContent",4,"ngIf","ngIfElse"],["loginBtn",""],["type","button","data-bs-toggle","modal","data-bs-target","#logoutErrorModal",1,"btn","btn-outline-danger",2,"display","none"],["throwErrorLogoutModal",""],["id","logoutErrorModal","tabindex","-1","role","dialog","aria-labelledby","myModalLabel120","aria-hidden","true",1,"modal","fade","text-left"],["role","document",1,"modal-dialog","modal-dialog-centered","modal-dialog-scrollable"],[1,"modal-content"],[1,"modal-header","bg-danger"],["id","myModalLabel120",1,"modal-title","white"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close"],["data-feather","x"],["id","navbarSupportedContent",1,"collapse","navbar-collapse"],[1,"navbar-nav","ms-auto","mb-lg-0"],["class","nav-item dropdown me-1",4,"ngIf"],["class","nav-item dropdown me-3",4,"ngIf"],[1,"dropdown"],["href","#","data-bs-toggle","dropdown","aria-expanded","false"],[1,"user-menu","d-flex"],[1,"user-name","text-end","me-3"],[1,"mb-0","text-gray-600"],[1,"mb-0","text-sm","text-gray-600"],[1,"user-img","d-flex","align-items-center"],["class","cursor-arrow",3,"color","text","tooltip",4,"ngIf"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end",2,"min-width","11rem"],[4,"ngIf"],["routerLinkActive","router-link-active",1,"dropdown-item",3,"routerLink"],[1,"icon-mid","bi","bi-person","me-2"],[1,"dropdown-item",3,"click"],[1,"icon-mid","bi","bi-gear","me-2"],[1,"dropdown-divider"],[1,"icon-mid","bi","bi-box-arrow-left","me-2"],[1,"nav-item","dropdown","me-1"],["href","#","data-bs-toggle","dropdown","aria-expanded","false",1,"nav-link","active","dropdown-toggle","text-gray-600"],[1,"bi","bi-envelope","bi-sub","fs-4"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end"],[1,"dropdown-header"],["href","#",1,"dropdown-item"],[1,"nav-item","dropdown","me-3"],["href","#","data-bs-toggle","dropdown","data-bs-display","static","aria-expanded","false",1,"nav-link","active","dropdown-toggle","text-gray-600"],[1,"bi","bi-bell","bi-sub","fs-4"],[1,"badge","badge-notification","bg-danger"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-end","notification-dropdown"],[1,"dropdown-item","notification-item"],["href","#",1,"d-flex","align-items-center"],[1,"notification-icon","bg-primary"],[1,"bi","bi-cart-check"],[1,"notification-text","ms-4"],[1,"notification-title","font-bold"],[1,"notification-subtitle","font-thin","text-sm"],[1,"notification-icon","bg-success"],[1,"bi","bi-file-earmark-check"],[1,"text-center","py-2","mb-0"],["href","#"],[1,"cursor-arrow",3,"color","text","tooltip"],["routerLinkActive","router-link-active",1,"btn","btn-outline-primary",3,"routerLink"]],template:function(t,r){if(1&t&&(h(0,"header")(1,"nav",0)(2,"div",1)(3,"a",2),E(4,"i",3),p(),h(5,"button",4),E(6,"span",5),p(),x(7,AV,33,17,"div",6),x(8,kV,3,5,"ng-template",null,7,tn),p()()(),E(10,"button",8,9),h(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",13)(16,"h5",14),v(17),w(18,"translate"),p(),h(19,"button",15),E(20,"i",16),p()()()()()),2&t){const o=Ue(9);f(7),_("ngIf",r.userLogged)("ngIfElse",o),f(10),b(" ",D(18,3,"logout-error")," ")}},dependencies:[Ae,Ys,Mh,xu,ke]}),e})(),RV=(()=>{class e{constructor(t){this.translate=t,this.title="frontend",t.addLangs(["en","it"]),this.setBrowserDefaultLanguage()}switchLanguage(t){this.translate.use(t)}setBrowserDefaultLanguage(){const t=this.translate.getBrowserLang();t&&this.translate.setDefaultLang(t)}}return e.\u0275fac=function(t){return new(t||e)(T(_u))},e.\u0275cmp=ce({type:e,selectors:[["app-root"]],decls:8,vars:0,consts:[["id","app"],["id","sidebar"],["id","main",1,"layout-navbar","navbar-fixed"],["id","main-content"]],template:function(t,r){1&t&&(h(0,"div",0)(1,"div",1),E(2,"app-sidebar"),p(),h(3,"div",2),E(4,"app-header"),h(5,"div",3),E(6,"router-outlet"),p(),E(7,"app-footer"),p()())},dependencies:[vh,cV,wV,FV]}),e})();class NV{constructor(n,t="/assets/i18n/",r=".json"){this.http=n,this.prefix=t,this.suffix=r}getTranslation(n){return this.http.get(`${this.prefix}${n}${this.suffix}`)}}let PV=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=cn({type:e,bootstrap:[RV]}),e.\u0275inj=Wt({imports:[QF,uV,T2,aO,lP.forRoot({defaultLanguage:"en",useDefaultLang:!0,loader:{provide:Qs,useFactory:n=>new NV(n,"./assets/i18n/",".json"),deps:[yC]}})]}),e})();ZF().bootstrapModule(PV).catch(e=>console.error(e))},321:()=>{const ye=":";class tt extends Error{constructor(C){super(`No translation found for ${xi(C)}.`),this.parsedMessage=C,this.type="MissingTranslationError"}}const ma=function(I,...C){if(ma.translate){const N=ma.translate(I,C);I=N[0],C=N[1]}let A=zu(I[0],I.raw[0]);for(let N=1;Ntypeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)().$localize=ma}},ye=>{var Er=Sr=>ye(ye.s=Sr);Er(321),Er(218)}]); \ No newline at end of file diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index 1dcfde7f..a957858a 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -76,7 +76,7 @@ const routes: Routes = [ ]; @NgModule({ - imports: [RouterModule.forRoot(routes)], + imports: [RouterModule.forRoot(routes, { useHash: true })], exports: [RouterModule], providers: [AuthGuardService, RoleGuardService] }) diff --git a/lib/app/app.py b/lib/app/app.py index a30f08cf..3cc0fe72 100644 --- a/lib/app/app.py +++ b/lib/app/app.py @@ -1,5 +1,3 @@ -import os - import eel from typing import List from lib.app.service.auth import AuthService @@ -16,7 +14,7 @@ class AppManager: VERSION: str = "1.0.0" - SHUTDOWN_DELAY = 5 + SHUTDOWN_DELAY = 500 SHUTDOWN_DELAY_IN_DEBUG_MODE = 600 def __init__(self):