"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[792],{260:()=>{function Gi(e,n,t,r,o,i,s){try{var a=e[i](s),l=a.value}catch(c){return void t(c)}a.done?n(l):Promise.resolve(l).then(r,o)}function Do(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var i=e.apply(n,t);function s(l){Gi(i,r,o,s,a,"next",l)}function a(l){Gi(i,r,o,s,a,"throw",l)}s(void 0)})}}let Le=null,ja=1;const Wr=Symbol("SIGNAL");function X(e){const n=Le;return Le=e,n}function Yg(e){if((!Wi(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==ja)){if(!e.producerMustRecompute(e)&&!xu(e))return e.dirty=!1,void(e.lastCleanEpoch=ja);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=ja}}function xu(e){wo(e);for(let n=0;n0}function wo(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let im=null;function Ie(e){return"function"==typeof e}function Lu(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 Vu=Lu(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 ju(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Nt{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(Ie(r))try{r()}catch(i){n=i instanceof Vu?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{um(i)}catch(s){n=n??[],s instanceof Vu?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Vu(n)}}add(n){var t;if(n&&n!==this)if(this.closed)um(n);else{if(n instanceof Nt){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)&&ju(t,n)}remove(n){const{_finalizers:t}=this;t&&ju(t,n),n instanceof Nt&&n._removeParent(this)}}Nt.EMPTY=(()=>{const e=new Nt;return e.closed=!0,e})();const lm=Nt.EMPTY;function cm(e){return e instanceof Nt||e&&"closed"in e&&Ie(e.remove)&&Ie(e.add)&&Ie(e.unsubscribe)}function um(e){Ie(e)?e():e.unsubscribe()}const Zr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},$a={setTimeout(e,n,...t){const{delegate:r}=$a;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=$a;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function dm(e){$a.setTimeout(()=>{const{onUnhandledError:n}=Zr;if(!n)throw e;n(e)})}function Uu(){}const rI=$u("C",void 0,void 0);function $u(e,n,t){return{kind:e,value:n,error:t}}let Qr=null;function Ba(e){if(Zr.useDeprecatedSynchronousErrorHandling){const n=!Qr;if(n&&(Qr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Qr;if(Qr=null,t)throw r}}else e()}class Bu extends Nt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,cm(n)&&n.add(this)):this.destination=uI}static create(n,t,r){return new zu(n,t,r)}next(n){this.isStopped?Gu(function iI(e){return $u("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Gu(function oI(e){return $u("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Gu(rI,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 aI=Function.prototype.bind;function Hu(e,n){return aI.call(e,n)}class lI{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Ha(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Ha(r)}else Ha(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Ha(t)}}}class zu extends Bu{constructor(n,t,r){let o;if(super(),Ie(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&Zr.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Hu(n.next,i),error:n.error&&Hu(n.error,i),complete:n.complete&&Hu(n.complete,i)}):o=n}this.destination=new lI(o)}}function Ha(e){Zr.useDeprecatedSynchronousErrorHandling?function sI(e){Zr.useDeprecatedSynchronousErrorHandling&&Qr&&(Qr.errorThrown=!0,Qr.error=e)}(e):dm(e)}function Gu(e,n){const{onStoppedNotification:t}=Zr;t&&$a.setTimeout(()=>t(e,n))}const uI={closed:!0,next:Uu,error:function cI(e){throw e},complete:Uu},qu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Yr(e){return e}function hm(e){return 0===e.length?Yr:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}let Ge=(()=>{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 fI(e){return e&&e instanceof Bu||function hI(e){return e&&Ie(e.next)&&Ie(e.error)&&Ie(e.complete)}(e)&&cm(e)}(t)?t:new zu(t,r,o);return Ba(()=>{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=fm(r))((o,i)=>{const s=new zu({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)}[qu](){return this}pipe(...t){return hm(t)(this)}toPromise(t){return new(t=fm(t))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function fm(e){var n;return null!==(n=e??Zr.Promise)&&void 0!==n?n:Promise}const pI=Lu(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Zt=(()=>{class e extends Ge{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new pm(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new pI}next(t){Ba(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Ba(()=>{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(){Ba(()=>{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?lm:(this.currentObservers=null,i.push(t),new Nt(()=>{this.currentObservers=null,ju(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new Ge;return t.source=this,t}}return e.create=(n,t)=>new pm(n,t),e})();class pm 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:lm}}class Qt 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)}}function gm(e){return Ie(e?.lift)}function st(e){return n=>{if(gm(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 Qe(e,n,t,r,o){return new gI(e,n,t,r,o)}class gI extends Bu{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 st((t,r)=>{let o=0;t.subscribe(Qe(r,i=>{r.next(e.call(n,i,o++))}))})}const mm="https://g.co/ng/security#xss";class I extends Error{constructor(n,t){super(function Mo(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function Kn(e){return{toString:e}.toString()}const Eo="__parameters__";function So(e,n,t){return Kn(()=>{const r=function Wu(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,c,u){const d=l.hasOwnProperty(Eo)?l[Eo]:Object.defineProperty(l,Eo,{value:[]})[Eo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const de=globalThis;function fe(e){for(let n in e)if(e[n]===fe)return n;throw Error("Could not find renamed property on target object.")}function mI(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Ye(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ye).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 Zu(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const yI=fe({__forward_ref__:fe});function _e(e){return e.__forward_ref__=_e,e.toString=function(){return Ye(this())},e}function V(e){return Ga(e)?e():e}function Ga(e){return"function"==typeof e&&e.hasOwnProperty(yI)&&e.__forward_ref__===_e}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function nn(e){return{providers:e.providers||[],imports:e.imports||[]}}function qa(e){return _m(e,Za)||_m(e,Dm)}function _m(e,n){return e.hasOwnProperty(n)?e[n]:null}function Wa(e){return e&&(e.hasOwnProperty(Qu)||e.hasOwnProperty(MI))?e[Qu]:null}const Za=fe({\u0275prov:fe}),Qu=fe({\u0275inj:fe}),Dm=fe({ngInjectableDef:fe}),MI=fe({ngInjectorDef:fe});class k{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=O({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ed(e){return e&&!!e.\u0275providers}const Zi=fe({\u0275cmp:fe}),td=fe({\u0275dir:fe}),nd=fe({\u0275pipe:fe}),Mm=fe({\u0275mod:fe}),Jn=fe({\u0275fac:fe}),Qi=fe({__NG_ELEMENT_ID__:fe}),bm=fe({__NG_ENV_ID__:fe});function G(e){return"string"==typeof e?e:null==e?"":String(e)}function rd(e,n){throw new I(-201,!1)}var ne=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ne||{});let od;function Em(){return od}function At(e){const n=od;return od=e,n}function Im(e,n,t){const r=qa(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&ne.Optional?null:void 0!==n?n:void rd()}const Yi={},id="__NG_DI_FLAG__",Qa="ngTempTokenPath",NI=/\n/gm,Sm="__source";let To;function vr(e){const n=To;return To=e,n}function RI(e,n=ne.Default){if(void 0===To)throw new I(-203,!1);return null===To?Im(e,void 0,n):To.get(e,n&ne.Optional?null:void 0,n)}function R(e,n=ne.Default){return(Em()||RI)(V(e),n)}function E(e,n=ne.Default){return R(e,Ya(n))}function Ya(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function sd(e){const n=[];for(let t=0;tArray.isArray(t)?No(t,n):n(t))}function Nm(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Ja(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Vt(e,n,t){let r=Ao(e,n);return r>=0?e[1|r]=t:(r=~r,function Am(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 ld(e,n){const t=Ao(e,n);if(t>=0)return e[1|t]}function Ao(e,n){return function km(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<n){s=i-1;break}}}for(;i-1){let i;for(;++oi?"":o[u+1].toLowerCase(),2&r&&c!==d){if(on(r))return!1;s=!0}}}}else{if(!s&&!on(r)&&!on(l))return!1;if(s&&on(l))continue;s=!1,r=l|1&r}}return on(r)||s}function on(e){return!(1&e)}function zI(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&&!on(s)&&(n+=Vm(i,o),o=""),r=s,i=i||!on(r);t++}return""!==o&&(n+=Vm(i,o)),n}function rt(e){return Kn(()=>{const n=Um(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===nl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||rn.Emulated,styles:e.styles||se,_:null,schemas:e.schemas||null,tView:null,id:""};$m(t);const r=e.dependencies;return t.directiveDefs=rl(r,!1),t.pipeDefs=rl(r,!0),t.id=function tS(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of t)n=Math.imul(31,n)+o.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function KI(e){return J(e)||Xe(e)}function JI(e){return null!==e}function bn(e){return Kn(()=>({type:e.type,bootstrap:e.bootstrap||se,declarations:e.declarations||se,imports:e.imports||se,exports:e.exports||se,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function jm(e,n){if(null==e)return Mn;const t={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let i,s,a=Se.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),n?(t[i]=a!==Se.None?[r,a]:r,n[i]=s):t[i]=r}return t}function z(e){return Kn(()=>{const n=Um(e);return $m(n),n})}function ct(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 J(e){return e[Zi]||null}function Xe(e){return e[td]||null}function at(e){return e[nd]||null}function ut(e,n){const t=e[Mm]||null;if(!t&&!0===n)throw new Error(`Type ${Ye(e)} does not have '\u0275mod' property.`);return t}function Um(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,inputTransforms:null,inputConfig:e.inputs||Mn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||se,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:jm(e.inputs,n),outputs:jm(e.outputs),debugInfo:null}}function $m(e){e.features?.forEach(n=>n(e))}function rl(e,n){if(!e)return null;const t=n?at:KI;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(JI)}function nS(...e){return{\u0275providers:hd(0,e),\u0275fromNgModule:!0}}function hd(e,...n){const t=[],r=new Set;let o;const i=s=>{t.push(s)};return No(n,s=>{const a=s;ol(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&Bm(o,i),t}function Bm(e,n){for(let t=0;t{n(i,r)})}}function ol(e,n,t,r){if(!(e=V(e)))return!1;let o=null,i=Wa(e);const s=!i&&J(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Wa(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 c of l)ol(c,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let c;r.add(o);try{No(i.imports,u=>{ol(u,n,t,r)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Bm(c,n)}if(!a){const c=Xr(o)||(()=>new o);n({provide:o,useFactory:c,deps:se},o),n({provide:cd,useValue:o,multi:!0},o),n({provide:Kr,useValue:()=>R(o),multi:!0},o)}const l=i.providers;if(null!=l&&!a){const c=e;fd(l,u=>{n(u,c)})}}}return o!==e&&void 0!==e.providers}function fd(e,n){for(let t of e)ed(t)&&(t=t.\u0275providers),Array.isArray(t)?fd(t,n):n(t)}const rS=fe({provide:String,useValue:fe});function pd(e){return null!==e&&"object"==typeof e&&rS in e}function Jr(e){return"function"==typeof e}const gd=new k(""),il={},iS={};let md;function sl(){return void 0===md&&(md=new tl),md}class _t{}class ko extends _t{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,vd(n,s=>this.processProvider(s)),this.records.set(Rm,Ro(void 0,this)),o.has("environment")&&this.records.set(_t,Ro(void 0,this));const i=this.records.get(gd);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(cd,se,ne.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=X(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),X(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=vr(this),r=At(void 0);try{return n()}finally{vr(t),At(r)}}get(n,t=Yi,r=ne.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(bm))return n[bm](this);r=Ya(r);const i=vr(this),s=At(void 0);try{if(!(r&ne.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function uS(e){return"function"==typeof e||"object"==typeof e&&e instanceof k}(n)&&qa(n);l=c&&this.injectableDefInScope(c)?Ro(yd(n),il):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(r&ne.Self?sl():this.parent).get(n,t=r&ne.Optional&&t===Yi?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Qa]=a[Qa]||[]).unshift(Ye(n)),i)throw a;return function PI(e,n,t,r){const o=e[Qa];throw n[Sm]&&o.unshift(n[Sm]),e.message=function xI(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Ye(n);if(Array.isArray(n))o=n.map(Ye).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):Ye(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(NI,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[Qa]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{At(s),vr(i)}}resolveInjectorInitializers(){const n=X(null),t=vr(this),r=At(void 0);try{const i=this.get(Kr,se,ne.Self);for(const s of i)s()}finally{vr(t),At(r),X(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Ye(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(n){let t=Jr(n=V(n))?n:V(n&&n.provide);const r=function aS(e){return pd(e)?Ro(void 0,e.useValue):Ro(Gm(e),il)}(n);if(!Jr(n)&&!0===n.multi){let o=this.records.get(t);o||(o=Ro(void 0,il,!0),o.factory=()=>sd(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=X(null);try{return t.value===il&&(t.value=iS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function cS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{X(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=V(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function yd(e){const n=qa(e),t=null!==n?n.factory:Xr(e);if(null!==t)return t;if(e instanceof k)throw new I(204,!1);if(e instanceof Function)return function sS(e){if(e.length>0)throw new I(204,!1);const t=function wI(e){return e&&(e[Za]||e[Dm])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new I(204,!1)}function Gm(e,n,t){let r;if(Jr(e)){const o=V(e);return Xr(o)||yd(o)}if(pd(e))r=()=>V(e.useValue);else if(function zm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...sd(e.deps||[]));else if(function Hm(e){return!(!e||!e.useExisting)}(e))r=()=>R(V(e.useExisting));else{const o=V(e&&(e.useClass||e.provide));if(!function lS(e){return!!e.deps}(e))return Xr(o)||yd(o);r=()=>new o(...sd(e.deps))}return r}function Ro(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function vd(e,n){for(const t of e)Array.isArray(t)?vd(t,n):t&&ed(t)?vd(t.\u0275providers,n):n(t)}function En(e,n){e instanceof ko&&e.assertNotDestroyed();const r=vr(e),o=At(void 0);try{return n()}finally{vr(r),At(o)}}function qm(){return void 0!==Em()||null!=function kI(){return To}()}const Te=0,T=1,P=2,Ve=3,sn=4,dt=5,jt=6,Po=7,De=8,qe=9,an=10,j=11,ts=12,Zm=13,xo=14,ke=15,ns=16,Fo=17,er=18,rs=19,Qm=20,_r=21,cl=22,eo=23,q=25,_d=1,In=7,Lo=9,je=10;var Dd=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Dd||{});function ht(e){return Array.isArray(e)&&"object"==typeof e[_d]}function ft(e){return Array.isArray(e)&&!0===e[_d]}function wd(e){return!!(4&e.flags)}function to(e){return e.componentOffset>-1}function dl(e){return!(1&~e.flags)}function ln(e){return!!e.template}function Md(e){return!!(512&e[P])}class MS{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Jm(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function Yt(){return ey}function ey(e){return e.type.prototype.ngOnChanges&&(e.setInput=ES),bS}function bS(){const e=ny(this),n=e?.current;if(n){const t=e.previous;if(t===Mn)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function ES(e,n,t,r,o){const i=this.declaredInputs[r],s=ny(e)||function IS(e,n){return e[ty]=n}(e,{previous:Mn,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new MS(c&&c.currentValue,t,l===Mn),Jm(e,n,o,t)}Yt.ngInherit=!0;const ty="__ngSimpleChanges__";function ny(e){return e[ty]||null}const Sn=function(e,n,t){};let iy=!1;function me(e){for(;Array.isArray(e);)e=e[Te];return e}function is(e,n){return me(n[e])}function Dt(e,n){return me(n[e.index])}function ss(e,n){return e.data[n]}function Vo(e,n){return e[n]}function Ut(e,n){const t=n[e];return ht(t)?t:t[Te]}function Td(e){return!(128&~e[P])}function Tn(e,n){return null==n?null:e[n]}function sy(e){e[Fo]=0}function RS(e){1024&e[P]||(e[P]|=1024,Td(e)&&as(e))}function Nd(e){return!!(9216&e[P]||e[eo]?.dirty)}function Ad(e){e[an].changeDetectionScheduler?.notify(1),Nd(e)?as(e):64&e[P]&&(function TS(){return iy}()?(e[P]|=1024,as(e)):e[an].changeDetectionScheduler?.notify())}function as(e){e[an].changeDetectionScheduler?.notify();let n=no(e);for(;null!==n&&!(8192&n[P])&&(n[P]|=8192,Td(n));)n=no(n)}function hl(e,n){if(!(256&~e[P]))throw new I(911,!1);null===e[_r]&&(e[_r]=[]),e[_r].push(n)}function no(e){const n=e[Ve];return ft(n)?n[Ve]:n}const U={lFrame:my(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function cy(){return U.bindingsEnabled}function M(){return U.lFrame.lView}function re(){return U.lFrame.tView}function Oe(e){return U.lFrame.contextLView=e,e[De]}function Pe(e){return U.lFrame.contextLView=null,e}function pe(){let e=uy();for(;null!==e&&64===e.type;)e=e.parent;return e}function uy(){return U.lFrame.currentTNode}function Nn(e,n){const t=U.lFrame;t.currentTNode=e,t.isParent=n}function Rd(){return U.lFrame.isParent}function wt(){const e=U.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function cn(){return U.lFrame.bindingIndex++}function nr(e){const n=U.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function HS(e,n){const t=U.lFrame;t.bindingIndex=t.bindingRootIndex=e,Pd(n)}function Pd(e){U.lFrame.currentDirectiveIndex=e}function Fd(){return U.lFrame.currentQueryIndex}function fl(e){U.lFrame.currentQueryIndex=e}function GS(e){const n=e[T];return 2===n.type?n.declTNode:1===n.type?e[dt]:null}function py(e,n,t){if(t&ne.SkipSelf){let o=n,i=e;for(;!(o=o.parent,null!==o||t&ne.Host||(o=GS(i),null===o||(i=i[xo],10&o.type))););if(null===o)return!1;n=o,e=i}const r=U.lFrame=gy();return r.currentTNode=n,r.lView=e,!0}function Ld(e){const n=gy(),t=e[T];U.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function gy(){const e=U.lFrame,n=null===e?null:e.child;return null===n?my(e):n}function my(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 yy(){const e=U.lFrame;return U.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const vy=yy;function Vd(){const e=yy();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 pt(){return U.lFrame.selectedIndex}function ro(e){U.lFrame.selectedIndex=e}function we(){const e=U.lFrame;return ss(e.tView,e.selectedIndex)}let _y=!0;function cs(){return _y}function An(e){_y=e}function pl(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[l]<0&&(e[Fo]+=65536),(a>14>16&&(3&e[P])===n&&(e[P]+=16384,wy(a,i)):wy(a,i)}const Uo=-1;class us{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function $d(e){return e!==Uo}function ds(e){return 32767&e}function hs(e,n){let t=function rT(e){return e>>16}(e),r=n;for(;t>0;)r=r[xo],t--;return r}let Bd=!0;function yl(e){const n=Bd;return Bd=e,n}const My=255,by=5;let oT=0;const kn={};function vl(e,n){const t=Ey(e,n);if(-1!==t)return t;const r=n[T];r.firstCreatePass&&(e.injectorIndex=n.length,Hd(r.data,e),Hd(n,null),Hd(r.blueprint,null));const o=Cl(e,n),i=e.injectorIndex;if($d(o)){const s=ds(o),a=hs(o,n),l=a[T].data;for(let c=0;c<8;c++)n[i+c]=a[s+c]|l[s+c]}return n[i+8]=o,i}function Hd(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Ey(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Cl(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=Ry(o),null===r)return Uo;if(t++,o=o[xo],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Uo}function zd(e,n,t){!function iT(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Qi)&&(r=t[Qi]),null==r&&(r=t[Qi]=oT++);const o=r&My;n.data[e+(o>>by)]|=1<=0?n&My:cT:n}(t);if("function"==typeof i){if(!py(n,e,r))return r&ne.Host?Iy(o,0,r):Sy(n,t,r,o);try{let s;if(s=i(r),null!=s||r&ne.Optional)return s;rd()}finally{vy()}}else if("number"==typeof i){let s=null,a=Ey(e,n),l=Uo,c=r&ne.Host?n[ke][dt]:null;for((-1===a||r&ne.SkipSelf)&&(l=-1===a?Cl(e,n):n[a+8],l!==Uo&&ky(r,!1)?(s=n[T],a=ds(l),n=hs(l,n)):a=-1);-1!==a;){const u=n[T];if(Ay(i,a,u.data)){const d=aT(a,n,t,s,r,c);if(d!==kn)return d}l=n[a+8],l!==Uo&&ky(r,n[T].data[a+8]===c)&&Ay(i,a,n)?(s=u,a=ds(l),n=hs(l,n)):a=-1}}return o}function aT(e,n,t,r,o,i){const s=n[T],a=s.data[e+8],u=_l(a,s,t,null==r?to(a)&&Bd:r!=s&&!!(3&a.type),o&ne.Host&&i===a);return null!==u?oo(n,s,u,a):kn}function _l(e,n,t,r,o){const i=e.providerIndexes,s=n.data,a=1048575&i,l=e.directiveStart,u=i>>20,h=o?a+u:e.directiveEnd;for(let f=r?a:a+u;f=l&&m.type===t)return f}if(o){const f=s[l];if(f&&ln(f)&&f.type===t)return l}return null}function oo(e,n,t,r){let o=e[t];const i=n.data;if(function JS(e){return e instanceof us}(o)){const s=o;s.resolving&&function II(e,n){throw n&&n.join(" > "),new I(-200,e)}(function ae(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():G(e)}(i[t]));const a=yl(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?At(s.injectImpl):null;py(e,r,ne.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&function XS(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=ey(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}o&&(t.preOrderHooks??=[]).push(0-e,o),i&&((t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i))}(t,i[t],n)}finally{null!==c&&At(c),yl(a),s.resolving=!1,vy()}}return o}function Ay(e,n,t){return!!(t[n+(e>>by)]&1<{const n=e.prototype.constructor,t=n[Jn]||Gd(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[Jn]||Gd(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Gd(e){return Ga(e)?()=>{const n=Gd(V(e));return n&&n()}:Xr(e)}function Ry(e){const n=e[T],t=n.type;return 2===t?n.declTNode:1===t?e[dt]:null}function Ly(e,n=null,t=null,r){const o=Vy(e,n,t,r);return o.resolveInjectorInitializers(),o}function Vy(e,n=null,t=null,r,o=new Set){const i=[t||se,nS(e)];return r=r||("object"==typeof e?void 0:Ye(e)),new ko(i,n||sl(),r||null,o)}let Mt=(()=>{class e{static{this.THROW_IF_NOT_FOUND=Yi}static{this.NULL=new tl}static create(t,r){if(Array.isArray(t))return Ly({name:""},r,t,"");{const o=t.name??"";return Ly({name:o},t.parent,t.providers,o)}}static{this.\u0275prov=O({token:e,providedIn:"any",factory:()=>R(Rm)})}static{this.__NG_ELEMENT_ID__=-1}}return e})();function Wd(e){return e.ngOriginalError}class Rn{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&&Wd(n);for(;t&&Wd(t);)t=Wd(t);return t||null}}const Uy=new k("",{providedIn:"root",factory:()=>E(Rn).handleError.bind(void 0)});let Ho=(()=>{class e{static{this.__NG_ELEMENT_ID__=CT}static{this.__NG_ENV_ID__=t=>t}}return e})();class vT extends Ho{constructor(n){super(),this._lView=n}onDestroy(n){return hl(this._lView,n),()=>function kd(e,n){if(null===e[_r])return;const t=e[_r].indexOf(n);-1!==t&&e[_r].splice(t,1)}(this._lView,n)}}function CT(){return new vT(M())}function _T(){return zo(pe(),M())}function zo(e,n){return new $t(Dt(e,n))}let $t=(()=>{class e{constructor(t){this.nativeElement=t}static{this.__NG_ELEMENT_ID__=_T}}return e})();function By(e){return e instanceof $t?e.nativeElement:e}function Zd(e){return n=>{setTimeout(e,void 0,n)}}const xe=class DT extends Zt{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,qm()&&(this.destroyRef=E(Ho,{optional:!0})??void 0)}emit(n){const t=X(null);try{super.next(n)}finally{X(t)}}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=Zd(i),o&&(o=Zd(o)),s&&(s=Zd(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof Nt&&n.add(a),a}};function wT(){return this._results[Symbol.iterator]()}class Qd{get changes(){return this._changes??=new xe}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=Qd.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=wT)}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){this.dirty=!1;const r=function kt(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function jI(e,n,t){if(e.length!==n.length)return!1;for(let r=0;rzT}),zT="ng",lv=new k(""),wr=new k("",{providedIn:"platform",factory:()=>"unknown"}),cv=new k("",{providedIn:"root",factory:()=>Dr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let uv=()=>null;function ah(e,n,t=!1){return uv(e,n,t)}const gv=new k("",{providedIn:"root",factory:()=>!1});let Rl,Ol;function Wo(e){return function dh(){if(void 0===Rl&&(Rl=null,de.trustedTypes))try{Rl=de.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Rl}()?.createHTML(e)||e}function hh(){if(void 0===Ol&&(Ol=null,de.trustedTypes))try{Ol=de.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ol}function yv(e){return hh()?.createHTML(e)||e}function Cv(e){return hh()?.createScriptURL(e)||e}class _v{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${mm})`}}function Mr(e){return e instanceof _v?e.changingThisBreaksApplicationSecurity:e}function _s(e,n){const t=function cN(e){return e instanceof _v&&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 ${mm})`)}return t===n}class uN{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(Wo(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch{return null}}}class dN{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Wo(n),t}}const fN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function fh(e){return(e=String(e)).match(fN)?e:"unsafe:"+e}function rr(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Ds(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const wv=rr("area,br,col,hr,img,wbr"),Mv=rr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bv=rr("rp,rt"),ph=Ds(wv,Ds(Mv,rr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ds(bv,rr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ds(bv,Mv)),gh=rr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ev=Ds(gh,rr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),rr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),pN=rr("script,style,template");class gN{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0,o=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)o.push(t),t=vN(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=yN(t);if(i){t=i;break}t=o.pop()}return this.buf.join("")}startElement(n){const t=Iv(n).toLowerCase();if(!ph.hasOwnProperty(t))return this.sanitizedSomething=!0,!pN.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let o=0;o"),!0}endElement(n){const t=Iv(n).toLowerCase();ph.hasOwnProperty(t)&&!wv.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(Tv(n))}}function yN(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw Sv(n);return n}function vN(e){const n=e.firstChild;if(n&&function mN(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw Sv(n);return n}function Iv(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function Sv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const CN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_N=/([^\#-~ |!])/g;function Tv(e){return e.replace(/&/g,"&").replace(CN,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(_N,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Pl;function mh(e){return"content"in e&&function wN(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Zo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Zo||{});function yh(e){const n=ws();return n?yv(n.sanitize(Zo.HTML,e)||""):_s(e,"HTML")?yv(Mr(e)):function DN(e,n){let t=null;try{Pl=Pl||function Dv(e){const n=new dN(e);return function hN(){try{return!!(new window.DOMParser).parseFromString(Wo(""),"text/html")}catch{return!1}}()?new uN(n):n}(e);let r=n?String(n):"";t=Pl.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=t.innerHTML,t=Pl.getInertBodyElement(r)}while(r!==i);return Wo((new gN).sanitizeChildren(mh(t)||t))}finally{if(t){const r=mh(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}(Dr(),G(e))}function vh(e){const n=ws();return n?n.sanitize(Zo.URL,e)||"":_s(e,"URL")?Mr(e):fh(G(e))}function Nv(e){const n=ws();if(n)return Cv(n.sanitize(Zo.RESOURCE_URL,e)||"");if(_s(e,"ResourceURL"))return Cv(Mr(e));throw new I(904,!1)}function ws(){const e=M();return e&&e[an].sanitizer}function Bt(e){return e instanceof Function?e():e}var br=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(br||{});let wh;function Mh(e,n){return wh(e,n)}function Yo(e,n,t,r,o){if(null!=r){let i,s=!1;ft(r)?i=r:ht(r)&&(s=!0,r=r[Te]);const a=me(r);0===e&&null!==t?null==o?Bv(n,t,a):io(n,t,a,o||null,!0):1===e&&null!==t?io(n,t,a,o||null,!0):2===e?function Es(e,n,t){const r=jl(e,n);r&&function QN(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=i&&function KN(e,n,t,r,o){const i=t[In];i!==me(t)&&Yo(n,e,r,i,o);for(let a=je;a0&&(e[t-1][sn]=r[sn]);const i=Ja(e,je+n);!function BN(e,n){jv(e,n),n[Te]=null,n[dt]=null}(r[T],r);const s=i[er];null!==s&&s.detachView(i[T]),r[Ve]=null,r[sn]=null,r[P]&=-129}return r}function Vl(e,n){if(!(256&n[P])){const t=n[j];t.destroyNode&&$l(e,n,t,3,null,null),function zN(e){let n=e[ts];if(!n)return Ih(e[T],e);for(;n;){let t=null;if(ht(n))t=n[ts];else{const r=n[je];r&&(t=r)}if(!t){for(;n&&!n[sn]&&n!==e;)ht(n)&&Ih(n[T],n),n=n[Ve];null===n&&(n=e),ht(n)&&Ih(n[T],n),t=n&&n[sn]}n=t}}(n)}}function Ih(e,n){if(256&n[P])return;const t=X(null);try{n[P]&=-129,n[P]|=256,n[eo]&&function nm(e){if(wo(e),Wi(e))for(let n=0;n=0?r[s]():r[-s].unsubscribe(),i+=2}else t[i].call(r[t[i+1]]);null!==r&&(n[Po]=null);const o=n[_r];if(null!==o){n[_r]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===rn.None||i===rn.Emulated)return null}return Dt(r,t)}}(e,n.parent,t)}function io(e,n,t,r,o){e.insertBefore(n,t,r,o)}function Bv(e,n,t){e.appendChild(n,t)}function Hv(e,n,t,r,o){null!==r?io(e,n,t,r,o):Bv(e,n,t)}function jl(e,n){return e.parentNode(n)}let Th,qv=function Gv(e,n,t){return 40&e.type?Dt(e,t):null};function Ul(e,n,t,r){const o=Sh(e,r,n),i=n[j],a=function zv(e,n,t){return qv(e,n,t)}(r.parent||n[dt],r,n);if(null!=o)if(Array.isArray(t))for(let l=0;lq&&Jv(e,n,q,!1),Sn(s?2:0,o),t(r,o)}finally{ro(i),Sn(s?3:1,o)}}function Rh(e,n,t){if(wd(n)){const r=X(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;snull;function iC(e,n,t,r,o){for(let i in n){if(!n.hasOwnProperty(i))continue;const s=n[i];if(void 0===s)continue;r??={};let a,l=Se.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=i;if(null!==o){if(!o.hasOwnProperty(i))continue;c=o[i]}0===e?sC(r,t,c,a,l):sC(r,t,c,a)}return r}function sC(e,n,t,r,o){let i;e.hasOwnProperty(t)?(i=e[t]).push(n,r):i=e[t]=[n,r],void 0!==o&&i.push(o)}function Ot(e,n,t,r,o,i,s,a){const l=Dt(n,t);let u,c=n.inputs;!a&&null!=c&&(u=c[r])?(Uh(e,t,u,r,o),to(n)&&function dA(e,n){const t=Ut(n,e);16&t[P]||(t[P]|=64)}(t,n.index)):3&n.type&&(r=function uA(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(l,r,o))}function Fh(e,n,t,r){if(cy()){const o=null===r?null:{"":-1},i=function yA(e,n){const t=e.directiveRegistry;let r=null,o=null;if(t)for(let i=0;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,Is(e,t,o.hostVars,W),o)}function On(e,n,t,r,o,i){const s=Dt(e,n);!function Vh(e,n,t,r,o,i,s){if(null==i)e.removeAttribute(n,o,t);else{const a=null==s?G(i):s(i,r||"",o);e.setAttribute(n,o,a,t)}}(n[j],s,i,e.value,t,r,o)}function MA(e,n,t,r,o,i){const s=i[n];if(null!==s)for(let a=0;a0&&(t[o-1][sn]=n),r!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{as(e.lView)},consumerOnSignalRead(){this.lView[eo]=this}},yC=100;function Gl(e,n=!0,t=0){const r=e[an],o=r.rendererFactory;o.begin?.();try{!function RA(e,n){Hh(e,n);let t=0;for(;Nd(e);){if(t===yC)throw new I(103,!1);t++,Hh(e,1)}}(e,t)}catch(s){throw n&&zl(e,s),s}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function OA(e,n,t,r){const o=n[P];if(!(256&~o))return;n[an].inlineEffectRunner?.flush(),Ld(n);let s=null,a=null;(function PA(e){return 2!==e.type})(e)&&(a=function TA(e){return e[eo]??function NA(e){const n=mC.pop()??Object.create(kA);return n.lView=e,n}(e)}(n),s=function em(e){return e&&(e.nextProducerIndex=0),X(e)}(a));try{sy(n),function hy(e){return U.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&nC(e,n,t,2,r);const l=!(3&~o);if(l){const d=e.preOrderCheckHooks;null!==d&&gl(n,d,null)}else{const d=e.preOrderHooks;null!==d&&ml(n,d,0,null),jd(n,0)}if(function xA(e){for(let n=Ky(e);null!==n;n=Jy(n)){if(!(n[P]&Dd.HasTransplantedViews))continue;const t=n[Lo];for(let r=0;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(a,s),function AA(e){e.lView[eo]!==e&&(e.lView=null,mC.push(e))}(a)),Vd()}}function vC(e,n){for(let t=Ky(e);null!==t;t=Jy(t))for(let r=je;r-1&&(Ms(n,r),Ja(t,r))}this._attachedToViewContainer=!1}Vl(this._lView[T],this._lView)}onDestroy(n){hl(this._lView,n)}markForCheck(){As(this._cdRefInjectingView||this._lView)}detach(){this._lView[P]&=-129}reattach(){Ad(this._lView),this._lView[P]|=128}detectChanges(){this._lView[P]|=1024,Gl(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,jv(this._lView[T],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=n,Ad(this._lView)}}let ir=(()=>{class e{static{this.__NG_ELEMENT_ID__=jA}}return e})();const LA=ir,VA=class extends LA{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const o=function Ss(e,n,t,r){const o=X(null);try{const i=n.tView,l=Bl(e,i,t,4096&e[P]?4096:16,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);l[ns]=e[n.index];const u=e[er];return null!==u&&(l[er]=u.createEmbeddedView(i)),$h(i,l,t),l}finally{X(o)}}(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new ks(o)}};function jA(){return ql(pe(),M())}function ql(e,n){return 4&e.type?new VA(n,e,zo(e,n)):null}class Qh{}class c2{}class SC{}class d2{resolveComponentFactory(n){throw function u2(e){const n=Error(`No component factory found for ${Ye(e)}.`);return n.ngComponent=e,n}(n)}}let Xl=(()=>{class e{static{this.NULL=new d2}}return e})();class NC{}let sr=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function h2(){const e=M(),t=Ut(pe().index,e);return(ht(t)?t:e)[j]}()}}return e})(),f2=(()=>{class e{static{this.\u0275prov=O({token:e,providedIn:"root",factory:()=>null})}}return e})();const Yh={},AC=new Set;function Pn(e){AC.has(e)||(AC.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function kC(...e){}class he{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xe(!1),this.onMicrotaskEmpty=new xe(!1),this.onStable=new xe(!1),this.onError=new xe(!1),typeof Zone>"u")throw new I(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 p2(){const e="function"==typeof de.requestAnimationFrame;let n=de[e?"requestAnimationFrame":"setTimeout"],t=de[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function y2(e){const n=()=>{!function m2(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(de,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Kh(e),e.isCheckStableRunning=!0,Xh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Kh(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,i,s,a)=>{if(function v2(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(o,i,s,a);try{return RC(e),t.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&n(),OC(e)}},onInvoke:(t,r,o,i,s,a,l)=>{try{return RC(e),t.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),OC(e)}},onHasTask:(t,r,o,i)=>{t.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Kh(e),Xh(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(!he.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(he.isInAngularZone())throw new I(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,g2,kC,kC);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 g2={};function Xh(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 Kh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function RC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function OC(e){e._nesting--,Xh(e)}class PC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xe,this.onMicrotaskEmpty=new xe,this.onStable=new xe,this.onError=new xe}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)}}var so=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(so||{});const xC={destroy(){}};function ef(e,n){!n&&function al(e){if(!qm())throw new I(-203,!1)}();const t=n?.injector??E(Mt);if(!function un(e){return"browser"===(e??E(Mt)).get(wr)}(t))return xC;Pn("NgAfterNextRender");const r=t.get(Fs),o=r.handler??=new LC,i=n?.phase??so.MixedReadWrite,s=()=>{o.unregister(l),a()},a=t.get(Ho).onDestroy(s),l=En(t,()=>new FC(i,()=>{s(),e()}));return o.register(l),{destroy:s}}class FC{constructor(n,t){this.phase=n,this.callbackFn=t,this.zone=E(he),this.errorHandler=E(Rn,{optional:!0}),E(Qh,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class LC{constructor(){this.executingCallbacks=!1,this.buckets={[so.EarlyRead]:new Set,[so.Write]:new Set,[so.MixedReadWrite]:new Set,[so.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const t of n)t.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Fs=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of t)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=O({token:e,providedIn:"root",factory:()=>new e})}}return e})();function Jl(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(null!==n)for(let s=0;s0&&Xv(e,t,i.join(" "))}}(f,ue,C,r),void 0!==t&&function A2(e,n,t){const r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=R2}}return e})();function R2(){return zC(pe(),M())}const O2=dn,BC=class extends O2{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return zo(this._hostTNode,this._hostLView)}get injector(){return new Je(this._hostTNode,this._hostLView)}get parentInjector(){const n=Cl(this._hostTNode,this._hostLView);if($d(n)){const t=hs(n,this._hostLView),r=ds(n);return new Je(t[T].data[r+8],t)}return new Je(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=HC(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-je}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(t||{},i,null);return this.insertImpl(a,o,Ko(this._hostTNode,null)),a}createComponent(n,t,r,o,i){const s=n&&!function es(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const m=t||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}const l=s?n:new js(J(n)),c=r||this.parentInjector;if(!i&&null==l.ngModule){const C=(s?c:this.parentInjector).get(_t,null);C&&(i=C)}J(l.componentType??{});const f=l.create(c,o,null,i);return this.insertImpl(f.hostView,a,Ko(this._hostTNode,null)),f}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const o=n._lView;if(function kS(e){return ft(e[Ve])}(o)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const l=o[Ve],c=new BC(l,l[dt],l[Ve]);c.detach(c.indexOf(n))}}const i=this._adjustIndex(t),s=this._lContainer;return Ts(s,o,i,r),n.attachToViewContainerRef(),Nm(rf(s),i,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=HC(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=Ms(this._lContainer,t);r&&(Ja(rf(this._lContainer),t),Vl(r[T],r))}detach(n){const t=this._adjustIndex(n,-1),r=Ms(this._lContainer,t);return r&&null!=Ja(rf(this._lContainer),t)?new ks(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function HC(e){return e[8]}function rf(e){return e[8]||(e[8]=[])}function zC(e,n){let t;const r=n[e.index];return ft(r)?t=r:(t=cC(r,n,null,e),n[e.index]=t,Hl(n,t)),GC(t,n,e,r),new BC(t,e,n)}let GC=function WC(e,n,t,r){if(e[In])return;let o;o=8&t.type?me(r):function P2(e,n){const t=e[j],r=t.createComment(""),o=Dt(n,e);return io(t,jl(t,o),r,function YN(e,n){return e.nextSibling(n)}(t,o),!1),r}(n,t),e[In]=o},sf=()=>!1;class af{constructor(n){this.queryList=n,this.matches=null}clone(){return new af(this.queryList)}setDirty(){this.queryList.setDirty()}}class lf{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,o=[];for(let i=0;in.trim())}(n):n}}class cf{constructor(n=[]){this.queries=n}elementStart(n,t){for(let r=0;r0)r.push(s[a/2]);else{const c=i[a+1],u=n[-l];for(let d=je;d=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Ki(o.hostAttrs,t=Ki(t,o.hostAttrs))}}(r)}function ek(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=n.inputTransforms[o]}}}function nc(e){return e===Mn?{}:e===se?[]:e}function nk(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function rk(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,i)=>{n(r,o,i),t(r,o,i)}:n}function ok(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function v_(e){const n=e.inputConfig,t={};for(const r in n)if(n.hasOwnProperty(r)){const o=n[r];Array.isArray(o)&&o[3]&&(t[r]=o[3])}e.inputTransforms=t}class ao{}class C_{}class gf extends ao{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new UC(this);const o=ut(n);this._bootstrapComponents=Bt(o.bootstrap),this._r3Injector=Vy(n,t,[{provide:ao,useValue:this},{provide:Xl,useValue:this.componentFactoryResolver},...r],Ye(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 mf extends C_{constructor(n){super(),this.moduleType=n}create(n){return new gf(this.moduleType,n,[])}}class __ extends ao{constructor(n){super(),this.componentFactoryResolver=new UC(this),this.instance=null;const t=new ko([...n.providers,{provide:ao,useValue:this},{provide:Xl,useValue:this.componentFactoryResolver}],n.parent||sl(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function rc(e,n,t=null){return new __({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let Sr=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Qt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ic(e){return!!function yf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function xn(e,n,t){return e[n]=t}function Ue(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function lo(e,n,t,r){const o=Ue(e,n,t);return Ue(e,n+1,r)||o}function ve(e,n,t,r,o,i,s,a){const l=M(),c=re(),u=e+q,d=c.firstCreatePass?function yk(e,n,t,r,o,i,s,a,l){const c=n.consts,u=Xo(n,e,4,s||null,Tn(c,a));Fh(n,t,u,Tn(c,l)),pl(n,u);const d=u.tView=xh(2,u,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,t,r,o,i,s):c.data[u];Nn(d,!1);const h=D_(c,l,d,e);cs()&&Ul(c,l,h,d),gt(h,l);const f=cC(h,l,h,d);return l[u]=f,Hl(l,f),function qC(e,n,t){return sf(e,n,t)}(f,d,l),dl(d)&&Oh(c,l,d),null!=s&&Ph(l,d,a),ve}let D_=function w_(e,n,t,r){return An(!0),n[j].createComment("")};function Fn(e,n,t,r){const o=M();return Ue(o,cn(),n)&&(re(),On(we(),o,e,n,t,r)),Fn}function li(e,n,t,r){return Ue(e,cn(),t)?n+G(t)+r:W}function ci(e,n,t,r,o,i){const a=lo(e,function tr(){return U.lFrame.bindingIndex}(),t,o);return nr(2),a?n+G(t)+r+G(o)+i:W}function hc(e,n){return e<<17|n<<2}function Nr(e){return e>>17&32767}function Sf(e){return 2|e}function uo(e){return(131068&e)>>2}function Tf(e,n){return-131069&e|n<<2}function Nf(e){return 1|e}function J_(e,n,t,r){const o=e[t+1],i=null===n;let s=r?Nr(o):uo(o),a=!1;for(;0!==s&&(!1===a||i);){const c=e[s+1];rR(e[s],n)&&(a=!0,e[s+1]=r?Nf(c):Sf(c)),s=r?Nr(c):uo(c)}a&&(e[t+1]=r?Sf(o):Nf(o))}function rR(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ao(e,n)>=0}function N(e,n,t){const r=M();return Ue(r,cn(),n)&&Ot(re(),we(),r,e,n,r[j],t,!1),N}function Af(e,n,t,r,o){const s=o?"class":"style";Uh(e,t,n.inputs[s],s,r)}function fc(e,n){return function hn(e,n,t,r){const o=M(),i=re(),s=nr(2);i.firstUpdatePass&&function lD(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[pt()],s=function aD(e,n){return n>=e.expandoStartIndex}(e,t);(function hD(e,n){return!!(e.flags&(n?8:16))})(i,r)&&null===n&&!s&&(n=!1),n=function hR(e,n,t,r){const o=function xd(e){const n=U.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=qs(t=kf(null,e,n,t,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=kf(o,e,n,t,r),null===i){let l=function fR(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==uo(r))return e[Nr(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=kf(null,e,n,l[1],r),l=qs(l,n.attrs,r),function pR(e,n,t,r){e[Nr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else i=function gR(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(c=!0)):u=t,o)if(0!==l){const h=Nr(e[a+1]);e[r+1]=hc(h,a),0!==h&&(e[h+1]=Tf(e[h+1],r)),e[a+1]=function Jk(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=hc(a,0),0!==a&&(e[a+1]=Tf(e[a+1],r)),a=r;else e[r+1]=hc(l,0),0===a?a=r:e[l+1]=Tf(e[l+1],r),l=r;c&&(e[r+1]=Sf(e[r+1])),J_(e,u,r,!0),J_(e,u,r,!1),function nR(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&Ao(i,n)>=0&&(t[r+1]=Nf(t[r+1]))}(n,u,e,r,i),s=hc(a,l),i?n.classBindings=s:n.styleBindings=s}(o,i,n,t,s,r)}}(i,e,s,r),n!==W&&Ue(o,s,n)&&function uD(e,n,t,r,o,i,s,a){if(!(3&n.type))return;const l=e.data,c=l[a+1],u=function eR(e){return!(1&~e)}(c)?dD(l,n,t,o,uo(c),s):void 0;pc(u)||(pc(i)||function Kk(e){return!(2&~e)}(c)&&(i=dD(l,null,t,o,a,s)),function JN(e,n,t,r,o){if(n)o?e.addClass(t,r):e.removeClass(t,r);else{let i=-1===r.indexOf("-")?void 0:br.DashCase;null==o?e.removeStyle(t,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=br.Important),e.setStyle(t,r,o,i))}}(r,s,is(pt(),t),o,i))}(i,i.data[pt()],o,o[j],e,o[s+1]=function CR(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Ye(Mr(e)))),e}(n,t),r,s)}(e,n,null,!0),fc}function kf(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],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[o+1];h===W&&(h=d?se:void 0);let f=d?ld(h,r):u===r?h:void 0;if(c&&!pc(f)&&(f=ld(l,r)),pc(f)&&(a=f,s))return a;const m=e[o+1];o=s?Nr(m):uo(m)}if(null!==n){let l=i?n.residualClasses:n.residualStyles;null!=l&&(a=ld(l,r))}return a}function pc(e){return void 0!==e}function g(e,n,t,r){const o=M(),i=re(),s=q+e,a=o[j],l=i.firstCreatePass?function BR(e,n,t,r,o,i){const s=n.consts,l=Xo(n,e,2,r,Tn(s,o));return Fh(n,t,l,Tn(s,i)),null!==l.attrs&&Jl(l,l.attrs,!1),null!==l.mergedAttrs&&Jl(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,i,o,n,t,r):i.data[s],c=mD(i,o,l,a,n,e);o[s]=c;const u=dl(l);return Nn(l,!0),Kv(a,c,l),!function Bs(e){return!(32&~e.flags)}(l)&&cs()&&Ul(i,o,c,l),0===function OS(){return U.lFrame.elementDepthCount}()&>(c,o),function PS(){U.lFrame.elementDepthCount++}(),u&&(Oh(i,o,l),Rh(i,l,o)),null!==r&&Ph(o,l),g}function p(){let e=pe();Rd()?function Od(){U.lFrame.isParent=!1}():(e=e.parent,Nn(e,!1));const n=e;(function FS(e){return U.skipHydrationRootTNode===e})(n)&&function US(){U.skipHydrationRootTNode=null}(),function xS(){U.lFrame.elementDepthCount--}();const t=re();return t.firstCreatePass&&(pl(t,e),wd(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function tT(e){return!!(8&e.flags)}(n)&&Af(t,n,M(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function nT(e){return!!(16&e.flags)}(n)&&Af(t,n,M(),n.stylesWithoutHost,!1),p}function $(e,n,t,r){return g(e,n,t,r),p(),$}let mD=(e,n,t,r,o,i)=>(An(!0),Ll(r,o,function Cy(){return U.lFrame.currentNamespace}()));function ar(){return M()}const ho=void 0;var QR=["en",[["a","p"],["AM","PM"],ho],[["AM","PM"],ho,ho],[["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"]],ho,[["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"]],ho,[["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}",ho,"{1} 'at' {0}",ho],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function ZR(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let yi={};function bt(e){const n=function XR(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=wD(n);if(t)return t;const r=n.split("-")[0];if(t=wD(r),t)return t;if("en"===r)return QR;throw new I(701,!1)}function wD(e){return e in yi||(yi[e]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[e]),yi[e]}var Me=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Me||{});const vi="en-US";let MD=vi;function S(e,n,t,r){const o=M(),i=re(),s=pe();return Uf(i,o,o[j],s,e,n,r),S}function Uf(e,n,t,r,o,i,s){const a=dl(r),c=e.firstCreatePass&&hC(e),u=n[De],d=dC(n);let h=!0;if(3&r.type||s){const C=Dt(r,n),_=s?s(C):C,D=d.length,w=s?L=>s(me(L[r.index])):r.index;let A=null;if(!s&&a&&(A=function WO(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!==A)(A.__ngLastListenerFn__||A).__ngNextListenerFn__=i,A.__ngLastListenerFn__=i,h=!1;else{i=XD(r,n,u,i,!1);const L=t.listen(_,o,i);d.push(i,L),c&&c.push(o,w,D,D+1)}}else i=XD(r,n,u,i,!1);const f=r.outputs;let m;if(h&&null!==f&&(m=f[o])){const C=m.length;if(C)for(let _=0;_-1?Ut(e.index,n):n);let l=YD(n,t,r,s),c=i.__ngNextListenerFn__;for(;c;)l=YD(n,t,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&s.preventDefault(),l}}function Re(e=1){return function qS(e){return(U.lFrame.contextLView=function ay(e,n){for(;e>0;)n=n[xo],e--;return n}(e,U.lFrame.contextLView))[De]}(e)}function Cc(e,n,t,r,o){const i=M(),s=li(i,n,t,r);return s!==W&&Ot(re(),we(),i,e,s,i[j],o,!1),Cc}function aw(e,n,t,r){!function KC(e,n,t,r){const o=re();if(o.firstCreatePass){const i=pe();JC(o,new ZC(n,t,r),i.index),function H2(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&~t)&&(o.staticContentQueries=!0)}return YC(o,M(),t)}(e,n,t,r)}function _c(e,n,t){!function XC(e,n,t){const r=re();return r.firstCreatePass&&(JC(r,new ZC(e,n,t),-1),!(2&~n)&&(r.staticViewQueries=!0)),YC(r,M(),n)}(e,n,t)}function Js(e){const n=M(),t=re(),r=Fd();fl(r+1);const o=ff(t,r);if(e.dirty&&function AS(e){return!(4&~e[P])}(n)===!(2&~o.metadata.flags)){if(null===o.matches)e.reset([]);else{const i=e_(n,r);e.reset(i,By),e.notifyOnChanges()}return!0}return!1}function ea(){return function hf(e,n){return e[er].queries[n].queryList}(M(),Fd())}function y(e,n=""){const t=M(),r=re(),o=e+q,i=r.firstCreatePass?Xo(r,o,1,n,null):r.data[o],s=yw(r,t,i,n,e);t[o]=s,cs()&&Ul(r,t,s,i),Nn(i,!1)}let yw=(e,n,t,r,o)=>(An(!0),function bh(e,n){return e.createText(n)}(n[j],r));function F(e){return Ne("",e,""),F}function Ne(e,n,t){const r=M(),o=li(r,e,n,t);return o!==W&&or(r,pt(),o),Ne}function Ar(e,n,t,r,o){const i=M(),s=ci(i,e,n,t,r,o);return s!==W&&or(i,pt(),s),Ar}function Z(e,n,t){r_(n)&&(n=n());const r=M();return Ue(r,cn(),n)&&Ot(re(),we(),r,e,n,r[j],t,!1),Z}function K(e,n){const t=r_(e);return t&&e.set(n),t}function Q(e,n){const t=M(),r=re(),o=pe();return Uf(r,t,t[j],o,e,n),Q}function $f(e,n,t,r,o){if(e=V(e),Array.isArray(e))for(let i=0;i>20;if(Jr(e)||!e.multi){const f=new us(c,o,b),m=Hf(l,n,o?u:u+h,d);-1===m?(zd(vl(a,s),i,l),Bf(i,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(f),s.push(f)):(t[m]=f,s[m]=f)}else{const f=Hf(l,n,u+h,d),m=Hf(l,n,u,u+h),_=m>=0&&t[m];if(o&&!_||!o&&!(f>=0&&t[f])){zd(vl(a,s),i,l);const D=function m3(e,n,t,r,o){const i=new us(e,t,b);return i.multi=[],i.index=n,i.componentProviders=0,Ew(i,o,r&&!t),i}(o?g3:p3,t.length,o,r,c);!o&&_&&(t[m].providerFactory=D),Bf(i,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(D),s.push(D)}else Bf(i,e,f>-1?f:m,Ew(t[o?m:f],c,!o&&r));!o&&r&&_&&t[m].componentProviders++}}}function Bf(e,n,t,r){const o=Jr(n),i=function oS(e){return!!e.useClass}(n);if(o||i){const l=(i?V(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(t);-1===u?c.push(t,[r,l]):c[u+1].push(r,l)}else c.push(t,l)}}}function Ew(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Hf(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function f3(e,n,t){const r=re();if(r.firstCreatePass){const o=ln(e);$f(t,r.data,r.blueprint,o,!0),$f(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}let y3=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=hd(0,t.type),o=r.length>0?rc([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=O({token:e,providedIn:"environment",factory:()=>new e(R(_t))})}}return e})();function Iw(e){Pn("NgStandalone"),e.getStandaloneInjector=n=>n.get(y3).getOrCreateStandaloneInjector(e)}function Gf(e,n,t){const r=wt()+e,o=M();return o[r]===W?xn(o,r,t?n.call(t):n()):function $s(e,n){return e[n]}(o,r)}function jn(e,n,t,r){return Tw(M(),wt(),e,n,t,r)}function ta(e,n){const t=e[n];return t===W?void 0:t}function Tw(e,n,t,r,o,i){const s=n+t;return Ue(e,s,o)?xn(e,s+1,i?r.call(i,o):r(o)):ta(e,s+1)}function He(e,n){const t=re();let r;const o=e+q;t.firstCreatePass?(r=function T3(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??=[]).push(o,r.onDestroy)):r=t.data[o];const i=r.factory||(r.factory=Xr(r.type)),a=At(b);try{const l=yl(!1),c=i();return yl(l),function e3(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,M(),o,c),c}finally{At(a)}}function Ci(e,n,t){const r=e+q,o=M(),i=Vo(o,r);return na(o,r)?Tw(o,wt(),n,i.transform,t,i):i.transform(t)}function mt(e,n,t,r){const o=e+q,i=M(),s=Vo(i,o);return na(i,o)?function Nw(e,n,t,r,o,i,s){const a=n+t;return lo(e,a,o,i)?xn(e,a+2,s?r.call(s,o,i):r(o,i)):ta(e,a+2)}(i,wt(),n,s.transform,t,r,s):s.transform(t,r)}function na(e,n){return e[T].data[n].pure}class oa{constructor(n){this.full=n;const t=n.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}const eP=new oa("17.3.12");let Zw=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();const Jw=new k(""),bc=new k("");let Jf,Xf=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Jf||(function IP(e){Jf=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._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{he.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1))}}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()},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[]}static{this.\u0275fac=function(r){return new(r||e)(R(he),R(Kf),R(bc))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})(),Kf=(()=>{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 Jf?.findTestabilityInTree(this,t,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function sa(e){return!!e&&"function"==typeof e.then}function e0(e){return!!e&&"function"==typeof e.subscribe}const ep=new k("");let tp=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=E(ep,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const i=o();if(sa(i))t.push(i);else if(e0(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const np=new k("");function r0(e,n){return Array.isArray(n)?n.reduce(r0,e):{...e,...n}}let kr=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=E(Uy),this.afterRenderEffectManager=E(Fs),this.externalTestViews=new Set,this.beforeRender=new Zt,this.afterTick=new Zt,this.componentTypes=[],this.components=[],this.isStable=E(Sr).hasPendingTasks.pipe(ie(t=>!t)),this._injector=E(_t)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof SC;if(!this._injector.get(tp).done)throw!o&&function Cr(e){const n=J(e)||Xe(e)||at(e);return null!==n&&n.standalone}(t),new I(405,!1);let s;s=o?t:this._injector.get(Xl).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function SP(e){return e.isBoundToModule}(s)?void 0:this._injector.get(ao),c=s.create(Mt.NULL,[],r||s.selector,a),u=c.location.nativeElement,d=c.injector.get(Jw,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Ec(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){this._tick(!0)}_tick(t){if(this._runningTick)throw new I(101,!1);const r=X(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(t)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,X(r)}}detectChangesInAttachedViews(t){let r=0;const o=this.afterRenderEffectManager;for(;;){if(r===yC)throw new I(103,!1);if(t){const i=0===r;this.beforeRender.next(i);for(let{_lView:s,notifyErrorHandler:a}of this._views)NP(s,i,a)}if(r++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:i})=>rp(i))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:i})=>rp(i))))break}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Ec(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(np,[]);[...this._bootstrapListeners,...r].forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Ec(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new I(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ec(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function NP(e,n,t){!n&&!rp(e)||function AP(e,n,t){let r;t?(r=0,e[P]|=1024):r=64&e[P]?0:1,Gl(e,n,r)}(e,t,n)}function rp(e){return Nd(e)}class kP{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let o0=(()=>{class e{compileModuleSync(t){return new mf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),i=Bt(ut(t).declarations).reduce((s,a)=>{const l=J(a);return l&&s.push(new js(l)),s},[]);return new kP(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),PP=(()=>{class e{constructor(){this.zone=E(he),this.applicationRef=E(kr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function xP(){const e=E(he),n=E(Rn);return t=>e.runOutsideAngular(()=>n.handleError(t))}let LP=(()=>{class e{constructor(){this.subscription=new Nt,this.initialized=!1,this.zone=E(he),this.pendingTasks=E(Sr)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{he.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{he.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Un=new k("",{providedIn:"root",factory:()=>E(Un,ne.Optional|ne.SkipSelf)||function VP(){return typeof $localize<"u"&&$localize.locale||vi}()}),op=new k("");let c0=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function C2(e="zone.js",n){return"noop"===e?new PC:"zone.js"===e?new he(n):e}(r?.ngZone,function l0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function dk(e,n,t){return new gf(e,n,t)}(t.moduleType,this.injector,function a0(e){return[{provide:he,useFactory:e},{provide:Kr,multi:!0,useFactory:()=>{const n=E(PP,{optional:!0});return()=>n.initialize()}},{provide:Kr,multi:!0,useFactory:()=>{const n=E(LP);return()=>{n.initialize()}}},{provide:Uy,useFactory:xP}]}(()=>o)),s=i.injector.get(Rn,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Ec(this._modules,i),a.unsubscribe()})}),function n0(e,n,t){try{const r=t();return sa(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(tp);return a.runInitializers(),a.donePromise.then(()=>(function bD(e){"string"==typeof e&&(MD=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(Un,vi)||vi),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,r=[]){const o=r0({},r);return function OP(e,n,t){const r=new mf(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(t){const r=t.injector.get(kr);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new I(-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 I(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(op,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(R(Mt))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),Rr=null;const u0=new k("");function d0(e,n,t=[]){const r=`Platform: ${n}`,o=new k(r);return(i=[])=>{let s=ip();if(!s||s.injector.get(u0,!1)){const a=[...t,...i,{provide:o,useValue:!0}];e?e(a):function $P(e){if(Rr&&!Rr.get(u0,!1))throw new I(400,!1);(function t0(){!function KE(e){im=e}(()=>{throw new I(600,!1)})})(),Rr=e;const n=e.get(c0);(function f0(e){e.get(lv,null)?.forEach(t=>t())})(e)}(function h0(e=[],n){return Mt.create({name:n,providers:[{provide:gd,useValue:"platform"},{provide:op,useValue:new Set([()=>Rr=null])},...e]})}(a,r))}return function BP(e){const n=ip();if(!n)throw new I(401,!1);return n}()}}function ip(){return Rr?.get(c0)??null}let aa=(()=>{class e{static{this.__NG_ELEMENT_ID__=zP}}return e})();function zP(e){return function GP(e,n,t){if(to(e)&&!t){const r=Ut(e.index,n);return new ks(r,r)}return 47&e.type?new ks(n[ke],n):null}(pe(),M(),!(16&~e))}class v0{constructor(){}supports(n){return ic(n)}create(n){return new YP(n)}}const QP=(e,n)=>n;class YP{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||QP}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<_0(r,o,i)?t:r,a=_0(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(t=t._next,null==s.previousIndex)o++;else{i||(i=[]);const c=a-o,u=l-o;if(c!=u){for(let h=0;h{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 XP(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 C0),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 C0),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 XP{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 KP{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 C0{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new KP,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 _0(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r{class e{static{this.\u0275prov=O({token:e,providedIn:"root",factory:w0})}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||w0()),deps:[[e,new Ka,new Xa]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new I(901,!1)}}return e})();const rx=d0(null,"core",[]);let ox=(()=>{class e{constructor(t){}static{this.\u0275fac=function(r){return new(r||e)(R(kr))}}static{this.\u0275mod=bn({type:e})}static{this.\u0275inj=nn({})}}return e})();function Mi(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let q0=null;function Or(){return q0}class $x{}const zt=new k("");let fp=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:()=>E(Hx),providedIn:"platform"})}}return e})();const Bx=new k("");let Hx=(()=>{class e extends fp{constructor(){super(),this._doc=E(zt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Or().getBaseHref(this._doc)}onPopState(t){const r=Or().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Or().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){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function pp(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 W0(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 lr(e){return e&&"?"!==e[0]?"?"+e:e}let Pr=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:()=>E(Q0),providedIn:"root"})}}return e})();const Z0=new k("");let Q0=(()=>{class e extends Pr{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??E(zt).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 pp(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+lr(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){const s=this.prepareExternalUrl(o+lr(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){const s=this.prepareExternalUrl(o+lr(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)}static{this.\u0275fac=function(r){return new(r||e)(R(fp),R(Z0,8))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Y0=(()=>{class e extends Pr{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){const r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=pp(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+lr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+lr(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)}static{this.\u0275fac=function(r){return new(r||e)(R(fp),R(Z0,8))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})(),bi=(()=>{class e{constructor(t){this._subject=new xe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function qx(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(W0(X0(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+lr(r))}normalize(t){return e.stripTrailingSlash(function Gx(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,X0(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+lr(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+lr(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.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})}static{this.normalizeQueryParams=lr}static{this.joinWithSlash=pp}static{this.stripTrailingSlash=W0}static{this.\u0275fac=function(r){return new(r||e)(R(Pr))}}static{this.\u0275prov=O({token:e,factory:()=>function zx(){return new bi(R(Pr))}(),providedIn:"root"})}}return e})();function X0(e){return e.replace(/\/index.html$/,"")}var It=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(It||{}),Ce=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(Ce||{}),Gt=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Gt||{});const We={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Fc(e,n){return Jt(bt(e)[Me.DateFormat],n)}function Lc(e,n){return Jt(bt(e)[Me.TimeFormat],n)}function Vc(e,n){return Jt(bt(e)[Me.DateTimeFormat],n)}function Kt(e,n){const t=bt(e),r=t[Me.NumberSymbols][n];if(typeof r>"u"){if(n===We.CurrencyDecimal)return t[Me.NumberSymbols][We.Decimal];if(n===We.CurrencyGroup)return t[Me.NumberSymbols][We.Group]}return r}function J0(e){if(!e[Me.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Me.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Jt(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 mp(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const sF=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,jc={},aF=/((?:[^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 cr=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(cr||{}),le=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(le||{}),ce=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(ce||{});function lF(e,n,t,r){let o=function yF(e){if(nM(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 Uc(o,i-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(sF))return function vF(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),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(n,s,a,l,c),n}(r)}const n=new Date(e);if(!nM(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=ur(t,n)||n;let a,s=[];for(;n;){if(a=aF.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=o.getTimezoneOffset();r&&(l=tM(r,l),o=function mF(e,n,t){const r=t?-1:1,o=e.getTimezoneOffset();return function gF(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,r*(tM(n,o)-o))}(o,r,!0));let c="";return s.forEach(u=>{const d=function pF(e){if(vp[e])return vp[e];let n;switch(e){case"G":case"GG":case"GGG":n=be(ce.Eras,Ce.Abbreviated);break;case"GGGG":n=be(ce.Eras,Ce.Wide);break;case"GGGGG":n=be(ce.Eras,Ce.Narrow);break;case"y":n=Ze(le.FullYear,1,0,!1,!0);break;case"yy":n=Ze(le.FullYear,2,0,!0,!0);break;case"yyy":n=Ze(le.FullYear,3,0,!1,!0);break;case"yyyy":n=Ze(le.FullYear,4,0,!1,!0);break;case"Y":n=zc(1);break;case"YY":n=zc(2,!0);break;case"YYY":n=zc(3);break;case"YYYY":n=zc(4);break;case"M":case"L":n=Ze(le.Month,1,1);break;case"MM":case"LL":n=Ze(le.Month,2,1);break;case"MMM":n=be(ce.Months,Ce.Abbreviated);break;case"MMMM":n=be(ce.Months,Ce.Wide);break;case"MMMMM":n=be(ce.Months,Ce.Narrow);break;case"LLL":n=be(ce.Months,Ce.Abbreviated,It.Standalone);break;case"LLLL":n=be(ce.Months,Ce.Wide,It.Standalone);break;case"LLLLL":n=be(ce.Months,Ce.Narrow,It.Standalone);break;case"w":n=yp(1);break;case"ww":n=yp(2);break;case"W":n=yp(1,!0);break;case"d":n=Ze(le.Date,1);break;case"dd":n=Ze(le.Date,2);break;case"c":case"cc":n=Ze(le.Day,1);break;case"ccc":n=be(ce.Days,Ce.Abbreviated,It.Standalone);break;case"cccc":n=be(ce.Days,Ce.Wide,It.Standalone);break;case"ccccc":n=be(ce.Days,Ce.Narrow,It.Standalone);break;case"cccccc":n=be(ce.Days,Ce.Short,It.Standalone);break;case"E":case"EE":case"EEE":n=be(ce.Days,Ce.Abbreviated);break;case"EEEE":n=be(ce.Days,Ce.Wide);break;case"EEEEE":n=be(ce.Days,Ce.Narrow);break;case"EEEEEE":n=be(ce.Days,Ce.Short);break;case"a":case"aa":case"aaa":n=be(ce.DayPeriods,Ce.Abbreviated);break;case"aaaa":n=be(ce.DayPeriods,Ce.Wide);break;case"aaaaa":n=be(ce.DayPeriods,Ce.Narrow);break;case"b":case"bb":case"bbb":n=be(ce.DayPeriods,Ce.Abbreviated,It.Standalone,!0);break;case"bbbb":n=be(ce.DayPeriods,Ce.Wide,It.Standalone,!0);break;case"bbbbb":n=be(ce.DayPeriods,Ce.Narrow,It.Standalone,!0);break;case"B":case"BB":case"BBB":n=be(ce.DayPeriods,Ce.Abbreviated,It.Format,!0);break;case"BBBB":n=be(ce.DayPeriods,Ce.Wide,It.Format,!0);break;case"BBBBB":n=be(ce.DayPeriods,Ce.Narrow,It.Format,!0);break;case"h":n=Ze(le.Hours,1,-12);break;case"hh":n=Ze(le.Hours,2,-12);break;case"H":n=Ze(le.Hours,1);break;case"HH":n=Ze(le.Hours,2);break;case"m":n=Ze(le.Minutes,1);break;case"mm":n=Ze(le.Minutes,2);break;case"s":n=Ze(le.Seconds,1);break;case"ss":n=Ze(le.Seconds,2);break;case"S":n=Ze(le.FractionalSeconds,1);break;case"SS":n=Ze(le.FractionalSeconds,2);break;case"SSS":n=Ze(le.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Bc(cr.Short);break;case"ZZZZZ":n=Bc(cr.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Bc(cr.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Bc(cr.Long);break;default:return null}return vp[e]=n,n}(u);c+=d?d(o,t,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Uc(e,n,t){const r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function ur(e,n){const t=function Zx(e){return bt(e)[Me.LocaleId]}(e);if(jc[t]??={},jc[t][n])return jc[t][n];let r="";switch(n){case"shortDate":r=Fc(e,Gt.Short);break;case"mediumDate":r=Fc(e,Gt.Medium);break;case"longDate":r=Fc(e,Gt.Long);break;case"fullDate":r=Fc(e,Gt.Full);break;case"shortTime":r=Lc(e,Gt.Short);break;case"mediumTime":r=Lc(e,Gt.Medium);break;case"longTime":r=Lc(e,Gt.Long);break;case"fullTime":r=Lc(e,Gt.Full);break;case"short":const o=ur(e,"shortTime"),i=ur(e,"shortDate");r=$c(Vc(e,Gt.Short),[o,i]);break;case"medium":const s=ur(e,"mediumTime"),a=ur(e,"mediumDate");r=$c(Vc(e,Gt.Medium),[s,a]);break;case"long":const l=ur(e,"longTime"),c=ur(e,"longDate");r=$c(Vc(e,Gt.Long),[l,c]);break;case"full":const u=ur(e,"fullTime"),d=ur(e,"fullDate");r=$c(Vc(e,Gt.Full),[u,d])}return r&&(jc[t][n]=r),r}function $c(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return null!=n&&r in n?n[r]:t})),e}function pn(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===le.Hours)0===a&&-12===t&&(a=12);else if(e===le.FractionalSeconds)return function cF(e,n){return pn(e,3).substring(0,n)}(a,n);const l=Kt(s,We.MinusSign);return pn(a,n,l,r,o)}}function be(e,n,t=It.Format,r=!1){return function(o,i){return function dF(e,n,t,r,o,i){switch(t){case ce.Months:return function Xx(e,n,t){const r=bt(e),i=Jt([r[Me.MonthsFormat],r[Me.MonthsStandalone]],n);return Jt(i,t)}(n,o,r)[e.getMonth()];case ce.Days:return function Yx(e,n,t){const r=bt(e),i=Jt([r[Me.DaysFormat],r[Me.DaysStandalone]],n);return Jt(i,t)}(n,o,r)[e.getDay()];case ce.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const c=function tF(e){const n=bt(e);return J0(n),(n[Me.ExtraData][2]||[]).map(r=>"string"==typeof r?mp(r):[mp(r[0]),mp(r[1])])}(n),u=function nF(e,n,t){const r=bt(e);J0(r);const i=Jt([r[Me.ExtraData][0],r[Me.ExtraData][1]],n)||[];return Jt(i,t)||[]}(n,o,r),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,m]=h,C=s>=f.hours&&a>=f.minutes,_=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case cr.Short:return(o>=0?"+":"")+pn(s,2,i)+pn(Math.abs(o%60),2,i);case cr.ShortGMT:return"GMT"+(o>=0?"+":"")+pn(s,1,i);case cr.Long:return"GMT"+(o>=0?"+":"")+pn(s,2,i)+":"+pn(Math.abs(o%60),2,i);case cr.Extended:return 0===r?"Z":(o>=0?"+":"")+pn(s,2,i)+":"+pn(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const hF=0,Hc=4;function eM(e){const n=e.getDay(),t=0===n?-3:Hc-n;return Uc(e.getFullYear(),e.getMonth(),e.getDate()+t)}function yp(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=eM(t),s=function fF(e){const n=Uc(e,hF,1).getDay();return Uc(e,0,1+(n<=Hc?Hc:Hc+7)-n)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return pn(o,e,Kt(r,We.MinusSign))}}function zc(e,n=!1){return function(t,r){return pn(eM(t).getFullYear(),e,Kt(r,We.MinusSign),n)}}const vp={};function tM(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function nM(e){return e instanceof Date&&!isNaN(e.valueOf())}function sM(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 bp=/\s+/,aM=[];let qc=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=aM,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(bp):aM}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(bp):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,!!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(bp).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(r){return new(r||e)(b($t),b(sr))}}static{this.\u0275dir=z({type:e,selectors:[["","ngClass",""]],inputs:{klass:[Se.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();class RF{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 en=(()=>{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 RF(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),cM(a,o)}});for(let o=0,i=r.length;o{cM(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(b(dn),b(ir),b(up))}}static{this.\u0275dir=z({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function cM(e,n){e.context.$implicit=n.item}let Ep=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new OF,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){uM("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){uM("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}static{this.\u0275fac=function(r){return new(r||e)(b(dn),b(ir))}}static{this.\u0275dir=z({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})();class OF{constructor(){this.$implicit=null,this.ngIf=null}}function uM(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ye(n)}'.`)}const WF=new k(""),ZF=new k("");let $n=(()=>{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 lF(t,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function gn(e,n){return new I(2100,!1)}()}}static{this.\u0275fac=function(r){return new(r||e)(b(Un,16),b(WF,24),b(ZF,24))}}static{this.\u0275pipe=ct({name:"date",type:e,pure:!0,standalone:!0})}}return e})(),o4=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=bn({type:e})}static{this.\u0275inj=nn({})}}return e})();const fM="browser";function pM(e){return"server"===e}let c4=(()=>{class e{static{this.\u0275prov=O({token:e,providedIn:"root",factory:()=>function l4(e){return e===fM}(E(wr))?new u4(E(zt),window):new h4})}}return e})();class u4{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.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function d4(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof 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){this.window.history.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])}}class h4{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class gM{}class U4 extends $x{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class kp extends U4{static makeCurrent(){!function Ux(e){q0??=e}(new kp)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}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 $4(){return fa=fa||document.querySelector("base"),fa?fa.getAttribute("href"):null}();return null==t?null:function B4(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){fa=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return sM(document.cookie,n)}}let fa=null,z4=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();const Rp=new k("");let bM=(()=>{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)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(i=>i.supports(t)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(t,r),r}static{this.\u0275fac=function(r){return new(r||e)(R(Rp),R(he))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();class EM{constructor(n){this._doc=n}}const Op="ng-app-id";let IM=(()=>{class e{constructor(t,r,o,i={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=pM(i),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Op}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){const o=this.styleRef;if(o.has(t)){const i=o.get(t);return i.usage+=r,i.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===t)return o.delete(r),i.removeAttribute(Op),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Op,this.appId),t.appendChild(s),s}}addStyleToHost(t,r){const o=this.getStyleElement(t,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(R(zt),R(El),R(cv,8),R(wr))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();const Pp={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/"},xp=/%COMP%/g,Z4=new k("",{providedIn:"root",factory:()=>!0});function TM(e,n){return n.map(t=>t.replace(xp,e))}let NM=(()=>{class e{constructor(t,r,o,i,s,a,l,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=pM(a),this.defaultRenderer=new Fp(t,s,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===rn.ShadowDom&&(r={...r,encapsulation:rn.Emulated});const o=this.getOrCreateRenderer(t,r);return o instanceof kM?o.applyToHost(t):o instanceof Lp&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case rn.Emulated:i=new kM(l,c,r,this.appId,u,s,a,d);break;case rn.ShadowDom:return new K4(l,c,t,r,s,a,this.nonce,d);default:i=new Lp(l,c,r,u,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(R(bM),R(IM),R(El),R(Z4),R(zt),R(wr),R(he),R(cv))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();class Fp{constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Pp[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(AM(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(AM(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new I(-5104,!1);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=Pp[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=Pp[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&(br.DashCase|br.Important)?n.style.setProperty(t,r,o&br.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&br.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=Or().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function AM(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class K4 extends Fp{constructor(n,t,r,o,i,s,a,l){super(n,i,s,l),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=TM(o.id,o.styles);for(const u of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}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 Lp extends Fp{constructor(n,t,r,o,i,s,a,l){super(n,i,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o,this.styles=l?TM(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class kM extends Lp{constructor(n,t,r,o,i,s,a,l){const c=o+"-"+r.id;super(n,t,r,i,s,a,l,c),this.contentAttr=function Q4(e){return"_ngcontent-%COMP%".replace(xp,e)}(c),this.hostAttr=function Y4(e){return"_nghost-%COMP%".replace(xp,e)}(c)}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 J4=(()=>{class e extends EM{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)}static{this.\u0275fac=function(r){return new(r||e)(R(zt))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();const RM=["alt","control","meta","shift"],eL={"\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"},tL={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let nL=(()=>{class e extends EM{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(()=>Or().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."),RM.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),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=eL[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"),RM.forEach(s=>{s!==o&&(0,tL[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}static{this.\u0275fac=function(r){return new(r||e)(R(zt))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();const sL=d0(rx,"browser",[{provide:wr,useValue:fM},{provide:lv,useValue:function rL(){kp.makeCurrent()},multi:!0},{provide:zt,useFactory:function iL(){return function HT(e){Jd=e}(document),document},deps:[]}]),aL=new k(""),xM=[{provide:bc,useClass:class H4{addToWindow(n){de.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new I(5103,!1);return i},de.getAllAngularTestabilities=()=>n.getAllTestabilities(),de.getAllAngularRootElements=()=>n.getAllRootElements(),de.frameworkStabilizers||(de.frameworkStabilizers=[]),de.frameworkStabilizers.push(r=>{const o=de.getAllAngularTestabilities();let i=o.length;const s=function(){i--,0==i&&r()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?Or().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:Jw,useClass:Xf,deps:[he,Kf,bc]},{provide:Xf,useClass:Xf,deps:[he,Kf,bc]}],FM=[{provide:gd,useValue:"root"},{provide:Rn,useFactory:function oL(){return new Rn},deps:[]},{provide:Rp,useClass:J4,multi:!0,deps:[zt,he,wr]},{provide:Rp,useClass:nL,multi:!0,deps:[zt]},NM,IM,bM,{provide:NC,useExisting:NM},{provide:gM,useClass:z4,deps:[]},[]];let lL=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:El,useValue:t.appId}]}}static{this.\u0275fac=function(r){return new(r||e)(R(aL,12))}}static{this.\u0275mod=bn({type:e})}static{this.\u0275inj=nn({providers:[...FM,...xM],imports:[o4,ox]})}}return e})(),cL=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static{this.\u0275fac=function(r){return new(r||e)(R(zt))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function xr(e){return this instanceof xr?(this.v=e,this):new xr(e)}function HM(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 $p(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(c){i({value:c,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const zM=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function GM(e){return Ie(e?.then)}function qM(e){return Ie(e[qu])}function WM(e){return Symbol.asyncIterator&&Ie(e?.[Symbol.asyncIterator])}function ZM(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 QM=function jL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function YM(e){return Ie(e?.[QM])}function XM(e){return function BM(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(f){return function(m){return Promise.resolve(m).then(f,d)}}),o[Symbol.asyncIterator]=function(){return this},o;function a(f,m){r[f]&&(o[f]=function(C){return new Promise(function(_,D){i.push([f,C,_,D])>1||l(f,C)})},m&&(o[f]=m(o[f])))}function l(f,m){try{!function c(f){f.value instanceof xr?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}(r[f](m))}catch(C){h(i[0][3],C)}}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,m){f(m),i.shift(),i.length&&l(i[0][0],i[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield xr(t.read());if(o)return yield xr(void 0);yield yield xr(r)}}finally{t.releaseLock()}})}function KM(e){return Ie(e?.getReader)}function Bn(e){if(e instanceof Ge)return e;if(null!=e){if(qM(e))return function UL(e){return new Ge(n=>{const t=e[qu]();if(Ie(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(zM(e))return function $L(e){return new Ge(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,dm)})}(e);if(WM(e))return JM(e);if(YM(e))return function HL(e){return new Ge(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(KM(e))return function zL(e){return JM(XM(e))}(e)}throw ZM(e)}function JM(e){return new Ge(n=>{(function GL(e,n){var t,r,o,i;return function UM(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(u.value).then(a,l)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=HM(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 dr(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 e1(e,n=0){return st((t,r)=>{t.subscribe(Qe(r,o=>dr(r,e,()=>r.next(o),n),()=>dr(r,e,()=>r.complete(),n),o=>dr(r,e,()=>r.error(o),n)))})}function t1(e,n=0){return st((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function n1(e,n){if(!e)throw new Error("Iterable cannot be null");return new Ge(t=>{dr(t,n,()=>{const r=e[Symbol.asyncIterator]();dr(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function nt(e,n){return n?function XL(e,n){if(null!=e){if(qM(e))return function qL(e,n){return Bn(e).pipe(t1(n),e1(n))}(e,n);if(zM(e))return function ZL(e,n){return new Ge(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(GM(e))return function WL(e,n){return Bn(e).pipe(t1(n),e1(n))}(e,n);if(WM(e))return n1(e,n);if(YM(e))return function QL(e,n){return new Ge(t=>{let r;return dr(t,n,()=>{r=e[QM](),dr(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)}),()=>Ie(r?.return)&&r.return()})}(e,n);if(KM(e))return function YL(e,n){return n1(XM(e),n)}(e,n)}throw ZM(e)}(e,n):Bn(e)}const{isArray:KL}=Array,{getPrototypeOf:JL,prototype:e5,keys:t5}=Object;function r1(e){if(1===e.length){const n=e[0];if(KL(n))return{args:n,keys:null};if(function n5(e){return e&&"object"==typeof e&&JL(e)===e5}(n)){const t=t5(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}function Hp(e){return e[e.length-1]}function o1(e){return Ie(Hp(e))?e.pop():void 0}function Yc(e){return function r5(e){return e&&Ie(e.schedule)}(Hp(e))?e.pop():void 0}const{isArray:o5}=Array;function i1(e){return ie(n=>function i5(e,n){return o5(n)?e(...n):e(n)}(e,n))}function s1(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}let a1=(()=>{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)}static{this.\u0275fac=function(r){return new(r||e)(b(sr),b($t))}}static{this.\u0275dir=z({type:e})}}return e})(),po=(()=>{class e extends a1{static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=ot(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,features:[ge]})}}return e})();const Hn=new k(""),a5={provide:Hn,useExisting:_e(()=>ga),multi:!0};let ga=(()=>{class e extends po{writeValue(t){this.setProperty("checked",t)}static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=ot(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){1&r&&S("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},features:[Ae([a5]),ge]})}}return e})();const l5={provide:Hn,useExisting:_e(()=>lt),multi:!0},u5=new k("");let lt=(()=>{class e extends a1{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function c5(){const e=Or()?Or().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)}static{this.\u0275fac=function(r){return new(r||e)(b(sr),b($t),b(u5,8))}}static{this.\u0275dir=z({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(r,o){1&r&&S("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[Ae([l5]),ge]})}}return e})();const yt=new k(""),Lr=new k("");function y1(e){return null!=e}function v1(e){return sa(e)?nt(e):e}function C1(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function _1(e,n){return n.map(t=>t(e))}function D1(e){return e.map(n=>function h5(e){return!e.validate}(n)?n:t=>n.validate(t))}function zp(e){return null!=e?function w1(e){if(!e)return null;const n=e.filter(y1);return 0==n.length?null:function(t){return C1(_1(t,n))}}(D1(e)):null}function Gp(e){return null!=e?function M1(e){if(!e)return null;const n=e.filter(y1);return 0==n.length?null:function(t){return function s5(...e){const n=o1(e),{args:t,keys:r}=r1(e),o=new Ge(i=>{const{length:s}=t;if(!s)return void i.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?s1(r,a):a),i.complete())}))}});return n?o.pipe(i1(n)):o}(_1(t,n).map(v1)).pipe(ie(C1))}}(D1(e)):null}function b1(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function qp(e){return e?Array.isArray(e)?e:[e]:[]}function Kc(e,n){return Array.isArray(e)?e.includes(n):e===n}function S1(e,n){const t=qp(n);return qp(e).forEach(o=>{Kc(t,o)||t.push(o)}),t}function T1(e,n){return qp(n).filter(t=>!Kc(e,t))}class N1{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=zp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Gp(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=void 0){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 St extends N1{get formDirective(){return null}get path(){return null}}class Vr extends N1{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class A1{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 Tt=(()=>{class e extends A1{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||e)(b(Vr,2))}}static{this.\u0275dir=z({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&fc("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ge]})}}return e})(),k1=(()=>{class e extends A1{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||e)(b(St,10))}}static{this.\u0275dir=z({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&fc("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ge]})}}return e})();const ma="VALID",eu="INVALID",Ii="PENDING",ya="DISABLED";function Qp(e){return(tu(e)?e.validators:e)||null}function Yp(e,n){return(tu(n)?n.asyncValidators:e)||null}function tu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Xp{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===ma}get invalid(){return this.status===eu}get pending(){return this.status==Ii}get disabled(){return this.status===ya}get enabled(){return this.status!==ya}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(S1(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(S1(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(T1(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(T1(n,this._rawAsyncValidators))}hasValidator(n){return Kc(this._rawValidators,n)}hasAsyncValidator(n){return Kc(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=Ii,!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=ya,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=ma,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===ma||this.status===Ii)&&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()?ya:ma}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ii,this._hasOwnPendingAsyncValidator=!0;const t=v1(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 xe,this.statusChanges=new xe}_calculateStatus(){return this._allControlsDisabled()?ya:this.errors?eu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ii)?Ii:this._anyControlsHaveStatus(eu)?eu:ma}_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){tu(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 m5(e){return Array.isArray(e)?zp(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function y5(e){return Array.isArray(e)?Gp(e):e||null}(this._rawAsyncValidators)}}class Kp extends Xp{constructor(n,t,r){super(Qp(t),Yp(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 P1(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new I(1002,"")})})(this,0,n),Object.keys(n).forEach(r=>{(function O1(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new I(1e3,"");if(!r[t])throw new I(1001,"")})(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?n[o]:null,{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 Si=new k("CallSetDisabledState",{providedIn:"root",factory:()=>nu}),nu="always";function va(e,n,t=nu){Jp(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function _5(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&x1(e,n)})}(e,n),function w5(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 D5(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&x1(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function C5(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function iu(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Jp(e,n){const t=function E1(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(b1(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=function I1(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(b1(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();iu(n._rawValidators,o),iu(n._rawAsyncValidators,o)}function x1(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const S5={provide:St,useExisting:_e(()=>au)},Ca=Promise.resolve();let au=(()=>{class e extends St{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new xe,this.form=new Kp({},zp(t),Gp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ca.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),va(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ca.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Ca.then(()=>{const r=this._findContainer(t.path),o=new Kp({});(function F1(e,n){Jp(e,n)})(o,t),r.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ca.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Ca.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,function L1(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=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static{this.\u0275fac=function(r){return new(r||e)(b(yt,10),b(Lr,10),b(Si,8))}}static{this.\u0275dir=z({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){1&r&&S("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[Se.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ae([S5]),ge]})}}return e})();function V1(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function j1(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const U1=class extends Xp{constructor(n=null,t,r){super(Qp(t),Yp(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}),tu(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=j1(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){V1(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){V1(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){j1(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}},A5={provide:Vr,useExisting:_e(()=>vt)},H1=Promise.resolve();let vt=(()=>{class e extends Vr{constructor(t,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new U1,this._registered=!1,this.name="",this.update=new xe,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function ng(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===lt?t=i:function E5(e){return Object.getPrototypeOf(e.constructor)===po}(i)?r=i:o=i}),o||r||t||null}(0,i)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function tg(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){va(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){H1.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,o=0!==r&&Mi(r);H1.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function ru(e,n){return[...n.path,e]}(t,this._parent):[t]}static{this.\u0275fac=function(r){return new(r||e)(b(St,9),b(yt,10),b(Lr,10),b(Hn,10),b(aa,8),b(Si,8))}}static{this.\u0275dir=z({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Se.None,"disabled","isDisabled"],model:[Se.None,"ngModel","model"],options:[Se.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ae([A5]),ge,Yt]})}}return e})(),z1=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=z({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})(),e6=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=bn({type:e})}static{this.\u0275inj=nn({})}}return e})(),n6=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Si,useValue:t.callSetDisabledState??nu}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=bn({type:e})}static{this.\u0275inj=nn({imports:[e6]})}}return e})();function B(...e){return nt(e,Yc(e))}function Ct(e,n,t=1/0){return Ie(n)?Ct((r,o)=>ie((i,s)=>n(r,i,o,s))(Bn(e(r,o))),t):("number"==typeof n&&(t=n),st((r,o)=>function r6(e,n,t,r,o,i,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},f=C=>c{i&&n.next(C),c++;let _=!1;Bn(t(C,u++)).subscribe(Qe(n,D=>{o?.(D),i?f(D):n.next(D)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cm(D)):m(D)}h()}catch(D){n.error(D)}}))};return e.subscribe(Qe(n,f,()=>{d=!0,h()})),()=>{a?.()}}(r,o,e,t)))}function Ti(e,n){return Ie(n)?Ct(e,n,1):Ct(e,1)}function hr(e,n){return st((t,r)=>{let o=0;t.subscribe(Qe(r,i=>e.call(n,i,o++)&&r.next(i)))})}function _a(e){return st((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function mn(e,n){return st((t,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();t.subscribe(Qe(r,l=>{o?.unsubscribe();let c=0;const u=i++;Bn(e(l,u)).subscribe(o=Qe(r,d=>r.next(n?n(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class lu{}class cu{}class Fe{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{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])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}: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 Fe?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 Fe;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Fe?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)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(i=>i.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class o6{encodeKey(n){return cb(n)}encodeValue(n){return cb(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const s6=/%(\d[a-f0-9])/gi,a6={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function cb(e){return encodeURIComponent(e).replace(s6,(n,t)=>a6[t]??n)}function uu(e){return`${e}`}class jr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new o6,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function i6(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(uu):[uu(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 jr({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(uu(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(uu(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 l6{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 ub(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function db(e){return typeof Blob<"u"&&e instanceof Blob}function hb(e){return typeof FormData<"u"&&e instanceof FormData}class Da{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 c6(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.transferCache=i.transferCache),this.headers??=new Fe,this.context??=new l6,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ah.set(f,n.setHeaders[f]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((h,f)=>h.set(f,n.setParams[f]),u)),new Da(t,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a,transferCache:i})}}var Ur=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Ur||{});class cg{constructor(n,t=wa.Ok,r="OK"){this.headers=n.headers||new Fe,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 du extends cg{constructor(n={}){super(n),this.type=Ur.ResponseHeader}clone(n={}){return new du({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 mo extends cg{constructor(n={}){super(n),this.type=Ur.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new mo({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 Ni extends cg{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}}var wa=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(wa||{});function ug(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,transferCache:e.transferCache}}let zn=(()=>{class e{constructor(t){this.handler=t}request(t,r,o={}){let i;if(t instanceof Da)i=t;else{let l,c;l=o.headers instanceof Fe?o.headers:new Fe(o.headers),o.params&&(c=o.params instanceof jr?o.params:new jr({fromObject:o.params})),i=new Da(t,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const s=B(i).pipe(Ti(l=>this.handler.handle(l)));if(t instanceof Da||"events"===o.observe)return s;const a=s.pipe(hr(l=>l instanceof mo));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 jr).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,ug(o,r))}post(t,r,o={}){return this.request("POST",t,ug(o,r))}put(t,r,o={}){return this.request("PUT",t,ug(o,r))}static{this.\u0275fac=function(r){return new(r||e)(R(lu))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();function pb(e,n){return n(e)}function g6(e,n){return(t,r)=>n.intercept(t,{handle:o=>e(o,r)})}const gb=new k(""),Ma=new k(""),mb=new k(""),yb=new k("");function y6(){let e=null;return(n,t)=>{null===e&&(e=(E(gb,{optional:!0})??[]).reduceRight(g6,pb));const r=E(Sr),o=r.add();return e(n,t).pipe(_a(()=>r.remove(o)))}}let vb=(()=>{class e extends lu{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=E(Sr);const o=E(yb,{optional:!0});this.backend=o??t}handle(t){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Ma),...this.injector.get(mb,[])]));this.chain=o.reduceRight((i,s)=>function m6(e,n,t){return(r,o)=>En(t,()=>n(r,i=>e(i,o)))}(i,s,this.injector),pb)}const r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(_a(()=>this.pendingTasks.remove(r)))}static{this.\u0275fac=function(r){return new(r||e)(R(cu),R(_t))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();const w6=/^\)\]\}',?\n/;let _b=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new I(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?nt(r.\u0275loadImpl()):B(null)).pipe(mn(()=>new Ge(i=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((C,_)=>s.setRequestHeader(C,_.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const C=t.detectContentTypeHeader();null!==C&&s.setRequestHeader("Content-Type",C)}if(t.responseType){const C=t.responseType.toLowerCase();s.responseType="json"!==C?C:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const C=s.statusText||"OK",_=new Fe(s.getAllResponseHeaders()),D=function M6(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new du({headers:_,status:s.status,statusText:C,url:D}),l},u=()=>{let{headers:C,status:_,statusText:D,url:w}=c(),A=null;_!==wa.NoContent&&(A=typeof s.response>"u"?s.responseText:s.response),0===_&&(_=A?wa.Ok:0);let L=_>=200&&_<300;if("json"===t.responseType&&"string"==typeof A){const te=A;A=A.replace(w6,"");try{A=""!==A?JSON.parse(A):null}catch(ue){A=te,L&&(L=!1,A={error:ue,text:A})}}L?(i.next(new mo({body:A,headers:C,status:_,statusText:D,url:w||void 0})),i.complete()):i.error(new Ni({error:A,headers:C,status:_,statusText:D,url:w||void 0}))},d=C=>{const{url:_}=c(),D=new Ni({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:_||void 0});i.error(D)};let h=!1;const f=C=>{h||(i.next(c()),h=!0);let _={type:Ur.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(_.total=C.total),"text"===t.responseType&&s.responseText&&(_.partialText=s.responseText),i.next(_)},m=C=>{let _={type:Ur.UploadProgress,loaded:C.loaded};C.lengthComputable&&(_.total=C.total),i.next(_)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),t.reportProgress&&(s.addEventListener("progress",f),null!==a&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),i.next({type:Ur.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),t.reportProgress&&(s.removeEventListener("progress",f),null!==a&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(R(gM))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();const fg=new k(""),Db=new k("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),wb=new k("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Mb{}let I6=(()=>{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=sM(t,this.cookieName),this.lastCookieString=t),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(R(zt),R(wr),R(Db))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();function S6(e,n){const t=e.url.toLowerCase();if(!E(fg)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=E(Mb).getToken(),o=E(wb);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var $r=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}($r||{});function yo(e,n){return{\u0275kind:e,\u0275providers:n}}function T6(...e){const n=[zn,_b,vb,{provide:lu,useExisting:vb},{provide:cu,useExisting:_b},{provide:Ma,useValue:S6,multi:!0},{provide:fg,useValue:!0},{provide:Mb,useClass:I6}];for(const t of e)n.push(...t.\u0275providers);return function Ji(e){return{\u0275providers:e}}(n)}const bb=new k("");let A6=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=bn({type:e})}static{this.\u0275inj=nn({providers:[T6(yo($r.LegacyInterceptors,[{provide:bb,useFactory:y6},{provide:Ma,useExisting:bb,multi:!0}]))]})}}return e})();function H(e,n,t){const r=Ie(e)||n||t?{next:e,error:n,complete:t}:e;return r?st((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Qe(i,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),i.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):Yr}function ee(e){return st((n,t)=>{let i,r=null,o=!1;r=n.subscribe(Qe(t,void 0,void 0,s=>{i=Bn(e(s,ee(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}const yn_restServerUrl="https://sf.truyen.network";function fr(e="operation",n,t){return r=>{throw n&&(t.trim().length>0?n.add(`${t}: ${e} failed. Response status = ${r.status} statusText = ${r.statusText}`):n.add(`${e} failed: response status = ${r.status} statusText = ${r.statusText}`)),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):new Error(`${e} failed: status = ${r.status}`,{cause:r})}}let Gn=(()=>{class e{constructor(){this.messages=[],this.add("Angular version: "+eP.full)}add(t){this.messages.push((new Date).toLocaleTimeString()+") "+t)}clear(){this.messages=[]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class vo{static{this.REST_URL=yn_restServerUrl+"/api/chat"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Fe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return fr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getChatMessages(){return this.http.get(vo.REST_URL,this.httpOptions).pipe(H(n=>this.log(`fetched ${n.length} messages`)),ee(this.handleError("getChatMessages")))}addChatMessage(n,t){return this.http.post(vo.REST_URL,{author:n,text:t},this.httpOptions).pipe(H(o=>this.log(`added message w/ id=${o.id}`)),ee(this.handleError("addChatMessage")))}static{this.\u0275fac=function(t){return new(t||vo)(R(zn),R(Gn))}}static{this.\u0275prov=O({token:vo,factory:vo.\u0275fac,providedIn:"root"})}}const Ai="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),pg=Array.from({length:64},(e,n)=>n),fu=e=>Array(e).fill(-1),Br=[...fu(46),0,1,...pg.slice(54,64),...fu(7),...pg.slice(2,28),...fu(6),...pg.slice(28,54),...fu(5)],Rb=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],Ob=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946,1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055,3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504,976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],Pb=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892],gg=(e,n)=>{if(n<=0||n>e.length)throw Error(`Illegal len: ${n}`);let r,o,t=0;const i=[];for(;t>2&63]),r=(3&r)<<4,t>=n){i.push(Ai[63&r]);break}if(o=255&e[t++],r|=o>>4&15,i.push(Ai[63&r]),r=(15&o)<<2,t>=n){i.push(Ai[63&r]);break}o=255&e[t++],r|=o>>6&3,i.push(Ai[63&r]),i.push(Ai[63&o])}return i.join("")},pu="object"==typeof process&&"edge"===process.env.NEXT_RUNTIME?setTimeout:"function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:setTimeout,ba=(e,n,t,r)=>{let o,i=e[n],s=e[n+1];return i^=t[0],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[1],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[2],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[3],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[4],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[5],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[6],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[7],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[8],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[9],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[10],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[11],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[12],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[13],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[14],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[15],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[16],e[n]=s^t[17],e[n+1]=i,e},ki=(e,n)=>{let t=0;for(let r=0;r<4;++r)t=t<<8|255&e[n],n=(n+1)%e.length;return{key:t,offp:n}},xb=(e,n,t)=>{const r=n.length,o=t.length;let a,i=0,s=[0,0];for(let l=0;l{const i=Pb.slice(),s=i.length;if(t<4||t>31){const h=new Error(`Illegal number of rounds (4-31): ${t}`);if(!1===r)return Promise.reject(h);throw h}if(16!==n.length){const h=new Error(`Illegal salt length: ${n.length} != 16`);if(!1===r)return Promise.reject(h);throw h}t=1<>>0;let a,l,u,c=0;Int32Array?(a=new Int32Array(Rb),l=new Int32Array(Ob)):(a=Rb.slice(),l=Ob.slice()),((e,n,t,r)=>{const o=t.length,i=r.length;let l,s=0,a=[0,0];for(let c=0;c{if(o&&o(c/t),!(c>1;u++)ba(i,u<<1,a,l);const h=[];for(c=0;c>24&255)>>>0),h.push((i[c]>>16&255)>>>0),h.push((i[c]>>8&255)>>>0),h.push((255&i[c])>>>0);return!1===r?Promise.resolve(h):h}{const h=Date.now();for(;c100)););}if(!1===r)return new Promise(h=>pu(()=>{d().then(h)}))};if(!1===r)return d();{let h;for(;;)if(typeof(h=d())<"u")return h||[]}},mg=(e=10)=>{if("number"!=typeof e)throw Error("Illegal arguments: "+typeof e);e<4?e=4:e>31&&(e=31);const n=[];return n.push("$2a$"),e<10&&n.push("0"),n.push(e.toString()),n.push("$"),n.push(gg((e=>{try{let n;n=typeof window<"u"?window.crypto??window.msCrypto:globalThis.crypto;const t=new Uint32Array(16);return n?.getRandomValues(t),Array.from(t)}catch{throw Error("WebCryptoAPI is not available")}})(),16)),n.join("")};const Lb=(e,n=10)=>{if("number"==typeof n&&(n=mg(n)),"string"!=typeof e||"string"!=typeof n)throw Error("Illegal arguments: "+typeof e+", "+typeof n);return function yg(e,n,t,r){if("string"!=typeof e||"string"!=typeof n){const f=new Error("Invalid string / salt: Not a string");if(!1===t)return Promise.reject(f);throw f}let o,i;if("$"!==n.charAt(0)||"2"!==n.charAt(1)){const f=new Error("Invalid salt version: "+n.substring(0,2));if(!1===t)return Promise.reject(f);throw f}if("$"===n.charAt(2))o="\0",i=3;else{if(o=n.charAt(2),"a"!==o&&"b"!==o&&"y"!==o||"$"!==n.charAt(3)){const f=Error("Invalid salt revision: "+n.substring(2,4));if(!1===t)return Promise.reject(f);throw f}i=4}if(n.charAt(i+2)>"$"){const f=new Error("Missing salt rounds");if(!1===t)return Promise.reject(f);throw f}const l=10*parseInt(n.substring(i,i+1),10)+parseInt(n.substring(i+1,i+2),10),c=n.substring(i+3,i+25),u=(e=>{let n=0;const t=[];return((e,n)=>{((e,n)=>{let t,r=null;for(;null!==(t=null!==r?r:e());)t>=55296&&t<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(n(1024*(t-55296)+r-56320+65536),r=null):n(t);null!==r&&n(r)})(e,t=>{((e,n)=>{let t=null;for("number"==typeof e&&(t=e,e=()=>null);null!==t||null!==(t=e());)t<128?n(127&t):t<2048?(n(t>>6&31|192),n(63&t|128)):t<65536?(n(t>>12&15|224),n(t>>6&63|128),n(63&t|128)):(n(t>>18&7|240),n(t>>12&63|128),n(t>>6&63|128),n(63&t|128)),t=null})(t,n)})})(()=>n{t.push(r)}),t})(e+=o>="a"?"\0":""),d=((e,n)=>{const t=e.length;let i,s,a,l,c,u,r=0,o=0;const d=[];for(;r>>0,c|=(48&s)>>4,d.push(String.fromCharCode(c)),++o>=16||r>=t)||(u=e.charCodeAt(r++),a=u>>0,c|=(60&a)>>2,d.push(String.fromCharCode(c)),++o>=16||r>=t)));)u=e.charCodeAt(r++),l=u>>0,c|=l,d.push(String.fromCharCode(c)),++o;return d.map(h=>h.charCodeAt(0))})(c),h=f=>{const m=[];return m.push("$2"),o>="a"&&m.push(o),m.push("$"),l<10&&m.push("0"),m.push(l.toString()),m.push("$"),m.push(gg(d,d.length)),m.push(gg(f,4*Pb.length-1)),m.join("")};return!1===t?Fb(u,d,l,!1,r).then(f=>h(f)):h(Fb(u,d,l,!0,r))}(e,n,!0)};function vg(...e){const n=Yc(e),t=o1(e),{args:r,keys:o}=r1(e);if(0===r.length)return nt([],n);const i=new Ge(function q6(e,n,t=Yr){return r=>{Vb(n,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const c=nt(e[l],n);let u=!1;c.subscribe(Qe(r,d=>{i[l]=d,u||(u=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>s1(o,s):Yr));return t?i.pipe(i1(t)):i}function Vb(e,n,t){e?dr(t,e,n):n()}const gu=Lu(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ea(e=1/0){return Ct(Yr,e)}function Cg(...e){return function W6(){return Ea(1)}()(nt(e,Yc(e)))}function jb(e){return new Ge(n=>{Bn(e()).subscribe(n)})}function mu(e,n){const t=Ie(e)?e:()=>e,r=o=>o.error(t());return new Ge(n?o=>n.schedule(r,0,o):r)}const qn=new Ge(e=>e.complete());function _g(){return st((e,n)=>{let t=null;e._refCount++;const r=Qe(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 Ub extends Ge{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,gm(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 Nt;const t=this.getSubject();n.add(this.source.subscribe(Qe(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Nt.EMPTY)}return n}refCount(){return _g()(this)}}function Ri(e){return e<=0?()=>qn:st((n,t)=>{let r=0;n.subscribe(Qe(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function yu(e){return st((n,t)=>{let r=!1;n.subscribe(Qe(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function $b(e=Y6){return st((n,t)=>{let r=!1;n.subscribe(Qe(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function Y6(){return new gu}function Co(e,n){const t=arguments.length>=2;return r=>r.pipe(e?hr((o,i)=>e(o,i,r)):Yr,Ri(1),t?yu(n):$b(()=>new gu))}function Dg(e){return e<=0?()=>qn:st((n,t)=>{let r=[];n.subscribe(Qe(t,o=>{r.push(o),e{for(const o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}const Y="primary",Ia=Symbol("RouteTitle");class n8{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 Oi(e){return new n8(e)}function r8(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 Hb(e){return e.length>0?e[e.length-1]:null}function Hr(e){return function G6(e){return!!e&&(e instanceof Ge||Ie(e.lift)&&Ie(e.subscribe))}(e)?e:sa(e)?nt(Promise.resolve(e)):B(e)}const i8={exact:function qb(e,n,t){if(!_o(e.segments,n.segments)||!vu(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!qb(e.children[r],n.children[r],t))return!1;return!0},subset:Wb},zb={exact:function s8(e,n){return Wn(e,n)},subset:function a8(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Bb(e[t],n[t]))},ignored:()=>!0};function Gb(e,n,t){return i8[t.paths](e.root,n.root,t.matrixParams)&&zb[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function Wb(e,n,t){return Zb(e,n,n.segments,t)}function Zb(e,n,t,r){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!_o(o,t)||n.hasChildren()||!vu(o,t,r))}if(e.segments.length===t.length){if(!_o(e.segments,t)||!vu(e.segments,t,r))return!1;for(const o in n.children)if(!e.children[o]||!Wb(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!!(_o(e.segments,o)&&vu(e.segments,o,r)&&e.children[Y])&&Zb(e.children[Y],n,i,r)}}function vu(e,n,t){return n.every((r,o)=>zb[t](e[o].parameters,r.parameters))}class Pi{constructor(n=new ye([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Oi(this.queryParams),this._queryParamMap}toString(){return u8.serialize(this)}}class ye{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cu(this)}}class Sa{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Oi(this.parameters),this._parameterMap}toString(){return Xb(this)}}function _o(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let xi=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:()=>new Mg,providedIn:"root"})}}return e})();class Mg{parse(n){const t=new D8(n);return new Pi(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Ta(n.root,!0)}`,r=function f8(e){const n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(o=>`${_u(t)}=${_u(o)}`).join("&"):`${_u(t)}=${_u(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function d8(e){return encodeURI(e)}(n.fragment)}`:""}`}}const u8=new Mg;function Cu(e){return e.segments.map(n=>Xb(n)).join("/")}function Ta(e,n){if(!e.hasChildren())return Cu(e);if(n){const t=e.children[Y]?Ta(e.children[Y],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==Y&&r.push(`${o}:${Ta(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function c8(e,n){let t=[];return Object.entries(e.children).forEach(([r,o])=>{r===Y&&(t=t.concat(n(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==Y&&(t=t.concat(n(o,r)))}),t}(e,(r,o)=>o===Y?[Ta(e.children[Y],!1)]:[`${o}:${Ta(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Y]?`${Cu(e)}/${t[0]}`:`${Cu(e)}/(${t.join("//")})`}}function Qb(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _u(e){return Qb(e).replace(/%3B/gi,";")}function bg(e){return Qb(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Du(e){return decodeURIComponent(e)}function Yb(e){return Du(e.replace(/\+/g,"%20"))}function Xb(e){return`${bg(e.path)}${function h8(e){return Object.entries(e).map(([n,t])=>`;${bg(n)}=${bg(t)}`).join("")}(e.parameters)}`}const p8=/^[^\/()?;#]+/;function Eg(e){const n=e.match(p8);return n?n[0]:""}const g8=/^[^\/()?;=#]+/,y8=/^[^=?&#]+/,C8=/^[^&#]+/;class D8{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ye([],{}):new ye([],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[Y]=new ye(n,t)),r}parseSegment(){const n=Eg(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(n),new Sa(Du(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function m8(e){const n=e.match(g8);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=Eg(this.remaining);o&&(r=o,this.capture(r))}n[Du(t)]=Du(r)}parseQueryParam(n){const t=function v8(e){const n=e.match(y8);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function _8(e){const n=e.match(C8);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Yb(t),i=Yb(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=Eg(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new I(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=Y);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[Y]:new ye([],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 I(4011,!1)}}function Kb(e){return e.segments.length>0?new ye([],{[Y]:e}):e}function Jb(e){const n={};for(const[r,o]of Object.entries(e.children)){const i=Jb(o);if(r===Y&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function w8(e){if(1===e.numberOfChildren&&e.children[Y]){const n=e.children[Y];return new ye(e.segments.concat(n.segments),n.children)}return e}(new ye(e.segments,n))}function Fi(e){return e instanceof Pi}function eE(e){let n;const o=Kb(function t(i){const s={};for(const l of i.children){const c=t(l);s[l.outlet]=c}const a=new ye(i.url,s);return i===e&&(n=a),a}(e.root));return n??o}function tE(e,n,t,r){let o=e;for(;o.parent;)o=o.parent;if(0===n.length)return Ig(o,o,o,t,r);const i=function b8(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new rE(!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 Object.entries(i.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...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 rE(t,n,r)}(n);if(i.toRoot())return Ig(o,o,new ye([],{}),t,r);const s=function E8(e,n,t){if(e.isAbsolute)return new Mu(n,!0,0);if(!t)return new Mu(n,!1,NaN);if(null===t.parent)return new Mu(t,!0,0);const r=wu(e.commands[0])?0:1;return function I8(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new I(4005,!1);o=r.segments.length}return new Mu(r,!1,o-i)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?Aa(s.segmentGroup,s.index,i.commands):oE(s.segmentGroup,s.index,i.commands);return Ig(o,s.segmentGroup,a,t,r)}function wu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Na(e){return"object"==typeof e&&null!=e&&e.outlets}function Ig(e,n,t,r,o){let s,i={};r&&Object.entries(r).forEach(([l,c])=>{i[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=e===n?t:nE(e,n,t);const a=Kb(Jb(s));return new Pi(a,i,o)}function nE(e,n,t){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===n?t:nE(i,n,t)}),new ye(e.segments,r)}class rE{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&wu(r[0]))throw new I(4003,!1);const o=r.find(Na);if(o&&o!==Hb(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Mu{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function oE(e,n,t){if(e??=new ye([],{}),0===e.segments.length&&e.hasChildren())return Aa(e,n,t);const r=function T8(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(Na(a))break;const l=`${a}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!sE(l,c,s))return i;r+=2}else{if(!sE(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.pathIndexi!==Y)&&e.children[Y]&&1===e.numberOfChildren&&0===e.children[Y].segments.length){const i=Aa(e.children[Y],n,t);return new ye(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=oE(e.children[i],n,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ye(e.segments,o)}}function Sg(e,n,t){const r=e.segments.slice(0,n);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=Sg(new ye([],{}),0,r))}),n}function iE(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function sE(e,n,t){return e==t.path&&Wn(n,t.parameters)}const ka="imperative";var oe=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(oe||{});class Zn{constructor(n,t){this.id=n,this.url=t}}class bu extends Zn{constructor(n,t,r="imperative",o=null){super(n,t),this.type=oe.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class pr extends Zn{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=oe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var qt=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(qt||{}),Eu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Eu||{});class Li extends Zn{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=oe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Vi extends Zn{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=oe.NavigationSkipped}}class Iu extends Zn{constructor(n,t,r,o){super(n,t),this.error=r,this.target=o,this.type=oe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aE extends Zn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=oe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class A8 extends Zn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=oe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class k8 extends Zn{constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=oe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class R8 extends Zn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=oe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class O8 extends Zn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=oe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class P8{constructor(n){this.route=n,this.type=oe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class x8{constructor(n){this.route=n,this.type=oe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class F8{constructor(n){this.snapshot=n,this.type=oe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class L8{constructor(n){this.snapshot=n,this.type=oe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class V8{constructor(n){this.snapshot=n,this.type=oe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class j8{constructor(n){this.snapshot=n,this.type=oe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lE{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=oe.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Tg{}class Ng{constructor(n){this.url=n}}class U8{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ra,this.attachRef=null}}let Ra=(()=>{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 U8,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class cE{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=Ag(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=Ag(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=kg(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return kg(n,this._root).map(t=>t.value)}}function Ag(e,n){if(e===n.value)return n;for(const t of n.children){const r=Ag(e,t);if(r)return r}return null}function kg(e,n){if(e===n.value)return[n];for(const t of n.children){const r=kg(e,t);if(r.length)return r.unshift(n),r}return[]}class vn{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function ji(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class uE extends cE{constructor(n,t){super(n),this.snapshot=t,Pg(this,n)}toString(){return this.snapshot.toString()}}function dE(e){const n=function $8(e){const i=new Og([],{},{},"",{},Y,e,null,{});return new hE("",new vn(i,[]))}(e),t=new Qt([new Sa("",{})]),r=new Qt({}),o=new Qt({}),i=new Qt({}),s=new Qt(""),a=new xt(t,r,i,s,o,Y,e,n.root);return a.snapshot=n.root,new uE(new vn(a,[]),n)}class xt{constructor(n,t,r,o,i,s,a,l){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ie(c=>c[Ia]))??B(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ie(n=>Oi(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ie(n=>Oi(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Rg(e,n,t="emptyOnly"){let r;const{routeConfig:o}=e;return r=null===n||"always"!==t&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.data,...o?.data,...e._resolvedData}},o&&pE(o)&&(r.resolve[Ia]=o.title),r}class Og{get title(){return this.data?.[Ia]}constructor(n,t,r,o,i,s,a,l,c){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._resolve=c}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??=Oi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Oi(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hE extends cE{constructor(n,t){super(t),this.url=n,Pg(this,t)}toString(){return fE(this._root)}}function Pg(e,n){n.value._routerState=e,n.children.forEach(t=>Pg(e,t))}function fE(e){const n=e.children.length>0?` { ${e.children.map(fE).join(", ")} } `:"";return`${e.value}${n}`}function xg(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Wn(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Wn(n.params,t.params)||e.paramsSubject.next(t.params),function o8(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||Fg(e.parent,n.parent))}function pE(e){return"string"==typeof e.title||null===e.title}let Lg=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Y,this.activateEvents=new xe,this.deactivateEvents=new xe,this.attachEvents=new xe,this.detachEvents=new xe,this.parentContexts=E(Ra),this.location=E(dn),this.changeDetector=E(aa),this.environmentInjector=E(_t),this.inputBinder=E(Su,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}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),this.inputBinder?.unsubscribeFromRouteData(this)}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 I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);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.inputBinder?.bindActivatedRouteToOutletComponent(this),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 I(4013,!1);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Vg(t,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=z({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Yt]})}}return e})();class Vg{__ngOutletInjector(n){return new Vg(this.route,this.childContexts,n)}constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===xt?this.route:n===Ra?this.childContexts:this.parent.get(n,t)}}const Su=new k("");let gE=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,o=vg([r.queryParams,r.params,r.data]).pipe(mn(([i,s,a],l)=>(a={...i,...s,...a},0===l?B(a):Promise.resolve(a)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function jx(e){const n=J(e);if(!n)return null;const t=new js(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,o)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();function Oa(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const o=function H8(e,n,t){return n.children.map(r=>{for(const o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Oa(e,r,o);return Oa(e,r)})}(e,n,t);return new vn(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=>Oa(e,a)),s}}const r=function z8(e){return new xt(new Qt(e.url),new Qt(e.params),new Qt(e.queryParams),new Qt(e.fragment),new Qt(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(i=>Oa(e,i));return new vn(r,o)}}const mE="ngNavigationCancelingError";function yE(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=Fi(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=vE(!1,qt.Redirect);return o.url=t,o.navigationBehaviorOptions=r,o}function vE(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[mE]=!0,t.cancellationCode=n,t}function CE(e){return!!e&&e[mE]}let _E=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=rt({type:e,selectors:[["ng-component"]],standalone:!0,features:[Iw],decls:1,vars:0,template:function(r,o){1&r&&$(0,"router-outlet")},dependencies:[Lg],encapsulation:2})}}return e})();function jg(e){const n=e.children&&e.children.map(jg),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Y&&(t.component=_E),t}function Qn(e){return e.outlet||Y}function Pa(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 K8{constructor(n,t,r,o,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),xg(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const o=ji(t);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{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=ji(n);for(const s of Object.values(i))this.deactivateRouteAndItsChildren(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=ji(n);for(const s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const o=ji(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new j8(i.value.snapshot))}),n.children.length&&this.forwardEvent(new L8(n.value.snapshot))}activateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(xg(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),xg(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Pa(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class DE{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Tu{constructor(n,t){this.component=n,this.route=t}}function J8(e,n,t){const r=e._root;return xa(r,n?n._root:null,t,[r.value])}function Ui(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function DI(e){return null!==qa(e)}(e)?n.get(e):e:r}function xa(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=ji(n);return e.children.forEach(s=>{(function tV(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 nV(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!_o(e.url,n.url);case"pathParamsOrQueryParamsChange":return!_o(e.url,n.url)||!Wn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fg(e,n)||!Wn(e.queryParams,n.queryParams);default:return!Fg(e,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new DE(r)):(i.data=s.data,i._resolvedData=s._resolvedData),xa(e,n,i.component?a?a.children:null:t,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Tu(a.outlet.component,s))}else s&&Fa(n,a,o),o.canActivateChecks.push(new DE(r)),xa(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]}),Object.entries(i).forEach(([s,a])=>Fa(a,t.getContext(s),o)),o}function Fa(e,n,t){const r=ji(e),o=e.value;Object.entries(r).forEach(([i,s])=>{Fa(s,o.component?n?n.children.getContext(i):null:n,t)}),t.canDeactivateChecks.push(new Tu(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function La(e){return"function"==typeof e}function wE(e){return e instanceof gu||"EmptyError"===e?.name}const Nu=Symbol("INITIAL_VALUE");function $i(){return mn(e=>vg(e.map(n=>n.pipe(Ri(1),function Q6(...e){const n=Yc(e);return st((t,r)=>{(n?Cg(e,t,n):Cg(e,t)).subscribe(r)})}(Nu)))).pipe(ie(n=>{for(const t of n)if(!0!==t){if(t===Nu)return Nu;if(!1===t||t instanceof Pi)return t}return!0}),hr(n=>n!==Nu),Ri(1)))}function ME(e){return function dI(...e){return hm(e)}(H(n=>{if(Fi(n))throw yE(0,n)}),ie(n=>!0===n))}class Ug{constructor(n){this.segmentGroup=n||null}}class $g extends Error{constructor(n){super(),this.urlTree=n}}function Bi(e){return mu(new Ug(e))}class DV{constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return B(r);if(o.numberOfChildren>1||!o.children[Y])return mu(new I(4e3,!1));o=o.children[Y]}}applyRedirectCommands(n,t,r){const o=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r);if(t.startsWith("/"))throw new $g(o);return o}applyRedirectCreateUrlTree(n,t,r,o){const i=this.createSegmentGroup(n,t.root,r,o);return new Pi(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,o){const i=this.createSegments(n,t.segments,r,o);let s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,r,o)}),new ye(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 I(4001,!1);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}}const Bg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function wV(e,n,t,r,o){const i=Hg(e,n,t);return i.matched?(r=function q8(e,n){return e.providers&&!e._injector&&(e._injector=rc(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function vV(e,n,t,r){const o=n.canMatch;return o&&0!==o.length?B(o.map(s=>{const a=Ui(s,e);return Hr(function lV(e){return e&&La(e.canMatch)}(a)?a.canMatch(n,t):En(e,()=>a(n,t)))})).pipe($i(),ME()):B(!0)}(r,n,t).pipe(ie(s=>!0===s?i:{...Bg}))):B(i)}function Hg(e,n,t){if("**"===n.path)return function MV(e){return{matched:!0,parameters:e.length>0?Hb(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Bg}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(n.matcher||r8)(t,e,n);if(!o)return{...Bg};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.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 bE(e,n,t,r){return t.length>0&&function IV(e,n,t){return t.some(r=>Au(e,n,r)&&Qn(r)!==Y)}(e,t,r)?{segmentGroup:new ye(n,EV(r,new ye(t,e.children))),slicedSegments:[]}:0===t.length&&function SV(e,n,t){return t.some(r=>Au(e,n,r))}(e,t,r)?{segmentGroup:new ye(e.segments,bV(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new ye(e.segments,e.children),slicedSegments:t}}function bV(e,n,t,r){const o={};for(const i of t)if(Au(e,n,i)&&!r[Qn(i)]){const s=new ye([],{});o[Qn(i)]=s}return{...r,...o}}function EV(e,n){const t={};t[Y]=n;for(const r of e)if(""===r.path&&Qn(r)!==Y){const o=new ye([],{});t[Qn(r)]=o}return t}function Au(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class AV{}class OV{constructor(n,t,r,o,i,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new DV(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new I(4002,`'${n.segmentGroup}'`)}recognize(){const n=bE(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(ie(t=>{const r=new Og([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Y,this.rootComponentType,null,{}),o=new vn(r,t),i=new hE("",o),s=function M8(e,n,t=null,r=null){return tE(eE(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root,null),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,Y).pipe(ee(r=>{if(r instanceof $g)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Ug?this.noMatchError(r):r}))}inheritParamsAndData(n,t){const r=n.value,o=Rg(r,t,this.paramsInheritanceStrategy);r.params=Object.freeze(o.params),r.data=Object.freeze(o.data),n.children.forEach(i=>this.inheritParamsAndData(i,r))}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,!0).pipe(ie(i=>i instanceof vn?[i]:[]))}processChildren(n,t,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return nt(o).pipe(Ti(i=>{const s=r.children[i],a=function Y8(e,n){const t=e.filter(r=>Qn(r)===n);return t.push(...e.filter(r=>Qn(r)!==n)),t}(t,i);return this.processSegmentGroup(n,a,s,i)}),function K6(e,n){return st(function X6(e,n,t,r,o){return(i,s)=>{let a=t,l=n,c=0;i.subscribe(Qe(s,u=>{const d=c++;l=a?e(l,u,d):(a=!0,u),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),yu(null),function J6(e,n){const t=arguments.length>=2;return r=>r.pipe(e?hr((o,i)=>e(o,i,r)):Yr,Dg(1),t?yu(n):$b(()=>new gu))}(),Ct(i=>{if(null===i)return Bi(r);const s=EE(i);return function PV(e){e.sort((n,t)=>n.value.outlet===Y?-1:t.value.outlet===Y?1:n.value.outlet.localeCompare(t.value.outlet))}(s),B(s)}))}processSegment(n,t,r,o,i,s){return nt(t).pipe(Ti(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,o,i,s).pipe(ee(l=>{if(l instanceof Ug)return B(null);throw l}))),Co(a=>!!a),ee(a=>{if(wE(a))return function NV(e,n,t){return 0===n.length&&!e.children[t]}(r,o,i)?B(new AV):Bi(r);throw a}))}processSegmentAgainstRoute(n,t,r,o,i,s,a){return function TV(e,n,t,r){return!!(Qn(e)===r||r!==Y&&Au(n,t,e))&&Hg(n,e,t).matched}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,o,t,r,i,s):Bi(o):Bi(o)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){const{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:u}=Hg(t,o,i);if(!a)return Bi(t);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,d).pipe(Ct(h=>this.processSegment(n,r,t,h.concat(u),s,!1)))}matchSegmentAgainstRoute(n,t,r,o,i){const s=wV(t,r,o,n);return"**"===r.path&&(t.children={}),s.pipe(mn(a=>a.matched?this.getChildConfig(n=r._injector??n,r,o).pipe(mn(({routes:l})=>{const c=r._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:h}=a,f=new Og(u,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function FV(e){return e.data||{}}(r),Qn(r),r.component??r._loadedComponent??null,r,function LV(e){return e.resolve||{}}(r)),{segmentGroup:m,slicedSegments:C}=bE(t,u,d,l);if(0===C.length&&m.hasChildren())return this.processChildren(c,l,m).pipe(ie(D=>null===D?null:new vn(f,D)));if(0===l.length&&0===C.length)return B(new vn(f,[]));const _=Qn(r)===i;return this.processSegment(c,l,m,C,_?Y:i,!0).pipe(ie(D=>new vn(f,D instanceof vn?[D]:[])))})):Bi(t)))}getChildConfig(n,t,r){return t.children?B({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?B({routes:t._loadedRoutes,injector:t._loadedInjector}):function yV(e,n,t,r){const o=n.canLoad;return void 0===o||0===o.length?B(!0):B(o.map(s=>{const a=Ui(s,e);return Hr(function oV(e){return e&&La(e.canLoad)}(a)?a.canLoad(n,t):En(e,()=>a(n,t)))})).pipe($i(),ME())}(n,t,r).pipe(Ct(o=>o?this.configLoader.loadChildren(n,t).pipe(H(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):function _V(e){return mu(vE(!1,qt.GuardRejected))}())):B({routes:[],injector:n})}}function xV(e){const n=e.value.routeConfig;return n&&""===n.path}function EE(e){const n=[],t=new Set;for(const r of e){if(!xV(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=EE(r.children);n.push(new vn(r.value,o))}return n.filter(r=>!t.has(r))}function IE(e){const n=e.children.map(t=>IE(t)).flat();return[e,...n]}function zg(e){return mn(n=>{const t=e(n);return t?nt(t).pipe(ie(()=>n)):B(n)})}let SE=(()=>{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===Y);return r}getResolvedTitleForRoute(t){return t.data[Ia]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:()=>E(HV),providedIn:"root"})}}return e})(),HV=(()=>{class e extends SE{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(R(cL))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Hi=new k("",{providedIn:"root",factory:()=>({})}),zi=new k("");let Gg=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=E(o0)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return B(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Hr(t.loadComponent()).pipe(ie(TE),H(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),_a(()=>{this.componentLoaders.delete(t)})),o=new Ub(r,()=>new Zt).pipe(_g());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return B({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=function zV(e,n,t,r){return Hr(e.loadChildren()).pipe(ie(TE),Ct(o=>o instanceof C_||Array.isArray(o)?B(o):nt(n.compileModuleAsync(o))),ie(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,!0):(i=o.create(t).injector,s=i.get(zi,[],{optional:!0,self:!0}).flat()),{routes:s.map(jg),injector:i}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(_a(()=>{this.childrenLoaders.delete(r)})),s=new Ub(i,()=>new Zt).pipe(_g());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function TE(e){return function GV(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let qg=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:()=>E(qV),providedIn:"root"})}}return e})(),qV=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const NE=new k(""),AE=new k("");function WV(e,n,t){const r=e.get(AE),o=e.get(zt);return e.get(he).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let i;const s=new Promise(c=>{i=c}),a=o.startViewTransition(()=>(i(),function ZV(e){return new Promise(n=>{ef(n,{injector:e})})}(e))),{onViewTransitionCreated:l}=r;return l&&En(e,()=>l({transition:a,from:n,to:t})),s})}let ku=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Zt,this.transitionAbortSubject=new Zt,this.configLoader=E(Gg),this.environmentInjector=E(_t),this.urlSerializer=E(xi),this.rootContexts=E(Ra),this.location=E(bi),this.inputBindingEnabled=null!==E(Su,{optional:!0}),this.titleStrategy=E(SE),this.options=E(Hi,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=E(qg),this.createViewTransition=E(NE,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>B(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new x8(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new P8(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,o){return this.transitions=new Qt({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ka,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(hr(i=>0!==i.id),ie(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),mn(i=>{let s=!1,a=!1;return B(i).pipe(mn(l=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",qt.SupersededByNewNavigation),qn;this.currentTransition=i,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const d="";return this.events.next(new Vi(l.id,this.urlSerializer.serialize(l.rawUrl),d,Eu.IgnoredSameUrlNavigation)),l.resolve(null),qn}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return B(l).pipe(mn(d=>{const h=this.transitions?.getValue();return this.events.next(new bu(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?qn:Promise.resolve(d)}),function VV(e,n,t,r,o,i){return Ct(s=>function kV(e,n,t,r,o,i,s="emptyOnly"){return new OV(e,n,t,r,o,s,i).recognize()}(e,n,t,r,s.extractedUrl,o,i).pipe(ie(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),H(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const h=new aE(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:d,extractedUrl:h,source:f,restoredState:m,extras:C}=l,_=new bu(d,this.urlSerializer.serialize(h),f,m);this.events.next(_);const D=dE(this.rootComponentType).snapshot;return this.currentTransition=i={...l,targetSnapshot:D,urlAfterRedirects:h,extras:{...C,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=h,B(i)}{const d="";return this.events.next(new Vi(l.id,this.urlSerializer.serialize(l.extractedUrl),d,Eu.IgnoredByUrlHandlingStrategy)),l.resolve(null),qn}}),H(l=>{const c=new A8(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),ie(l=>(this.currentTransition=i={...l,guards:J8(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},i)),function cV(e,n){return Ct(t=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return 0===s.length&&0===i.length?B({...t,guardsResult:!0}):function uV(e,n,t,r){return nt(e).pipe(Ct(o=>function mV(e,n,t,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?B(i.map(a=>{const l=Pa(n)??o,c=Ui(a,l);return Hr(function aV(e){return e&&La(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,r):En(l,()=>c(e,n,t,r))).pipe(Co())})).pipe($i()):B(!0)}(o.component,o.route,t,n,r)),Co(o=>!0!==o,!0))}(s,r,o,e).pipe(Ct(a=>a&&function rV(e){return"boolean"==typeof e}(a)?function dV(e,n,t,r){return nt(n).pipe(Ti(o=>Cg(function fV(e,n){return null!==e&&n&&n(new F8(e)),B(!0)}(o.route.parent,r),function hV(e,n){return null!==e&&n&&n(new V8(e)),B(!0)}(o.route,r),function gV(e,n,t){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function eV(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=>jb(()=>B(s.guards.map(l=>{const c=Pa(s.node)??t,u=Ui(l,c);return Hr(function sV(e){return e&&La(e.canActivateChild)}(u)?u.canActivateChild(r,e):En(c,()=>u(r,e))).pipe(Co())})).pipe($i())));return B(i).pipe($i())}(e,o.path,t),function pV(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return B(!0);const o=r.map(i=>jb(()=>{const s=Pa(n)??t,a=Ui(i,s);return Hr(function iV(e){return e&&La(e.canActivate)}(a)?a.canActivate(n,e):En(s,()=>a(n,e))).pipe(Co())}));return B(o).pipe($i())}(e,o.route,t))),Co(o=>!0!==o,!0))}(r,i,e,n):B(a)),ie(a=>({...t,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),H(l=>{if(i.guardsResult=l.guardsResult,Fi(l.guardsResult))throw yE(0,l.guardsResult);const c=new k8(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),hr(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",qt.GuardRejected),!1)),zg(l=>{if(l.guards.canActivateChecks.length)return B(l).pipe(H(c=>{const u=new R8(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),mn(c=>{let u=!1;return B(c).pipe(function jV(e,n){return Ct(t=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return B(t);const i=new Set(o.map(l=>l.route)),s=new Set;for(const l of i)if(!s.has(l))for(const c of IE(l))s.add(c);let a=0;return nt(s).pipe(Ti(l=>i.has(l)?function UV(e,n,t,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!pE(o)&&(i[Ia]=o.title),function $V(e,n,t,r){const o=wg(e);if(0===o.length)return B({});const i={};return nt(o).pipe(Ct(s=>function BV(e,n,t,r){const o=Pa(n)??r,i=Ui(e,o);return Hr(i.resolve?i.resolve(n,t):En(o,()=>i(n,t)))}(e[s],n,t,r).pipe(Co(),H(a=>{i[s]=a}))),Dg(1),function e8(e){return ie(()=>e)}(i),ee(s=>wE(s)?qn:mu(s)))}(i,e,n,r).pipe(ie(s=>(e._resolvedData=s,e.data=Rg(e,e.parent,t).resolve,null)))}(l,r,e,n):(l.data=Rg(l,l.parent,e).resolve,B(void 0))),H(()=>a++),Dg(1),Ct(l=>a===s.size?B(t):qn))})}(this.paramsInheritanceStrategy,this.environmentInjector),H({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",qt.NoDataFromResolver)}}))}),H(c=>{const u=new O8(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),zg(l=>{const c=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(H(h=>{u.component=h}),ie(()=>{})));for(const h of u.children)d.push(...c(h));return d};return vg(c(l.targetSnapshot.root)).pipe(yu(null),Ri(1))}),zg(()=>this.afterPreactivation()),mn(()=>{const{currentSnapshot:l,targetSnapshot:c}=i,u=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return u?nt(u).pipe(ie(()=>i)):B(i)}),ie(l=>{const c=function B8(e,n,t){const r=Oa(e,n._root,t?t._root:void 0);return new uE(r,n)}(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=i={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,i}),H(()=>{this.events.next(new Tg)}),((e,n,t,r)=>ie(o=>(new K8(n,o.targetRouterState,o.currentRouterState,t,r).activate(e),o)))(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Ri(1),H({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new pr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),function t8(e){return st((n,t)=>{Bn(e).subscribe(Qe(t,()=>t.complete(),Uu)),!t.closed&&n.subscribe(t)})}(this.transitionAbortSubject.pipe(H(l=>{throw l}))),_a(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",qt.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),ee(l=>{if(a=!0,CE(l))this.events.next(new Li(i.id,this.urlSerializer.serialize(i.extractedUrl),l.message,l.cancellationCode)),function G8(e){return CE(e)&&Fi(e.url)}(l)?this.events.next(new Ng(l.url)):i.resolve(!1);else{this.events.next(new Iu(i.id,this.urlSerializer.serialize(i.extractedUrl),l,i.targetSnapshot??void 0));try{i.resolve(t.errorHandler(l))}catch(c){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(c)}}return qn}))}))}cancelNavigationTransition(t,r,o){const i=new Li(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function QV(e){return e!==ka}let YV=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:()=>E(KV),providedIn:"root"})}}return e})();class XV{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let KV=(()=>{class e extends XV{static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=ot(e)))(o||e)}})()}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),kE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:()=>E(JV),providedIn:"root"})}}return e})(),JV=(()=>{class e extends kE{constructor(){super(...arguments),this.location=E(bi),this.urlSerializer=E(xi),this.options=E(Hi,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=E(qg),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Pi,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=dE(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{"popstate"===r.type&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof bu)this.stateMemento=this.createStateMemento();else if(t instanceof Vi)this.rawUrlTree=r.initialUrl;else if(t instanceof aE){if("eager"===this.urlUpdateStrategy&&!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else t instanceof Tg?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof Li&&(t.code===qt.GuardRejected||t.code===qt.NoDataFromResolver)?this.restoreHistory(r):t instanceof Iu?this.restoreHistory(r,!0):t instanceof pr&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){const o=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",i)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-this.browserPageId;0!==i?this.location.historyGo(i):this.currentUrlTree===t.finalUrl&&0===i&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}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}}static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=ot(e)))(o||e)}})()}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Va=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Va||{});function RE(e,n){e.events.pipe(hr(t=>t instanceof pr||t instanceof Li||t instanceof Iu||t instanceof Vi),ie(t=>t instanceof pr||t instanceof Vi?Va.COMPLETE:t instanceof Li&&(t.code===qt.Redirect||t.code===qt.SupersededByNewNavigation)?Va.REDIRECTING:Va.FAILED),hr(t=>t!==Va.REDIRECTING),Ri(1)).subscribe(()=>{n()})}function e7(e){throw e}const t7={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},n7={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ze=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=E(Zw),this.stateManager=E(kE),this.options=E(Hi,{optional:!0})||{},this.pendingTasks=E(Sr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=E(ku),this.urlSerializer=E(xi),this.location=E(bi),this.urlHandlingStrategy=E(qg),this._events=new Zt,this.errorHandler=this.options.errorHandler||e7,this.navigated=!1,this.routeReuseStrategy=E(YV),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=E(zi,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!E(Su,{optional:!0}),this.eventsSubscription=new Nt,this.isNgZoneEnabled=E(he)instanceof he&&he.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(null!==o&&null!==i)if(this.stateManager.handleRouterEvent(r,i),r instanceof Li&&r.code!==qt.Redirect&&r.code!==qt.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof pr)this.navigated=!0;else if(r instanceof Ng){const s=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||QV(o.source)};this.scheduleNavigation(s,ka,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function o7(e){return!(e instanceof Tg||e instanceof Ng)})(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ka,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},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}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(jg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...i};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}null!==u&&(u=this.removeEmptyProps(u));try{d=eE(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),d=this.currentUrlTree.root}return tE(d,t,u,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){const o=Fi(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ka,null,r)}navigate(t,r={skipLocationChange:!1}){return function r7(e){for(let n=0;n(null!=i&&(r[o]=i),r),{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h});const u=this.pendingTasks.add();return RE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:i,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),gr=(()=>{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.href=null,this.commands=null,this.onChanges=new Zt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof pr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}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){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==t||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const t=this.urlTree;this.href=null!==t&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;const r=null===this.href?null:function Av(e,n,t){return function SN(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Nv:vh}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}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})}static{this.\u0275fac=function(r){return new(r||e)(b(ze),b(xt),function fs(e){return function sT(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 xe,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof pr&&this.update()})}ngAfterContentInit(){B(this.links.changes,B(null)).pipe(Ea()).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=nt(t).pipe(Ea()).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||queueMicrotask(()=>{const t=this.hasActiveLinks();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._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){const r=function i7(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{const i=o.urlTree;return!!i&&t.isActive(i,r)}}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static{this.\u0275fac=function(r){return new(r||e)(b(ze),b($t),b(sr),b(aa),b(gr,8))}}static{this.\u0275dir=z({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(1&r&&aw(i,gr,5),2&r){let s;Js(s=ea())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Yt]})}}return e})();class PE{}let s7=(()=>{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(hr(t=>t instanceof pr),Ti(()=>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=rc(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 nt(o).pipe(Ea())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):B(null);const i=o.pipe(Ct(s=>null===s?B(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?nt([i,this.loader.loadComponent(r)]).pipe(Ea()):i})}static{this.\u0275fac=function(r){return new(r||e)(R(ze),R(o0),R(_t),R(PE),R(Gg))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Wg=new k("");let xE=(()=>{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={},this.environmentInjector=E(_t),s.scrollPositionRestoration||="disabled",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 bu?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof pr?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Vi&&t.code===Eu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof lE&&(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){var o=this;this.zone.runOutsideAngular(Do(function*(){yield new Promise(i=>{setTimeout(()=>{i()}),ef(()=>{i()},{injector:o.environmentInjector})}),o.zone.run(()=>{o.transitions.events.next(new lE(t,"popstate"===o.lastSource?o.store[o.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){!function eC(){throw new Error("invalid")}()}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();function Yn(e,n){return{\u0275kind:e,\u0275providers:n}}function LE(){const e=E(Mt);return n=>{const t=e.get(kr);if(n!==t.components[0])return;const r=e.get(ze),o=e.get(VE);1===e.get(Zg)&&r.initialNavigation(),e.get(jE,null,ne.Optional)?.setUpPreloading(),e.get(Wg,null,ne.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const VE=new k("",{factory:()=>new Zt}),Zg=new k("",{providedIn:"root",factory:()=>1}),jE=new k("");function u7(e){return Yn(0,[{provide:jE,useExisting:s7},{provide:PE,useExisting:e}])}function h7(e){return Yn(9,[{provide:NE,useValue:WV},{provide:AE,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const UE=new k("ROUTER_FORROOT_GUARD"),f7=[bi,{provide:xi,useClass:Mg},ze,Ra,{provide:xt,useFactory:function FE(e){return e.routerState.root},deps:[ze]},Gg,[]];let $E=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[f7,[],{provide:zi,multi:!0,useValue:t},{provide:UE,useFactory:y7,deps:[[ze,new Xa,new Ka]]},{provide:Hi,useValue:r||{}},r?.useHash?{provide:Pr,useClass:Y0}:{provide:Pr,useClass:Q0},{provide:Wg,useFactory:()=>{const e=E(c4),n=E(he),t=E(Hi),r=E(ku),o=E(xi);return t.scrollOffset&&e.setOffset(t.scrollOffset),new xE(o,r,e,n,t)}},r?.preloadingStrategy?u7(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?v7(r):[],r?.bindToComponentInputs?Yn(8,[gE,{provide:Su,useExisting:gE}]).\u0275providers:[],r?.enableViewTransitions?h7().\u0275providers:[],[{provide:BE,useFactory:LE},{provide:np,multi:!0,useExisting:BE}]]}}static forChild(t){return{ngModule:e,providers:[{provide:zi,multi:!0,useValue:t}]}}static{this.\u0275fac=function(r){return new(r||e)(R(UE,8))}}static{this.\u0275mod=bn({type:e})}static{this.\u0275inj=nn({})}}return e})();function y7(e){return"guarded"}function v7(e){return["disabled"===e.initialNavigation?Yn(3,[{provide:ep,multi:!0,useFactory:()=>{const n=E(ze);return()=>{n.setUpLocationChangeListener()}}},{provide:Zg,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Yn(2,[{provide:Zg,useValue:0},{provide:ep,multi:!0,deps:[Mt],useFactory:n=>{const t=n.get(Bx,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const o=n.get(ze),i=n.get(VE);RE(o,()=>{r(!0)}),n.get(ku).afterPreactivation=()=>(r(!0),i.closed?B(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const BE=new k("");class Wt{static{this.REST_URL=yn_restServerUrl+"/api/user"}constructor(n,t,r){this.http=n,this.router=t,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none",this.httpOptions={headers:new Fe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return fr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}getAuthority(){return this.authority}authenticate(n){this.log(`Authenticating: ${n.username}`),this.credentials=n;const t=new Fe({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(Wt.REST_URL,{headers:t}).pipe(H(r=>this.authorizationRecieved(r)),ee(this.handleError("authenticating user")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(n){if(this.authenticated=!0,n.authorities){let t=n.authorities[0].authority;t=t.substring(t.indexOf("_")+1),this.authority=t}this.log(`Authenticated '${n.name}' as '${this.authority}'`)}changePassword(n){this.log("Changing password.");const t=mg(10),r=Lb(n,t);let o={};return o.username=this.credentials.username,o.password=r,this.http.post(Wt.REST_URL,o,this.httpOptions).pipe(H(i=>this.authorizationRecieved(i)),ee(this.handleError("changePassword")))}static{this.\u0275fac=function(t){return new(t||Wt)(R(zn),R(ze),R(Gn))}}static{this.\u0275prov=O({token:Wt,factory:Wt.\u0275fac,providedIn:"root"})}}const _7=["scrollMe"];function D7(e,n){if(1&e&&(g(0,"li")(1,"div",9)(2,"span",10),y(3),p(),g(4,"span",11),y(5),He(6,"date"),p(),g(7,"span",12),y(8),p()(),g(9,"span",13),y(10),p()()),2&e){const t=n.$implicit;v(3),F(t.id),v(2),F(mt(6,4,t.dateCreated,"medium")),v(3),F(t.author),v(2),F(t.text)}}function w7(e,n){if(1&e&&(g(0,"ul",7,0),ve(2,D7,11,7,"li",8),p()),2&e){const t=Re();v(2),N("ngForOf",t.chatMessages)}}let Qg=(()=>{class e{constructor(t,r){this.chatService=t,this.loginService=r,this.disableScrollDown=!1,this.chatMessages=[],this.newMessage="",this.serviceMessage="",this.errorMessage=""}getChatMessages(){this.serviceMessage="Loading chat ...",this.chatService.getChatMessages().subscribe({next:t=>{this.chatMessages=t,this.scrollToBottom(),this.serviceMessage="Loaded chat."},error:t=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${t.message}`}})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.serviceMessage="Sending message ...",this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe({next:t=>{this.chatMessages.push(t),this.serviceMessage="Send OK.",this.disableScrollDown=!1,this.scrollToBottom()},error:t=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${t.message}`}}),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}static{this.\u0275fac=function(r){return new(r||e)(b(vo),b(Wt))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-chat"]],viewQuery:function(r,o){if(1&r&&_c(_7,5),2&r){let i;Js(i=ea())&&(o.myScrollContainer=i.first)}},decls:11,vars:6,consts:[["scrollMe",""],[1,"servicemessage",3,"hidden"],[1,"alert","servicemessage",3,"hidden"],["class","chat",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModelChange","keydown.enter","ngModel"],[3,"click"],[1,"chat"],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(r,o){1&r&&(g(0,"p",1),y(1),p(),g(2,"p",2),y(3),p(),ve(4,w7,3,1,"ul",3),g(5,"div",4)(6,"input",5),Q("ngModelChange",function(s){return K(o.newMessage,s)||(o.newMessage=s),s}),S("keydown.enter",function(){return o.sendMessage()}),p(),g(7,"button",6),S("click",function(){return o.sendMessage()}),y(8,"Send"),p(),g(9,"button",6),S("click",function(){return o.getChatMessages()}),y(10,"Reload"),p()()),2&r&&(N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(),N("ngIf",o.chatMessages.length),v(2),Z("ngModel",o.newMessage))},dependencies:[en,Ep,lt,Tt,vt,$n],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto;background-color:#60606040;border:solid 1px #336699}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin:.1em;padding:0;border-radius:4px;border:solid 1px darkblue}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e688}.servicemessage[_ngcontent-%COMP%]{margin:0}.message-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.message-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061}.author[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#a0b0b1;border-radius:0 0 2px}.chat[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;padding-right:.2em}"]})}}return e})();const M7=["scrollMe"];function b7(e,n){if(1&e&&(g(0,"p"),y(1),p()),2&e){const t=n.$implicit;v(),F(t)}}function E7(e,n){if(1&e){const t=ar();g(0,"div",2)(1,"div")(2,"button",3),S("click",function(){return Oe(t),Pe(Re().appMessagesService.clear())}),y(3,"Clear messages"),p(),g(4,"h2"),y(5,"App messages"),p()(),g(6,"div",4,0),S("scroll",function(){return Oe(t),Pe(Re().onScroll())}),ve(8,b7,2,1,"p",5),p()()}if(2&e){const t=Re();v(8),N("ngForOf",t.appMessagesService.messages)}}let I7=(()=>{class e{constructor(t){this.appMessagesService=t,this.disableScrollDown=!1}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let t=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&t.scrollHeight-t.scrollTop===t.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}static{this.\u0275fac=function(r){return new(r||e)(b(Gn))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-messages"]],viewQuery:function(r,o){if(1&r&&_c(M7,5),2&r){let i;Js(i=ea())&&(o.myScrollContainer=i.first)}},decls:1,vars:1,consts:[["scrollMe",""],["class","app-messages",4,"ngIf"],[1,"app-messages"],["type","button",1,"clear",3,"click"],[1,"output",3,"scroll"],[4,"ngFor","ngForOf"]],template:function(r,o){1&r&&ve(0,E7,9,1,"div",1),2&r&&N("ngIf",o.appMessagesService.messages.length)},dependencies:[en,Ep],styles:[".app-messages[_ngcontent-%COMP%]{font-size:small;color:#888;padding:.2em}.app-messages[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%]{display:inline-block}.clear[_ngcontent-%COMP%]{margin:.4em}.output[_ngcontent-%COMP%]{border:2px solid #c0c0c0;min-height:4.5em;max-height:4.5em;margin:0 0 2px;padding:2px 4px;overflow-y:scroll;font-family:Monospace,Incosolata,Courier;font-size:12px;width:unset}.output[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 .1em}"]})}}return e})();const HE=()=>({exact:!0});let S7=(()=>{class e{constructor(t,r){this.loginService=t,this.location=r,this.title="Sample Family",this.chatLoaded=!1,this.chatHidden=!0,this.linksHidden=!0,this.profileHidden=!0,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,this.target=null}ngOnInit(){this.location.onUrlChange(()=>this.hideMenus()),this.detectTheme()}hideMenus(){this.linksHidden=!0,this.profileHidden=!0}isAppMessagesHidden(){return!(this.loginService.isAuthenticated()&&"ADMIN"===this.loginService.getAuthority())}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){localStorage.setItem("username",""),localStorage.setItem("password",""),this.loginService.logout()}toggleLinks(){this.linksHidden=!this.linksHidden,this.profileHidden=!0}isLinksHidden(){return this.linksHidden}toggleProfile(){this.profileHidden=!this.profileHidden,this.linksHidden=!0}isProfileHidden(){return this.profileHidden}toggleChatHidden(t){if(this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0),this.chatHidden){const r=document.getElementById("chatwindow"),o=r.getBoundingClientRect();o.right>window.innerWidth&&(r.style.left=window.innerWidth-o.width+"px"),o.bottom>window.innerHeight&&(r.style.top=window.innerHeight-o.height+"px")}t.stopImmediatePropagation()}isChatHidden(){return this.chatHidden}startMouseDragging(t){t.target instanceof Element&&"chattitlebar"!=t.target.getAttribute("id")||0===t.button&&(t.preventDefault(),this.pos3=t.clientX,this.pos4=t.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(t){t.preventDefault(),this.pos1=this.pos3-t.clientX,this.pos2=this.pos4-t.clientY,this.pos3=t.clientX,this.pos4=t.clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),r>window.innerHeight-100&&(r=window.innerHeight-100),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),o>window.innerWidth-200&&(o=window.innerWidth-200),this.target.style.left=o+"px"}endMouseDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}startTouchDragging(t){t.preventDefault(),this.pos3=t.targetTouches[0].clientX,this.pos4=t.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(t){t.preventDefault(),this.pos1=this.pos3-t.targetTouches[0].clientX,this.pos2=this.pos4-t.targetTouches[0].clientY,this.pos3=t.targetTouches[0].clientX,this.pos4=t.targetTouches[0].clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endTouchDrag(){document.ontouchend=null,document.ontouchmove=null,this.target=null}toggleTheme(){const t="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(t),r.classList.contains(t)?localStorage.setItem("theme",t):localStorage.setItem("theme","theme-light")}setTheme(t){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(t),localStorage.setItem("theme",t)}detectTheme(){const t=localStorage.getItem("theme");"theme-dark"!==t&&"theme-light"!==t?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(t)}static{this.\u0275fac=function(r){return new(r||e)(b(Wt),b(bi))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-root"]],viewQuery:function(r,o){if(1&r&&_c(Qg,5),2&r){let i;Js(i=ea())&&(o.chatComponent=i.first)}},decls:72,vars:14,consts:[[3,"hidden"],[1,"nav-toggle",3,"click"],[1,"nav-toggle","float-right",3,"click"],["id","links",3,"hidden"],[1,"title-link"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/calendar"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/notes"],["routerLinkActive","active-link","routerLink","/mychecklists"],["routerLinkActive","active-link","routerLink","/mynotes"],[3,"click"],["id","profile",3,"hidden"],["routerLinkActive","active-link","routerLink","/profile"],["id","logout",3,"click"],["title","Dark theme on/off",3,"click"],[1,"float-right"],["routerLinkActive","active-link","routerLink","/login"],["id","tools",3,"hidden"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],["id","chattitle"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer",3,"hidden"]],template:function(r,o){1&r&&(g(0,"nav")(1,"span",0)(2,"button",1),S("click",function(){return o.toggleLinks()}),y(3,"\u2261"),p(),g(4,"button",2),S("click",function(){return o.toggleProfile()}),y(5),p(),g(6,"div",3)(7,"ul")(8,"li")(9,"button",1),S("click",function(){return o.toggleLinks()}),y(10,"\u2261"),p()(),g(11,"li",4),y(12,"Family:"),p(),g(13,"li")(14,"a",5),y(15,"Home"),p()(),g(16,"li")(17,"a",6),y(18,"Calendar"),p()(),g(19,"li")(20,"a",7),y(21,"Checklists"),p()(),g(22,"li")(23,"a",8),y(24,"Contacts"),p()(),g(25,"li")(26,"a",9),y(27,"Notes"),p()(),g(28,"li",4),y(29,"Personal:"),p(),g(30,"li")(31,"a",10),y(32,"Checklists"),p()(),g(33,"li")(34,"a",11),y(35,"Notes"),p()(),g(36,"li")(37,"button",12),S("click",function(s){return o.toggleChatHidden(s)}),y(38,"Chat"),p()()()(),g(39,"div",13)(40,"ul")(41,"li")(42,"button",1),S("click",function(){return o.toggleProfile()}),y(43),p()(),g(44,"li")(45,"a",14),y(46,"Profile"),p()(),g(47,"li")(48,"a",15),S("click",function(){return o.logout()}),y(49,"Logout"),p()(),g(50,"li")(51,"button",16),S("click",function(){return o.toggleTheme()}),y(52,"\u2600 Theme"),p()()()()(),g(53,"span",0)(54,"h1",17),y(55),p(),g(56,"a",5),y(57,"Home"),p(),g(58,"a",18),y(59,"Login"),p()()(),g(60,"div",19)(61,"div",20)(62,"div",21),S("mousedown",function(s){return o.startMouseDragging(s)})("touchstart",function(s){return o.startTouchDragging(s)}),g(63,"span",22),y(64,"Chat"),p(),g(65,"button",23),S("click",function(s){return o.toggleChatHidden(s)}),y(66,"\u2716"),p()(),g(67,"div",24),$(68,"app-chat"),p()()(),g(69,"main"),$(70,"router-outlet"),p(),$(71,"app-messages",25)),2&r&&(v(),N("hidden",!o.isAuthenticated()),v(4),F(o.username()),v(),N("hidden",o.isLinksHidden()),v(8),N("routerLinkActiveOptions",Gf(12,HE)),v(25),N("hidden",o.isProfileHidden()),v(4),F(o.username()),v(10),N("hidden",o.isAuthenticated()),v(2),F(o.title),v(),N("routerLinkActiveOptions",Gf(13,HE)),v(4),N("hidden",!o.isAuthenticated()),v(),N("hidden",o.isChatHidden()),v(10),N("hidden",o.isAppMessagesHidden()))},dependencies:[Lg,gr,OE,I7,Qg],styles:[".big[_ngcontent-%COMP%]{font-size:x-large}.nav-toggle[_ngcontent-%COMP%]{font-size:x-large;border:none;background:none;padding:0 .2em}.nav-toggle[_ngcontent-%COMP%]:hover{background-color:#42545c42;-webkit-text-decoration:underline #83b6f9;text-decoration:underline #83b6f9}.float-right[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,#84a8cd 05%,#91b9e0 30%,#0000);border-bottom:1px solid #336699;padding:.4em}nav[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:.2rem;padding:.2rem .3rem;text-decoration:none;text-shadow:2px 2px 2px #40404080;display:inline-block;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}.title-link[_ngcontent-%COMP%]{text-decoration:underline}#profile[_ngcontent-%COMP%]{box-shadow:3px 3px 3px #0006;border:1px solid #336699;z-index:2;position:fixed;padding:.4em;top:0;right:0;background:#7896b6;border-bottom-left-radius:.4em}#profile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0;text-align:center}#profile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block;text-decoration:none}#profile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;margin:1px}#links[_ngcontent-%COMP%]{box-shadow:3px 3px 3px #0006;border:1px solid #336699;z-index:2;position:fixed;padding:.4em;top:0;left:0;background:#84a8cd;border-end-end-radius:.4em}#links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}#links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block;text-decoration:none}#links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;margin:1px}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;background:#d0d0d080;cursor:grab;font-size:1.2em}#chatcontent[_ngcontent-%COMP%]{padding:2px}#chattitle[_ngcontent-%COMP%]{margin:2px;display:inline-block}.close-button[_ngcontent-%COMP%]{padding:2px 6px;margin:2px;float:right;background:#f99;font-size:1em}"]})}}return e})();class zr{static{this.REST_URL=yn_restServerUrl+"/api/news"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Fe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return fr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getNewsPosts(){return this.http.get(zr.REST_URL,this.httpOptions).pipe(H(n=>this.log(`fetched ${n.length} news posts`)),ee(this.handleError("getNews")))}addNewsPost(n,t){return this.http.post(zr.REST_URL,{author:n,text:t},this.httpOptions).pipe(H(o=>this.log(`added message w/ id=${o.id}`)),ee(this.handleError("addNewsPost")))}deleteNewsPost(n){return this.http.delete(`${zr.REST_URL}/${n}`,this.httpOptions).pipe(H(r=>this.log(`deleted newspost id=${n}`)),ee(this.handleError("deleteNewsPost")))}static{this.\u0275fac=function(t){return new(t||zr)(R(zn),R(Gn))}}static{this.\u0275prov=O({token:zr,factory:zr.\u0275fac,providedIn:"root"})}}function T7(e,n){if(1&e){const t=ar();g(0,"div",17)(1,"span")(2,"b"),y(3),p(),y(4),He(5,"date"),p(),g(6,"button",18),S("click",function(){const o=Oe(t).$implicit;return Pe(Re().delete(o))}),y(7,"x"),p(),$(8,"p",19),p()}if(2&e){const t=n.$implicit,r=Re();v(3),F(t.author),v(),Ne(" posted on ",mt(5,4,t.dateCreated,"medium"),""),v(2),N("hidden",!r.isAdmin()),v(2),N("innerHTML",t.text,yh)}}let N7=(()=>{class e{constructor(t,r){this.loginService=t,this.newsService=r,this.newNewsMessage="",this.newsMessages=[],this.serviceMessage="",this.errorMessage=""}getNews(){this.loginService.isAuthenticated()&&(this.serviceMessage="Loading news messages ...",this.newsService.getNewsPosts().subscribe({next:t=>{this.newsMessages=t.reverse(),this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading news: ${t.message}`}}))}ngOnInit(){this.getNews()}reload(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}isAdmin(){return"ADMIN"===this.loginService.getAuthority()}username(){return this.loginService.getUsername()}newNewsKeyDown(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),this.addNews())}addNews(){""!==this.newNewsMessage&&(this.serviceMessage="Adding news ...",this.errorMessage="",this.newsService.addNewsPost(this.loginService.getUsername(),this.newNewsMessage).subscribe({next:t=>{this.newsMessages.unshift(t),this.serviceMessage="Added news."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding news: ${t.message}`}}),this.newNewsMessage="")}delete(t){window.confirm("Do you realy want to delete this newspost?")&&(this.serviceMessage="Removing newspost ...",this.newsService.deleteNewsPost(t.id).subscribe({next:()=>{this.newsMessages=this.newsMessages.filter(r=>r!==t),this.serviceMessage="Removed newspost."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing newspost: ${r.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(b(Wt),b(zr))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-home"]],decls:48,vars:9,consts:[[3,"hidden"],[1,"top-buttons","float-right"],["title","Refresh data",3,"click"],[1,"inline-block"],[1,"alert",3,"hidden"],[1,"context"],["class","message",4,"ngFor","ngForOf"],[1,"input",3,"hidden"],["id","input-text","placeholder","Your message",1,"big-text-input",3,"ngModelChange","keydown","ngModel"],[3,"click"],[1,"title-link"],["routerLink","/calendar"],["routerLink","/checklists"],["routerLink","/contacts"],["routerLink","/notes"],["routerLink","/mychecklists"],["routerLink","/mynotes"],[1,"message"],["type","button","title","Delete newspost",1,"delete",3,"click","hidden"],[1,"text",3,"innerHTML"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"span",1)(2,"button",2),S("click",function(){return o.reload()}),y(3,"Reload"),p()(),g(4,"h1",3)(5,"u"),y(6,"News:"),p()(),$(7,"br"),g(8,"p",0),y(9),p(),g(10,"p",4),y(11),p(),g(12,"div",5),ve(13,T7,9,7,"div",6),p(),g(14,"div",7)(15,"h3"),y(16,"Add news:"),p(),g(17,"textarea",8),Q("ngModelChange",function(s){return K(o.newNewsMessage,s)||(o.newNewsMessage=s),s}),S("keydown",function(s){return o.newNewsKeyDown(s)}),p(),g(18,"button",9),S("click",function(){return o.addNews()}),y(19,"Add news message"),p()(),$(20,"br"),g(21,"h2"),y(22,"Links:"),p(),g(23,"ul")(24,"li",10),y(25,"Family:"),p(),g(26,"li")(27,"a",11),y(28,"Calendar"),p()(),g(29,"li")(30,"a",12),y(31,"Checklists"),p()(),g(32,"li")(33,"a",13),y(34,"Contacts"),p()(),g(35,"li")(36,"a",14),y(37,"Notes"),p()(),g(38,"li",10),y(39,"Personal:"),p(),g(40,"li")(41,"a",15),y(42,"Checklists"),p()(),g(43,"li")(44,"a",16),y(45,"Notes"),p()()()(),g(46,"p",0),y(47,"Welcome to our family site! Please login."),p()),2&r&&(N("hidden",!o.isAuthenticated()),v(8),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(2),N("ngForOf",o.newsMessages),v(),N("hidden",!o.isAdmin()),v(3),Z("ngModel",o.newNewsMessage),v(29),N("hidden",o.isAuthenticated()))},dependencies:[en,lt,Tt,vt,gr,$n],styles:[".context[_ngcontent-%COMP%]{margin-bottom:.4em}.message[_ngcontent-%COMP%]{padding:.2em;margin-bottom:.8em;border:1px solid darkgrey}.message[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-bottom:1px solid darkgrey}.delete[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.title-link[_ngcontent-%COMP%]{font-weight:700}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-left:1em}.text[_ngcontent-%COMP%]{white-space:pre-wrap;margin:.4em .2em}"]})}}return e})(),A7=(()=>{class e{constructor(t,r,o){this.loginService=t,this.router=r,this.route=o,this.rememberme=!1,this.credentials={username:"",password:""},this.serviceMessage="",this.errorMessage="",this.checkPreviousLogin()}checkPreviousLogin(){this.credentials.username=localStorage.getItem("username"),this.credentials.password=localStorage.getItem("password"),this.credentials.username&&this.credentials.password&&this.login()}login(){const t=this.route.snapshot.queryParamMap.get("r");if(""!==this.credentials.username&&""!==this.credentials.password)return this.serviceMessage="Loggin in ...",this.loginService.authenticate(this.credentials).subscribe({next:()=>{this.rememberme&&(localStorage.setItem("username",this.credentials.username),localStorage.setItem("password",this.credentials.password)),this.router.navigateByUrl(t||"/")},error:r=>{console.log("Login failed",r),this.errorMessage=`Login failed: ${r.message}`,this.serviceMessage=""}}),!1;this.errorMessage="Login failed: Username and password required."}static{this.\u0275fac=function(r){return new(r||e)(b(Wt),b(ze),b(xt))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-login"]],decls:21,vars:7,consts:[[3,"hidden"],[1,"alert",3,"hidden"],["role","form",3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username","name","username","placeholder","username",1,"form-control",3,"ngModelChange","ngModel"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModelChange","ngModel"],["for","rememberme"],["type","checkbox","id","rememberme","name","rememberme",1,"form-control",3,"ngModelChange","ngModel"],["type","submit",1,"btn","btn-primary"]],template:function(r,o){1&r&&(g(0,"h2"),y(1,"Login form"),p(),g(2,"p",0),y(3),p(),g(4,"p",1),y(5),p(),g(6,"form",2),S("submit",function(){return o.login()}),g(7,"div",3)(8,"label",4),y(9,"Username:"),p(),g(10,"input",5),Q("ngModelChange",function(s){return K(o.credentials.username,s)||(o.credentials.username=s),s}),p()(),g(11,"div",3)(12,"label",6),y(13,"Password:"),p(),g(14,"input",7),Q("ngModelChange",function(s){return K(o.credentials.password,s)||(o.credentials.password=s),s}),p()(),g(15,"div",3)(16,"label",8),y(17,"Remember me:"),p(),g(18,"input",9),Q("ngModelChange",function(s){return K(o.rememberme,s)||(o.rememberme=s),s}),p()(),g(19,"button",10),y(20,"Login"),p()()),2&r&&(v(2),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(5),Z("ngModel",o.credentials.username),v(4),Z("ngModel",o.credentials.password),v(4),Z("ngModel",o.rememberme))},dependencies:[z1,lt,ga,Tt,k1,vt,au],styles:["button[_ngcontent-%COMP%]{border:revert}"]})}}return e})();const tn=(e,n)=>{const t=E(Wt),r=E(ze);return!!t.isAuthenticated()||r.navigate(["/login"],{queryParams:{r:n.url}})};class Cn{static{this.REST_URL=yn_restServerUrl+"/api/contacts"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Fe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return fr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getContacts(){return this.http.get(Cn.REST_URL,this.httpOptions).pipe(H(n=>this.log(`fetched ${n.length} contacts`)),ee(this.handleError("getContacts")))}getContact(n){return this.http.get(`${Cn.REST_URL}/${n}`,this.httpOptions).pipe(H(t=>this.log(`fetched Contact ${t.id}`)),ee(this.handleError("getContact")))}addContact(n){return this.http.post(Cn.REST_URL,n,this.httpOptions).pipe(H(t=>this.log(`added contact w/ id=${t.id}`)),ee(this.handleError("addContact")))}saveContact(n){return this.http.post(Cn.REST_URL,n,this.httpOptions).pipe(H(t=>this.log(`saved contact w/ id=${t.id}`)),ee(this.handleError("addContact")))}deleteContact(n){return this.http.delete(`${Cn.REST_URL}/${n}`,this.httpOptions).pipe(H(r=>this.log(`deleted contact id=${n}`)),ee(this.handleError("deleteContact")))}static{this.\u0275fac=function(t){return new(t||Cn)(R(zn),R(Gn))}}static{this.\u0275prov=O({token:Cn,factory:Cn.\u0275fac,providedIn:"root"})}}const k7=e=>["/contact",e];function R7(e,n){if(1&e&&(g(0,"li")(1,"a",24)(2,"span",25)(3,"span",26),y(4),p(),$(5,"br"),y(6),$(7,"br"),y(8),$(9,"br"),y(10),$(11,"br"),y(12,"Website: "),g(13,"span"),y(14),p(),$(15,"br"),y(16),p()()()),2&e){const t=n.$implicit;v(),N("routerLink",jn(8,k7,t.id)),v(3),Ar("",t.firstName," ",t.lastName,""),v(2),Ne("Telephone: ",t.telephone," "),v(2),Ne("E-mail: ",t.email," "),v(2),Ne("Address: ",t.address," "),v(4),F(t.website),v(2),Ne("Description: ",t.description,"")}}let O7=(()=>{class e{constructor(t){this.contactsService=t,this.contacts=[],this.filter="",this.filteredContacts=[],this.newContact={},this.serviceMessage="",this.errorMessage=""}getContacts(){this.serviceMessage="Loading contacts ...",this.contactsService.getContacts().subscribe({next:t=>{this.contacts=t,this.filterResults()},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading contacts: ${t.message}`}})}filterResults(){let t=this.filter;this.serviceMessage=this.contacts.length?"":"No contacts in database.",t?(t=t.toLowerCase(),this.filteredContacts=this.contacts.filter(r=>r?.firstName.toLowerCase().includes(t)||r?.lastName.toLowerCase().includes(t)),0==this.filteredContacts.length&&this.contacts.length&&(this.serviceMessage=`No contacts after searching for "${t}".`)):this.filteredContacts=this.contacts}filterChange(t){this.filterResults()}ngOnInit(){this.getContacts()}reload(){this.getContacts()}sendContact(){this.serviceMessage="Adding contact ...",this.contactsService.addContact(this.newContact).subscribe({next:t=>{this.contacts.push(t),this.serviceMessage="Added contact."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding contact: ${t.message}`}}),this.newContact={}}static{this.\u0275fac=function(r){return new(r||e)(b(Cn))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-contacts"]],decls:49,vars:13,consts:[[1,"top-buttons","float-right"],["title","Refresh data",3,"click"],[1,"inline-block"],["type","text","placeholder","Search by name",3,"ngModelChange","ngModel"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"form-group"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModelChange","ngModel"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModelChange","ngModel"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModelChange","ngModel"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModelChange","ngModel"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModelChange","ngModel"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModelChange","ngModel"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModelChange","ngModel"],[3,"click"],[1,"element",3,"routerLink"],[1,"text"],[1,"name"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"button",1),S("click",function(){return o.reload()}),y(2,"Reload"),p()(),g(3,"h1",2)(4,"u"),y(5,"Family contacts:"),p()(),$(6,"br"),g(7,"label"),y(8,"Search: "),p(),g(9,"input",3),Q("ngModelChange",function(s){return K(o.filter,s)||(o.filter=s),s}),S("ngModelChange",function(s){return o.filterChange(s)}),p(),g(10,"p",4),y(11),p(),g(12,"p",5),y(13),p(),g(14,"ol",6),ve(15,R7,17,10,"li",7),p(),g(16,"h2"),y(17,"New contact:"),p(),g(18,"div",8)(19,"label",9),y(20,"Firstname:"),p(),g(21,"input",10),Q("ngModelChange",function(s){return K(o.newContact.firstName,s)||(o.newContact.firstName=s),s}),p(),$(22,"br"),g(23,"label",11),y(24,"Lastname:"),p(),g(25,"input",12),Q("ngModelChange",function(s){return K(o.newContact.lastName,s)||(o.newContact.lastName=s),s}),p(),$(26,"br"),g(27,"label",13),y(28,"Telephone:"),p(),g(29,"input",14),Q("ngModelChange",function(s){return K(o.newContact.telephone,s)||(o.newContact.telephone=s),s}),p(),$(30,"br"),g(31,"label",15),y(32,"Email:"),p(),g(33,"input",16),Q("ngModelChange",function(s){return K(o.newContact.email,s)||(o.newContact.email=s),s}),p(),$(34,"br"),g(35,"label",17),y(36,"Website:"),p(),g(37,"input",18),Q("ngModelChange",function(s){return K(o.newContact.website,s)||(o.newContact.website=s),s}),p(),$(38,"br"),g(39,"label",19),y(40,"Address:"),p(),g(41,"input",20),Q("ngModelChange",function(s){return K(o.newContact.address,s)||(o.newContact.address=s),s}),p(),$(42,"br"),g(43,"label",21),y(44,"Description:"),p(),g(45,"input",22),Q("ngModelChange",function(s){return K(o.newContact.description,s)||(o.newContact.description=s),s}),p(),$(46,"br"),g(47,"button",23),S("click",function(){return o.sendContact()}),y(48,"Add contact"),p()()),2&r&&(v(9),Z("ngModel",o.filter),v(),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(2),N("ngForOf",o.filteredContacts),v(6),Z("ngModel",o.newContact.firstName),v(4),Z("ngModel",o.newContact.lastName),v(4),Z("ngModel",o.newContact.telephone),v(4),Z("ngModel",o.newContact.email),v(4),Z("ngModel",o.newContact.website),v(4),Z("ngModel",o.newContact.address),v(4),Z("ngModel",o.newContact.description))},dependencies:[en,lt,Tt,vt,gr],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.name[_ngcontent-%COMP%]{font-size:larger;text-decoration:underline}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.2em;border-radius:4px;border:solid 1px #808080}.element[_ngcontent-%COMP%]{text-decoration:none;display:block}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e660}"]})}}return e})();class _n{static{this.REST_URL=yn_restServerUrl+"/api/checklists"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Fe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return fr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getChecklists(){return this.http.get(_n.REST_URL,this.httpOptions).pipe(H(n=>this.log(`fetched ${n.length} checklists`)),ee(this.handleError("getChecklists")))}getChecklist(n){return this.http.get(`${_n.REST_URL}/${n}`,this.httpOptions).pipe(H(t=>this.log(`fetched checklist ${t.id}`)),ee(this.handleError("getChecklist")))}addChecklist(n){return this.http.post(_n.REST_URL,{name:n},this.httpOptions).pipe(H(r=>this.log(`added checklist w/ id=${r.id}`)),ee(this.handleError("addChecklist")))}saveChecklist(n){return this.http.post(_n.REST_URL,n,this.httpOptions).pipe(H(t=>this.log(`saved checklist w/ id=${t.id}`)),ee(this.handleError("saveChecklist")))}deleteChecklist(n){return this.http.delete(`${_n.REST_URL}/${n}`,this.httpOptions).pipe(H(r=>this.log(`deleted checklist id=${n}`)),ee(this.handleError("deleteChecklist")))}static{this.\u0275fac=function(t){return new(t||_n)(R(zn),R(Gn))}}static{this.\u0275prov=O({token:_n,factory:_n.\u0275fac,providedIn:"root"})}}let Ru=(()=>{class e{transform(t){return t&&t.filter(r=>!r.unlisted)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=ct({name:"onlyListedItems",type:e,pure:!0})}}return e})();const P7=e=>["/checklist",e],x7=e=>({strikethrough:e});function F7(e,n){if(1&e&&(g(0,"li",15),y(1),p()),2&e){const t=n.$implicit;N("ngClass",jn(2,x7,!0===t.checked)),v(),Ne(" ",t.text," ")}}function L7(e,n){if(1&e&&(g(0,"li")(1,"a",11)(2,"span",12),y(3),p(),g(4,"ul",13),ve(5,F7,2,4,"li",14),He(6,"onlyListedItems"),p()()()),2&e){const t=n.$implicit;v(),N("routerLink",jn(5,P7,t.id)),v(2),F(t.name),v(2),N("ngForOf",Ci(6,3,t.checks))}}let V7=(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=E(xt),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:t=>{this.checklists=t,this.serviceMessage=t.length?"":"No checklist in database."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${t.message}`}})}ngOnInit(){this.getChecklists()}reload(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:t=>this.router.navigate(["/checklist/",t.id]),error:t=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${t.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(b(_n),b(ze))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-checklists"]],decls:22,vars:6,consts:[[1,"top-buttons","float-right"],["title","Refresh data",3,"click"],[1,"inline-block"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModelChange","keydown.enter","ngModel"],[3,"click"],[1,"element",3,"routerLink"],[1,"list-name"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"button",1),S("click",function(){return o.reload()}),y(2,"Reload"),p()(),g(3,"h1",2)(4,"u"),y(5,"Family checklists:"),p()(),$(6,"br"),g(7,"p",3),y(8),p(),g(9,"p",4),y(10),p(),g(11,"ol",5),ve(12,L7,7,7,"li",6),p(),g(13,"h2"),y(14,"New checklist:"),p(),g(15,"div",7)(16,"div")(17,"label",8),y(18,"name:"),p(),g(19,"input",9),Q("ngModelChange",function(s){return K(o.newChecklist,s)||(o.newChecklist=s),s}),S("keydown.enter",function(){return o.sendChecklist()}),p(),g(20,"button",10),S("click",function(){return o.sendChecklist()}),y(21,"Add checklist"),p()()()),2&r&&(v(7),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(2),N("ngForOf",o.checklists),v(7),Z("ngModel",o.newChecklist))},dependencies:[qc,en,lt,Tt,vt,gr,Ru],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.2em;border-radius:4px;border:solid 1px #808080}.element[_ngcontent-%COMP%]{text-decoration:none;display:block}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}.list-name[_ngcontent-%COMP%]{font-size:larger;text-decoration:underline}"]})}}return e})();function j7(e,n){if(1&e){const t=ar();g(0,"li")(1,"input",16),Q("ngModelChange",function(o){const i=Oe(t).$implicit;return K(i.checked,o)||(i.checked=o),Pe(o)}),S("change",function(){return Oe(t),Pe(Re().saveCheckList())}),p(),g(2,"label",17),y(3),p(),g(4,"span",18)(5,"button",19),S("click",function(){const o=Oe(t).$implicit;return Pe(Re().unlistItem(o.id))}),y(6,"v"),p()()()}if(2&e){const t=n.$implicit;v(),Z("ngModel",t.checked),v(2),F(t.text)}}function U7(e,n){if(1&e){const t=ar();g(0,"li")(1,"input",20),Q("ngModelChange",function(o){const i=Oe(t).$implicit;return K(i.text,o)||(i.text=o),Pe(o)}),S("change",function(){return Oe(t),Pe(Re().saveCheckList())}),p(),g(2,"span",18)(3,"button",21),S("click",function(){return Oe(t),Pe(Re().saveCheckList())}),y(4,"\u{1f4be}"),p(),g(5,"button",22),S("click",function(){const o=Oe(t).$implicit;return Pe(Re().relistItem(o.id))}),y(6,"^"),p(),g(7,"button",23),S("click",function(){const o=Oe(t).$implicit;return Pe(Re().removeItem(o.id))}),y(8,"x"),p()()()}if(2&e){const t=n.$implicit;v(),Z("ngModel",t.text)}}let $7=(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=E(xt),this.checklistId=-1,this.checklist={},this.filter="",this.filteredUnlistedItems=[],this.newItem="",this.serviceMessage="",this.errorMessage="",this.searchMessage="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading checklist ...",this.checklistService.getChecklist(this.checklistId).subscribe({next:t=>{this.checklist=t,this.filterResults(),this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${t.message}`}})}filterResults(){if(this.filteredUnlistedItems=this.checklist.checks.filter(r=>r.unlisted),0==this.filteredUnlistedItems.length)return void(this.searchMessage="No unlisted items.");if(!this.filter)return void(this.searchMessage="");const t=this.filter.toLowerCase();this.filteredUnlistedItems=this.filteredUnlistedItems.filter(r=>r.text.toLowerCase().includes(t)),0==this.filteredUnlistedItems.length&&(this.searchMessage=`No items after searching for "${t}".`)}filterChange(t){this.filterResults()}resetFilter(){this.filter="",this.filterResults()}back(){this.router.navigate(["/checklists"])}ngOnInit(){this.getChecklist()}reload(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}getItemById(t){for(let r of this.checklist.checks)if(r.id==t)return r;return null}unlistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!0,this.saveCheckList())}relistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!1,r.checked=!1,this.saveCheckList())}removeItem(t){for(let r=0;r{this.checklist=t,this.serviceMessage="Saved checklist."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${t.message}`}})}deleteChecklist(){window.confirm(`Do you realy want to delete checklist "${this.checklist.name}"?`)&&(this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/checklists")},error:t=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${t.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(b(_n),b(ze))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-edit-checklist"]],decls:54,vars:19,consts:[[1,"top-buttons","float-right"],["title","Back to: Family checklists",3,"click"],["title","Refresh data",3,"click"],["title","Delete checklist",1,"delete",3,"click"],[1,"inline-block"],[1,"title-id"],[3,"hidden"],[1,"alert",3,"hidden"],[4,"ngFor","ngForOf"],["type","text","placeholder","Search by name",3,"ngModelChange","ngModel"],[3,"click"],[1,"input"],["for","input-item"],["id","input-item","placeholder","Remember x",3,"ngModelChange","keydown.enter","ngModel"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModelChange","keydown.enter","ngModel"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"item-text"],[1,"element-buttons"],["type","button","title","Unlist item",1,"unlist",3,"click"],["type","text",1,"item-text",3,"ngModelChange","change","ngModel"],["type","button","title","Save item",1,"save",3,"click"],["type","button","title","Relist item",1,"relist",3,"click"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"button",1),S("click",function(){return o.back()}),y(2,"Back"),p(),g(3,"button",2),S("click",function(){return o.reload()}),y(4,"Reload"),p(),g(5,"button",3),S("click",function(){return o.deleteChecklist()}),y(6,"Delete checklist"),p()(),g(7,"h1",4)(8,"u"),y(9),p(),g(10,"span",5),y(11),p()(),$(12,"br"),g(13,"p",6),y(14),p(),g(15,"p",7),y(16),p(),g(17,"span"),y(18),He(19,"date"),p(),$(20,"br"),g(21,"h2"),y(22,"Items:"),p(),g(23,"ol"),ve(24,j7,7,2,"li",8),He(25,"onlyListedItems"),p(),g(26,"h3"),y(27,"Unlisted Items:"),p(),g(28,"label"),y(29,"Search: "),p(),g(30,"input",9),Q("ngModelChange",function(s){return K(o.filter,s)||(o.filter=s),s}),S("ngModelChange",function(s){return o.filterChange(s)}),p(),g(31,"button",10),S("click",function(){return o.resetFilter()}),y(32,"Reset filter"),p(),g(33,"p",6),y(34),p(),g(35,"ol"),ve(36,U7,9,1,"li",8),p(),$(37,"hr"),g(38,"h2"),y(39,"Add item:"),p(),g(40,"div",11)(41,"label",12),y(42,"item:"),p(),g(43,"input",13),Q("ngModelChange",function(s){return K(o.newItem,s)||(o.newItem=s),s}),S("keydown.enter",function(){return o.addItem()}),p(),g(44,"button",10),S("click",function(){return o.addItem()}),y(45,"Add item"),p()(),g(46,"h2"),y(47,"Change list name:"),p(),g(48,"div",11)(49,"label",14),y(50,"newName:"),p(),g(51,"input",15),Q("ngModelChange",function(s){return K(o.checklist.name,s)||(o.checklist.name=s),s}),S("keydown.enter",function(){return o.saveCheckList()}),p(),g(52,"button",10),S("click",function(){return o.saveCheckList()}),y(53,"Save name"),p()()),2&r&&(v(9),Ne("Editing checklist: ",o.checklist.name,""),v(2),Ne("Id: ",o.checklist.id,""),v(2),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(2),Ne("Updated on: ",mt(19,14,o.checklist.dateUpdated,"medium"),""),v(6),N("ngForOf",Ci(25,17,o.checklist.checks)),v(6),Z("ngModel",o.filter),v(3),N("hidden",""===o.searchMessage),v(),F(o.searchMessage),v(2),N("ngForOf",o.filteredUnlistedItems),v(7),Z("ngModel",o.newItem),v(8),Z("ngModel",o.checklist.name))},dependencies:[en,lt,ga,Tt,vt,$n,Ru],styles:["li[_ngcontent-%COMP%]{padding:1px}.delete[_ngcontent-%COMP%]{margin-left:1em;background-color:#ff000080}.unlist[_ngcontent-%COMP%]{background-color:#0000ff80}.relist[_ngcontent-%COMP%]{background-color:#00ff0080}.element-buttons[_ngcontent-%COMP%]{margin-left:2em}.item-text[_ngcontent-%COMP%]{display:inline-block;min-width:8em}"]})}}return e})(),B7=(()=>{class e{constructor(t,r){this.contactsService=t,this.router=r,this.route=E(xt),this.contactId=-1,this.contact={},this.serviceMessage="",this.errorMessage="",this.contactId=Number(this.route.snapshot.params.id)}getContact(){this.serviceMessage="Loading contact ...",this.contactsService.getContact(this.contactId).subscribe({next:t=>{this.contact=t,this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading contact: ${t.message}`}})}back(){this.router.navigate(["/contacts"])}ngOnInit(){this.getContact()}reload(){this.getContact()}saveContact(){this.serviceMessage="Updating contact ...",this.contactsService.saveContact(this.contact).subscribe({next:t=>{this.contact=t,this.serviceMessage="Updated contact."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while updating contact: ${t.message}`}})}deleteContact(){window.confirm(`Do you realy want to delete contact "${this.contact.firstName+" "+this.contact.lastName}"?`)&&(this.serviceMessage="Deleting contact ...",this.contactsService.deleteContact(this.contactId).subscribe({next:()=>this.router.navigateByUrl("/contacts"),error:t=>{this.serviceMessage="",this.errorMessage=`Error while deleting contact: ${t.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(b(Cn),b(ze))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-edit-contact"]],decls:56,vars:20,consts:[[1,"top-buttons","float-right"],["title","Back to: Family contacts",3,"click"],["title","Refresh data",3,"click"],["title","Delete contact",1,"delete",3,"click"],[1,"inline-block"],[1,"title-id"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"form-group"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModelChange","ngModel"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModelChange","ngModel"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModelChange","ngModel"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModelChange","ngModel"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModelChange","ngModel"],["target","_blank",3,"href"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModelChange","ngModel"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModelChange","ngModel"],[3,"click"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"button",1),S("click",function(){return o.back()}),y(2,"Back"),p(),g(3,"button",2),S("click",function(){return o.reload()}),y(4,"Reload"),p(),g(5,"button",3),S("click",function(){return o.deleteContact()}),y(6,"Delete checklist"),p()(),g(7,"h1",4)(8,"u"),y(9),p(),g(10,"span",5),y(11),p()(),$(12,"br"),g(13,"p",6),y(14),p(),g(15,"p",7),y(16),p(),g(17,"span"),y(18),He(19,"date"),p(),$(20,"br"),g(21,"h3"),y(22,"Details:"),p(),g(23,"div",8)(24,"label",9),y(25,"Firstname:"),p(),g(26,"input",10),Q("ngModelChange",function(s){return K(o.contact.firstName,s)||(o.contact.firstName=s),s}),p(),$(27,"br"),g(28,"label",11),y(29,"Lastname:"),p(),g(30,"input",12),Q("ngModelChange",function(s){return K(o.contact.lastName,s)||(o.contact.lastName=s),s}),p(),$(31,"br"),g(32,"label",13),y(33,"Telephone:"),p(),g(34,"input",14),Q("ngModelChange",function(s){return K(o.contact.telephone,s)||(o.contact.telephone=s),s}),p(),$(35,"br"),g(36,"label",15),y(37,"Email:"),p(),g(38,"input",16),Q("ngModelChange",function(s){return K(o.contact.email,s)||(o.contact.email=s),s}),p(),$(39,"br"),g(40,"label",17),y(41,"Website:"),p(),g(42,"input",18),Q("ngModelChange",function(s){return K(o.contact.website,s)||(o.contact.website=s),s}),p(),g(43,"a",19),y(44,"go to website"),p(),$(45,"br"),g(46,"label",20),y(47,"Address:"),p(),g(48,"input",21),Q("ngModelChange",function(s){return K(o.contact.address,s)||(o.contact.address=s),s}),p(),$(49,"br"),g(50,"label",22),y(51,"Description:"),p(),g(52,"input",23),Q("ngModelChange",function(s){return K(o.contact.description,s)||(o.contact.description=s),s}),p(),$(53,"br"),g(54,"button",24),S("click",function(){return o.saveContact()}),y(55,"Save changes"),p()()),2&r&&(v(9),Ar("Editing contact: ",o.contact.firstName," ",o.contact.lastName,""),v(2),Ne("Id: ",o.contact.id,""),v(2),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(2),Ne("Updated on: ",mt(19,17,o.contact.dateUpdated,"medium"),""),v(8),Z("ngModel",o.contact.firstName),v(4),Z("ngModel",o.contact.lastName),v(4),Z("ngModel",o.contact.telephone),v(4),Z("ngModel",o.contact.email),v(4),Z("ngModel",o.contact.website),v(),Cc("href","https://",o.contact.website,"",vh),v(5),Z("ngModel",o.contact.address),v(4),Z("ngModel",o.contact.description))},dependencies:[lt,Tt,vt,$n],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]})}}return e})(),H7=(()=>{class e{constructor(t){this.loginService=t,this.newPassword1="",this.newPassword2="",this.serviceMessage="",this.errorMessage=""}username(){return this.loginService.getUsername()}checkPasswordsMatch(){return this.newPassword1==this.newPassword2}saveProfile(){this.newPassword1==this.newPassword2?(this.serviceMessage="Updating password ...",this.loginService.changePassword(this.newPassword1).subscribe({next:()=>{this.serviceMessage="Password changed",this.loginService.authenticate({username:this.loginService.getUsername(),password:this.newPassword1}).subscribe()},error:t=>{this.serviceMessage="",this.errorMessage=`Error while updating password: ${t.message}`}})):this.serviceMessage="Passwords do not match!"}toggleTheme(){const t="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(t),r.classList.contains(t)?localStorage.setItem("theme",t):localStorage.setItem("theme","theme-light")}static{this.\u0275fac=function(r){return new(r||e)(b(Wt))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-profile"]],decls:26,vars:8,consts:[["title","Dark theme on/off",3,"click"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"input"],[1,"form-group"],["for","input-newPassword1"],["type","password","id","input-newPassword1","placeholder","new password",3,"ngModelChange","ngModel"],["for","input-newPassword2"],["type","password","id","input-newPassword2","placeholder","new password",3,"ngModelChange","ngModel"],[3,"click"]],template:function(r,o){1&r&&(g(0,"h1")(1,"u"),y(2),p()(),g(3,"button",0),S("click",function(){return o.toggleTheme()}),y(4,"\u2600 Switch theme"),p(),$(5,"br"),g(6,"h2"),y(7,"Change password:"),p(),g(8,"p",1),y(9),p(),g(10,"p",2),y(11),p(),g(12,"div",3)(13,"div",4)(14,"label",5),y(15,"New password:"),p(),g(16,"input",6),Q("ngModelChange",function(s){return K(o.newPassword1,s)||(o.newPassword1=s),s}),p(),$(17,"br"),g(18,"label",7),y(19,"Verify password:"),p(),g(20,"input",8),Q("ngModelChange",function(s){return K(o.newPassword2,s)||(o.newPassword2=s),s}),p(),g(21,"span",2),y(22,"No match"),p(),$(23,"br"),g(24,"button",9),S("click",function(){return o.saveProfile()}),y(25,"Save password"),p()()()),2&r&&(v(2),Ne("Profile of: ",o.username(),""),v(6),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(5),Z("ngModel",o.newPassword1),v(4),Z("ngModel",o.newPassword2),v(),N("hidden",o.checkPasswordsMatch()))},dependencies:[lt,Tt,vt]})}}return e})();class Gr{static{this.REST_URL=yn_restServerUrl+"/api/notes"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Fe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return fr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getNotes(){return this.http.get(Gr.REST_URL,this.httpOptions).pipe(H(n=>this.log(`fetched ${n.length} notes`)),ee(this.handleError("getNotes")))}addNote(n){return this.http.post(Gr.REST_URL,{text:n},this.httpOptions).pipe(H(r=>this.log(`added note w/ id=${r.id}`)),ee(this.handleError("addNote")))}deleteNote(n){return this.http.delete(`${Gr.REST_URL}/${n}`,this.httpOptions).pipe(H(r=>this.log(`deleted note id=${n}`)),ee(this.handleError("deleteNote")))}static{this.\u0275fac=function(t){return new(t||Gr)(R(zn),R(Gn))}}static{this.\u0275prov=O({token:Gr,factory:Gr.\u0275fac,providedIn:"root"})}}function z7(e,n){if(1&e){const t=ar();g(0,"li")(1,"div",10)(2,"span",11),y(3),He(4,"date"),p(),g(5,"button",12),S("click",function(){const o=Oe(t).$implicit;return Pe(Re().deleteNote(o))}),y(6,"x"),p()(),$(7,"p",13),p()}if(2&e){const t=n.$implicit;v(3),F(mt(4,2,t.dateCreated,"medium")),v(4),N("innerHTML",t.text,yh)}}let G7=(()=>{class e{constructor(t){this.noteService=t,this.notes=[],this.newNote="",this.serviceMessage="",this.errorMessage=""}ngOnInit(){this.getNotes()}reload(){this.getNotes()}getNotes(){this.errorMessage="",this.serviceMessage="Loading notes ...",this.noteService.getNotes().subscribe({next:t=>{this.notes=t,this.serviceMessage=0==t.length?"Nothing to do!":""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading notes: ${t.message}`}})}newNoteKeyDown(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),this.addNote())}addNote(){""!==this.newNote?(this.errorMessage="",this.serviceMessage="Adding note ...",this.noteService.addNote(this.newNote).subscribe({next:t=>{this.notes.push(t),this.newNote="",this.serviceMessage="Added note."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding note: ${t.message}`}})):this.errorMessage="Note empty"}deleteNote(t){window.confirm("Do you realy want to delete this note?")&&(this.errorMessage="",this.serviceMessage="Removing note ...",this.noteService.deleteNote(t.id).subscribe({next:()=>{this.notes=this.notes.filter(r=>r!==t),this.serviceMessage="Removed note."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing note: ${r.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(b(Gr))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-note"]],decls:21,vars:6,consts:[[1,"top-buttons","float-right"],["title","Refresh data",3,"click"],[1,"inline-block"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["id","input-text","placeholder","Write a note here.",1,"big-text-input",3,"ngModelChange","keydown","ngModel"],[3,"click"],[1,"element-title"],[1,"date"],["type","button","title","Delete note",1,"delete",3,"click"],[1,"text",3,"innerHTML"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"button",1),S("click",function(){return o.reload()}),y(2,"Reload"),p()(),g(3,"h1",2)(4,"u"),y(5,"Family notes:"),p()(),$(6,"br"),g(7,"p",3),y(8),p(),g(9,"p",4),y(10),p(),g(11,"ol",5),ve(12,z7,8,5,"li",6),p(),g(13,"h2"),y(14,"New note:"),p(),g(15,"div",7)(16,"div")(17,"textarea",8),Q("ngModelChange",function(s){return K(o.newNote,s)||(o.newNote=s),s}),S("keydown",function(s){return o.newNoteKeyDown(s)}),p(),$(18,"br"),g(19,"button",9),S("click",function(){return o.addNote()}),y(20,"Add note"),p()()()),2&r&&(v(7),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(2),N("ngForOf",o.notes),v(5),Z("ngModel",o.newNote))},dependencies:[en,lt,Tt,vt,$n],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{white-space:pre-wrap;margin:.2em .4em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]})}}return e})();class qr{static{this.REST_URL=yn_restServerUrl+"/api/mynotes"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Fe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return fr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getNotes(){return this.http.get(qr.REST_URL,this.httpOptions).pipe(H(n=>this.log(`fetched ${n.length} notes`)),ee(this.handleError("getNotes")))}addNote(n){return this.http.post(qr.REST_URL,{text:n},this.httpOptions).pipe(H(r=>this.log(`added note w/ id=${r.id}`)),ee(this.handleError("addNote")))}deleteNote(n){return this.http.delete(`${qr.REST_URL}/${n}`,this.httpOptions).pipe(H(r=>this.log(`deleted note id=${n}`)),ee(this.handleError("deleteNote")))}static{this.\u0275fac=function(t){return new(t||qr)(R(zn),R(Gn))}}static{this.\u0275prov=O({token:qr,factory:qr.\u0275fac,providedIn:"root"})}}function q7(e,n){if(1&e){const t=ar();g(0,"li")(1,"div",10)(2,"span",11),y(3),He(4,"date"),p(),g(5,"button",12),S("click",function(){const o=Oe(t).$implicit;return Pe(Re().deleteNote(o))}),y(6,"x"),p()(),g(7,"p",13),y(8),p()()}if(2&e){const t=n.$implicit;v(3),F(mt(4,2,t.dateCreated,"medium")),v(5),F(t.text)}}let W7=(()=>{class e{constructor(t){this.noteService=t,this.notes=[],this.newNote="",this.serviceMessage="",this.errorMessage=""}ngOnInit(){this.getNotes()}reload(){this.getNotes()}getNotes(){this.errorMessage="",this.serviceMessage="Loading notes ...",this.noteService.getNotes().subscribe({next:t=>{this.notes=t,this.serviceMessage=0==t.length?"Nothing to do!":""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading notes: ${t.message}`}})}newNoteKeyDown(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),this.addNote())}addNote(){""!==this.newNote?(this.errorMessage="",this.serviceMessage="Adding note ...",this.noteService.addNote(this.newNote).subscribe({next:t=>{this.notes.push(t),this.newNote="",this.serviceMessage="Added note."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding note: ${t.message}`}})):this.errorMessage="Note empty"}deleteNote(t){window.confirm("Do you realy want to delete this note?")&&(this.errorMessage="",this.serviceMessage="Removing note ...",this.noteService.deleteNote(t.id).subscribe({next:()=>{this.notes=this.notes.filter(r=>r!==t),this.serviceMessage="Removed note."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing note: ${r.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(b(qr))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-mynote"]],decls:21,vars:6,consts:[[1,"top-buttons","float-right"],["title","Refresh data",3,"click"],[1,"inline-block"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["id","input-text","placeholder","Write a note here.",1,"big-text-input",3,"ngModelChange","keydown","ngModel"],[3,"click"],[1,"element-title"],[1,"date"],["type","button","title","Delete note",1,"delete",3,"click"],[1,"text"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"button",1),S("click",function(){return o.reload()}),y(2,"Reload"),p()(),g(3,"h1",2)(4,"u"),y(5,"Your notes:"),p()(),$(6,"br"),g(7,"p",3),y(8),p(),g(9,"p",4),y(10),p(),g(11,"ol",5),ve(12,q7,9,5,"li",6),p(),g(13,"h2"),y(14,"New note:"),p(),g(15,"div",7)(16,"div")(17,"textarea",8),Q("ngModelChange",function(s){return K(o.newNote,s)||(o.newNote=s),s}),S("keydown",function(s){return o.newNoteKeyDown(s)}),p(),$(18,"br"),g(19,"button",9),S("click",function(){return o.addNote()}),y(20,"Add note"),p()()()),2&r&&(v(7),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(2),N("ngForOf",o.notes),v(5),Z("ngModel",o.newNote))},dependencies:[en,lt,Tt,vt,$n],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{white-space:pre-wrap;margin:.2em .4em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]})}}return e})();class Dn{static{this.REST_URL=yn_restServerUrl+"/api/mychecklists"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Fe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return fr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getChecklists(){return this.http.get(Dn.REST_URL,this.httpOptions).pipe(H(n=>this.log(`fetched ${n.length} checklists`)),ee(this.handleError("getChecklists")))}getChecklist(n){return this.http.get(`${Dn.REST_URL}/${n}`,this.httpOptions).pipe(H(t=>this.log(`fetched checklist ${t.id}`)),ee(this.handleError("getChecklist")))}addChecklist(n){return this.http.post(Dn.REST_URL,{name:n},this.httpOptions).pipe(H(r=>this.log(`added checklist w/ id=${r.id}`)),ee(this.handleError("addChecklist")))}saveChecklist(n){return this.http.post(Dn.REST_URL,n,this.httpOptions).pipe(H(t=>this.log(`saved checklist w/ id=${t.id}`)),ee(this.handleError("addChecklist")))}deleteChecklist(n){return this.http.delete(`${Dn.REST_URL}/${n}`,this.httpOptions).pipe(H(r=>this.log(`deleted checklist id=${n}`)),ee(this.handleError("deleteChecklist")))}static{this.\u0275fac=function(t){return new(t||Dn)(R(zn),R(Gn))}}static{this.\u0275prov=O({token:Dn,factory:Dn.\u0275fac,providedIn:"root"})}}const Z7=e=>["/mychecklist",e],Q7=e=>({strikethrough:e});function Y7(e,n){if(1&e&&(g(0,"li",15),y(1),p()),2&e){const t=n.$implicit;N("ngClass",jn(2,Q7,!0===t.checked)),v(),Ne(" ",t.text," ")}}function X7(e,n){if(1&e&&(g(0,"li")(1,"a",11)(2,"span",12),y(3),p(),g(4,"ul",13),ve(5,Y7,2,4,"li",14),He(6,"onlyListedItems"),p()()()),2&e){const t=n.$implicit;v(),N("routerLink",jn(5,Z7,t.id)),v(2),F(t.name),v(2),N("ngForOf",Ci(6,3,t.checks))}}let K7=(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=E(xt),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:t=>{this.checklists=t,this.serviceMessage=t.length?"":"No checklist in database."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${t.message}`}})}ngOnInit(){this.getChecklists()}reload(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:t=>this.router.navigate(["/mychecklist/",t.id]),error:t=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${t.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(b(Dn),b(ze))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-mychecklists"]],decls:22,vars:6,consts:[[1,"top-buttons","float-right"],["title","Refresh data",3,"click"],[1,"inline-block"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModelChange","keydown.enter","ngModel"],[3,"click"],[1,"element",3,"routerLink"],[1,"text"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"button",1),S("click",function(){return o.reload()}),y(2,"Reload"),p()(),g(3,"h1",2)(4,"u"),y(5,"Your checklists:"),p()(),$(6,"br"),g(7,"p",3),y(8),p(),g(9,"p",4),y(10),p(),g(11,"ol",5),ve(12,X7,7,7,"li",6),p(),g(13,"h2"),y(14,"New checklist:"),p(),g(15,"div",7)(16,"div")(17,"label",8),y(18,"name:"),p(),g(19,"input",9),Q("ngModelChange",function(s){return K(o.newChecklist,s)||(o.newChecklist=s),s}),S("keydown.enter",function(){return o.sendChecklist()}),p(),g(20,"button",10),S("click",function(){return o.sendChecklist()}),y(21,"Add checklist"),p()()()),2&r&&(v(7),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(2),N("ngForOf",o.checklists),v(7),Z("ngModel",o.newChecklist))},dependencies:[qc,en,lt,Tt,vt,gr,Ru],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.2em;border-radius:4px;border:solid 1px #808080}.element[_ngcontent-%COMP%]{text-decoration:none;display:block}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}"]})}}return e})(),J7=(()=>{class e{transform(t){return t&&t.filter(r=>r.unlisted)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=ct({name:"onlyUnlistedItems",type:e,pure:!0})}}return e})();function e9(e,n){if(1&e){const t=ar();g(0,"li")(1,"input",15),Q("ngModelChange",function(o){const i=Oe(t).$implicit;return K(i.checked,o)||(i.checked=o),Pe(o)}),S("change",function(){return Oe(t),Pe(Re().saveCheckList())}),p(),g(2,"label",16),y(3),p(),g(4,"span",17)(5,"button",18),S("click",function(){const o=Oe(t).$implicit;return Pe(Re().unlistItem(o.id))}),y(6,"v"),p()()()}if(2&e){const t=n.$implicit;v(),Z("ngModel",t.checked),v(2),F(t.text)}}function t9(e,n){if(1&e){const t=ar();g(0,"li")(1,"input",19),Q("ngModelChange",function(o){const i=Oe(t).$implicit;return K(i.text,o)||(i.text=o),Pe(o)}),S("change",function(){return Oe(t),Pe(Re().saveCheckList())}),p(),g(2,"span",17)(3,"button",20),S("click",function(){return Oe(t),Pe(Re().saveCheckList())}),y(4,"\u{1f4be}"),p(),g(5,"button",21),S("click",function(){const o=Oe(t).$implicit;return Pe(Re().relistItem(o.id))}),y(6,"^"),p(),g(7,"button",22),S("click",function(){const o=Oe(t).$implicit;return Pe(Re().removeItem(o.id))}),y(8,"x"),p()()()}if(2&e){const t=n.$implicit;v(),Z("ngModel",t.text)}}let n9=(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=E(xt),this.checklistId=-1,this.checklist={},this.newItem="",this.serviceMessage="",this.errorMessage="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading checklist ...",this.checklistService.getChecklist(this.checklistId).subscribe({next:t=>{this.checklist=t,this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${t.message}`}})}ngOnInit(){this.getChecklist()}back(){this.router.navigate(["/mychecklists"])}reload(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}getItemById(t){for(let r of this.checklist.checks)if(r.id==t)return r;return null}unlistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!0,this.saveCheckList())}relistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!1,this.saveCheckList())}removeItem(t){for(let r=0;r{this.checklist=t,this.serviceMessage="Saved checklist."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${t.message}`}})}deleteChecklist(){window.confirm(`Do you realy want to delete checklist "${this.checklist.name}"?`)&&(this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/mychecklists")},error:t=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${t.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(b(Dn),b(ze))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-edit-mychecklists"]],decls:46,vars:18,consts:[[1,"top-buttons","float-right"],["title","Back to: my checklists",3,"click"],["title","Refresh data",3,"click"],["title","Delete checklist",1,"delete",3,"click"],[1,"inline-block"],[1,"title-id"],[3,"hidden"],[1,"alert",3,"hidden"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","Remember x",3,"ngModelChange","keydown.enter","ngModel"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModelChange","keydown.enter","ngModel"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"item-text"],[1,"element-buttons"],["type","button","title","Unlist item",1,"unlist",3,"click"],["type","text",1,"item-text",3,"ngModelChange","change","ngModel"],["type","button","title","Save item",1,"save",3,"click"],["type","button","title","Relist item",1,"relist",3,"click"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"button",1),S("click",function(){return o.back()}),y(2,"Back"),p(),g(3,"button",2),S("click",function(){return o.reload()}),y(4,"Reload"),p(),g(5,"button",3),S("click",function(){return o.deleteChecklist()}),y(6,"Delete checklist"),p()(),g(7,"h1",4)(8,"u"),y(9),p(),g(10,"span",5),y(11),p()(),$(12,"br"),g(13,"p",6),y(14),p(),g(15,"p",7),y(16),p(),g(17,"span"),y(18),He(19,"date"),p(),g(20,"h3"),y(21,"Items:"),p(),g(22,"ol"),ve(23,e9,7,2,"li",8),He(24,"onlyListedItems"),p(),g(25,"h3"),y(26,"Unlisted Items:"),p(),g(27,"ol"),ve(28,t9,9,1,"li",8),He(29,"onlyUnlistedItems"),p(),g(30,"h2"),y(31,"Add item:"),p(),g(32,"div",9)(33,"label",10),y(34,"item:"),p(),g(35,"input",11),Q("ngModelChange",function(s){return K(o.newItem,s)||(o.newItem=s),s}),S("keydown.enter",function(){return o.addItem()}),p(),g(36,"button",12),S("click",function(){return o.addItem()}),y(37,"Add item"),p()(),g(38,"h2"),y(39,"Change name:"),p(),g(40,"div",9)(41,"label",13),y(42,"newName:"),p(),g(43,"input",14),Q("ngModelChange",function(s){return K(o.checklist.name,s)||(o.checklist.name=s),s}),S("keydown.enter",function(){return o.saveCheckList()}),p(),g(44,"button",12),S("click",function(){return o.saveCheckList()}),y(45,"Save name"),p()()),2&r&&(v(9),Ne("Editing checklist: ",o.checklist.name,""),v(2),Ne("Id: ",o.checklist.id,""),v(2),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(2),Ne("Updated on: ",mt(19,11,o.checklist.dateUpdated,"medium"),""),v(5),N("ngForOf",Ci(24,14,o.checklist.checks)),v(5),N("ngForOf",Ci(29,16,o.checklist.checks)),v(7),Z("ngModel",o.newItem),v(8),Z("ngModel",o.checklist.name))},dependencies:[en,lt,ga,Tt,vt,$n,J7,Ru],styles:["li[_ngcontent-%COMP%]{padding:1px}.delete[_ngcontent-%COMP%]{margin-left:1em;background-color:#ff000080}.unlist[_ngcontent-%COMP%]{background-color:#0000ff80}.relist[_ngcontent-%COMP%]{background-color:#00ff0080}.element-buttons[_ngcontent-%COMP%]{margin-left:2em}.item-text[_ngcontent-%COMP%]{display:inline-block;min-width:8em}"]})}}return e})();class wn{static{this.REST_URL=yn_restServerUrl+"/api/calendarnotes"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Fe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return fr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getCalendarNote(n){return this.http.get(wn.REST_URL+"/"+n,this.httpOptions).pipe(H(t=>this.log(`fetched calendar note ${t.id}`)),ee(this.handleError("getCalendarNote")))}getCalendarNotes(){return this.http.get(wn.REST_URL,this.httpOptions).pipe(H(n=>this.log(`fetched ${n.length} notes`)),ee(this.handleError("getCalendarNotes")))}addCalendarNote(n,t){return this.http.post(wn.REST_URL,{targetDate:n,text:t},this.httpOptions).pipe(H(o=>this.log(`added note w/ id=${o.id}`)),ee(this.handleError("addCalendarNote")))}saveCalendarNote(n){return this.http.post(wn.REST_URL,n,this.httpOptions).pipe(H(t=>this.log(`saved calendar note w/ id=${t.id}`)),ee(this.handleError("saveCalendarNote")))}deleteCalendarNote(n){return this.http.delete(`${wn.REST_URL}/${n}`,this.httpOptions).pipe(H(r=>this.log(`deleted note id=${n}`)),ee(this.handleError("deleteCalendarNote")))}static{this.\u0275fac=function(t){return new(t||wn)(R(zn),R(Gn))}}static{this.\u0275prov=O({token:wn,factory:wn.\u0275fac,providedIn:"root"})}}const Ou=e=>["/calendarnote",e];function r9(e,n){if(1&e&&(g(0,"li")(1,"a",12)(2,"span"),y(3),He(4,"date"),p()()()),2&e){const t=n.$implicit;v(),N("routerLink",jn(6,Ou,t.id)),v(2),Ar("",mt(4,3,t.targetDate,"shortTime"),"\xa0\xa0",t.text,"")}}function o9(e,n){if(1&e&&(g(0,"div")(1,"ol",10)(2,"span",11),y(3),p(),y(4,"\xa0"),g(5,"span"),y(6),He(7,"date"),p(),ve(8,r9,5,8,"li",5),p()()),2&e){const t=n.$implicit,r=n.index,o=Re();v(),N("hidden",0==t.length),v(),N("ngClass",o.getIndexClass(r)),v(),Ne("",o.days[r],":"),v(3),F(mt(7,5,o.getIndexDateThisWeek(r),"d MMM")),v(2),N("ngForOf",t)}}function i9(e,n){if(1&e&&(g(0,"li")(1,"a",12)(2,"span"),y(3),He(4,"date"),p()()()),2&e){const t=n.$implicit;v(),N("routerLink",jn(6,Ou,t.id)),v(2),Ar("",mt(4,3,t.targetDate,"shortTime"),"\xa0\xa0",t.text,"")}}function s9(e,n){if(1&e&&(g(0,"div")(1,"ol",10)(2,"span"),y(3),p(),y(4,"\xa0"),g(5,"span"),y(6),He(7,"date"),p(),ve(8,i9,5,8,"li",5),p()()),2&e){const t=n.$implicit,r=n.index,o=Re();v(),N("hidden",0==t.length),v(2),Ne("",o.days[r],":"),v(3),F(mt(7,4,o.getIndexDateNextWeek(r),"d MMM")),v(2),N("ngForOf",t)}}function a9(e,n){if(1&e&&(g(0,"li")(1,"a",12)(2,"span"),y(3),He(4,"date"),p()()()),2&e){const t=n.$implicit;v(),N("routerLink",jn(6,Ou,t.id)),v(2),Ar("",mt(4,3,t.targetDate,"medium"),"\xa0\xa0",t.text,"")}}function l9(e,n){if(1&e&&(g(0,"li")(1,"a",12)(2,"span"),y(3),He(4,"date"),p()()()),2&e){const t=n.$implicit;v(),N("routerLink",jn(6,Ou,t.id)),v(2),Ar("",mt(4,3,t.targetDate,"medium"),"\xa0\xa0",t.text,"")}}const c9=[{path:"",component:N7,pathMatch:"full"},{path:"login",component:A7},{path:"profile",component:H7,canActivate:[tn]},{path:"chat",component:Qg,canActivate:[tn]},{path:"notes",component:G7,canActivate:[tn]},{path:"mynotes",component:W7,canActivate:[tn]},{path:"calendar",component:(()=>{class e{constructor(t,r){this.calendarNoteService=t,this.router=r,this.days=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],this.route=E(xt),this.calendarNotes=[],this.today=(new Date).getDay()-1,this.filteredThisWeekNotes=[],this.refilteredThisWeekNotes=[],this.filteredNextWeekNotes=[],this.refilteredNextWeekNotes=[],this.filteredFutureNotes=[],this.filteredPastNotes=[],this.newNote={},this.serviceMessage="",this.errorMessage="",this.hidePast=!0}isIndexToday(t){return t==this.today}getIndexClass(t){if(t==this.today)return"today"}getIndexDateThisWeek(t){const r=this.getMonday(new Date);return new Date(r.setDate(r.getDate()+t))}getIndexDateNextWeek(t){const r=this.getMonday(new Date);return new Date(r.setDate(r.getDate()+t+7))}getCalendarNotes(){this.serviceMessage="Loading calendar notes ...",this.calendarNoteService.getCalendarNotes().subscribe({next:t=>{this.calendarNotes=t,t.length?(this.serviceMessage="",this.filterCalendarNotes(t)):this.serviceMessage="No calendar notes in database."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading calendar notes: ${t.message}`}})}getMondayMorning(t){return(t=this.getMonday(t)).setHours(0),t.setMinutes(0),t.setSeconds(0),t}getMonday(t){const r=(t=new Date(t)).getDay(),o=t.getDate()-r+(0==r?-6:1);return t.setDate(o),t}getNextDay(t){const r=new Date(t);return r.setDate(t.getDate()+1),r}showPast(){this.hidePast=!this.hidePast}filterCalendarNotes(t){t=t.sort((c,u)=>new Date(c.targetDate).getTime()-new Date(u.targetDate).getTime());const o=this.getMondayMorning(new Date),i=new Date;i.setDate(i.getDate()+7);const s=this.getMondayMorning(i);this.filteredThisWeekNotes=t.filter(c=>{const u=new Date(c.targetDate);return u.getTime()>=o.getTime()&&u.getTime(){const f=new Date(h.targetDate);return f.getTime()>=u.getTime()&&f.getTime(){const u=new Date(c.targetDate);return u.getTime()>=s.getTime()&&u.getTime(){const f=new Date(h.targetDate);return f.getTime()>=u.getTime()&&f.getTime()new Date(c.targetDate).getTime()>=l.getTime()),this.filteredPastNotes=t.filter(c=>new Date(c.targetDate).getTime(){this.calendarNotes.push(t),this.filterCalendarNotes(this.calendarNotes),this.serviceMessage="Added calendar-note."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding note: ${t.message}`}}),this.newNote.text="",void(this.newNote.targetDate="")):(this.serviceMessage="",void(this.errorMessage="missing date and/or time"))}newNoteKeyDown(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),this.addNote())}static{this.\u0275fac=function(r){return new(r||e)(b(wn),b(ze))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-calendar"]],decls:38,vars:13,consts:[[1,"top-buttons","float-right"],["title","Refresh data",3,"click"],[1,"inline-block"],[3,"hidden"],[1,"alert",3,"hidden"],[4,"ngFor","ngForOf"],[1,"element-list"],[3,"click"],["id","input-text","placeholder","Your message",1,"big-text-input",3,"ngModelChange","keydown","ngModel"],["type","datetime-local",3,"ngModelChange","ngModel"],[1,"element-list",3,"hidden"],[3,"ngClass"],[1,"element",3,"routerLink"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"button",1),S("click",function(){return o.reload()}),y(2,"Reload"),p()(),g(3,"h1",2)(4,"u"),y(5,"Family calendar:"),p()(),$(6,"br"),g(7,"p",3),y(8),p(),g(9,"p",4),y(10),p(),g(11,"h2"),y(12,"This week:"),p(),g(13,"span",3),y(14,"No notes"),p(),ve(15,o9,9,8,"div",5),g(16,"h2"),y(17,"Next week:"),p(),g(18,"span",3),y(19,"No notes"),p(),ve(20,s9,9,7,"div",5),g(21,"h2"),y(22,"After next week:"),p(),g(23,"ol",6),ve(24,a9,5,8,"li",5),p(),g(25,"button",7),S("click",function(){return o.showPast()}),y(26,"Show past"),p(),g(27,"div",3)(28,"h2"),y(29,"The past:"),p(),g(30,"ol",6),ve(31,l9,5,8,"li",5),p()(),g(32,"h2"),y(33,"New Note:"),p(),g(34,"textarea",8),Q("ngModelChange",function(s){return K(o.newNote.text,s)||(o.newNote.text=s),s}),S("keydown",function(s){return o.newNoteKeyDown(s)}),p(),g(35,"input",9),Q("ngModelChange",function(s){return K(o.newNote.targetDate,s)||(o.newNote.targetDate=s),s}),p(),g(36,"button",7),S("click",function(){return o.addNote()}),y(37,"Add calendar note"),p()),2&r&&(v(7),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(3),N("hidden",0!=o.filteredThisWeekNotes.length),v(2),N("ngForOf",o.refilteredThisWeekNotes),v(3),N("hidden",0!=o.filteredNextWeekNotes.length),v(2),N("ngForOf",o.refilteredNextWeekNotes),v(4),N("ngForOf",o.filteredFutureNotes),v(3),N("hidden",o.hidePast),v(4),N("ngForOf",o.filteredPastNotes),v(3),Z("ngModel",o.newNote.text),v(),Z("ngModel",o.newNote.targetDate))},dependencies:[qc,en,lt,Tt,vt,gr,$n],styles:[".today[_ngcontent-%COMP%]{font-weight:700}"]})}}return e})(),canActivate:[tn]},{path:"calendarnote/:id",component:(()=>{class e{constructor(t,r){this.calendarNoteService=t,this.router=r,this.route=E(xt),this.calendarNote={},this.serviceMessage="",this.errorMessage="",this.noteId=Number(this.route.snapshot.params.id)}getCalendarNote(){this.serviceMessage="Loading calendar note ...",this.calendarNoteService.getCalendarNote(this.noteId).subscribe({next:t=>{this.calendarNote=t,this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading calendar note: ${t.message}`}})}ngOnInit(){this.getCalendarNote()}reload(){this.getCalendarNote()}back(){this.router.navigateByUrl("/calendar")}deleteNote(){window.confirm(`Do you realy want to delete this calendar note?\n${this.calendarNote.text}`)&&(this.serviceMessage="Removing calendar note ...",this.calendarNoteService.deleteCalendarNote(this.noteId).subscribe({next:t=>{this.back()},error:t=>{this.serviceMessage="",this.errorMessage=`Error while deleting calendar note: ${t.message}`}}))}saveNote(){this.serviceMessage="Updating calendar note ...",this.calendarNoteService.saveCalendarNote(this.calendarNote).subscribe({next:t=>{this.calendarNote=t,this.serviceMessage="Saved calendar note."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while saving calendar note: ${t.message}`}})}editNoteKeyDown(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),this.saveNote())}static{this.\u0275fac=function(r){return new(r||e)(b(wn),b(ze))}}static{this.\u0275cmp=rt({type:e,selectors:[["app-calendar-note"]],decls:26,vars:15,consts:[[1,"top-buttons","float-right"],["title","Back to: Calendar",3,"click"],["title","Refresh data",3,"click"],["title","Delete calendar note",1,"delete",3,"click"],[1,"inline-block"],[1,"title-id"],[3,"hidden"],[1,"alert",3,"hidden"],["id","input-text","placeholder","Your message",1,"big-text-input",3,"ngModelChange","keydown","ngModel"],["type","datetime-local",3,"ngModelChange","ngModel"],["title","Save calendar note",1,"save",3,"click"]],template:function(r,o){1&r&&(g(0,"span",0)(1,"button",1),S("click",function(){return o.back()}),y(2,"Back"),p(),g(3,"button",2),S("click",function(){return o.reload()}),y(4,"Reload"),p(),g(5,"button",3),S("click",function(){return o.deleteNote()}),y(6,"Delete note"),p()(),g(7,"h1",4)(8,"u"),y(9),He(10,"date"),p(),g(11,"span",5),y(12),p()(),$(13,"br"),g(14,"p",6),y(15),p(),g(16,"p",7),y(17),p(),g(18,"span"),y(19),He(20,"date"),p(),$(21,"br"),g(22,"textarea",8),Q("ngModelChange",function(s){return K(o.calendarNote.text,s)||(o.calendarNote.text=s),s}),S("keydown",function(s){return o.editNoteKeyDown(s)}),p(),g(23,"input",9),Q("ngModelChange",function(s){return K(o.calendarNote.targetDate,s)||(o.calendarNote.targetDate=s),s}),p(),g(24,"button",10),S("click",function(){return o.saveNote()}),y(25,"Save note"),p()),2&r&&(v(9),Ne("Editing calendar note: ",mt(10,9,o.calendarNote.targetDate,"medium"),""),v(3),Ne("Id: ",o.calendarNote.id,""),v(2),N("hidden",""===o.serviceMessage),v(),F(o.serviceMessage),v(),N("hidden",""===o.errorMessage),v(),F(o.errorMessage),v(2),Ne("Updated on: ",mt(20,12,o.calendarNote.dateUpdated,"medium"),""),v(3),Z("ngModel",o.calendarNote.text),v(),Z("ngModel",o.calendarNote.targetDate))},dependencies:[lt,Tt,vt,$n],styles:[".delete[_ngcontent-%COMP%]{margin-left:1em;background-color:#ff000080}"]})}}return e})(),canActivate:[tn]},{path:"contacts",component:O7,canActivate:[tn]},{path:"contact/:id",component:B7,canActivate:[tn]},{path:"checklists",component:V7,canActivate:[tn]},{path:"checklist/:id",component:$7,canActivate:[tn]},{path:"mychecklists",component:K7,canActivate:[tn]},{path:"mychecklist/:id",component:n9,canActivate:[tn]}];let u9=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=bn({type:e})}static{this.\u0275inj=nn({imports:[$E.forRoot(c9),$E]})}}return e})(),d9=(()=>{class e{constructor(t){this.auth=t}intercept(t,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=t.clone({headers:t.headers.set("Authorization",o)});return r.handle(i)}return r.handle(t)}static{this.\u0275fac=function(r){return new(r||e)(R(Wt))}}static{this.\u0275prov=O({token:e,factory:e.\u0275fac})}}return e})();const Xn=void 0;!function AF(e,n,t){(function YR(e,n,t){"string"!=typeof n&&(t=n,n=e[Me.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),yi[n]=e,t&&(yi[n][Me.ExtraData]=t)})(e,n,t)}(["nl",[["a.m.","p.m."],Xn,Xn],Xn,[["Z","M","D","W","D","V","Z"],["zo","ma","di","wo","do","vr","za"],["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zo","ma","di","wo","do","vr","za"]],Xn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]],Xn,[["v.C.","n.C."],["v.Chr.","n.Chr."],["voor Christus","na Christus"]],1,[6,0],["dd-MM-y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",Xn,"{1} 'om' {0}",Xn],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4\xa0-#,##0.00","#E0"],"EUR","\u20ac","Euro",{AUD:["AU$","$"],BYN:[Xn,"\u0440."],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP\xa5","\xa5"],PHP:[Xn,"\u20b1"],RUR:[Xn,"\u0440."],SBD:["SI$","$"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",function h9(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}]);let f9=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=bn({type:e,bootstrap:[S7]})}static{this.\u0275inj=nn({providers:[{provide:gb,useClass:d9,multi:!0},{provide:Pr,useClass:Y0},{provide:Un,useValue:"nl-BE"}],imports:[lL,n6,A6,u9]})}}return e})();sL().bootstrapModule(f9).catch(e=>console.error(e))}},Gi=>{Gi(Gi.s=260)}]);