diff --git a/index.html b/index.html index bbc6e8d..fc00fde 100644 --- a/index.html +++ b/index.html @@ -4,9 +4,9 @@ - + - + \ No newline at end of file diff --git a/main.34952ff45575a765.js b/main.34952ff45575a765.js new file mode 100644 index 0000000..eb390e2 --- /dev/null +++ b/main.34952ff45575a765.js @@ -0,0 +1 @@ +(self.webpackChunkInterSystemsWOOP=self.webpackChunkInterSystemsWOOP||[]).push([[179],{271:(Se,Pt,N)=>{"use strict";function G(t){return"function"==typeof t}function qe(t){const e=t(r=>{Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Et=qe(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ut(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class U{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:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const i of e)i.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(G(r))try{r()}catch(i){n=i instanceof Et?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{io(i)}catch(s){n=n??[],s instanceof Et?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Et(n)}}add(n){var e;if(n&&n!==this)if(this.closed)io(n);else{if(n instanceof U){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&ut(e,n)}remove(n){const{_finalizers:e}=this;e&&ut(e,n),n instanceof U&&n._removeParent(this)}}U.EMPTY=(()=>{const t=new U;return t.closed=!0,t})();const Ot=U.EMPTY;function Ar(t){return t instanceof U||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function io(t){G(t)?t():t.unsubscribe()}const ln={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},On={setTimeout(t,n,...e){const{delegate:r}=On;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=On;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function To(t){On.setTimeout(()=>{const{onUnhandledError:n}=ln;if(!n)throw t;n(t)})}function Nr(){}const dt=P("C",void 0,void 0);function P(t,n,e){return{kind:t,value:n,error:e}}let S=null;function A(t){if(ln.useDeprecatedSynchronousErrorHandling){const n=!S;if(n&&(S={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:r}=S;if(S=null,e)throw r}}else t()}class L extends U{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ar(n)&&n.add(this)):this.destination=fa}static create(n,e,r){return new Be(n,e,r)}next(n){this.isStopped?ko(function pt(t){return P("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?ko(function He(t){return P("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?ko(dt,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 J=Function.prototype.bind;function Ce(t,n){return J.call(t,n)}class X{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){st(r)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){st(r)}else st(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){st(e)}}}class Be extends L{constructor(n,e,r){let o;if(super(),G(n)||!n)o={next:n??void 0,error:e??void 0,complete:r??void 0};else{let i;this&&ln.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Ce(n.next,i),error:n.error&&Ce(n.error,i),complete:n.complete&&Ce(n.complete,i)}):o=n}this.destination=new X(o)}}function st(t){ln.useDeprecatedSynchronousErrorHandling?function B(t){ln.useDeprecatedSynchronousErrorHandling&&S&&(S.errorThrown=!0,S.error=t)}(t):To(t)}function ko(t,n){const{onStoppedNotification:e}=ln;e&&On.setTimeout(()=>e(t,n))}const fa={closed:!0,next:Nr,error:function zn(t){throw t},complete:Nr},Hi="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gn(t){return t}function _t(t){return 0===t.length?Gn:1===t.length?t[0]:function(e){return t.reduce((r,o)=>o(r),e)}}let Ee=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,o){const i=function cn(t){return t&&t instanceof L||function Ao(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}(t)&&Ar(t)}(e)?e:new Be(e,r,o);return A(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=hr(r))((o,i)=>{const s=new Be({next:a=>{try{e(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[Hi](){return this}pipe(...e){return _t(e)(this)}toPromise(e){return new(e=hr(e))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=n=>new t(n),t})();function hr(t){var n;return null!==(n=t??ln.Promise)&&void 0!==n?n:Promise}const jc=qe(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let nt=(()=>{class t extends Ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new Rr(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new jc}next(e){A(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){A(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){A(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Ot:(this.currentObservers=null,i.push(e),new U(()=>{this.currentObservers=null,ut(i,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:o,isStopped:i}=this;r?e.error(o):i&&e.complete()}asObservable(){const e=new Ee;return e.source=this,e}}return t.create=(n,e)=>new Rr(n,e),t})();class Rr extends nt{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,n)}error(n){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==r?r:Ot}}function so(t){return G(t?.lift)}function Xe(t){return n=>{if(so(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ke(t,n,e,r,o){return new ma(t,n,e,r,o)}class ma extends L{constructor(n,e,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(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:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ye(t,n){return Xe((e,r)=>{let o=0;e.subscribe(Ke(r,i=>{r.next(t.call(n,i,o++))}))})}function Lr(t){return this instanceof Lr?(this.v=t,this):new Lr(t)}function vf(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Wc(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(i){e[i]=t[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=t[i](s)).done,s.value)})}}}const Cf=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function yf(t){return G(t?.then)}function wf(t){return G(t[Hi])}function bf(t){return Symbol.asyncIterator&&G(t?.[Symbol.asyncIterator])}function Mf(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Df=function gD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ef(t){return G(t?.[Df])}function xf(t){return function _f(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=e.apply(t,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(g){r[g]&&(o[g]=function(m){return new Promise(function(y,M){i.push([g,m,y,M])>1||a(g,m)})})}function a(g,m){try{!function l(g){g.value instanceof Lr?Promise.resolve(g.value.v).then(c,u):d(i[0][2],g)}(r[g](m))}catch(y){d(i[0][3],y)}}function c(g){a("next",g)}function u(g){a("throw",g)}function d(g,m){g(m),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:r,done:o}=yield Lr(e.read());if(o)return yield Lr(void 0);yield yield Lr(r)}}finally{e.releaseLock()}})}function Sf(t){return G(t?.getReader)}function un(t){if(t instanceof Ee)return t;if(null!=t){if(wf(t))return function mD(t){return new Ee(n=>{const e=t[Hi]();if(G(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Cf(t))return function _D(t){return new Ee(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,To)})}(t);if(bf(t))return Pf(t);if(Ef(t))return function CD(t){return new Ee(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(Sf(t))return function yD(t){return Pf(xf(t))}(t)}throw Mf(t)}function Pf(t){return new Ee(n=>{(function wD(t,n){var e,r,o,i;return function gf(t,n,e,r){return new(e||(e=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 e?i:new e(function(s){s(i)})}(u.value).then(a,l)}c((r=r.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=vf(t);!(r=yield e.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function fr(t,n,e,r=0,o=!1){const i=n.schedule(function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function It(t,n,e=1/0){return G(n)?It((r,o)=>ye((i,s)=>n(r,i,o,s))(un(t(r,o))),e):("number"==typeof n&&(e=n),Xe((r,o)=>function bD(t,n,e,r,o,i,s,a){const l=[];let c=0,u=0,d=!1;const g=()=>{d&&!l.length&&!c&&n.complete()},m=M=>c{i&&n.next(M),c++;let E=!1;un(e(M,u++)).subscribe(Ke(n,x=>{o?.(x),i?m(x):n.next(x)},()=>{E=!0},void 0,()=>{if(E)try{for(c--;l.length&&cy(x)):y(x)}g()}catch(x){n.error(x)}}))};return t.subscribe(Ke(n,m,()=>{d=!0,g()})),()=>{a?.()}}(r,o,t,e)))}function No(t=1/0){return It(Gn,t)}const Wn=new Ee(t=>t.complete());function Of(t){return t&&G(t.schedule)}function qc(t){return t[t.length-1]}function If(t){return G(qc(t))?t.pop():void 0}function $i(t){return Of(qc(t))?t.pop():void 0}function Tf(t,n=0){return Xe((e,r)=>{e.subscribe(Ke(r,o=>fr(r,t,()=>r.next(o),n),()=>fr(r,t,()=>r.complete(),n),o=>fr(r,t,()=>r.error(o),n)))})}function kf(t,n=0){return Xe((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function Af(t,n){if(!t)throw new Error("Iterable cannot be null");return new Ee(e=>{fr(e,n,()=>{const r=t[Symbol.asyncIterator]();fr(e,n,()=>{r.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function vt(t,n){return n?function ID(t,n){if(null!=t){if(wf(t))return function ED(t,n){return un(t).pipe(kf(n),Tf(n))}(t,n);if(Cf(t))return function SD(t,n){return new Ee(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}(t,n);if(yf(t))return function xD(t,n){return un(t).pipe(kf(n),Tf(n))}(t,n);if(bf(t))return Af(t,n);if(Ef(t))return function PD(t,n){return new Ee(e=>{let r;return fr(e,n,()=>{r=t[Df](),fr(e,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void e.error(s)}i?e.complete():e.next(o)},0,!0)}),()=>G(r?.return)&&r.return()})}(t,n);if(Sf(t))return function OD(t,n){return Af(xf(t),n)}(t,n)}throw Mf(t)}(t,n):un(t)}function Nf(...t){const n=$i(t),e=function DD(t,n){return"number"==typeof qc(t)?t.pop():n}(t,1/0),r=t;return r.length?1===r.length?un(r[0]):No(e)(vt(r,n)):Wn}function Rf(t={}){const{connector:n=(()=>new nt),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,l,c=0,u=!1,d=!1;const g=()=>{a?.unsubscribe(),a=void 0},m=()=>{g(),s=l=void 0,u=d=!1},y=()=>{const M=s;m(),M?.unsubscribe()};return Xe((M,E)=>{c++,!d&&!u&&g();const x=l=l??n();E.add(()=>{c--,0===c&&!d&&!u&&(a=Yc(y,o))}),x.subscribe(E),!s&&c>0&&(s=new Be({next:b=>x.next(b),error:b=>{d=!0,g(),a=Yc(m,e,b),x.error(b)},complete:()=>{u=!0,g(),a=Yc(m,r),x.complete()}}),un(M).subscribe(s))})(i)}}function Yc(t,n,...e){if(!0===n)return void t();if(!1===n)return;const r=new Be({next:()=>{r.unsubscribe(),t()}});return un(n(...e)).subscribe(r)}function Ne(t){for(let n in t)if(t[n]===Ne)return n;throw Error("Could not find renamed property on target object.")}function Zc(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Ct(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ct).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Xc(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const TD=Ne({__forward_ref__:Ne});function je(t){return t.__forward_ref__=je,t.toString=function(){return Ct(this())},t}function de(t){return Kc(t)?t():t}function Kc(t){return"function"==typeof t&&t.hasOwnProperty(TD)&&t.__forward_ref__===je}function Qc(t){return t&&!!t.\u0275providers}const Ff="https://g.co/ng/security#xss";class I extends Error{constructor(n,e){super(function _a(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function pe(t){return"string"==typeof t?t:null==t?"":String(t)}function va(t,n){throw new I(-201,!1)}function wn(t,n){null==t&&function Ie(t,n,e,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${e} ${r} ${n} <=Actual]`))}(n,t,null,"!=")}function Z(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Xt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Ca(t){return Lf(t,ya)||Lf(t,Vf)}function Lf(t,n){return t.hasOwnProperty(n)?t[n]:null}function Bf(t){return t&&(t.hasOwnProperty(Jc)||t.hasOwnProperty(VD))?t[Jc]:null}const ya=Ne({\u0275prov:Ne}),Jc=Ne({\u0275inj:Ne}),Vf=Ne({ngInjectableDef:Ne}),VD=Ne({ngInjectorDef:Ne});var oe=(()=>((oe=oe||{})[oe.Default=0]="Default",oe[oe.Host=1]="Host",oe[oe.Self=2]="Self",oe[oe.SkipSelf=4]="SkipSelf",oe[oe.Optional=8]="Optional",oe))();let eu;function Kt(t){const n=eu;return eu=t,n}function $f(t,n,e){const r=Ca(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&oe.Optional?null:void 0!==n?n:void va(Ct(t))}const ze=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ui={},tu="__NG_DI_FLAG__",wa="ngTempTokenPath",$D=/\n/gm,Uf="__source";let Ro;function Vr(t){const n=Ro;return Ro=t,n}function zD(t,n=oe.Default){if(void 0===Ro)throw new I(-203,!1);return null===Ro?$f(t,void 0,n):Ro.get(t,n&oe.Optional?null:void 0,n)}function V(t,n=oe.Default){return(function Hf(){return eu}()||zD)(de(t),n)}function z(t,n=oe.Default){return V(t,ba(n))}function ba(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function nu(t){const n=[];for(let e=0;e((qn=qn||{})[qn.OnPush=0]="OnPush",qn[qn.Default=1]="Default",qn))(),pn=(()=>{return(t=pn||(pn={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",pn;var t})();const mr={},xe=[],Ma=Ne({\u0275cmp:Ne}),ru=Ne({\u0275dir:Ne}),ou=Ne({\u0275pipe:Ne}),zf=Ne({\u0275mod:Ne}),_r=Ne({\u0275fac:Ne}),zi=Ne({__NG_ELEMENT_ID__:Ne}),Gf=Ne({__NG_ENV_ID__:Ne});function Wf(t,n,e){let r=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const i=n.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}e=o+1}}function iu(t,n,e){let r=0;for(;rn){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const m=8&r?g:null;if(m&&-1!==Wf(m,c,0)||2&r&&c!==g){if(In(r))return!1;s=!0}}}}else{if(!s&&!In(r)&&!In(l))return!1;if(s&&In(l))continue;s=!1,r=l|1&r}}return In(r)||s}function In(t){return 0==(1&t)}function KD(t,n,e,r){if(null===n)return-1;let o=0;if(r||!e){let i=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!In(s)&&(n+=Jf(i,o),o=""),r=s,i=i||!In(r);e++}return""!==o&&(n+=Jf(i,o)),n}function ie(t){return gr(()=>{const n=tg(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===qn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||pn.Emulated,styles:t.styles||xe,_:null,schemas:t.schemas||null,tView:null,id:""};ng(e);const r=t.dependencies;return e.directiveDefs=Da(r,!1),e.pipeDefs=Da(r,!0),e.id=function uE(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function sE(t){return Pe(t)||Ft(t)}function aE(t){return null!==t}function hn(t){return gr(()=>({type:t.type,bootstrap:t.bootstrap||xe,declarations:t.declarations||xe,imports:t.imports||xe,exports:t.exports||xe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function eg(t,n){if(null==t)return mr;const e={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),e[o]=r,n&&(n[o]=i)}return e}function ue(t){return gr(()=>{const n=tg(t);return ng(n),n})}function Rt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Pe(t){return t[Ma]||null}function Ft(t){return t[ru]||null}function Qt(t){return t[ou]||null}function fn(t,n){const e=t[zf]||null;if(!e&&!0===n)throw new Error(`Type ${Ct(t)} does not have '\u0275mod' property.`);return e}function tg(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||xe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:eg(t.inputs,n),outputs:eg(t.outputs)}}function ng(t){t.features?.forEach(n=>n(t))}function Da(t,n){if(!t)return null;const e=n?Qt:sE;return()=>("function"==typeof t?t():t).map(r=>e(r)).filter(aE)}const yt=0,H=1,ge=2,Je=3,Tn=4,lo=5,Lt=6,Lo=7,rt=8,Bo=9,co=10,he=11,Wi=12,rg=13,Vo=14,ht=15,qi=16,Ho=17,Yn=18,Yi=19,og=20,Hr=21,vr=22,Ea=23,xa=24,Me=25,su=1,ig=2,Zn=7,Sa=8,$o=9,Tt=11;function gn(t){return Array.isArray(t)&&"object"==typeof t[su]}function Jt(t){return Array.isArray(t)&&!0===t[su]}function au(t){return 0!=(4&t.flags)}function uo(t){return t.componentOffset>-1}function Pa(t){return 1==(1&t.flags)}function kn(t){return!!t.template}function lu(t){return 0!=(512&t[ge])}function po(t,n){return t.hasOwnProperty(_r)?t[_r]:null}let gE=ze.WeakRef??class fE{constructor(n){this.ref=n}deref(){return this.ref}},_E=0,Xn=null,Oa=!1;function xt(t){const n=Xn;return Xn=t,n}class ug{constructor(){this.id=_E++,this.ref=function mE(t){return new gE(t)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[n,e]of this.producers){const r=e.producerNode.deref();if(void 0!==r&&e.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(e.seenValueVersion))return!0}else this.producers.delete(n),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const n=Oa;Oa=!0;try{for(const[e,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(e),o?.producers.delete(this.id))}}finally{Oa=n}}producerAccessed(){if(Oa)throw new Error("");if(null===Xn)return;let n=Xn.producers.get(this.id);void 0===n?(n={consumerNode:Xn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Xn.trackingVersion},Xn.producers.set(this.id,n),this.consumers.set(Xn.id,n)):(n.seenValueVersion=this.valueVersion,n.atTrackingVersion=Xn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Xn?.consumerAllowSignalWrites}producerPollStatus(n){return this.valueVersion!==n||(this.onProducerUpdateValueVersion(),this.valueVersion!==n)}}let dg=null;const pg=()=>{};class wE extends ug{constructor(n,e,r){super(),this.watch=n,this.schedule=e,this.dirty=!1,this.cleanupFn=pg,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const n=xt(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=pg,this.watch(this.registerOnCleanup)}finally{xt(n)}}cleanup(){this.cleanupFn()}}class bE{constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function en(){return hg}function hg(t){return t.type.prototype.ngOnChanges&&(t.setInput=DE),ME}function ME(){const t=gg(this),n=t?.current;if(n){const e=t.previous;if(e===mr)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function DE(t,n,e,r){const o=this.declaredInputs[e],i=gg(t)||function EE(t,n){return t[fg]=n}(t,{previous:mr,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new bE(l&&l.currentValue,n,a===mr),t[r]=n}en.ngInherit=!0;const fg="__ngSimpleChanges__";function gg(t){return t[fg]||null}const Kn=function(t,n,e){};function Ye(t){for(;Array.isArray(t);)t=t[yt];return t}function ka(t,n){return Ye(n[t])}function tn(t,n){return Ye(n[t.index])}function vg(t,n){return t.data[n]}function nn(t,n){const e=n[t];return gn(e)?e:e[yt]}function Aa(t){return 128==(128&t[ge])}function $r(t,n){return null==n?null:t[n]}function Cg(t){t[Ho]=0}function TE(t){1024&t[ge]||(t[ge]|=1024,wg(t,1))}function yg(t){1024&t[ge]&&(t[ge]&=-1025,wg(t,-1))}function wg(t,n){let e=t[Je];if(null===e)return;e[lo]+=n;let r=e;for(e=e[Je];null!==e&&(1===n&&1===r[lo]||-1===n&&0===r[lo]);)e[lo]+=n,r=e,e=e[Je]}const ae={lFrame:kg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Dg(){return ae.bindingsEnabled}function jo(){return null!==ae.skipHydrationRootTNode}function O(){return ae.lFrame.lView}function De(){return ae.lFrame.tView}function R(t){return ae.lFrame.contextLView=t,t[rt]}function F(t){return ae.lFrame.contextLView=null,t}function kt(){let t=Eg();for(;null!==t&&64===t.type;)t=t.parent;return t}function Eg(){return ae.lFrame.currentTNode}function Qn(t,n){const e=ae.lFrame;e.currentTNode=t,e.isParent=n}function fu(){return ae.lFrame.isParent}function gu(){ae.lFrame.isParent=!1}function zo(){return ae.lFrame.bindingIndex++}function yr(t){const n=ae.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function jE(t,n){const e=ae.lFrame;e.bindingIndex=e.bindingRootIndex=t,mu(n)}function mu(t){ae.lFrame.currentDirectiveIndex=t}function Og(){return ae.lFrame.currentQueryIndex}function vu(t){ae.lFrame.currentQueryIndex=t}function GE(t){const n=t[H];return 2===n.type?n.declTNode:1===n.type?t[Lt]:null}function Ig(t,n,e){if(e&oe.SkipSelf){let o=n,i=t;for(;!(o=o.parent,null!==o||e&oe.Host||(o=GE(i),null===o||(i=i[Vo],10&o.type))););if(null===o)return!1;n=o,t=i}const r=ae.lFrame=Tg();return r.currentTNode=n,r.lView=t,!0}function Cu(t){const n=Tg(),e=t[H];ae.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Tg(){const t=ae.lFrame,n=null===t?null:t.child;return null===n?kg(t):n}function kg(t){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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Ag(){const t=ae.lFrame;return ae.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ng=Ag;function yu(){const t=Ag();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function jt(){return ae.lFrame.selectedIndex}function ho(t){ae.lFrame.selectedIndex=t}function et(){const t=ae.lFrame;return vg(t.tView,t.selectedIndex)}let Fg=!0;function Na(){return Fg}function Ur(t){Fg=t}function Ra(t,n){for(let e=n.directiveStart,r=n.directiveEnd;e=r)break}else n[l]<0&&(t[Ho]+=65536),(a>12>16&&(3&t[ge])===n&&(t[ge]+=4096,Bg(a,i)):Bg(a,i)}const Go=-1;class Ki{constructor(n,e,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function Vg(t){return t!==Go}function Ba(t){return 32767&t}function Va(t,n){let e=function r1(t){return t>>16}(t),r=n;for(;e>0;)r=r[Vo],e--;return r}let Mu=!0;function Ha(t){const n=Mu;return Mu=t,n}const Hg=255,$g=5;let o1=0;const Jn={};function $a(t,n){const e=Ug(t,n);if(-1!==e)return e;const r=n[H];r.firstCreatePass&&(t.injectorIndex=n.length,Du(r.data,t),Du(n,null),Du(r.blueprint,null));const o=Eu(t,n),i=t.injectorIndex;if(Vg(o)){const s=Ba(o),a=Va(o,n),l=a[H].data;for(let c=0;c<8;c++)n[i+c]=a[s+c]|l[s+c]}return n[i+8]=o,i}function Du(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Ug(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Eu(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,r=null,o=n;for(;null!==o;){if(r=Zg(o),null===r)return Go;if(e++,o=o[Vo],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return Go}function xu(t,n,e){!function i1(t,n,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(zi)&&(r=e[zi]),null==r&&(r=e[zi]=o1++);const o=r&Hg;n.data[t+(o>>$g)]|=1<=0?n&Hg:c1:n}(e);if("function"==typeof i){if(!Ig(n,t,r))return r&oe.Host?jg(o,0,r):zg(n,e,r,o);try{const s=i(r);if(null!=s||r&oe.Optional)return s;va()}finally{Ng()}}else if("number"==typeof i){let s=null,a=Ug(t,n),l=Go,c=r&oe.Host?n[ht][Lt]:null;for((-1===a||r&oe.SkipSelf)&&(l=-1===a?Eu(t,n):n[a+8],l!==Go&&Yg(r,!1)?(s=n[H],a=Ba(l),n=Va(l,n)):a=-1);-1!==a;){const u=n[H];if(qg(i,a,u.data)){const d=a1(a,n,e,s,r,c);if(d!==Jn)return d}l=n[a+8],l!==Go&&Yg(r,n[H].data[a+8]===c)&&qg(i,a,n)?(s=u,a=Ba(l),n=Va(l,n)):a=-1}}return o}function a1(t,n,e,r,o,i){const s=n[H],a=s.data[t+8],u=Ua(a,s,e,null==r?uo(a)&&Mu:r!=s&&0!=(3&a.type),o&oe.Host&&i===a);return null!==u?fo(n,s,u,a):Jn}function Ua(t,n,e,r,o){const i=t.providerIndexes,s=n.data,a=1048575&i,l=t.directiveStart,u=i>>20,g=o?a+u:t.directiveEnd;for(let m=r?a:a+u;m=l&&y.type===e)return m}if(o){const m=s[l];if(m&&kn(m)&&m.type===e)return l}return null}function fo(t,n,e,r){let o=t[e];const i=n.data;if(function e1(t){return t instanceof Ki}(o)){const s=o;s.resolving&&function kD(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new I(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Oe(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():pe(t)}(i[e]));const a=Ha(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Kt(s.injectImpl):null;Ig(t,r,oe.Default);try{o=t[e]=s.factory(void 0,i,t,r),n.firstCreatePass&&e>=r.directiveStart&&function QE(t,n,e){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=hg(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}o&&(e.preOrderHooks??=[]).push(0-t,o),i&&((e.preOrderHooks??=[]).push(t,i),(e.preOrderCheckHooks??=[]).push(t,i))}(e,i[e],n)}finally{null!==l&&Kt(l),Ha(a),s.resolving=!1,Ng()}}return o}function qg(t,n,e){return!!(e[n+(t>>$g)]&1<{const n=t.prototype.constructor,e=n[_r]||Su(n),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[_r]||Su(o);if(i&&i!==e)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Su(t){return Kc(t)?()=>{const n=Su(de(t));return n&&n()}:po(t)}function Zg(t){const n=t[H],e=n.type;return 2===e?n.declTNode:1===e?t[Lt]:null}const Yo="__parameters__";function Xo(t,n,e){return gr(()=>{const r=function Pu(t){return function(...e){if(t){const r=t(...e);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(Yo)?l[Yo]:Object.defineProperty(l,Yo,{value:[]})[Yo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function es(t,n){t.forEach(e=>Array.isArray(e)?es(e,n):n(e))}function Kg(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function za(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ts(t,n){const e=[];for(let r=0;r=0?t[1|r]=e:(r=~r,function g1(t,n,e,r){let o=t.length;if(o==n)t.push(e,r);else if(1===o)t.push(r,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=r}}(t,r,n,e)),r}function Ou(t,n){const e=Ko(t,n);if(e>=0)return t[1|e]}function Ko(t,n){return function Qg(t,n,e){let r=0,o=t.length>>e;for(;o!==r;){const i=r+(o-r>>1),s=t[i<n?o=i:r=i+1}return~(o<((rn=rn||{})[rn.Important=1]="Important",rn[rn.DashCase=2]="DashCase",rn))();const Ru=new Map;let V1=0;const Lu="__ngContext__";function Bt(t,n){gn(n)?(t[Lu]=n[Yi],function $1(t){Ru.set(t[Yi],t)}(n)):t[Lu]=n}let Bu;function Vu(t,n){return Bu(t,n)}function os(t){const n=t[Je];return Jt(n)?n[Je]:n}function Hu(t){return _m(t[Wi])}function $u(t){return _m(t[Tn])}function _m(t){for(;null!==t&&!Jt(t);)t=t[Tn];return t}function ei(t,n,e,r,o){if(null!=r){let i,s=!1;Jt(r)?i=r:gn(r)&&(s=!0,r=r[yt]);const a=Ye(r);0===t&&null!==e?null==o?bm(n,e,a):go(n,e,a,o||null,!0):1===t&&null!==e?go(n,e,a,o||null,!0):2===t?function rl(t,n,e){const r=tl(t,n);r&&function sx(t,n,e,r){t.removeChild(n,e,r)}(t,r,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=i&&function cx(t,n,e,r,o){const i=e[Zn];i!==Ye(e)&&ei(n,t,r,i,o);for(let a=Tt;a0&&(t[e-1][Tn]=r[Tn]);const i=za(t,Tt+n);!function Q1(t,n){ss(t,n,n[he],2,null,null),n[yt]=null,n[Lt]=null}(r[H],r);const s=i[Yn];null!==s&&s.detachView(i[H]),r[Je]=null,r[Tn]=null,r[ge]&=-129}return r}function ym(t,n){if(!(256&n[ge])){const e=n[he];n[Ea]?.destroy(),n[xa]?.destroy(),e.destroyNode&&ss(t,n,e,3,null,null),function tx(t){let n=t[Wi];if(!n)return zu(t[H],t);for(;n;){let e=null;if(gn(n))e=n[Wi];else{const r=n[Tt];r&&(e=r)}if(!e){for(;n&&!n[Tn]&&n!==t;)gn(n)&&zu(n[H],n),n=n[Je];null===n&&(n=t),gn(n)&&zu(n[H],n),e=n&&n[Tn]}n=e}}(n)}}function zu(t,n){if(!(256&n[ge])){n[ge]&=-129,n[ge]|=256,function ix(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else e[i].call(r[e[i+1]]);null!==r&&(n[Lo]=null);const o=n[Hr];if(null!==o){n[Hr]=null;for(let i=0;i-1){const{encapsulation:i}=t.data[r.directiveStart+o];if(i===pn.None||i===pn.Emulated)return null}return tn(r,e)}}(t,n.parent,e)}function go(t,n,e,r,o){t.insertBefore(n,e,r,o)}function bm(t,n,e){t.appendChild(n,e)}function Mm(t,n,e,r,o){null!==r?go(t,n,e,r,o):bm(t,n,e)}function tl(t,n){return t.parentNode(n)}function Dm(t,n,e){return xm(t,n,e)}let Wu,ol,Xu,xm=function Em(t,n,e){return 40&t.type?tn(t,e):null};function nl(t,n,e,r){const o=Gu(t,r,n),i=n[he],a=Dm(r.parent||n[Lt],r,n);if(null!=o)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return ol}()?.createHTML(t)||t}class mo{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ff})`}}class mx extends mo{getTypeName(){return"HTML"}}class _x extends mo{getTypeName(){return"Style"}}class vx extends mo{getTypeName(){return"Script"}}class Cx extends mo{getTypeName(){return"URL"}}class yx extends mo{getTypeName(){return"ResourceURL"}}function _n(t){return t instanceof mo?t.changingThisBreaksApplicationSecurity:t}function er(t,n){const e=function wx(t){return t instanceof mo&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Ff})`)}return e===n}class Sx{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(ti(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class Px{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=ti(n),e}}const Ix=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function sl(t){return(t=String(t)).match(Ix)?t:"unsafe:"+t}function wr(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function ls(...t){const n={};for(const e of t)for(const r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}const Lm=wr("area,br,col,hr,img,wbr"),Bm=wr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Vm=wr("rp,rt"),Qu=ls(Lm,ls(Bm,wr("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")),ls(Vm,wr("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")),ls(Vm,Bm)),Ju=wr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Hm=ls(Ju,wr("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"),wr("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")),Tx=wr("script,style,template");class kx{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,r=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Qu.hasOwnProperty(e))return this.sanitizedSomething=!0,!Tx.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();Qu.hasOwnProperty(e)&&!Lm.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push($m(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const Ax=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nx=/([^\#-~ |!])/g;function $m(t){return t.replace(/&/g,"&").replace(Ax,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Nx,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let al;function Um(t,n){let e=null;try{al=al||function Fm(t){const n=new Px(t);return function Ox(){try{return!!(new window.DOMParser).parseFromString(ti(""),"text/html")}catch{return!1}}()?new Sx(n):n}(t);let r=n?String(n):"";e=al.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=e.innerHTML,e=al.getInertBodyElement(r)}while(r!==i);return ti((new kx).sanitizeChildren(ed(e)||e))}finally{if(e){const r=ed(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function ed(t){return"content"in t&&function Rx(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var $e=(()=>(($e=$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))();function tr(t){const n=function cs(){const t=O();return t&&t[co].sanitizer}();return n?n.sanitize($e.URL,t)||"":er(t,"URL")?_n(t):sl(pe(t))}class j{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Z({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const us=new j("ENVIRONMENT_INITIALIZER"),Gm=new j("INJECTOR",-1),Wm=new j("INJECTOR_DEF_TYPES");class qm{get(n,e=Ui){if(e===Ui){const r=new Error(`NullInjectorError: No provider for ${Ct(n)}!`);throw r.name="NullInjectorError",r}return e}}function Ux(...t){return{\u0275providers:Ym(0,t),\u0275fromNgModule:!0}}function Ym(t,...n){const e=[],r=new Set;let o;return es(n,i=>{const s=i;nd(s,e,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Zm(o,e),e}function Zm(t,n){for(let e=0;e{n.push(i)})}}function nd(t,n,e,r){if(!(t=de(t)))return!1;let o=null,i=Bf(t);const s=!i&&Pe(t);if(i||s){if(s&&!s.standalone)return!1;o=t}else{const l=t.ngModule;if(i=Bf(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)nd(c,n,e,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let c;r.add(o);try{es(i.imports,u=>{nd(u,n,e,r)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Zm(c,n)}if(!a){const c=po(o)||(()=>new o);n.push({provide:o,useFactory:c,deps:xe},{provide:Wm,useValue:o,multi:!0},{provide:us,useValue:()=>V(o),multi:!0})}const l=i.providers;null==l||a||rd(l,u=>{n.push(u)})}}return o!==t&&void 0!==t.providers}function rd(t,n){for(let e of t)Qc(e)&&(e=e.\u0275providers),Array.isArray(e)?rd(e,n):n(e)}const jx=Ne({provide:String,useValue:Ne});function od(t){return null!==t&&"object"==typeof t&&jx in t}function _o(t){return"function"==typeof t}const id=new j("Set Injector scope."),ll={},Gx={};let sd;function cl(){return void 0===sd&&(sd=new qm),sd}class nr{}class ad extends nr{get destroyed(){return this._destroyed}constructor(n,e,r,o){super(),this.parent=e,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,cd(n,s=>this.processProvider(s)),this.records.set(Gm,ni(void 0,this)),o.has("environment")&&this.records.set(nr,ni(void 0,this));const i=this.records.get(id);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Wm.multi,xe,oe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=Vr(this),r=Kt(void 0);try{return n()}finally{Vr(e),Kt(r)}}get(n,e=Ui,r=oe.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Gf))return n[Gf](this);r=ba(r);const o=Vr(this),i=Kt(void 0);try{if(!(r&oe.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function Xx(t){return"function"==typeof t||"object"==typeof t&&t instanceof j}(n)&&Ca(n);a=l&&this.injectableDefInScope(l)?ni(ld(n),ll):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&oe.Self?cl():this.parent).get(n,e=r&oe.Optional&&e===Ui?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[wa]=s[wa]||[]).unshift(Ct(n)),o)throw s;return function WD(t,n,e,r){const o=t[wa];throw n[Uf]&&o.unshift(n[Uf]),t.message=function qD(t,n,e,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=Ct(n);if(Array.isArray(n))o=n.map(Ct).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):Ct(a)))}o=`{${i.join(", ")}}`}return`${e}${r?"("+r+")":""}[${o}]: ${t.replace($D,"\n ")}`}("\n"+t.message,o,e,r),t.ngTokenPath=o,t[wa]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Kt(i),Vr(o)}}resolveInjectorInitializers(){const n=Vr(this),e=Kt(void 0);try{const r=this.get(us.multi,xe,oe.Self);for(const o of r)o()}finally{Vr(n),Kt(e)}}toString(){const n=[],e=this.records;for(const r of e.keys())n.push(Ct(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(n){let e=_o(n=de(n))?n:de(n&&n.provide);const r=function qx(t){return od(t)?ni(void 0,t.useValue):ni(Qm(t),ll)}(n);if(_o(n)||!0!==n.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=ni(void 0,ll,!0),o.factory=()=>nu(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,r)}hydrate(n,e){return e.value===ll&&(e.value=Gx,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Zx(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=de(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function ld(t){const n=Ca(t),e=null!==n?n.factory:po(t);if(null!==e)return e;if(t instanceof j)throw new I(204,!1);if(t instanceof Function)return function Wx(t){const n=t.length;if(n>0)throw ts(n,"?"),new I(204,!1);const e=function BD(t){return t&&(t[ya]||t[Vf])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new I(204,!1)}function Qm(t,n,e){let r;if(_o(t)){const o=de(t);return po(o)||ld(o)}if(od(t))r=()=>de(t.useValue);else if(function Km(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...nu(t.deps||[]));else if(function Xm(t){return!(!t||!t.useExisting)}(t))r=()=>V(de(t.useExisting));else{const o=de(t&&(t.useClass||t.provide));if(!function Yx(t){return!!t.deps}(t))return po(o)||ld(o);r=()=>new o(...nu(t.deps))}return r}function ni(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function cd(t,n){for(const e of t)Array.isArray(e)?cd(e,n):e&&Qc(e)?cd(e.\u0275providers,n):n(e)}const ul=new j("AppId",{providedIn:"root",factory:()=>Kx}),Kx="ng",Jm=new j("Platform Initializer"),jr=new j("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),e_=new j("CSP nonce",{providedIn:"root",factory:()=>function as(){if(void 0!==Xu)return Xu;if(typeof document<"u")return document;throw new I(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let n_=(t,n)=>null;function r_(t,n){return n_(t,n)}class sS{}class s_{}class lS{resolveComponentFactory(n){throw function aS(t){const n=Error(`No component factory found for ${Ct(t)}.`);return n.ngComponent=t,n}(n)}}let gl=(()=>{class t{}return t.NULL=new lS,t})();function cS(){return ri(kt(),O())}function ri(t,n){return new zt(tn(t,n))}let zt=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=cS,t})();function uS(t){return t instanceof zt?t.nativeElement:t}class l_{}let br=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function dS(){const t=O(),e=nn(kt().index,t);return(gn(e)?e:t)[he]}(),t})(),pS=(()=>{class t{}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>null}),t})();class fs{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const hS=new fs("16.0.2"),yd={};function gs(t){for(;t;){t[ge]|=64;const n=os(t);if(lu(t)&&!n)return t;t=n}return null}function wd(t){return t.ngOriginalError}class vo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&wd(n);for(;e&&wd(e);)e=wd(e);return e||null}}const d_=new j("",{providedIn:"root",factory:()=>!1});function Re(t){return t.ownerDocument}function Mr(t){return t instanceof Function?t():t}class f_ extends ug{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(n){this._lView=n}onConsumerDependencyMayHaveChanged(){gs(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(n,e,r){const o=xt(this);this.trackingVersion++;try{n(e,r)}finally{xt(o)}}destroy(){this.trackingVersion++}}let _l=null;function g_(){return _l??=new f_,_l}function m_(t,n){return t[n]??g_()}function __(t,n){const e=g_();e.hasReadASignal&&(t[n]=_l,e.lView=t,_l=new f_)}const fe={};function v(t){v_(De(),O(),jt()+t,!1)}function v_(t,n,e,r){if(!r)if(3==(3&n[ge])){const i=t.preOrderCheckHooks;null!==i&&Fa(n,i,e)}else{const i=t.preOrderHooks;null!==i&&La(n,i,0,e)}ho(e)}function b_(t,n=null,e=null,r){const o=M_(t,n,e,r);return o.resolveInjectorInitializers(),o}function M_(t,n=null,e=null,r,o=new Set){const i=[e||xe,Ux(t)];return r=r||("object"==typeof t?void 0:Ct(t)),new ad(i,n||cl(),r||null,o)}let An=(()=>{class t{static create(e,r){if(Array.isArray(e))return b_({name:""},r,e,"");{const o=e.name??"";return b_({name:o},e.parent,e.providers,o)}}}return t.THROW_IF_NOT_FOUND=Ui,t.NULL=new qm,t.\u0275prov=Z({token:t,providedIn:"any",factory:()=>V(Gm)}),t.__NG_ELEMENT_ID__=-1,t})();function w(t,n=oe.Default){const e=O();return null===e?V(t,n):Gg(kt(),e,de(t),n)}function vl(t,n,e,r,o,i,s,a,l,c,u){const d=n.blueprint.slice();return d[yt]=o,d[ge]=140|r,(null!==c||t&&2048&t[ge])&&(d[ge]|=2048),Cg(d),d[Je]=d[Vo]=t,d[rt]=e,d[co]=s||t&&t[co],d[he]=a||t&&t[he],d[Bo]=l||t&&t[Bo]||null,d[Lt]=i,d[Yi]=function H1(){return V1++}(),d[vr]=u,d[og]=c,d[ht]=2==n.type?t[ht]:d,d}function ii(t,n,e,r,o){let i=t.data[n];if(null===i)i=function bd(t,n,e,r,o){const i=Eg(),s=fu(),l=t.data[n]=function AS(t,n,e,r,o,i){let s=n?n.injectorIndex:-1,a=0;return jo()&&(a|=128),{type:e,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,e,n,r,o);return null===t.firstChild&&(t.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(t,n,e,r,o),function UE(){return ae.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=e,i.value=r,i.attrs=o;const s=function Xi(){const t=ae.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Qn(i,!0),i}function ms(t,n,e,r){if(0===e)return-1;const o=n.length;for(let i=0;iMe&&v_(t,n,Me,!1),Kn(a?2:0,o),a)i.runInContext(e,r,o);else{const c=xt(null);try{e(r,o)}finally{xt(c)}}}finally{a&&null===n[Ea]&&__(n,Ea),ho(s),Kn(a?3:1,o)}}function Md(t,n,e){if(au(n)){const r=xt(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;snull;function P_(t,n,e,r){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const i=t[o];null===r?O_(e,n,o,i):r.hasOwnProperty(o)&&O_(e,n,r[o],i)}return e}function O_(t,n,e,r){t.hasOwnProperty(e)?t[e].push(n,r):t[e]=[n,r]}function Sd(t,n,e,r){if(Dg()){const o=null===r?null:{"":-1},i=function US(t,n){const e=t.directiveRegistry;let r=null,o=null;if(e)for(let i=0;i0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,r,i)}}(t,n,r,ms(t,e,o.hostVars,fe),o)}function rr(t,n,e,r,o,i){const s=tn(t,n);!function Od(t,n,e,r,o,i,s){if(null==i)t.removeAttribute(n,o,e);else{const a=null==s?pe(i):s(i,r||"",o);t.setAttribute(n,o,a,e)}}(n[he],s,i,t.value,e,r,o)}function YS(t,n,e,r,o,i){const s=i[n];if(null!==s)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new wE(e,c=>{this.all.has(c)&&this.queue.set(c,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,r]of this.queue)this.queue.delete(e),r?r.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>new t}),t})();function yl(t,n,e){let r=e?t.styles:null,o=e?t.classes:null,i=0;if(null!==n)for(let s=0;s0&&Ad(e)}}function Ad(t){for(let r=Hu(t);null!==r;r=$u(r))for(let o=Tt;o0&&Ad(i)}const e=t[H].components;if(null!==e)for(let r=0;r0&&Ad(o)}}class vs{get rootNodes(){const n=this._lView,e=n[H];return _s(e,n,e.firstChild,[])}constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[rt]}set context(n){this._lView[rt]=n}get destroyed(){return 256==(256&this._lView[ge])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Je];if(Jt(n)){const e=n[Sa],r=e?e.indexOf(this):-1;r>-1&&(ju(n,r),za(e,r))}this._attachedToViewContainer=!1}ym(this._lView[H],this._lView)}onDestroy(n){!function bg(t,n){if(256==(256&t[ge]))throw new I(911,!1);null===t[Hr]&&(t[Hr]=[]),t[Hr].push(n)}(this._lView,n)}markForCheck(){gs(this._cdRefInjectingView||this._lView)}detach(){this._lView[ge]&=-129}reattach(){this._lView[ge]|=128}detectChanges(){wl(this._lView[H],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ex(t,n){ss(t,n,n[he],2,null,null)}(this._lView[H],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=n}}class aP extends vs{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;wl(n[H],n,n[rt],!1)}checkNoChanges(){}get context(){return null}}class H_ extends gl{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Pe(n);return new Cs(e,this.ngModule)}}function $_(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class cP{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,r){r=ba(r);const o=this.injector.get(n,yd,r);return o!==yd||e===yd?o:this.parentInjector.get(n,e,r)}}class Cs extends s_{get inputs(){return $_(this.componentDef.inputs)}get outputs(){return $_(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function rE(t){return t.map(nE).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,r,o){let i=(o=o||this.ngModule)instanceof nr?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new cP(n,i):n,a=s.get(l_,null);if(null===a)throw new I(407,!1);const u={rendererFactory:a,sanitizer:s.get(pS,null),effectManager:s.get(V_,null)},d=a.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",m=r?function PS(t,n,e,r){const i=r.get(d_,!1)||e===pn.ShadowDom,s=t.selectRootElement(n,i);return function OS(t){S_(t)}(s),s}(d,r,this.componentDef.encapsulation,s):el(d,g,function lP(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(g)),y=this.componentDef.onPush?576:528,M=xd(0,null,null,1,0,null,null,null,null,null,null),E=vl(null,M,null,y,null,null,u,d,s,null,null);let x,b;Cu(E);try{const k=this.componentDef;let q,re=null;k.findHostDirectiveDefs?(q=[],re=new Map,k.findHostDirectiveDefs(k,q,re),q.push(k)):q=[k];const be=function dP(t,n){const e=t[H],r=Me;return t[r]=n,ii(e,r,2,"#host",null)}(E,m),Pn=function pP(t,n,e,r,o,i,s){const a=o[H];!function hP(t,n,e,r){for(const o of t)n.mergedAttrs=Gi(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(yl(n,n.mergedAttrs,!0),null!==e&&km(r,e,n))}(r,t,n,s);let l=null;null!==n&&(l=r_(n,o[Bo]));const c=i.rendererFactory.createRenderer(n,e),u=vl(o,x_(e),null,e.onPush?64:16,o[t.index],t,i,c,null,null,l);return a.firstCreatePass&&Pd(a,t,r.length-1),Cl(o,u),o[t.index]=u}(be,m,k,q,E,u,d);b=vg(M,Me),m&&function gP(t,n,e,r){if(r)iu(t,e,["ng-version",hS.full]);else{const{attrs:o,classes:i}=function oE(t){const n=[],e=[];let r=1,o=2;for(;r0&&Tm(t,e,i.join(" "))}}(d,k,m,r),void 0!==e&&function mP(t,n,e){const r=t.projection=[];for(let o=0;o=0;r--){const o=t[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Gi(o.hostAttrs,e=Gi(e,o.hostAttrs))}}(r)}function Nd(t){return t===mr?{}:t===xe?[]:t}function CP(t,n){const e=t.viewQuery;t.viewQuery=e?(r,o)=>{n(r,o),e(r,o)}:n}function yP(t,n){const e=t.contentQueries;t.contentQueries=e?(r,o,i)=>{n(r,o,i),e(r,o,i)}:n}function wP(t,n){const e=t.hostBindings;t.hostBindings=e?(r,o)=>{n(r,o),e(r,o)}:n}function Ml(t){return!!function Rd(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Vt(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ir(t,n,e,r){const o=O();return Vt(o,zo(),n)&&(De(),rr(et(),o,t,n,e,r)),ir}function ai(t,n,e,r){return Vt(t,zo(),e)?n+pe(e)+r:fe}function T(t,n,e,r,o,i,s,a){const l=O(),c=De(),u=t+Me,d=c.firstCreatePass?function WP(t,n,e,r,o,i,s,a,l){const c=n.consts,u=ii(n,t,4,s||null,$r(c,a));Sd(n,e,u,$r(c,l)),Ra(n,u);const d=u.tView=xd(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,e,r,o,i,s):c.data[u];Qn(d,!1);const g=ov(c,l,d,t);Na()&&nl(c,l,g,d),Bt(g,l),Cl(l,l[u]=A_(g,l,g,d)),Pa(d)&&Dd(c,l,d),null!=s&&Ed(l,d,a)}let ov=function iv(t,n,e,r){return Ur(!0),n[he].createComment("")};function C(t,n,e){const r=O();return Vt(r,zo(),n)&&function vn(t,n,e,r,o,i,s,a){const l=tn(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[r])?(Td(t,e,u,r,o),uo(n)&&function FS(t,n){const e=nn(n,t);16&e[ge]||(e[ge]|=64)}(e,n.index)):3&n.type&&(r=function RS(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(l,r,o))}(De(),et(),r,t,n,r[he],e,!1),C}function $d(t,n,e,r,o){const s=o?"class":"style";Td(t,e,n.inputs[s],s,r)}function p(t,n,e,r){const o=O(),i=De(),s=Me+t,a=o[he],l=i.firstCreatePass?function KP(t,n,e,r,o,i){const s=n.consts,l=ii(n,t,2,r,$r(s,o));return Sd(n,e,l,$r(s,i)),null!==l.attrs&&yl(l,l.attrs,!1),null!==l.mergedAttrs&&yl(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,i,o,n,e,r):i.data[s],c=sv(i,o,l,a,n,t);o[s]=c;const u=Pa(l);return Qn(l,!0),km(a,c,l),32!=(32&l.flags)&&Na()&&nl(i,o,c,l),0===function AE(){return ae.lFrame.elementDepthCount}()&&Bt(c,o),function NE(){ae.lFrame.elementDepthCount++}(),u&&(Dd(i,o,l),Md(i,l,o)),null!==r&&Ed(o,l),p}function h(){let t=kt();fu()?gu():(t=t.parent,Qn(t,!1));const n=t;(function FE(t){return ae.skipHydrationRootTNode===t})(n)&&function HE(){ae.skipHydrationRootTNode=null}(),function RE(){ae.lFrame.elementDepthCount--}();const e=De();return e.firstCreatePass&&(Ra(e,t),au(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function t1(t){return 0!=(8&t.flags)}(n)&&$d(e,n,O(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function n1(t){return 0!=(16&t.flags)}(n)&&$d(e,n,O(),n.stylesWithoutHost,!1),h}function K(t,n,e,r){return p(t,n,e,r),h(),K}let sv=(t,n,e,r,o,i)=>(Ur(!0),el(r,o,function Rg(){return ae.lFrame.currentNamespace}()));function Y(){return O()}function Ds(t){return!!t&&"function"==typeof t.then}function cv(t){return!!t&&"function"==typeof t.subscribe}function _(t,n,e,r){const o=O(),i=De(),s=kt();return function dv(t,n,e,r,o,i,s){const a=Pa(r),c=t.firstCreatePass&&F_(t),u=n[rt],d=R_(n);let g=!0;if(3&r.type||s){const M=tn(r,n),E=s?s(M):M,x=d.length,b=s?q=>s(Ye(q[r.index])):r.index;let k=null;if(!s&&a&&(k=function rO(t,n,e,r){const o=t.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(t,n,o,r.index)),null!==k)(k.__ngLastListenerFn__||k).__ngNextListenerFn__=i,k.__ngLastListenerFn__=i,g=!1;else{i=hv(r,n,u,i,!1);const q=e.listen(E,o,i);d.push(i,q),c&&c.push(o,b,x,x+1)}}else i=hv(r,n,u,i,!1);const m=r.outputs;let y;if(g&&null!==m&&(y=m[o])){const M=y.length;if(M)for(let E=0;E-1?nn(t.index,n):n);let l=pv(n,e,r,s),c=i.__ngNextListenerFn__;for(;c;)l=pv(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&s.preventDefault(),l}}function D(t=1){return function WE(t){return(ae.lFrame.contextLView=function qE(t,n){for(;t>0;)n=n[Vo],t--;return n}(t,ae.lFrame.contextLView))[rt]}(t)}function oO(t,n){let e=null;const r=function QD(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o>17&32767}function Gd(t){return 2|t}function yo(t){return(131068&t)>>2}function Wd(t,n){return-131069&t|n<<2}function qd(t){return 1|t}function Ev(t,n,e,r,o){const i=t[e+1],s=null===n;let a=r?zr(i):yo(i),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];uO(t[a],n)&&(l=!0,t[a+1]=r?qd(u):Gd(u)),a=r?zr(u):yo(u)}l&&(t[e+1]=r?Gd(i):qd(i))}function uO(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Ko(t,n)>=0}const bt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xv(t){return t.substring(bt.key,bt.keyEnd)}function dO(t){return t.substring(bt.value,bt.valueEnd)}function Sv(t,n){const e=bt.textEnd;return e===n?-1:(n=bt.keyEnd=function fO(t,n,e){for(;n32;)n++;return n}(t,bt.key=n,e),gi(t,n,e))}function Pv(t,n){const e=bt.textEnd;let r=bt.key=gi(t,n,e);return e===r?-1:(r=bt.keyEnd=function gO(t,n,e){let r;for(;n=65&&(-33&r)<=90||r>=48&&r<=57);)n++;return n}(t,r,e),r=Iv(t,r,e),r=bt.value=gi(t,r,e),r=bt.valueEnd=function mO(t,n,e){let r=-1,o=-1,i=-1,s=n,a=s;for(;s32&&(a=s),i=o,o=r,r=-33&l}return a}(t,r,e),Iv(t,r,e))}function Ov(t){bt.key=0,bt.keyEnd=0,bt.value=0,bt.valueEnd=0,bt.textEnd=t.length}function gi(t,n,e){for(;n=0;e=Pv(n,e))Nv(t,xv(n),dO(n))}function Rn(t){Ln(MO,sr,t,!0)}function sr(t,n){for(let e=function pO(t){return Ov(t),Sv(t,gi(t,0,bt.textEnd))}(n);e>=0;e=Sv(n,e))mn(t,xv(n),!0)}function Fn(t,n,e,r){const o=O(),i=De(),s=yr(2);i.firstUpdatePass&&Av(i,t,s,r),n!==fe&&Vt(o,s,n)&&Rv(i,i.data[jt()],o,o[he],t,o[s+1]=function EO(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Ct(_n(t)))),t}(n,e),r,s)}function Ln(t,n,e,r){const o=De(),i=yr(2);o.firstUpdatePass&&Av(o,null,i,r);const s=O();if(e!==fe&&Vt(s,i,e)){const a=o.data[jt()];if(Lv(a,r)&&!kv(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Xc(l,e||"")),$d(o,a,s,e,r)}else!function DO(t,n,e,r,o,i,s,a){o===fe&&(o=xe);let l=0,c=0,u=0=t.expandoStartIndex}function Av(t,n,e,r){const o=t.data;if(null===o[e+1]){const i=o[jt()],s=kv(t,e);Lv(i,r)&&null===n&&!s&&(n=!1),n=function vO(t,n,e,r){const o=function _u(t){const n=ae.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(e=xs(e=Yd(null,t,n,e,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==o)if(e=Yd(o,t,n,e,r),null===i){let l=function CO(t,n,e){const r=e?n.classBindings:n.styleBindings;if(0!==yo(r))return t[zr(r)]}(t,n,r);void 0!==l&&Array.isArray(l)&&(l=Yd(null,t,n,l[1],r),l=xs(l,n.attrs,r),function yO(t,n,e,r){t[zr(e?n.classBindings:n.styleBindings)]=r}(t,n,r,l))}else i=function wO(t,n,e){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(c=!0)):u=e,o)if(0!==l){const g=zr(t[a+1]);t[r+1]=Pl(g,a),0!==g&&(t[g+1]=Wd(t[g+1],r)),t[a+1]=function sO(t,n){return 131071&t|n<<17}(t[a+1],r)}else t[r+1]=Pl(a,0),0!==a&&(t[a+1]=Wd(t[a+1],r)),a=r;else t[r+1]=Pl(l,0),0===a?a=r:t[l+1]=Wd(t[l+1],r),l=r;c&&(t[r+1]=Gd(t[r+1])),Ev(t,u,r,!0),Ev(t,u,r,!1),function cO(t,n,e,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof n&&Ko(i,n)>=0&&(e[r+1]=qd(e[r+1]))}(n,u,t,r,i),s=Pl(a,l),i?n.classBindings=s:n.styleBindings=s}(o,i,n,e,s,r)}}function Yd(t,n,e,r,o){let i=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let g=e[o+1];g===fe&&(g=d?xe:void 0);let m=d?Ou(g,r):u===r?g:void 0;if(c&&!Ol(m)&&(m=Ou(l,r)),Ol(m)&&(a=m,s))return a;const y=t[o+1];o=s?zr(y):yo(y)}if(null!==n){let l=i?n.residualClasses:n.residualStyles;null!=l&&(a=Ou(l,r))}return a}function Ol(t){return void 0!==t}function Lv(t,n){return 0!=(t.flags&(n?8:16))}function f(t,n=""){const e=O(),r=De(),o=t+Me,i=r.firstCreatePass?ii(r,o,1,n,null):r.data[o],s=Bv(r,e,i,n,t);e[o]=s,Na()&&nl(r,e,s,i),Qn(i,!1)}let Bv=(t,n,e,r,o)=>(Ur(!0),function Ja(t,n){return t.createText(n)}(n[he],r));function _e(t){return ot("",t,""),_e}function ot(t,n,e){const r=O(),o=ai(r,t,n,e);return o!==fe&&function Dr(t,n,e){const r=ka(n,t);!function vm(t,n,e){t.setValue(n,e)}(t[he],r,e)}(r,jt(),o),ot}const _i="en-US";let aC=_i;function Kd(t,n,e,r,o){if(t=de(t),Array.isArray(t))for(let i=0;i>20;if(_o(t)||!t.multi){const m=new Ki(l,o,w),y=Jd(a,n,o?u:u+g,d);-1===y?(xu($a(c,s),i,a),Qd(i,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(m),s.push(m)):(e[y]=m,s[y]=m)}else{const m=Jd(a,n,u+g,d),y=Jd(a,n,u,u+g),E=y>=0&&e[y];if(o&&!E||!o&&!(m>=0&&e[m])){xu($a(c,s),i,a);const x=function zI(t,n,e,r,o){const i=new Ki(t,e,w);return i.multi=[],i.index=n,i.componentProviders=0,kC(i,o,r&&!e),i}(o?jI:UI,e.length,o,r,l);!o&&E&&(e[y].providerFactory=x),Qd(i,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(x),s.push(x)}else Qd(i,t,m>-1?m:y,kC(e[o?y:m],l,!o&&r));!o&&r&&E&&e[y].componentProviders++}}}function Qd(t,n,e,r){const o=_o(n),i=function zx(t){return!!t.useClass}(n);if(o||i){const l=(i?de(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[r,l]):c[u+1].push(r,l)}else c.push(e,l)}}}function kC(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Jd(t,n,e,r){for(let o=e;o{e.providersResolver=(r,o)=>function $I(t,n,e){const r=De();if(r.firstCreatePass){const o=kn(t);Kd(e,r.data,r.blueprint,o,!0),Kd(n,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,n)}}class vi{}class AC{}class tp extends vi{constructor(n,e,r){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new H_(this);const o=fn(n);this._bootstrapComponents=Mr(o.bootstrap),this._r3Injector=M_(n,e,[{provide:vi,useValue:this},{provide:gl,useValue:this.componentFactoryResolver},...r],Ct(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(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class np extends AC{constructor(n){super(),this.moduleType=n}create(n){return new tp(this.moduleType,n,[])}}class NC extends vi{constructor(n){super(),this.componentFactoryResolver=new H_(this),this.instance=null;const e=new ad([...n.providers,{provide:vi,useValue:this},{provide:gl,useValue:this.componentFactoryResolver}],n.parent||cl(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function rp(t,n,e=null){return new NC({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let qI=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const r=Ym(0,e.type),o=r.length>0?rp([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,o)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Z({token:t,providedIn:"environment",factory:()=>new t(V(nr))}),t})();function RC(t){t.getStandaloneInjector=n=>n.get(qI).getOrCreateStandaloneInjector(t)}function UC(t,n,e,r,o,i){const s=n+e;return Vt(t,s,o)?function or(t,n,e){return t[n]=e}(t,s+1,i?r.call(i,o):r(o)):function ks(t,n){const e=t[n];return e===fe?void 0:e}(t,s+1)}function ip(t,n){const e=De();let r;const o=t+Me;e.firstCreatePass?(r=function pT(t,n){if(n)for(let e=n.length-1;e>=0;e--){const r=n[e];if(t===r.name)return r}}(n,e.pipeRegistry),e.data[o]=r,r.onDestroy&&(e.destroyHooks??=[]).push(o,r.onDestroy)):r=e.data[o];const i=r.factory||(r.factory=po(r.type)),s=Kt(w);try{const a=Ha(!1),l=i();return Ha(a),function ZP(t,n,e,r){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}(e,O(),o,l),l}finally{Kt(s)}}function sp(t,n,e){const r=t+Me,o=O(),i=function Uo(t,n){return t[n]}(o,r);return function As(t,n){return t[H].data[n].pure}(o,r)?UC(o,function Ut(){const t=ae.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}(),n,i.transform,e,i):i.transform(e)}function ap(t){return n=>{setTimeout(t,void 0,n)}}const le=class _T extends nt{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,r){let o=n,i=e||(()=>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=ap(i),o&&(o=ap(o)),s&&(s=ap(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof U&&n.add(a),a}};function vT(){return this._results[Symbol.iterator]()}class lp{get changes(){return this._changes||(this._changes=new le)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=lp.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=vT)}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,e){return this._results.reduce(n,e)}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,e){const r=this;r.dirty=!1;const o=function bn(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function h1(t,n,e){if(t.length!==n.length)return!1;for(let r=0;r{class t{}return t.__NG_ELEMENT_ID__=wT,t})();const CT=Er,yT=class extends CT{constructor(n,e,r){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e,null)}createEmbeddedViewImpl(n,e,r){const o=this._declarationTContainer.tView,i=vl(this._declarationLView,o,n,16,null,o.declTNode,null,null,null,e||null,r||null);i[qi]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Yn];return null!==a&&(i[Yn]=a.createEmbeddedView(o)),kd(o,i,n),new vs(i)}};function wT(){return Nl(kt(),O())}function Nl(t,n){return 4&t.type?new yT(n,t,ri(t,n)):null}let Cn=(()=>{class t{}return t.__NG_ELEMENT_ID__=PT,t})();function PT(){return QC(kt(),O())}const OT=Cn,XC=class extends OT{constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return ri(this._hostTNode,this._hostLView)}get injector(){return new Wo(this._hostTNode,this._hostLView)}get parentInjector(){const n=Eu(this._hostTNode,this._hostLView);if(Vg(n)){const e=Va(n,this._hostLView),r=Ba(n);return new Wo(e[H].data[r+8],e)}return new Wo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=KC(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Tt}createEmbeddedView(n,e,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(e||{},i,null);return this.insertImpl(a,o,false),a}createComponent(n,e,r,o,i){const s=n&&!function Ji(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const M=e||{};a=M.index,r=M.injector,o=M.projectableNodes,i=M.environmentInjector||M.ngModuleRef}const l=s?n:new Cs(Pe(n)),c=r||this.parentInjector;if(!i&&null==l.ngModule){const E=(s?c:this.parentInjector).get(nr,null);E&&(i=E)}Pe(l.componentType??{});const m=l.create(c,o,null,i);return this.insertImpl(m.hostView,a,false),m}insert(n,e){return this.insertImpl(n,e,!1)}insertImpl(n,e,r){const o=n._lView,i=o[H];if(function IE(t){return Jt(t[Je])}(o)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const c=o[Je],u=new XC(c,c[Lt],c[Je]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(e),a=this._lContainer;if(function nx(t,n,e,r){const o=Tt+r,i=e.length;r>0&&(e[o-1][Tn]=n),r0)r.push(s[a/2]);else{const c=i[a+1],u=n[-l];for(let d=Tt;d{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r}),this.appInits=z(Mp,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const i=o();if(Ds(i))e.push(i);else if(cv(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});e.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(o=>{this.reject(o)}),0===e.length&&r(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Dy=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const xr=new j("LocaleId",{providedIn:"root",factory:()=>z(xr,oe.Optional|oe.SkipSelf)||function sk(){return typeof $localize<"u"&&$localize.locale||_i}()});class lk{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Ey=(()=>{class t{compileModuleSync(e){return new np(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const r=this.compileModuleSync(e),i=Mr(fn(e).declarations).reduce((s,a)=>{const l=Pe(a);return l&&s.push(new Cs(l)),s},[]);return new lk(r,i)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const dk=(()=>Promise.resolve(0))();function Ep(t){typeof Zone>"u"?dk.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function Py(...t){}class Ze{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new le(!1),this.onMicrotaskEmpty=new le(!1),this.onStable=new le(!1),this.onError=new le(!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&&e,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function pk(){let t=ze.requestAnimationFrame,n=ze.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function gk(t){const n=()=>{!function fk(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(ze,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Sp(t),t.isCheckStableRunning=!0,xp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Sp(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,o,i,s,a)=>{try{return Oy(t),e.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&n(),Iy(t)}},onInvoke:(e,r,o,i,s,a,l)=>{try{return Oy(t),e.invoke(o,i,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Iy(t)}},onHasTask:(e,r,o,i)=>{e.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Sp(t),xp(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,r,o,i)=>(e.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ze.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(Ze.isInAngularZone())throw new I(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,hk,Py,Py);try{return i.runTask(s,e,r)}finally{i.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}}const hk={};function xp(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Sp(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Oy(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Iy(t){t._nesting--,xp(t)}class mk{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new le,this.onMicrotaskEmpty=new le,this.onStable=new le,this.onError=new le}run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,o){return n.apply(e,r)}}const Ty=new j("",{providedIn:"root",factory:ky});function ky(){const t=z(Ze);let n=!0;return Nf(new Ee(o=>{n=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(n),o.complete()})}),new Ee(o=>{let i;t.runOutsideAngular(()=>{i=t.onStable.subscribe(()=>{Ze.assertNotInAngularZone(),Ep(()=>{!n&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const s=t.onUnstable.subscribe(()=>{Ze.assertInAngularZone(),n&&(n=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(Rf()))}const Ay=new j(""),Fl=new j("");let Ip,Pp=(()=>{class t{constructor(e,r,o){this._ngZone=e,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ip||(function _k(t){Ip=t}(o),o.addToWindow(r)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ze.assertNotInAngularZone(),Ep(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ep(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:o})}whenStable(e,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(e,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,o){return[]}}return t.\u0275fac=function(e){return new(e||t)(V(Ze),V(Op),V(Fl))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Op=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return Ip?.findTestabilityInTree(this,e,r)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),Gr=null;const Ny=new j("AllowMultipleToken"),Tp=new j("PlatformDestroyListeners"),kp=new j("appBootstrapListener");class Fy{constructor(n,e){this.name=n,this.token=e}}function By(t,n,e=[]){const r=`Platform: ${n}`,o=new j(r);return(i=[])=>{let s=Ap();if(!s||s.injector.get(Ny,!1)){const a=[...e,...i,{provide:o,useValue:!0}];t?t(a):function yk(t){if(Gr&&!Gr.get(Ny,!1))throw new I(400,!1);(function Ry(){!function CE(t){dg=t}(()=>{throw new I(600,!1)})})(),Gr=t;const n=t.get(Hy);(function Ly(t){t.get(Jm,null)?.forEach(e=>e())})(t)}(function Vy(t=[],n){return An.create({name:n,providers:[{provide:id,useValue:"platform"},{provide:Tp,useValue:new Set([()=>Gr=null])},...t]})}(a,r))}return function bk(t){const n=Ap();if(!n)throw new I(401,!1);return n}()}}function Ap(){return Gr?.get(Hy)??null}let Hy=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const o=function Mk(t="zone.js",n){return"noop"===t?new mk:"zone.js"===t?new Ze(n):t}(r?.ngZone,function $y(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function WI(t,n,e){return new tp(t,n,e)}(e.moduleType,this.injector,function Wy(t){return[{provide:Ze,useFactory:t},{provide:us,multi:!0,useFactory:()=>{const n=z(Ek,{optional:!0});return()=>n.initialize()}},{provide:Gy,useFactory:Dk},{provide:Ty,useFactory:ky}]}(()=>o)),s=i.injector.get(vo,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Ll(this._modules,i),a.unsubscribe()})}),function Uy(t,n,e){try{const r=e();return Ds(r)?r.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>t.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Dp);return a.runInitializers(),a.donePromise.then(()=>(function lC(t){wn(t,"Expected localeId to be defined"),"string"==typeof t&&(aC=t.toLowerCase().replace(/_/g,"-"))}(i.injector.get(xr,_i)||_i),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,r=[]){const o=jy({},r);return function vk(t,n,e){const r=new np(e);return Promise.resolve(r)}(0,0,e).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(e){const r=e.injector.get(wi);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new I(-403,!1);e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}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 e=this._injector.get(Tp,null);e&&(e.forEach(r=>r()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(V(An))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function jy(t,n){return Array.isArray(n)?n.reduce(jy,t):{...t,...n}}let wi=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=z(Gy),this.componentTypes=[],this.components=[],this.isStable=z(Ty),this._injector=z(nr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,r){const o=e instanceof s_;if(!this._injector.get(Dp).done)throw!o&&function Fo(t){const n=Pe(t)||Ft(t)||Qt(t);return null!==n&&n.standalone}(e),new I(405,!1);let s;s=o?e:this._injector.get(gl).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Ck(t){return t.isBoundToModule}(s)?void 0:this._injector.get(vi),c=s.create(An.NULL,[],r||s.selector,a),u=c.location.nativeElement,d=c.injector.get(Ay,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Ll(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new I(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;Ll(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const r=this._injector.get(kp,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Ll(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new I(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ll(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const Gy=new j("",{providedIn:"root",factory:()=>z(vo).handleError.bind(void 0)});function Dk(){const t=z(Ze),n=z(vo);return e=>t.runOutsideAngular(()=>n.handleError(e))}let Ek=(()=>{class t{constructor(){this.zone=z(Ze),this.applicationRef=z(wi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();let Bl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Sk,t})();function Sk(t){return function Pk(t,n,e){if(uo(t)&&!e){const r=nn(t.index,n);return new vs(r,r)}return 47&t.type?new vs(n[ht],n):null}(kt(),O(),16==(16&t))}class Xy{constructor(){}supports(n){return Ml(n)}create(n){return new Nk(n)}}const Ak=(t,n)=>n;class Nk{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||Ak}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,o=0,i=null;for(;e||r;){const s=!r||e&&e.currentIndex{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),r=!0),e=e._next,o++}),this.length=o;return this._truncate(e),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,e,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,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,i,o)):n=this._addAfter(new Rk(e,r),i,o),n}_verifyReinsertion(n,e,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 e=n._next;this._addToRemovals(this._unlink(n)),n=e}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,e,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,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Ky),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 e=n._prev,r=n._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ky),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,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Rk{constructor(n,e){this.item=n,this.trackById=e,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 Fk{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,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const e=n._prevDup,r=n._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class Ky{constructor(){this.map=new Map}put(n){const e=n.trackById;let r=this.map.get(e);r||(r=new Fk,this.map.set(e,r)),r.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Qy(t,n,e){const r=t.previousIndex;if(null===r)return r;let o=0;return e&&r{class t{constructor(e){this.factories=e}static create(e,r){if(null!=r){const o=r.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||ew()),deps:[[t,new qa,new Wa]]}}find(e){const r=this.factories.find(o=>o.supports(e));if(null!=r)return r;throw new I(901,!1)}}return t.\u0275prov=Z({token:t,providedIn:"root",factory:ew}),t})();const $k=By(null,"core",[]);let Uk=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(V(wi))},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({}),t})(),aw=(()=>{class t{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=z(Ze),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(e=>{this.resolve=e})})}add(){if(this.completed)return-1;const e=this.taskId++;return this.collection.add(e),e}remove(e){this.completed||(this.collection.delete(e),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();let Hp=null;function Wr(){return Hp}class eA{}const qt=new j("DocumentToken");let $p=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(nA)},providedIn:"platform"}),t})();const tA=new j("Location Initialized");let nA=(()=>{class t extends $p{constructor(){super(),this._doc=z(qt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wr().getBaseHref(this._doc)}onPopState(e){const r=Wr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=Wr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,r,o){this._history.pushState(e,r,o)}replaceState(e,r,o){this._history.replaceState(e,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return new t},providedIn:"platform"}),t})();function Up(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function cw(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Sr(t){return t&&"?"!==t[0]?"?"+t:t}let qr=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(dw)},providedIn:"root"}),t})();const uw=new j("appBaseHref");let dw=(()=>{class t extends qr{constructor(e,r){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??z(qt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Up(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+Sr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${r}${o}`:r}pushState(e,r,o,i){const s=this.prepareExternalUrl(o+Sr(i));this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){const s=this.prepareExternalUrl(o+Sr(i));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(V($p),V(uw,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),pw=(()=>{class t extends qr{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=Up(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,o,i){let s=this.prepareExternalUrl(o+Sr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){let s=this.prepareExternalUrl(o+Sr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(V($p),V(uw,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Yr=(()=>{class t{constructor(e){this._subject=new le,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const r=this._locationStrategy.getBaseHref();this._basePath=function iA(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(cw(hw(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(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+Sr(r))}normalize(e){return t.stripTrailingSlash(function oA(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,hw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",o=null){this._locationStrategy.pushState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Sr(r)),o)}replaceState(e,r="",o=null){this._locationStrategy.replaceState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Sr(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(o=>o(e,r))}subscribe(e,r,o){return this._subject.subscribe({next:e,error:r,complete:o})}}return t.normalizeQueryParams=Sr,t.joinWithSlash=Up,t.stripTrailingSlash=cw,t.\u0275fac=function(e){return new(e||t)(V(qr))},t.\u0275prov=Z({token:t,factory:function(){return function rA(){return new Yr(V(qr))}()},providedIn:"root"}),t})();function hw(t){return t.replace(/\/index.html$/,"")}function bw(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const r=e.indexOf("="),[o,i]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}class zA{constructor(n,e,r,o){this.$implicit=n,this.ngForOf=e,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 Sn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,r,o){this._viewContainer=e,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new zA(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),Ew(a,o)}});for(let o=0,i=r.length;o{Ew(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(w(Cn),w(Er),w($l))},t.\u0275dir=ue({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function Ew(t,n){t.context.$implicit=n.item}let Te=(()=>{class t{constructor(e,r){this._viewContainer=e,this._context=new GA,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){xw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){xw("ngIfElse",e),this._elseTemplateRef=e,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(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(w(Cn),w(Er))},t.\u0275dir=ue({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class GA{constructor(){this.$implicit=null,this.ngIf=null}}function xw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Ct(n)}'.`)}class YA{createSubscription(n,e){return n.subscribe({next:e,error:r=>{throw r}})}dispose(n){n.unsubscribe()}}class ZA{createSubscription(n,e){return n.then(e,r=>{throw r})}dispose(n){}}const XA=new ZA,KA=new YA;let Pw=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r))}_selectStrategy(e){if(Ds(e))return XA;if(cv(e))return KA;throw function Hn(t,n){return new I(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(w(Bl,16))},t.\u0275pipe=Rt({name:"async",type:t,pure:!1,standalone:!0}),t})(),Ql=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({}),t})();const Iw="browser";function Mi(t){return t===Iw}function Tw(t){return"server"===t}let vN=(()=>{class t{}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>new CN(V(qt),window)}),t})();class CN{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function yN(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const r=t.createTreeWalker(t.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);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),r=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=kw(this.window.history)||kw(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function kw(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Aw{}class qN extends eA{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ih extends qN{static makeCurrent(){!function Jk(t){Hp||(Hp=t)}(new ih)}onAndCancel(n,e,r){return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||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,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function YN(){return Vs=Vs||document.querySelector("base"),Vs?Vs.getAttribute("href"):null}();return null==e?null:function ZN(t){nc=nc||document.createElement("a"),nc.setAttribute("href",t);const n=nc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Vs=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return bw(document.cookie,n)}}let nc,Vs=null,KN=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const sh=new j("EventManagerPlugins");let Bw=(()=>{class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,o){return this._findPluginFor(r).addEventListener(e,r,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(i=>i.supports(e)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(V(sh),V(Ze))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class Vw{constructor(n){this._doc=n}}const ah="ng-app-id";let Hw=(()=>{class t{constructor(e,r,o,i={}){this.doc=e,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Tw(i),this.resetHostNodes()}addStyles(e){for(const r of e)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(e){for(const r of e)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(r=>r.remove()),e.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const r of this.getAllStyles())this.addStyleToHost(e,r)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const r of this.hostNodes)this.addStyleToHost(r,e)}onStyleRemoved(e){const r=this.styleRef;r.get(e)?.elements?.forEach(o=>o.remove()),r.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${ah}="${this.appId}"]`);if(e?.length){const r=new Map;return e.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(e,r){const o=this.styleRef;if(o.has(e)){const i=o.get(e);return i.usage+=r,i.usage}return o.set(e,{usage:r,elements:[]}),r}getStyleElement(e,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===e)return o.delete(r),i.removeAttribute(ah),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(ah,this.appId),s}}addStyleToHost(e,r){const o=this.getStyleElement(e,r);e.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(V(qt),V(ul),V(e_,8),V(jr))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const lh={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/"},ch=/%COMP%/g,tR=new j("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Uw(t,n){return n.map(e=>e.replace(ch,t))}let jw=(()=>{class t{constructor(e,r,o,i,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Tw(a),this.defaultRenderer=new uh(e,s,l,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===pn.ShadowDom&&(r={...r,encapsulation:pn.Emulated});const o=this.getOrCreateRenderer(e,r);return o instanceof Gw?o.applyToHost(e):o instanceof dh&&o.applyStyles(),o}getOrCreateRenderer(e,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.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case pn.Emulated:i=new Gw(l,c,r,this.appId,u,s,a,d);break;case pn.ShadowDom:return new iR(l,c,e,r,s,a,this.nonce,d);default:i=new dh(l,c,r,u,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return t.\u0275fac=function(e){return new(e||t)(V(Bw),V(Hw),V(ul),V(tR),V(qt),V(jr),V(Ze),V(e_))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class uh{constructor(n,e,r,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(lh[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(zw(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(zw(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new I(5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,o){if(o){e=o+":"+e;const i=lh[o];i?n.setAttributeNS(i,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){const o=lh[r];o?n.removeAttributeNS(o,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,o){o&(rn.DashCase|rn.Important)?n.style.setProperty(e,r,o&rn.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&rn.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n[e]=r}setValue(n,e){n.nodeValue=e}listen(n,e,r){if("string"==typeof n&&!(n=Wr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(r))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function zw(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class iR extends uh{constructor(n,e,r,o,i,s,a,l){super(n,i,s,l),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=Uw(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,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class dh extends uh{constructor(n,e,r,o,i,s,a,l){super(n,i,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?Uw(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class Gw extends dh{constructor(n,e,r,o,i,s,a,l){const c=o+"-"+r.id;super(n,e,r,i,s,a,l,c),this.contentAttr=function nR(t){return"_ngcontent-%COMP%".replace(ch,t)}(c),this.hostAttr=function rR(t){return"_nghost-%COMP%".replace(ch,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}}let sR=(()=>{class t extends Vw{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o){return e.addEventListener(r,o,!1),()=>this.removeEventListener(e,r,o)}removeEventListener(e,r,o){return e.removeEventListener(r,o)}}return t.\u0275fac=function(e){return new(e||t)(V(qt))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const Ww=["alt","control","meta","shift"],aR={"\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"},lR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let cR=(()=>{class t extends Vw{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wr().onAndCancel(e,i.domEventName,s))}static parseEventName(e){const r=e.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Ww.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(e,r){let o=aR[e.key]||e.key,i="";return r.indexOf("code.")>-1&&(o=e.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Ww.forEach(s=>{s!==o&&(0,lR[s])(e)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(e,r,o){return i=>{t.matchEventFullKeyCode(i,e)&&o.runGuarded(()=>r(i))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(V(qt))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const hR=By($k,"browser",[{provide:jr,useValue:Iw},{provide:Jm,useValue:function uR(){ih.makeCurrent()},multi:!0},{provide:qt,useFactory:function pR(){return function gx(t){Xu=t}(document),document},deps:[]}]),fR=new j(""),Zw=[{provide:Fl,useClass:class XN{addToWindow(n){ze.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new I(5103,!1);return i},ze.getAllAngularTestabilities=()=>n.getAllTestabilities(),ze.getAllAngularRootElements=()=>n.getAllRootElements(),ze.frameworkStabilizers||(ze.frameworkStabilizers=[]),ze.frameworkStabilizers.push(r=>{const o=ze.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,r){return null==e?null:n.getTestability(e)??(r?Wr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:Ay,useClass:Pp,deps:[Ze,Op,Fl]},{provide:Pp,useClass:Pp,deps:[Ze,Op,Fl]}],Xw=[{provide:id,useValue:"root"},{provide:vo,useFactory:function dR(){return new vo},deps:[]},{provide:sh,useClass:sR,multi:!0,deps:[qt,Ze,jr]},{provide:sh,useClass:cR,multi:!0,deps:[qt]},jw,Hw,Bw,{provide:l_,useExisting:jw},{provide:Aw,useClass:KN,deps:[]},[]];let gR=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:ul,useValue:e.appId}]}}}return t.\u0275fac=function(e){return new(e||t)(V(fR,12))},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({providers:[...Xw,...Zw],imports:[Ql,Uk]}),t})(),Kw=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(V(qt))},t.\u0275prov=Z({token:t,factory:function(e){let r=null;return r=e?new e:function _R(){return new Kw(V(qt))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let hh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(e){let r=null;return r=e?new(e||t):V(e0),r},providedIn:"root"}),t})(),e0=(()=>{class t extends hh{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case $e.NONE:return r;case $e.HTML:return er(r,"HTML")?_n(r):Um(this._doc,String(r)).toString();case $e.STYLE:return er(r,"Style")?_n(r):r;case $e.SCRIPT:if(er(r,"Script"))return _n(r);throw new I(5200,!1);case $e.URL:return er(r,"URL")?_n(r):sl(String(r));case $e.RESOURCE_URL:if(er(r,"ResourceURL"))return _n(r);throw new I(5201,!1);default:throw new I(5202,!1)}}bypassSecurityTrustHtml(e){return function bx(t){return new mx(t)}(e)}bypassSecurityTrustStyle(e){return function Mx(t){return new _x(t)}(e)}bypassSecurityTrustScript(e){return function Dx(t){return new vx(t)}(e)}bypassSecurityTrustUrl(e){return function Ex(t){return new Cx(t)}(e)}bypassSecurityTrustResourceUrl(e){return function xx(t){return new yx(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(V(qt))},t.\u0275prov=Z({token:t,factory:function(e){let r=null;return r=e?new e:function wR(t){return new e0(t.get(qt))}(V(An)),r},providedIn:"root"}),t})();function ce(...t){return vt(t,$i(t))}class $n extends nt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}const{isArray:MR}=Array,{getPrototypeOf:DR,prototype:ER,keys:xR}=Object;function n0(t){if(1===t.length){const n=t[0];if(MR(n))return{args:n,keys:null};if(function SR(t){return t&&"object"==typeof t&&DR(t)===ER}(n)){const e=xR(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}const{isArray:PR}=Array;function r0(t){return ye(n=>function OR(t,n){return PR(n)?t(...n):t(n)}(t,n))}function o0(t,n){return t.reduce((e,r,o)=>(e[r]=n[o],e),{})}function fh(...t){const n=$i(t),e=If(t),{args:r,keys:o}=n0(t);if(0===r.length)return vt([],n);const i=new Ee(function IR(t,n,e=Gn){return r=>{s0(n,()=>{const{length:o}=t,i=new Array(o);let s=o,a=o;for(let l=0;l{const c=vt(t[l],n);let u=!1;c.subscribe(Ke(r,d=>{i[l]=d,u||(u=!0,a--),a||r.next(e(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>o0(o,s):Gn));return e?i.pipe(r0(e)):i}function s0(t,n,e){t?fr(e,t,n):n()}const rc=qe(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function gh(...t){return function TR(){return No(1)}()(vt(t,$i(t)))}function a0(t){return new Ee(n=>{un(t()).subscribe(n)})}function Hs(t,n){const e=G(t)?t:()=>t,r=o=>o.error(e());return new Ee(n?o=>n.schedule(r,0,o):r)}function mh(){return Xe((t,n)=>{let e=null;t._refCount++;const r=Ke(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,i=e;e=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}class l0 extends Ee{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,so(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 U;const e=this.getSubject();n.add(this.source.subscribe(Ke(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=U.EMPTY)}return n}refCount(){return mh()(this)}}function Un(t,n){return Xe((e,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();e.subscribe(Ke(r,l=>{o?.unsubscribe();let c=0;const u=i++;un(t(l,u)).subscribe(o=Ke(r,d=>r.next(n?n(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Di(t){return t<=0?()=>Wn:Xe((n,e)=>{let r=0;n.subscribe(Ke(e,o=>{++r<=t&&(e.next(o),t<=r&&e.complete())}))})}function c0(...t){const n=$i(t);return Xe((e,r)=>{(n?gh(t,e,n):gh(t,e)).subscribe(r)})}function Or(t,n){return Xe((e,r)=>{let o=0;e.subscribe(Ke(r,i=>t.call(n,i,o++)&&r.next(i)))})}function oc(t){return Xe((n,e)=>{let r=!1;n.subscribe(Ke(e,o=>{r=!0,e.next(o)},()=>{r||e.next(t),e.complete()}))})}function u0(t=kR){return Xe((n,e)=>{let r=!1;n.subscribe(Ke(e,o=>{r=!0,e.next(o)},()=>r?e.complete():e.error(t())))})}function kR(){return new rc}function Xr(t,n){const e=arguments.length>=2;return r=>r.pipe(t?Or((o,i)=>t(o,i,r)):Gn,Di(1),e?oc(n):u0(()=>new rc))}function Ei(t,n){return G(n)?It(t,n,1):It(t,1)}function Yt(t,n,e){const r=G(t)||n||e?{next:t,error:n,complete:e}:t;return r?Xe((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Ke(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)}))}):Gn}function We(t){return Xe((n,e)=>{let i,r=null,o=!1;r=n.subscribe(Ke(e,void 0,void 0,s=>{i=un(t(s,We(t)(n))),r?(r.unsubscribe(),r=null,i.subscribe(e)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(e))})}function _h(t){return t<=0?()=>Wn:Xe((n,e)=>{let r=[];n.subscribe(Ke(e,o=>{r.push(o),t{for(const o of r)e.next(o);e.complete()},void 0,()=>{r=null}))})}function d0(t){return ye(()=>t)}function vh(t){return Xe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}const me="primary",$s=Symbol("RouteTitle");class FR{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function xi(t){return new FR(t)}function LR(t,n,e){const r=e.path.split("/");if(r.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return t===n}function h0(t){return t.length>0?t[t.length-1]:null}function Kr(t){return function bR(t){return!!t&&(t instanceof Ee||G(t.lift)&&G(t.subscribe))}(t)?t:Ds(t)?vt(Promise.resolve(t)):ce(t)}const VR={exact:function m0(t,n,e){if(!Mo(t.segments,n.segments)||!ic(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!t.children[r]||!m0(t.children[r],n.children[r],e))return!1;return!0},subset:_0},f0={exact:function HR(t,n){return ar(t,n)},subset:function $R(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>p0(t[e],n[e]))},ignored:()=>!0};function g0(t,n,e){return VR[e.paths](t.root,n.root,e.matrixParams)&&f0[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function _0(t,n,e){return v0(t,n,n.segments,e)}function v0(t,n,e,r){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Mo(o,e)||n.hasChildren()||!ic(o,e,r))}if(t.segments.length===e.length){if(!Mo(t.segments,e)||!ic(t.segments,e,r))return!1;for(const o in n.children)if(!t.children[o]||!_0(t.children[o],n.children[o],r))return!1;return!0}{const o=e.slice(0,t.segments.length),i=e.slice(t.segments.length);return!!(Mo(t.segments,o)&&ic(t.segments,o,r)&&t.children[me])&&v0(t.children[me],n,i,r)}}function ic(t,n,e){return n.every((r,o)=>f0[e](t[o].parameters,r.parameters))}class Si{constructor(n=new Le([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xi(this.queryParams)),this._queryParamMap}toString(){return zR.serialize(this)}}class Le{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return sc(this)}}class Us{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=xi(this.parameters)),this._parameterMap}toString(){return w0(this)}}function Mo(t,n){return t.length===n.length&&t.every((e,r)=>e.path===n[r].path)}let js=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return new Ch},providedIn:"root"}),t})();class Ch{parse(n){const e=new tF(n);return new Si(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${zs(n.root,!0)}`,r=function qR(t){const n=Object.keys(t).map(e=>{const r=t[e];return Array.isArray(r)?r.map(o=>`${ac(e)}=${ac(o)}`).join("&"):`${ac(e)}=${ac(r)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${r}${"string"==typeof n.fragment?`#${function GR(t){return encodeURI(t)}(n.fragment)}`:""}`}}const zR=new Ch;function sc(t){return t.segments.map(n=>w0(n)).join("/")}function zs(t,n){if(!t.hasChildren())return sc(t);if(n){const e=t.children[me]?zs(t.children[me],!1):"",r=[];return Object.entries(t.children).forEach(([o,i])=>{o!==me&&r.push(`${o}:${zs(i,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function jR(t,n){let e=[];return Object.entries(t.children).forEach(([r,o])=>{r===me&&(e=e.concat(n(o,r)))}),Object.entries(t.children).forEach(([r,o])=>{r!==me&&(e=e.concat(n(o,r)))}),e}(t,(r,o)=>o===me?[zs(t.children[me],!1)]:[`${o}:${zs(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[me]?`${sc(t)}/${e[0]}`:`${sc(t)}/(${e.join("//")})`}}function C0(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ac(t){return C0(t).replace(/%3B/gi,";")}function yh(t){return C0(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lc(t){return decodeURIComponent(t)}function y0(t){return lc(t.replace(/\+/g,"%20"))}function w0(t){return`${yh(t.path)}${function WR(t){return Object.keys(t).map(n=>`;${yh(n)}=${yh(t[n])}`).join("")}(t.parameters)}`}const YR=/^[^\/()?;#]+/;function wh(t){const n=t.match(YR);return n?n[0]:""}const ZR=/^[^\/()?;=#]+/,KR=/^[^=?&#]+/,JR=/^[^&#]+/;class tF{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Le([],{}):new Le([],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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[me]=new Le(n,e)),r}parseSegment(){const n=wh(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(n),new Us(lc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function XR(t){const n=t.match(ZR);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const o=wh(this.remaining);o&&(r=o,this.capture(r))}n[lc(e)]=lc(r)}parseQueryParam(n){const e=function QR(t){const n=t.match(KR);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const s=function eF(t){const n=t.match(JR);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=y0(e),i=y0(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 e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=wh(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=me);const s=this.parseChildren();e[i]=1===Object.keys(s).length?s[me]:new Le([],s),this.consumeOptional("//")}return e}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 b0(t){return t.segments.length>0?new Le([],{[me]:t}):t}function M0(t){const n={};for(const r of Object.keys(t.children)){const i=M0(t.children[r]);if(r===me&&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 nF(t){if(1===t.numberOfChildren&&t.children[me]){const n=t.children[me];return new Le(t.segments.concat(n.segments),n.children)}return t}(new Le(t.segments,n))}function Do(t){return t instanceof Si}function D0(t){let n;const o=b0(function e(i){const s={};for(const l of i.children){const c=e(l);s[l.outlet]=c}const a=new Le(i.url,s);return i===t&&(n=a),a}(t.root));return n??o}function E0(t,n,e,r){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return bh(o,o,o,e,r);const i=function oF(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new S0(!0,0,t);let n=0,e=!1;const r=t.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?e=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new S0(e,n,r)}(n);if(i.toRoot())return bh(o,o,new Le([],{}),e,r);const s=function iF(t,n,e){if(t.isAbsolute)return new uc(n,!0,0);if(!e)return new uc(n,!1,NaN);if(null===e.parent)return new uc(e,!0,0);const r=cc(t.commands[0])?0:1;return function sF(t,n,e){let r=t,o=n,i=e;for(;i>o;){if(i-=o,r=r.parent,!r)throw new I(4005,!1);o=r.segments.length}return new uc(r,!1,o-i)}(e,e.segments.length-1+r,t.numberOfDoubleDots)}(i,o,t),a=s.processChildren?Ws(s.segmentGroup,s.index,i.commands):P0(s.segmentGroup,s.index,i.commands);return bh(o,s.segmentGroup,a,e,r)}function cc(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Gs(t){return"object"==typeof t&&null!=t&&t.outlets}function bh(t,n,e,r,o){let s,i={};r&&Object.entries(r).forEach(([l,c])=>{i[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=t===n?e:x0(t,n,e);const a=b0(M0(s));return new Si(a,i,o)}function x0(t,n,e){const r={};return Object.entries(t.children).forEach(([o,i])=>{r[o]=i===n?e:x0(i,n,e)}),new Le(t.segments,r)}class S0{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&cc(r[0]))throw new I(4003,!1);const o=r.find(Gs);if(o&&o!==h0(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class uc{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}}function P0(t,n,e){if(t||(t=new Le([],{})),0===t.segments.length&&t.hasChildren())return Ws(t,n,e);const r=function lF(t,n,e){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return i;const s=t.segments[o],a=e[r];if(Gs(a))break;const l=`${a}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!I0(l,c,s))return i;r+=2}else{if(!I0(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,n,e),o=e.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=P0(t.children[i],n,s))}),Object.entries(t.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new Le(t.segments,o)}}function Mh(t,n,e){const r=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(n[e]=Mh(new Le([],{}),0,r))}),n}function O0(t){const n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function I0(t,n,e){return t==e.path&&ar(n,e.parameters)}const qs="imperative";class lr{constructor(n,e){this.id=n,this.url=e}}class Dh extends lr{constructor(n,e,r="imperative",o=null){super(n,e),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Eo extends lr{constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class dc extends lr{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ys extends lr{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=16}}class Eh extends lr{constructor(n,e,r,o){super(n,e),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class uF extends lr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dF extends lr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pF extends lr{constructor(n,e,r,o,i){super(n,e),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class hF extends lr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fF extends lr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gF{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class mF{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _F{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vF{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CF{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yF{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class T0{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class wF{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Zs,this.attachRef=null}}let Zs=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){const o=this.getOrCreateContext(e);o.outlet=r,this.contexts.set(e,o)}onChildOutletDestroyed(e){const r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new wF,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class k0{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=xh(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){const e=xh(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=Sh(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return Sh(n,this._root).map(e=>e.value)}}function xh(t,n){if(t===n.value)return n;for(const e of n.children){const r=xh(t,e);if(r)return r}return null}function Sh(t,n){if(t===n.value)return[n];for(const e of n.children){const r=Sh(t,e);if(r.length)return r.unshift(n),r}return[]}class Ir{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Pi(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class A0 extends k0{constructor(n,e){super(n),this.snapshot=e,Ph(this,n)}toString(){return this.snapshot.toString()}}function N0(t,n){const e=function bF(t,n){const s=new pc([],{},{},"",{},me,n,null,{});return new F0("",new Ir(s,[]))}(0,n),r=new $n([new Us("",{})]),o=new $n({}),i=new $n({}),s=new $n({}),a=new $n(""),l=new cr(r,o,s,a,i,me,n,e.root);return l.snapshot=e.root,new A0(new Ir(l,[]),e)}class cr{constructor(n,e,r,o,i,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ye(c=>c[$s]))??ce(void 0),this.url=n,this.params=e,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._paramMap=this.params.pipe(ye(n=>xi(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ye(n=>xi(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function R0(t,n="emptyOnly"){const e=t.pathFromRoot;let r=0;if("always"!==n)for(r=e.length-1;r>=1;){const o=e[r],i=e[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function MF(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(r))}class pc{get title(){return this.data?.[$s]}constructor(n,e,r,o,i,s,a,l,c){this.url=n,this.params=e,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||(this._paramMap=xi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class F0 extends k0{constructor(n,e){super(e),this.url=n,Ph(this,e)}toString(){return L0(this._root)}}function Ph(t,n){n.value._routerState=t,n.children.forEach(e=>Ph(t,e))}function L0(t){const n=t.children.length>0?` { ${t.children.map(L0).join(", ")} } `:"";return`${t.value}${n}`}function Oh(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ar(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ar(n.params,e.params)||t.paramsSubject.next(e.params),function BR(t,n){if(t.length!==n.length)return!1;for(let e=0;ear(e.parameters,n[r].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||Ih(t.parent,n.parent))}let Th=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=me,this.activateEvents=new le,this.deactivateEvents=new le,this.attachEvents=new le,this.detachEvents=new le,this.parentContexts=z(Zs),this.location=z(Cn),this.changeDetector=z(Bl),this.environmentInjector=z(nr),this.inputBinder=z(hc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:r,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new 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 e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=e;const o=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new DF(e,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)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[en]}),t})();class DF{constructor(n,e,r){this.route=n,this.childContexts=e,this.parent=r}get(n,e){return n===cr?this.route:n===Zs?this.childContexts:this.parent.get(n,e)}}const hc=new j("");let B0=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:r}=e,o=fh([r.queryParams,r.params,r.data]).pipe(Un(([i,s,a],l)=>(a={...i,...s,...a},0===l?ce(a):Promise.resolve(a)))).subscribe(i=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(e);const s=function Qk(t){const n=Pe(t);if(!n)return null;const e=new Cs(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function Xs(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=n.value;const o=function xF(t,n,e){return n.children.map(r=>{for(const o of e.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return Xs(t,r,o);return Xs(t,r)})}(t,n,e);return new Ir(r,o)}{if(t.shouldAttach(n.value)){const i=t.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Xs(t,a)),s}}const r=function SF(t){return new cr(new $n(t.url),new $n(t.params),new $n(t.queryParams),new $n(t.fragment),new $n(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(i=>Xs(t,i));return new Ir(r,o)}}const kh="ngNavigationCancelingError";function V0(t,n){const{redirectTo:e,navigationBehaviorOptions:r}=Do(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=H0(!1,0,n);return o.url=e,o.navigationBehaviorOptions=r,o}function H0(t,n,e){const r=new Error("NavigationCancelingError: "+(t||""));return r[kh]=!0,r.cancellationCode=n,e&&(r.url=e),r}function $0(t){return U0(t)&&Do(t.url)}function U0(t){return t&&t[kh]}let j0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["ng-component"]],standalone:!0,features:[RC],decls:1,vars:0,template:function(e,r){1&e&&K(0,"router-outlet")},dependencies:[Th],encapsulation:2}),t})();function Ah(t){const n=t.children&&t.children.map(Ah),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==me&&(e.component=j0),e}function jn(t){return t.outlet||me}function Ks(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class NF{constructor(n,e,r,o,i){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Oh(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){const o=Pi(e);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,e,r){const o=n.value,i=e?e.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else i&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Pi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Pi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){const o=Pi(e);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new yF(i.value.snapshot))}),n.children.length&&this.forwardEvent(new vF(n.value.snapshot))}activateRoutes(n,e,r){const o=n.value,i=e?e.value:null;if(Oh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,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),Oh(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Ks(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 z0{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class fc{constructor(n,e){this.component=n,this.route=e}}function RF(t,n,e){const r=t._root;return Qs(r,n?n._root:null,e,[r.value])}function Oi(t,n){const e=Symbol(),r=n.get(t,e);return r===e?"function"!=typeof t||function LD(t){return null!==Ca(t)}(t)?n.get(t):t:r}function Qs(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Pi(n);return t.children.forEach(s=>{(function LF(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function BF(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Mo(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Mo(t.url,n.url)||!ar(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ih(t,n)||!ar(t.queryParams,n.queryParams);default:return!Ih(t,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new z0(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Qs(t,n,i.component?a?a.children:null:e,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new fc(a.outlet.component,s))}else s&&Js(n,a,o),o.canActivateChecks.push(new z0(r)),Qs(t,null,i.component?a?a.children:null:e,r,o)})(s,i[s.value.outlet],e,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Js(a,e.getContext(s),o)),o}function Js(t,n,e){const r=Pi(t),o=t.value;Object.entries(r).forEach(([i,s])=>{Js(s,o.component?n?n.children.getContext(i):null:n,e)}),e.canDeactivateChecks.push(new fc(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function ea(t){return"function"==typeof t}function G0(t){return t instanceof rc||"EmptyError"===t?.name}const gc=Symbol("INITIAL_VALUE");function Ii(){return Un(t=>fh(t.map(n=>n.pipe(Di(1),c0(gc)))).pipe(ye(n=>{for(const e of n)if(!0!==e){if(e===gc)return gc;if(!1===e||e instanceof Si)return e}return!0}),Or(n=>n!==gc),Di(1)))}function W0(t){return function ga(...t){return _t(t)}(Yt(n=>{if(Do(n))throw V0(0,n)}),ye(n=>!0===n))}class mc{constructor(n){this.segmentGroup=n||null}}class q0{constructor(n){this.urlTree=n}}function Ti(t){return Hs(new mc(t))}function Y0(t){return Hs(new q0(t))}class oL{constructor(n,e){this.urlSerializer=n,this.urlTree=e}noMatchError(n){return new I(4002,!1)}lineralizeSegments(n,e){let r=[],o=e.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return ce(r);if(o.numberOfChildren>1||!o.children[me])return Hs(new I(4e3,!1));o=o.children[me]}}applyRedirectCommands(n,e,r){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r)}applyRedirectCreateUrlTree(n,e,r,o){const i=this.createSegmentGroup(n,e.root,r,o);return new Si(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=e[a]}else r[o]=i}),r}createSegmentGroup(n,e,r,o){const i=this.createSegments(n,e.segments,r,o);let s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,r,o)}),new Le(i,s)}createSegments(n,e,r,o){return e.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,e,r){const o=r[e.path.substring(1)];if(!o)throw new I(4001,!1);return o}findOrReturn(n,e){let r=0;for(const o of e){if(o.path===n.path)return e.splice(r),o;r++}return n}}const Nh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function iL(t,n,e,r,o){const i=Rh(t,n,e);return i.matched?(r=function PF(t,n){return t.providers&&!t._injector&&(t._injector=rp(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,r),function tL(t,n,e,r){const o=n.canMatch;return o&&0!==o.length?ce(o.map(s=>{const a=Oi(s,t);return Kr(function zF(t){return t&&ea(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ii(),W0()):ce(!0)}(r,n,e).pipe(ye(s=>!0===s?i:{...Nh}))):ce(i)}function Rh(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...Nh}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||LR)(e,t,n);if(!o)return{...Nh};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:e.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Z0(t,n,e,r){return e.length>0&&function lL(t,n,e){return e.some(r=>_c(t,n,r)&&jn(r)!==me)}(t,e,r)?{segmentGroup:new Le(n,aL(r,new Le(e,t.children))),slicedSegments:[]}:0===e.length&&function cL(t,n,e){return e.some(r=>_c(t,n,r))}(t,e,r)?{segmentGroup:new Le(t.segments,sL(t,0,e,r,t.children)),slicedSegments:e}:{segmentGroup:new Le(t.segments,t.children),slicedSegments:e}}function sL(t,n,e,r,o){const i={};for(const s of r)if(_c(t,e,s)&&!o[jn(s)]){const a=new Le([],{});i[jn(s)]=a}return{...o,...i}}function aL(t,n){const e={};e[me]=n;for(const r of t)if(""===r.path&&jn(r)!==me){const o=new Le([],{});e[jn(r)]=o}return e}function _c(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class hL{constructor(n,e,r,o,i,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new oL(this.urlSerializer,this.urlTree)}noMatchError(n){return new I(4002,!1)}recognize(){const n=Z0(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,me).pipe(We(e=>{if(e instanceof q0)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof mc?this.noMatchError(e):e}),ye(e=>{const r=new pc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},me,this.rootComponentType,null,{}),o=new Ir(r,e),i=new F0("",o),s=function rF(t,n,e=null,r=null){return E0(D0(t),n,e,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,me).pipe(We(r=>{throw r instanceof mc?this.noMatchError(r):r}))}inheritParamsAndData(n){const e=n.value,r=R0(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,e,r):this.processSegment(n,e,r,r.segments,o,!0)}processChildren(n,e,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return vt(o).pipe(Ei(i=>{const s=r.children[i],a=function kF(t,n){const e=t.filter(r=>jn(r)===n);return e.push(...t.filter(r=>jn(r)!==n)),e}(e,i);return this.processSegmentGroup(n,a,s,i)}),function NR(t,n){return Xe(function AR(t,n,e,r,o){return(i,s)=>{let a=e,l=n,c=0;i.subscribe(Ke(s,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(t,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),oc(null),function RR(t,n){const e=arguments.length>=2;return r=>r.pipe(t?Or((o,i)=>t(o,i,r)):Gn,_h(1),e?oc(n):u0(()=>new rc))}(),It(i=>{if(null===i)return Ti(r);const s=X0(i);return function fL(t){t.sort((n,e)=>n.value.outlet===me?-1:e.value.outlet===me?1:n.value.outlet.localeCompare(e.value.outlet))}(s),ce(s)}))}processSegment(n,e,r,o,i,s){return vt(e).pipe(Ei(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,o,i,s).pipe(We(l=>{if(l instanceof mc)return ce(null);throw l}))),Xr(a=>!!a),We(a=>{if(G0(a))return function dL(t,n,e){return 0===n.length&&!t.children[e]}(r,o,i)?ce([]):Ti(r);throw a}))}processSegmentAgainstRoute(n,e,r,o,i,s,a){return function uL(t,n,e,r){return!!(jn(t)===r||r!==me&&_c(n,e,t))&&("**"===t.path||Rh(n,t,e).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,r,i,s):Ti(o):Ti(o)}expandSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Y0(i):this.applyRedirects.lineralizeSegments(r,i).pipe(It(s=>{const a=new Le(s,{});return this.processSegment(n,e,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Rh(e,o,i);if(!a)return Ti(e);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?Y0(d):this.applyRedirects.lineralizeSegments(o,d).pipe(It(g=>this.processSegment(n,r,e,g.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?h0(o).parameters:{};a=ce({snapshot:new pc(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,K0(r),jn(r),r.component??r._loadedComponent??null,r,Q0(r)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=iL(e,r,o,n).pipe(ye(({matched:l,consumedSegments:c,remainingSegments:u,parameters:d})=>l?{snapshot:new pc(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,K0(r),jn(r),r.component??r._loadedComponent??null,r,Q0(r)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Un(l=>null===l?Ti(e):this.getChildConfig(n=r._injector??n,r,o).pipe(Un(({routes:c})=>{const u=r._loadedInjector??n,{snapshot:d,consumedSegments:g,remainingSegments:m}=l,{segmentGroup:y,slicedSegments:M}=Z0(e,g,m,c);if(0===M.length&&y.hasChildren())return this.processChildren(u,c,y).pipe(ye(x=>null===x?null:[new Ir(d,x)]));if(0===c.length&&0===M.length)return ce([new Ir(d,[])]);const E=jn(r)===i;return this.processSegment(u,c,y,M,E?me:i,!0).pipe(ye(x=>[new Ir(d,x)]))}))))}getChildConfig(n,e,r){return e.children?ce({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?ce({routes:e._loadedRoutes,injector:e._loadedInjector}):function eL(t,n,e,r){const o=n.canLoad;return void 0===o||0===o.length?ce(!0):ce(o.map(s=>{const a=Oi(s,t);return Kr(function HF(t){return t&&ea(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ii(),W0())}(n,e,r).pipe(It(o=>o?this.configLoader.loadChildren(n,e).pipe(Yt(i=>{e._loadedRoutes=i.routes,e._loadedInjector=i.injector})):function rL(t){return Hs(H0(!1,3))}())):ce({routes:[],injector:n})}}function gL(t){const n=t.value.routeConfig;return n&&""===n.path}function X0(t){const n=[],e=new Set;for(const r of t){if(!gL(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),e.add(o)):n.push(r)}for(const r of e){const o=X0(r.children);n.push(new Ir(r.value,o))}return n.filter(r=>!e.has(r))}function K0(t){return t.data||{}}function Q0(t){return t.resolve||{}}function J0(t){return"string"==typeof t.title||null===t.title}function Fh(t){return Un(n=>{const e=t(n);return e?vt(e).pipe(ye(()=>n)):ce(n)})}const ki=new j("ROUTES");let Lh=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=z(Ey)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ce(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const r=Kr(e.loadComponent()).pipe(ye(eb),Yt(i=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=i}),vh(()=>{this.componentLoaders.delete(e)})),o=new l0(r,()=>new nt).pipe(mh());return this.componentLoaders.set(e,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ce({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ye(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,c;return Array.isArray(a)?c=a:(l=a.create(e).injector,c=l.get(ki,[],oe.Self|oe.Optional).flat()),{routes:c.map(Ah),injector:l}}),vh(()=>{this.childrenLoaders.delete(r)})),s=new l0(i,()=>new nt).pipe(mh());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(e){return Kr(e()).pipe(ye(eb),It(r=>r instanceof AC||Array.isArray(r)?ce(r):vt(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function eb(t){return function bL(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let vc=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new nt,this.configLoader=z(Lh),this.environmentInjector=z(nr),this.urlSerializer=z(js),this.rootContexts=z(Zs),this.inputBindingEnabled=null!==z(hc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ce(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new mF(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new gF(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:r})}setupNavigations(e){return this.transitions=new $n({id:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:qs,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Or(r=>0!==r.id),ye(r=>({...r,extractedUrl:e.urlHandlingStrategy.extract(r.rawUrl)})),Un(r=>{let o=!1,i=!1;return ce(r).pipe(Yt(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Un(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new Ys(s.id,e.serializeUrl(r.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Wn}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return tb(s.source)&&(e.browserUrlTree=s.extractedUrl),ce(s).pipe(Un(u=>{const d=this.transitions?.getValue();return this.events.next(new Dh(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Wn:Promise.resolve(u)}),function mL(t,n,e,r,o,i){return It(s=>function pL(t,n,e,r,o,i,s="emptyOnly"){return new hL(t,n,e,r,o,s,i).recognize()}(t,n,e,r,s.extractedUrl,o,i).pipe(ye(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Yt(u=>{if(r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const g=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(g,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new uF(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:g,restoredState:m,extras:y}=s,M=new Dh(u,this.urlSerializer.serialize(d),g,m);this.events.next(M);const E=N0(0,this.rootComponentType).snapshot;return ce(r={...s,targetSnapshot:E,urlAfterRedirects:d,extras:{...y,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new Ys(s.id,e.serializeUrl(r.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Wn}}),Yt(s=>{const a=new dF(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ye(s=>r={...s,guards:RF(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function WF(t,n){return It(e=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=e;return 0===s.length&&0===i.length?ce({...e,guardsResult:!0}):function qF(t,n,e,r){return vt(t).pipe(It(o=>function JF(t,n,e,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?ce(i.map(a=>{const l=Ks(n)??o,c=Oi(a,l);return Kr(function jF(t){return t&&ea(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,r):l.runInContext(()=>c(t,n,e,r))).pipe(Xr())})).pipe(Ii()):ce(!0)}(o.component,o.route,e,n,r)),Xr(o=>!0!==o,!0))}(s,r,o,t).pipe(It(a=>a&&function VF(t){return"boolean"==typeof t}(a)?function YF(t,n,e,r){return vt(n).pipe(Ei(o=>gh(function XF(t,n){return null!==t&&n&&n(new _F(t)),ce(!0)}(o.route.parent,r),function ZF(t,n){return null!==t&&n&&n(new CF(t)),ce(!0)}(o.route,r),function QF(t,n,e){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function FF(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>a0(()=>ce(s.guards.map(l=>{const c=Ks(s.node)??e,u=Oi(l,c);return Kr(function UF(t){return t&&ea(t.canActivateChild)}(u)?u.canActivateChild(r,t):c.runInContext(()=>u(r,t))).pipe(Xr())})).pipe(Ii())));return ce(i).pipe(Ii())}(t,o.path,e),function KF(t,n,e){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return ce(!0);const o=r.map(i=>a0(()=>{const s=Ks(n)??e,a=Oi(i,s);return Kr(function $F(t){return t&&ea(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(Xr())}));return ce(o).pipe(Ii())}(t,o.route,e))),Xr(o=>!0!==o,!0))}(r,i,t,n):ce(a)),ye(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Yt(s=>{if(r.guardsResult=s.guardsResult,Do(s.guardsResult))throw V0(0,s.guardsResult);const a=new pF(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Or(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Fh(s=>{if(s.guards.canActivateChecks.length)return ce(s).pipe(Yt(a=>{const l=new hF(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),Un(a=>{let l=!1;return ce(a).pipe(function _L(t,n){return It(e=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=e;if(!o.length)return ce(e);let i=0;return vt(o).pipe(Ei(s=>function vL(t,n,e,r){const o=t.routeConfig,i=t._resolve;return void 0!==o?.title&&!J0(o)&&(i[$s]=o.title),function CL(t,n,e,r){const o=function yL(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ce({});const i={};return vt(o).pipe(It(s=>function wL(t,n,e,r){const o=Ks(n)??r,i=Oi(t,o);return Kr(i.resolve?i.resolve(n,e):o.runInContext(()=>i(n,e)))}(t[s],n,e,r).pipe(Xr(),Yt(a=>{i[s]=a}))),_h(1),d0(i),We(s=>G0(s)?Wn:Hs(s)))}(i,t,n,r).pipe(ye(s=>(t._resolvedData=s,t.data=R0(t,e).resolve,o&&J0(o)&&(t.data[$s]=o.title),null)))}(s.route,r,t,n)),Yt(()=>i++),_h(1),It(s=>i===o.length?ce(e):Wn))})}(e.paramsInheritanceStrategy,this.environmentInjector),Yt({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Yt(a=>{const l=new fF(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Fh(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(Yt(u=>{l.component=u}),ye(()=>{})));for(const u of l.children)c.push(...a(u));return c};return fh(a(s.targetSnapshot.root)).pipe(oc(),Di(1))}),Fh(()=>this.afterPreactivation()),ye(s=>{const a=function EF(t,n,e){const r=Xs(t,n._root,e?e._root:void 0);return new A0(r,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Yt(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e,r)=>ye(o=>(new NF(n,o.targetRouterState,o.currentRouterState,e,r).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Di(1),Yt({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Eo(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),vh(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),We(s=>{if(i=!0,U0(s)){$0(s)||(e.navigated=!0,e.restoreHistory(r,!0));const a=new dc(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),$0(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||tb(r.source)};e.scheduleNavigation(l,qs,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{e.restoreHistory(r,!0);const a=new Eh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(e.errorHandler(s))}catch(l){r.reject(l)}}return Wn}))}))}cancelNavigationTransition(e,r,o){const i=new dc(e.id,this.urlSerializer.serialize(e.extractedUrl),r,o);this.events.next(i),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function tb(t){return t!==qs}let nb=(()=>{class t{buildTitle(e){let r,o=e.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===me);return r}getResolvedTitleForRoute(e){return e.data[$s]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(ML)},providedIn:"root"}),t})(),ML=(()=>{class t extends nb{constructor(e){super(),this.title=e}updateTitle(e){const r=this.buildTitle(e);void 0!==r&&this.title.setTitle(r)}}return t.\u0275fac=function(e){return new(e||t)(V(Kw))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),DL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(xL)},providedIn:"root"}),t})();class EL{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let xL=(()=>{class t extends EL{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=At(t)))(r||t)}}(),t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Cc=new j("",{providedIn:"root",factory:()=>({})});let SL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(PL)},providedIn:"root"}),t})(),PL=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var yn=(()=>((yn=yn||{})[yn.COMPLETE=0]="COMPLETE",yn[yn.FAILED=1]="FAILED",yn[yn.REDIRECTING=2]="REDIRECTING",yn))();function rb(t,n){t.events.pipe(Or(e=>e instanceof Eo||e instanceof dc||e instanceof Eh||e instanceof Ys),ye(e=>e instanceof Eo||e instanceof Ys?yn.COMPLETE:e instanceof dc&&(0===e.code||1===e.code)?yn.REDIRECTING:yn.FAILED),Or(e=>e!==yn.REDIRECTING),Di(1)).subscribe(()=>{n()})}function OL(t){throw t}function IL(t,n,e){return n.parse("/")}const TL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ve=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=z(Dy),this.isNgZoneEnabled=!1,this.options=z(Cc,{optional:!0})||{},this.pendingTasks=z(aw),this.errorHandler=this.options.errorHandler||OL,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||IL,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=z(SL),this.routeReuseStrategy=z(DL),this.titleStrategy=z(nb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=z(ki,{optional:!0})?.flat()??[],this.navigationTransitions=z(vc),this.urlSerializer=z(js),this.location=z(Yr),this.componentInputBindingEnabled=!!z(hc,{optional:!0}),this.isNgZoneEnabled=z(Ze)instanceof Ze&&Ze.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Si,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=N0(0,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),qs,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,r,e.state)},0)}))}navigateToSyncWithBrowser(e,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(e);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(e){this.config=e.map(Ah),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,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=D0(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return E0(d,e,u,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){const o=Do(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,qs,null,r)}navigate(e,r={skipLocationChange:!1}){return function AL(t){for(let n=0;n{const i=e[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(e,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,g)=>{a=d,l=g});const u=this.pendingTasks.add();return rb(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:i,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,r){const o=this.urlSerializer.serialize(e);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??0)+1)};this.location.go(o,"",i)}}restoreHistory(e,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class ob{}let FL=(()=>{class t{constructor(e,r,o,i,s){this.router=e,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Or(e=>e instanceof Eo),Ei(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=rp(i.providers,e,`Route: ${i.path}`));const s=i._injector??e,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 vt(o).pipe(No())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(e,r):ce(null);const i=o.pipe(It(s=>null===s?ce(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return r.loadComponent&&!r._loadedComponent?vt([i,this.loader.loadComponent(r)]).pipe(No()):i})}}return t.\u0275fac=function(e){return new(e||t)(V(Ve),V(Ey),V(nr),V(ob),V(Lh))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Vh=new j("");let ib=(()=>{class t{constructor(e,r,o,i,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Dh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Eo?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Ys&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof T0&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new T0(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function D_(){throw new Error("invalid")}()},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function Tr(t,n){return{\u0275kind:t,\u0275providers:n}}function ab(){const t=z(An);return n=>{const e=t.get(wi);if(n!==e.components[0])return;const r=t.get(Ve),o=t.get(lb);1===t.get(Hh)&&r.initialNavigation(),t.get(cb,null,oe.Optional)?.setUpPreloading(),t.get(Vh,null,oe.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const lb=new j("",{factory:()=>new nt}),Hh=new j("",{providedIn:"root",factory:()=>1}),cb=new j("");function HL(t){return Tr(0,[{provide:cb,useExisting:FL},{provide:ob,useExisting:t}])}const ub=new j("ROUTER_FORROOT_GUARD"),UL=[Yr,{provide:js,useClass:Ch},Ve,Zs,{provide:cr,useFactory:function sb(t){return t.routerState.root},deps:[Ve]},Lh,[]];function jL(){return new Fy("Router",Ve)}let db=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[UL,[],{provide:ki,multi:!0,useValue:e},{provide:ub,useFactory:qL,deps:[[Ve,new Wa,new qa]]},{provide:Cc,useValue:r||{}},r?.useHash?{provide:qr,useClass:pw}:{provide:qr,useClass:dw},{provide:Vh,useFactory:()=>{const t=z(vN),n=z(Ze),e=z(Cc),r=z(vc),o=z(js);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ib(o,r,t,n,e)}},r?.preloadingStrategy?HL(r.preloadingStrategy).\u0275providers:[],{provide:Fy,multi:!0,useFactory:jL},r?.initialNavigation?YL(r):[],r?.bindToComponentInputs?Tr(8,[B0,{provide:hc,useExisting:B0}]).\u0275providers:[],[{provide:pb,useFactory:ab},{provide:kp,multi:!0,useExisting:pb}]]}}static forChild(e){return{ngModule:t,providers:[{provide:ki,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(V(ub,8))},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({}),t})();function qL(t){return"guarded"}function YL(t){return["disabled"===t.initialNavigation?Tr(3,[{provide:Mp,multi:!0,useFactory:()=>{const n=z(Ve);return()=>{n.setUpLocationChangeListener()}}},{provide:Hh,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Tr(2,[{provide:Hh,useValue:0},{provide:Mp,multi:!0,deps:[An],useFactory:n=>{const e=n.get(tA,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const o=n.get(Ve),i=n.get(lb);rb(o,()=>{r(!0)}),n.get(vc).afterPreactivation=()=>(r(!0),i.closed?ce(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const pb=new j("");function XL(t,n){if(1&t){const e=Y();p(0,"div")(1,"h2",1),f(2),h(),p(3,"p"),f(4),h(),p(5,"button",2),_("click",function(){return R(e),F(D().close())}),f(6,"X"),h()()}if(2&t){const e=D();Rn("box"+(e.getClosing()?" slideOut":"")),v(1),Dn("color",e.getIsError()?"red":""),v(1),ot(" ",e.getHeading()," "),v(2),_e(e.getMessage())}}let ke=(()=>{class t{static showNotification(e,r,o=5e3,i=!1){t.visible=!0,t.message=r,t.heading=e,t.isError=i,!(o<0)&&setTimeout(()=>{t.visible&&t.closeNotification()},o)}static closeNotification(){t.closing=!0,setTimeout(()=>{t.visible=!1,t.closing=!1,t.isError=!1,t.message="",t.heading=""},500)}getVisible(){return t.visible}getMessage(){return t.message}getHeading(){return t.heading}getClosing(){return t.closing}getIsError(){return t.isError}close(){t.closeNotification()}}return t.visible=!1,t.message="",t.heading="",t.closing=!1,t.isError=!1,t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["app-notification"]],decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"heading"],[1,"closeButton",3,"click"]],template:function(e,r){1&e&&T(0,XL,7,6,"div",0),2&e&&C("ngIf",r.getVisible())},dependencies:[Te],styles:[".box[_ngcontent-%COMP%]{position:fixed;bottom:0;right:0;margin:30px;z-index:9999;border:1px solid var(--primary-color);background-color:var(--header-color);border-radius:10px;box-shadow:10px 10px 10px #00000080;width:300px;padding:10px;animation:_ngcontent-%COMP%_slideInFromRight .7s ease-in-out;color:var(--text-color)}.box[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{margin-top:0;width:250px}.box[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;width:25px;height:25px;border-radius:50%;background-color:var(--primary-color);color:var(--inverted-text-color);border:1px solid var(--primary-color);font-size:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.box[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{scale:1.1}.slideOut[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideOutToButton .51s ease-in-out}@media screen and (max-width: 600px){.box[_ngcontent-%COMP%]{width:100%;left:0;margin:0;border-radius:0;border:none;box-shadow:none;animation:none;border-top:1px solid var(--primary-color)}.box[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(150%)}80%{transform:translate(-10%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideOutToButton{0%{transform:translateY(0)}20%{transform:translateY(-10%)}to{transform:translateY(150%)}}"]}),t})(),KL=(()=>{class t{constructor(){this.title="InterSystemsWOOP"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(e,r){1&e&&K(0,"router-outlet")(1,"app-notification")},dependencies:[Th,ke],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.container[_ngcontent-%COMP%]{padding-top:70px}.userLevelLabel[_ngcontent-%COMP%]{position:fixed;bottom:10px;left:20px;opacity:.2}"]}),t})();class QL extends U{constructor(n,e){super()}schedule(n,e=0){return this}}const yc={setInterval(t,n,...e){const{delegate:r}=yc;return r?.setInterval?r.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=yc;return(n?.clearInterval||clearInterval)(t)},delegate:void 0},$h={now:()=>($h.delegate||Date).now(),delegate:void 0};class ta{constructor(n,e=ta.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,r){return new this.schedulerActionCtor(this,n).schedule(r,e)}}ta.now=$h.now;const t2=new class e2 extends ta{constructor(n,e=ta.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,r){for(;n=e.shift();)n.unsubscribe();throw r}}}(class JL extends QL{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,e),this}requestAsyncId(n,e,r=0){return yc.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,e,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&yc.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:r}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ut(r,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}});function i2(t,n){return t===n}class s2 extends nt{constructor(n=1/0,e=1/0,r=$h){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;e||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s"']/,h2=new RegExp(fb.source,"g"),gb=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,f2=new RegExp(gb.source,"g"),g2={"&":"&","<":"<",">":">",'"':""","'":"'"},mb=t=>g2[t];function Ht(t,n){if(n){if(fb.test(t))return t.replace(h2,mb)}else if(gb.test(t))return t.replace(f2,mb);return t}const m2=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function _b(t){return t.replace(m2,(n,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const _2=/(^|[^\[])\^/g;function Ue(t,n){t="string"==typeof t?t:t.source,n=n||"";const e={replace:(r,o)=>(o=(o=o.source||o).replace(_2,"$1"),t=t.replace(r,o),e),getRegex:()=>new RegExp(t,n)};return e}const v2=/[^\w:]/g,C2=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function vb(t,n,e){if(t){let r;try{r=decodeURIComponent(_b(e)).replace(v2,"").toLowerCase()}catch{return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}n&&!C2.test(e)&&(e=function M2(t,n){wc[" "+t]||(wc[" "+t]=y2.test(t)?t+"/":Mc(t,"/",!0));const e=-1===(t=wc[" "+t]).indexOf(":");return"//"===n.substring(0,2)?e?n:t.replace(w2,"$1")+n:"/"===n.charAt(0)?e?n:t.replace(b2,"$1")+n:t+n}(n,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const wc={},y2=/^[^:]+:\/*[^/]*$/,w2=/^([^:]+:)[\s\S]*$/,b2=/^([^:]+:\/*[^/]*)[\s\S]*$/,bc={exec:function(){}};function Cb(t,n){const r=t.replace(/\|/g,(i,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>n)r.splice(n);else for(;r.length1;)1&n&&(e+=t),n>>=1,t+=t;return e+t}function wb(t,n,e,r){const o=n.href,i=n.title?Ht(n.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){r.state.inLink=!0;const a={type:"link",raw:e,href:o,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,a}return{type:"image",raw:e,href:o,title:i,text:Ht(s)}}class Uh{constructor(n){this.options=n||xo}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const r=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Mc(r,"\n")}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const r=e[0],o=function x2(t,n){const e=t.match(/^(\s+)(?:```)/);if(null===e)return n;const r=e[1];return n.split("\n").map(o=>{const i=o.match(/^\s+/);if(null===i)return o;const[s]=i;return s.length>=r.length?o.slice(r.length):o}).join("\n")}(r,e[3]||"");return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:o}}}heading(n){const e=this.rules.block.heading.exec(n);if(e){let r=e[2].trim();if(/#$/.test(r)){const o=Mc(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(n){const e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:e[0]}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){const r=e[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:e[0],tokens:i,text:r}}}list(n){let e=this.rules.block.list.exec(n);if(e){let r,o,i,s,a,l,c,u,d,g,m,y,M=e[1].trim();const E=M.length>1,x={type:"list",raw:"",ordered:E,start:E?+M.slice(0,-1):"",loose:!1,items:[]};M=E?`\\d{1,9}\\${M.slice(-1)}`:`\\${M}`,this.options.pedantic&&(M=E?M:"[*+-]");const b=new RegExp(`^( {0,3}${M})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;n&&(y=!1,(e=b.exec(n))&&!this.rules.block.hr.test(n));){if(r=e[0],n=n.substring(r.length),u=e[2].split("\n",1)[0].replace(/^\t+/,q=>" ".repeat(3*q.length)),d=n.split("\n",1)[0],this.options.pedantic?(s=2,m=u.trimLeft()):(s=e[2].search(/[^ ]/),s=s>4?1:s,m=u.slice(s),s+=e[1].length),l=!1,!u&&/^ *$/.test(d)&&(r+=d+"\n",n=n.substring(d.length+1),y=!0),!y){const q=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),re=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),be=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),Pn=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;n&&(g=n.split("\n",1)[0],d=g,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(be.test(d)||Pn.test(d)||q.test(d)||re.test(n)));){if(d.search(/[^ ]/)>=s||!d.trim())m+="\n"+d.slice(s);else{if(l||u.search(/[^ ]/)>=4||be.test(u)||Pn.test(u)||re.test(u))break;m+="\n"+d}!l&&!d.trim()&&(l=!0),r+=g+"\n",n=n.substring(g.length+1),u=d.slice(s)}}x.loose||(c?x.loose=!0:/\n *\n *$/.test(r)&&(c=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(m),o&&(i="[ ] "!==o[0],m=m.replace(/^\[[ xX]\] +/,""))),x.items.push({type:"list_item",raw:r,task:!!o,checked:i,loose:!1,text:m}),x.raw+=r}x.items[x.items.length-1].raw=r.trimRight(),x.items[x.items.length-1].text=m.trimRight(),x.raw=x.raw.trimRight();const k=x.items.length;for(a=0;a"space"===be.type),re=q.length>0&&q.some(be=>/\n.*\n/.test(be.raw));x.loose=re}if(x.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:o,title:i}}}table(n){const e=this.rules.block.table.exec(n);if(e){const r={type:"table",header:Cb(e[1]).map(o=>({text:o})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=e[0];let i,s,a,l,o=r.align.length;for(i=0;i({text:c}));for(o=r.header.length,s=0;s/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Ht(e[0]):e[0]}}link(n){const e=this.rules.inline.link.exec(n);if(e){const r=e[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const s=Mc(r.slice(0,-1),"\\");if((r.length-s.length)%2==0)return}else{const s=function D2(t,n){if(-1===t.indexOf(n[1]))return-1;const e=t.length;let r=0,o=0;for(;o-1){const l=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let o=e[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],i=s[3])}else i=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o.slice(1):o.slice(1,-1)),wb(e,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(n,e){let r;if((r=this.rules.inline.reflink.exec(n))||(r=this.rules.inline.nolink.exec(n))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=e[o.toLowerCase()],!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return wb(r,o,r[0],this.lexer)}}emStrong(n,e,r=""){let o=this.rules.inline.emStrong.lDelim.exec(n);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;const i=o[1]||o[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){const s=o[0].length-1;let a,l,c=s,u=0;const d="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,e=e.slice(-1*n.length+s);null!=(o=d.exec(e));){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(l=a.length,o[3]||o[4]){c+=l;continue}if((o[5]||o[6])&&s%3&&!((s+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const g=n.slice(0,s+o.index+(o[0].length-a.length)+l);if(Math.min(s,l)%2){const y=g.slice(1,-1);return{type:"em",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}const m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(n){const e=this.rules.inline.code.exec(n);if(e){let r=e[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=Ht(r,!0),{type:"codespan",raw:e[0],text:r}}}br(n){const e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){const e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n,e){const r=this.rules.inline.autolink.exec(n);if(r){let o,i;return"@"===r[2]?(o=Ht(this.options.mangle?e(r[1]):r[1]),i="mailto:"+o):(o=Ht(r[1]),i=o),{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(n,e){let r;if(r=this.rules.inline.url.exec(n)){let o,i;if("@"===r[2])o=Ht(this.options.mangle?e(r[0]):r[0]),i="mailto:"+o;else{let s;do{s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(s!==r[0]);o=Ht(r[0]),i="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(n,e){const r=this.rules.inline.text.exec(n);if(r){let o;return o=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Ht(r[0]):r[0]:Ht(this.options.smartypants?e(r[0]):r[0]),{type:"text",raw:r[0],text:o}}}}const ee={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:bc,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};ee.def=Ue(ee.def).replace("label",ee._label).replace("title",ee._title).getRegex(),ee.bullet=/(?:[*+-]|\d{1,9}[.)])/,ee.listItemStart=Ue(/^( *)(bull) */).replace("bull",ee.bullet).getRegex(),ee.list=Ue(ee.list).replace(/bull/g,ee.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ee.def.source+")").getRegex(),ee._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ee._comment=/|$)/,ee.html=Ue(ee.html,"i").replace("comment",ee._comment).replace("tag",ee._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ee.paragraph=Ue(ee._paragraph).replace("hr",ee.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ee._tag).getRegex(),ee.blockquote=Ue(ee.blockquote).replace("paragraph",ee.paragraph).getRegex(),ee.normal={...ee},ee.gfm={...ee.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},ee.gfm.table=Ue(ee.gfm.table).replace("hr",ee.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ee._tag).getRegex(),ee.gfm.paragraph=Ue(ee._paragraph).replace("hr",ee.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ee.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ee._tag).getRegex(),ee.pedantic={...ee.normal,html:Ue("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ee._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:bc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ue(ee.normal._paragraph).replace("hr",ee.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ee.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const W={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:bc,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:bc,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}W._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",W.punctuation=Ue(W.punctuation).replace(/punctuation/g,W._punctuation).getRegex(),W.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,W.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,W._comment=Ue(ee._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),W.emStrong.lDelim=Ue(W.emStrong.lDelim).replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimAst=Ue(W.emStrong.rDelimAst,"g").replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimUnd=Ue(W.emStrong.rDelimUnd,"g").replace(/punct/g,W._punctuation).getRegex(),W._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,W._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,W._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,W.autolink=Ue(W.autolink).replace("scheme",W._scheme).replace("email",W._email).getRegex(),W._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,W.tag=Ue(W.tag).replace("comment",W._comment).replace("attribute",W._attribute).getRegex(),W._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,W._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,W._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,W.link=Ue(W.link).replace("label",W._label).replace("href",W._href).replace("title",W._title).getRegex(),W.reflink=Ue(W.reflink).replace("label",W._label).replace("ref",ee._label).getRegex(),W.nolink=Ue(W.nolink).replace("ref",ee._label).getRegex(),W.reflinkSearch=Ue(W.reflinkSearch,"g").replace("reflink",W.reflink).replace("nolink",W.nolink).getRegex(),W.normal={...W},W.pedantic={...W.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ue(/^!?\[(label)\]\((.*?)\)/).replace("label",W._label).getRegex(),reflink:Ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W._label).getRegex()},W.gfm={...W.normal,escape:Ue(W.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\l+" ".repeat(c.length));n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(r=a.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.space(n)){n=n.substring(r.raw.length),1===r.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?e.push(r):(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.fences(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(o.raw+="\n"+r.raw,o.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.table(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(i=n,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=n.slice(1);let c;this.options.extensions.startBlock.forEach(function(u){c=u.call({lexer:this},l),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(i=n.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){o=e[e.length-1],s&&"paragraph"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r),s=i.length!==n.length,n=n.substring(r.raw.length);continue}if(r=this.tokenizer.text(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r);continue}if(n){const a="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){let r,o,i,a,l,c,s=n;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+yb("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+yb("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,a.index+a[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;n;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>!!(r=u.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.escape(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.link(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(n,s,c)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(n,bb)){n=n.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(n,bb))){n=n.substring(r.raw.length),e.push(r);continue}if(i=n,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const d=n.slice(1);let g;this.options.extensions.startInline.forEach(function(m){g=m.call({lexer:this},d),"number"==typeof g&&g>=0&&(u=Math.min(u,g))}),u<1/0&&u>=0&&(i=n.substring(0,u+1))}if(r=this.tokenizer.inlineText(i,S2)){n=n.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(c=r.raw.slice(-1)),l=!0,o=e[e.length-1],o&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(n){const u="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}return e}}class ra{constructor(n){this.options=n||xo}code(n,e,r){const o=(e||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(n,o);null!=i&&i!==n&&(r=!0,n=i)}return n=n.replace(/\n$/,"")+"\n",o?'
'+(r?n:Ht(n,!0))+"
\n":"
"+(r?n:Ht(n,!0))+"
\n"}blockquote(n){return`
\n${n}
\n`}html(n){return n}heading(n,e,r,o){return this.options.headerIds?`${n}\n`:`${n}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(n,e,r){const o=e?"ol":"ul";return"<"+o+(e&&1!==r?' start="'+r+'"':"")+">\n"+n+"\n"}listitem(n){return`
  • ${n}
  • \n`}checkbox(n){return" "}paragraph(n){return`

    ${n}

    \n`}table(n,e){return e&&(e=`${e}`),"\n\n"+n+"\n"+e+"
    \n"}tablerow(n){return`\n${n}\n`}tablecell(n,e){const r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`\n`}strong(n){return`${n}`}em(n){return`${n}`}codespan(n){return`${n}`}br(){return this.options.xhtml?"
    ":"
    "}del(n){return`${n}`}link(n,e,r){if(null===(n=vb(this.options.sanitize,this.options.baseUrl,n)))return r;let o='",o}image(n,e,r){if(null===(n=vb(this.options.sanitize,this.options.baseUrl,n)))return r;let o=`${r}":">",o}text(n){return n}}class Mb{strong(n){return n}em(n){return n}codespan(n){return n}del(n){return n}html(n){return n}text(n){return n}link(n,e,r){return""+r}image(n,e,r){return""+r}br(){return""}}class Db{constructor(){this.seen={}}serialize(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(n,e){let r=n,o=0;if(this.seen.hasOwnProperty(r)){o=this.seen[n];do{o++,r=n+"-"+o}while(this.seen.hasOwnProperty(r))}return e||(this.seen[n]=o,this.seen[r]=0),r}slug(n,e={}){const r=this.serialize(n);return this.getNextSafeSlug(r,e.dryrun)}}class Jr{constructor(n){this.options=n||xo,this.options.renderer=this.options.renderer||new ra,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Mb,this.slugger=new Db}static parse(n,e){return new Jr(e).parse(n)}static parseInline(n,e){return new Jr(e).parseInline(n)}parse(n,e=!0){let o,i,s,a,l,c,u,d,g,m,y,M,E,x,b,k,q,re,be,r="";const Pn=n.length;for(o=0;o0&&"paragraph"===b.tokens[0].type?(b.tokens[0].text=re+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&"text"===b.tokens[0].tokens[0].type&&(b.tokens[0].tokens[0].text=re+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:re}):x+=re),x+=this.parse(b.tokens,E),g+=this.renderer.listitem(x,q,k);r+=this.renderer.list(g,y,M);continue;case"html":r+=this.renderer.html(m.text);continue;case"paragraph":r+=this.renderer.paragraph(this.parseInline(m.tokens));continue;case"text":for(g=m.tokens?this.parseInline(m.tokens):m.text;o+1{"function"==typeof r&&(o=r,r=null);const i={...r},s=function P2(t,n,e){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const o="

    An error occurred:

    "+Ht(r.message+"",!0)+"
    ";return n?Promise.resolve(o):e?void e(null,o):o}if(n)return Promise.reject(r);if(!e)throw r;e(r)}}((r={...te.defaults,...i}).silent,r.async,o);if(typeof e>"u"||null===e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function E2(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),o){const a=r.highlight;let l;try{r.hooks&&(e=r.hooks.preprocess(e)),l=t(e,r)}catch(d){return s(d)}const c=function(d){let g;if(!d)try{r.walkTokens&&te.walkTokens(l,r.walkTokens),g=n(l,r),r.hooks&&(g=r.hooks.postprocess(g))}catch(m){d=m}return r.highlight=a,d?s(d):o(null,g)};if(!a||a.length<3||(delete r.highlight,!l.length))return c();let u=0;return te.walkTokens(l,function(d){"code"===d.type&&(u++,setTimeout(()=>{a(d.text,d.lang,function(g,m){if(g)return c(g);null!=m&&m!==d.text&&(d.text=m,d.escaped=!0),u--,0===u&&c()})},0))}),void(0===u&&c())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(a=>t(a,r)).then(a=>r.walkTokens?Promise.all(te.walkTokens(a,r.walkTokens)).then(()=>a):a).then(a=>n(a,r)).then(a=>r.hooks?r.hooks.postprocess(a):a).catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));const a=t(e,r);r.walkTokens&&te.walkTokens(a,r.walkTokens);let l=n(a,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(a){return s(a)}}}function te(t,n,e){return Eb(Qr.lex,Jr.parse)(t,n,e)}!function d2(t,n,e){(n=function u2(t){var n=function c2(t,n){if("object"!==na(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!==na(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===na(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e}(Dc,"passThroughHooks",new Set(["preprocess","postprocess"])),te.options=te.setOptions=function(t){return function p2(t){xo=t}(te.defaults={...te.defaults,...t}),te},te.getDefaults=function hb(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},te.defaults=xo,te.use=function(...t){const n=te.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(e=>{const r={...e};if(r.async=te.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const i=n.renderers[o.name];n.renderers[o.name]=i?function(...s){let a=o.renderer.apply(this,s);return!1===a&&(a=i.apply(this,s)),a}:o.renderer}if(o.tokenizer){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");n[o.level]?n[o.level].unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&("block"===o.level?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:"inline"===o.level&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),r.extensions=n),e.renderer){const o=te.defaults.renderer||new ra;for(const i in e.renderer){const s=o[i];o[i]=(...a)=>{let l=e.renderer[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.renderer=o}if(e.tokenizer){const o=te.defaults.tokenizer||new Uh;for(const i in e.tokenizer){const s=o[i];o[i]=(...a)=>{let l=e.tokenizer[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.tokenizer=o}if(e.hooks){const o=te.defaults.hooks||new Dc;for(const i in e.hooks){const s=o[i];o[i]=Dc.passThroughHooks.has(i)?a=>{if(te.defaults.async)return Promise.resolve(e.hooks[i].call(o,a)).then(c=>s.call(o,c));const l=e.hooks[i].call(o,a);return s.call(o,l)}:(...a)=>{let l=e.hooks[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.hooks=o}if(e.walkTokens){const o=te.defaults.walkTokens;r.walkTokens=function(i){let s=[];return s.push(e.walkTokens.call(this,i)),o&&(s=s.concat(o.call(this,i))),s}}te.setOptions(r)})},te.walkTokens=function(t,n){let e=[];for(const r of t)switch(e=e.concat(n.call(te,r)),r.type){case"table":for(const o of r.header)e=e.concat(te.walkTokens(o.tokens,n));for(const o of r.rows)for(const i of o)e=e.concat(te.walkTokens(i.tokens,n));break;case"list":e=e.concat(te.walkTokens(r.items,n));break;default:te.defaults.extensions&&te.defaults.extensions.childTokens&&te.defaults.extensions.childTokens[r.type]?te.defaults.extensions.childTokens[r.type].forEach(function(o){e=e.concat(te.walkTokens(r[o],n))}):r.tokens&&(e=e.concat(te.walkTokens(r.tokens,n)))}return e},te.parseInline=Eb(Qr.lexInline,Jr.parseInline),te.Parser=Jr,te.parser=Jr.parse,te.Renderer=ra,te.TextRenderer=Mb,te.Lexer=Qr,te.lexer=Qr.lex,te.Tokenizer=Uh,te.Slugger=Db,te.Hooks=Dc,te.parse=te;class Ec{}class jh{}class ur{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const o=e.slice(0,r),i=o.toLowerCase(),s=e.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=e.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(e,i)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof ur?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(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new ur;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ur?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=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,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...r),this.headers.set(e,o);break;case"d":const i=n.value;if(i){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class O2{encodeKey(n){return xb(n)}encodeValue(n){return xb(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const T2=/%(\d[a-f0-9])/gi,k2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xb(t){return encodeURIComponent(t).replace(T2,(n,e)=>k2[e]??n)}function xc(t){return`${t}`}class eo{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new O2,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function I2(t,n){const e=new Map;return t.length>0&&t.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=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const r=n.fromObject[e],o=Array.isArray(r)?r.map(xc):[xc(r)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(i=>{e.push({param:r,value:i,op:"a"})}):e.push({param:r,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new eo({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}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 e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(xc(n.value)),this.map.set(n.param,e);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(xc(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 A2{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),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 Sb(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Pb(t){return typeof Blob<"u"&&t instanceof Blob}function Ob(t){return typeof FormData<"u"&&t instanceof FormData}class oa{constructor(n,e,r,o){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function N2(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new ur),this.context||(this.context=new A2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(g,n.setHeaders[g]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,g)=>d.set(g,n.setParams[g]),c)),new oa(e,r,i,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:s})}}var mt=(()=>((mt=mt||{})[mt.Sent=0]="Sent",mt[mt.UploadProgress=1]="UploadProgress",mt[mt.ResponseHeader=2]="ResponseHeader",mt[mt.DownloadProgress=3]="DownloadProgress",mt[mt.Response=4]="Response",mt[mt.User=5]="User",mt))();class zh{constructor(n,e=200,r="OK"){this.headers=n.headers||new ur,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Gh extends zh{constructor(n={}){super(n),this.type=mt.ResponseHeader}clone(n={}){return new Gh({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 Ai extends zh{constructor(n={}){super(n),this.type=mt.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ai({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 Ib extends zh{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Wh(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Sc=(()=>{class t{constructor(e){this.handler=e}request(e,r,o={}){let i;if(e instanceof oa)i=e;else{let l,c;l=o.headers instanceof ur?o.headers:new ur(o.headers),o.params&&(c=o.params instanceof eo?o.params:new eo({fromObject:o.params})),i=new oa(e,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})}const s=ce(i).pipe(Ei(l=>this.handler.handle(l)));if(e instanceof oa||"events"===o.observe)return s;const a=s.pipe(Or(l=>l instanceof Ai));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ye(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(ye(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(ye(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ye(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new eo).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,Wh(o,r))}post(e,r,o={}){return this.request("POST",e,Wh(o,r))}put(e,r,o={}){return this.request("PUT",e,Wh(o,r))}}return t.\u0275fac=function(e){return new(e||t)(V(Ec))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function Tb(t,n){return n(t)}function F2(t,n){return(e,r)=>n.intercept(e,{handle:o=>t(o,r)})}const B2=new j(""),ia=new j(""),kb=new j("");function V2(){let t=null;return(n,e)=>(null===t&&(t=(z(B2,{optional:!0})??[]).reduceRight(F2,Tb)),t(n,e))}let Ab=(()=>{class t extends Ec{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(ia),...this.injector.get(kb,[])]));this.chain=r.reduceRight((o,i)=>function L2(t,n,e){return(r,o)=>e.runInContext(()=>n(r,i=>t(i,o)))}(o,i,this.injector),Tb)}return this.chain(e,r=>this.backend.handle(r))}}return t.\u0275fac=function(e){return new(e||t)(V(jh),V(nr))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const j2=/^\)\]\}',?\n/;let Rb=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?vt(r.\u0275loadImpl()):ce(null)).pipe(Un(()=>new Ee(i=>{const s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((b,k)=>s.setRequestHeader(b,k.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&s.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();s.responseType="json"!==b?b:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=s.statusText||"OK",k=new ur(s.getAllResponseHeaders()),q=function z2(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return l=new Gh({headers:k,status:s.status,statusText:b,url:q}),l},u=()=>{let{headers:b,status:k,statusText:q,url:re}=c(),be=null;204!==k&&(be=typeof s.response>"u"?s.responseText:s.response),0===k&&(k=be?200:0);let Pn=k>=200&&k<300;if("json"===e.responseType&&"string"==typeof be){const Uc=be;be=be.replace(j2,"");try{be=""!==be?JSON.parse(be):null}catch(WH){be=Uc,Pn&&(Pn=!1,be={error:WH,text:be})}}Pn?(i.next(new Ai({body:be,headers:b,status:k,statusText:q,url:re||void 0})),i.complete()):i.error(new Ib({error:be,headers:b,status:k,statusText:q,url:re||void 0}))},d=b=>{const{url:k}=c(),q=new Ib({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:k||void 0});i.error(q)};let g=!1;const m=b=>{g||(i.next(c()),g=!0);let k={type:mt.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(k.total=b.total),"text"===e.responseType&&s.responseText&&(k.partialText=s.responseText),i.next(k)},y=b=>{let k={type:mt.UploadProgress,loaded:b.loaded};b.lengthComputable&&(k.total=b.total),i.next(k)};let M;s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),e.reportProgress&&(s.addEventListener("progress",m),null!==a&&s.upload&&s.upload.addEventListener("progress",y));const E=()=>{M??=function W2(){const t=setTimeout(()=>{},G2);return()=>clearTimeout(t)}()},x=()=>{M?.()};return s.addEventListener("loadstart",E),s.addEventListener("loadend",x),s.send(a),i.next({type:mt.Sent}),()=>{s.removeEventListener("loadstart",E),s.removeEventListener("loadend",x),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),M?.(),e.reportProgress&&(s.removeEventListener("progress",m),null!==a&&s.upload&&s.upload.removeEventListener("progress",y)),s.readyState!==s.DONE&&s.abort()}})))}}return t.\u0275fac=function(e){return new(e||t)(V(Aw))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const G2=2147483647,qh=new j("XSRF_ENABLED"),Fb=new j("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Lb=new j("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Bb{}let Z2=(()=>{class t{constructor(e,r,o){this.doc=e,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=bw(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(V(qt),V(jr),V(Fb))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function X2(t,n){const e=t.url.toLowerCase();if(!z(qh)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const r=z(Bb).getToken(),o=z(Lb);return null!=r&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,r)})),n(t)}var ct=(()=>((ct=ct||{})[ct.Interceptors=0]="Interceptors",ct[ct.LegacyInterceptors=1]="LegacyInterceptors",ct[ct.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ct[ct.NoXsrfProtection=3]="NoXsrfProtection",ct[ct.JsonpSupport=4]="JsonpSupport",ct[ct.RequestsMadeViaParent=5]="RequestsMadeViaParent",ct))();function Ni(t,n){return{\u0275kind:t,\u0275providers:n}}function K2(...t){const n=[Sc,Rb,Ab,{provide:Ec,useExisting:Ab},{provide:jh,useExisting:Rb},{provide:ia,useValue:X2,multi:!0},{provide:qh,useValue:!0},{provide:Bb,useClass:Z2}];for(const e of t)n.push(...e.\u0275providers);return function td(t){return{\u0275providers:t}}(n)}const Vb=new j("LEGACY_INTERCEPTOR_FN");let J2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({providers:[K2(Ni(ct.LegacyInterceptors,[{provide:Vb,useFactory:V2},{provide:ia,useExisting:Vb,multi:!0}]))]}),t})();const iB=["*"];let Hb=(()=>{class t{constructor(){this._buttonClick$=new nt,this.copied$=this._buttonClick$.pipe(Un(()=>Nf(ce(!0),function r2(t=0,n,e=t2){let r=-1;return null!=n&&(Of(n)?e=n:r=n),new Ee(o=>{let i=function n2(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;i<0&&(i=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}(3e3).pipe(d0(!1)))),function o2(t,n=Gn){return t=t??i2,Xe((e,r)=>{let o,i=!0;e.subscribe(Ke(r,s=>{const a=n(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}(),function a2(t,n,e){let r,o=!1;return t&&"object"==typeof t?({bufferSize:r=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:e}=t):r=t??1/0,Rf({connector:()=>new s2(r,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}(1)),this.copiedText$=this.copied$.pipe(c0(!1),ye(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(e,r){1&e&&(p(0,"button",0),_("click",function(){return r.onCopyToClipboardClick()}),ip(1,"async"),f(2),ip(3,"async"),h()),2&e&&(Es("copied",sp(1,3,r.copied$)),v(2),_e(sp(3,5,r.copiedText$)))},dependencies:[Pw],encapsulation:2,changeDetection:0}),t})();class lB{}var to=(()=>((to=to||{}).CommandLine="command-line",to.LineHighlight="line-highlight",to.LineNumbers="line-numbers",to))();class uB{}const $b=new j("SECURITY_CONTEXT");let Pc=(()=>{class t{get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}constructor(e,r,o,i,s,a){this.platform=e,this.securityContext=r,this.http=o,this.clipboardOptions=i,this.sanitizer=a,this.DEFAULT_MARKED_OPTIONS={renderer:new ra},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:this.DEFAULT_MARKED_OPTIONS,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new nt,this.reload$=this._reload$.asObservable(),this.options=s}parse(e,r=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:o,inline:i,emoji:s,mermaid:a,disableSanitizer:l}=r,c={...this.options,...r.markedOptions};a&&(this.renderer=this.extendRenderer(c.renderer||new ra));const u=this.trimIndentation(e),d=o?this.decodeHtml(u):u,g=s?this.parseEmoji(d):d,m=this.parseMarked(g,c,i);return(l?m:this.sanitizer.sanitize(this.securityContext,m))||""}render(e,r=this.DEFAULT_RENDER_OPTIONS,o){const{clipboard:i,clipboardOptions:s,katex:a,katexOptions:l,mermaid:c,mermaidOptions:u}=r;i&&this.renderClipboard(e,o,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),a&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...l}),c&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...u}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(ye(r=>this.handleExtension(e,r)))}highlight(e){if(!Mi(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const r=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(r,o=>o.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!Mi(this.platform))return e;const r=document.createElement("textarea");return r.innerHTML=e,r.value}extendRenderer(e){const r=e;if(!0===r.\u0275NgxMarkdownRendererExtended)return e;const o=e.code;return e.code=function(i,s,a){return"mermaid"===s?`
    ${i}
    `:o.call(this,i,s,a)},r.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,r){const o=e.lastIndexOf("://"),i=o>-1?e.substring(o+4):e,s=i.lastIndexOf("/"),a=s>-1?i.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&"md"!==c?"```"+c+"\n"+r+"\n```":r}parseMarked(e,r,o=!1){return o?te.parseInline(e,r):te.parse(e,r)}parseEmoji(e){if(!Mi(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,r){if(Mi(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,r)}}renderClipboard(e,r,o){if(!Mi(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!r)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:i,buttonTemplate:s}=o,a=e.querySelectorAll("pre");for(let l=0;ld.style.opacity="1",c.onmouseout=()=>d.style.opacity="0",g=i?r.createComponent(i).hostView:s?r.createEmbeddedView(s):r.createComponent(Hb).hostView,g.rootNodes.forEach(y=>{y.onmouseover=()=>d.style.opacity="1",d.appendChild(y),m=new ClipboardJS(y,{text:()=>c.innerText})}),g.onDestroy(()=>m.destroy())}}renderMermaid(e,r=this.DEFAULT_MERMAID_OPTIONS){if(!Mi(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.init>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const o=e.querySelectorAll(".mermaid");0!==o.length&&(mermaid.initialize(r),mermaid.init(o))}trimIndentation(e){if(!e)return"";let r;return e.split("\n").map(o=>{let i=r;return o.length>0&&(i=isNaN(i)?o.search(/\S|$/):Math.min(o.search(/\S|$/),i)),isNaN(r)&&(r=i),i?o.substring(i):o}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(V(jr),V($b),V(Sc,8),V(lB,8),V(uB,8),V(hh))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Ub=(()=>{class t{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(e){this._disableSanitizer=this.coerceBooleanProperty(e)}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get srcRelativeLink(){return this._srcRelativeLink}set srcRelativeLink(e){this._srcRelativeLink=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}constructor(e,r,o){this.element=e,this.markdownService=r,this.viewContainerRef=o,this.error=new le,this.load=new le,this.ready=new le,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this._srcRelativeLink=!1,this.destroyed$=new nt}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(function l2(t){return Xe((n,e)=>{un(t).subscribe(Ke(e,()=>e.complete(),Nr)),!e.closed&&n.subscribe(e)})}(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,r=!1){let o;this.src&&this.srcRelativeLink&&(o={baseUrl:new URL(this.src,location.origin).pathname});const s={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},a=this.markdownService.parse(e,{decodeHtml:r,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,markedOptions:o,disableSanitizer:this.disableSanitizer});this.element.nativeElement.innerHTML=a,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,s,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e),this.load.emit(e)},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,to.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,to.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,r){const o=e.querySelectorAll("pre");for(let i=0;i{const a=r[s];if(a){const l=this.toLispCase(s);o.item(i).setAttribute(l,a.toString())}})}toLispCase(e){const r=e.match(/([A-Z])/g);if(!r)return e;let o=e.toString();for(let i=0,s=r.length;i{class t{static forRoot(e){return{ngModule:t,providers:[Pc,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:$b,useValue:e&&null!=e.sanitize?e.sanitize:$e.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({imports:[Ql]}),t})();var jb;!function(t){let n;var o;let e,r;(o=n=t.SecurityLevel||(t.SecurityLevel={})).Strict="strict",o.Loose="loose",o.Antiscript="antiscript",o.Sandbox="sandbox",function(o){o.Base="base",o.Forest="forest",o.Dark="dark",o.Default="default",o.Neutral="neutral"}(e=t.Theme||(t.Theme={})),function(o){o[o.Debug=1]="Debug",o[o.Info=2]="Info",o[o.Warn=3]="Warn",o[o.Error=4]="Error",o[o.Fatal=5]="Fatal"}(r=t.LogLevel||(t.LogLevel={}))}(jb||(jb={}));let zb=(()=>{class t{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(w(br),w(zt))},t.\u0275dir=ue({type:t}),t})(),So=(()=>{class t extends zb{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=At(t)))(r||t)}}(),t.\u0275dir=ue({type:t,features:[Fe]}),t})();const dr=new j("NgValueAccessor"),CB={provide:dr,useExisting:je(()=>Ri),multi:!0};let Ri=(()=>{class t extends So{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=At(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&_("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[Qe([CB]),Fe]}),t})();const yB={provide:dr,useExisting:je(()=>Nt),multi:!0},bB=new j("CompositionEventMode");let Nt=(()=>{class t extends zb{constructor(e,r,o){super(e,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function wB(){const t=Wr()?Wr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(w(br),w(zt),w(bB,8))},t.\u0275dir=ue({type:t,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(e,r){1&e&&_("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[Qe([yB]),Fe]}),t})();function no(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}const $t=new j("NgValidators"),ro=new j("NgAsyncValidators");function Oc(t){return null}function eM(t){return null!=t}function tM(t){return Ds(t)?vt(t):t}function nM(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function rM(t,n){return n.map(e=>e(t))}function oM(t){return t.map(n=>function DB(t){return!t.validate}(n)?n:e=>n.validate(e))}function Yh(t){return null!=t?function iM(t){if(!t)return null;const n=t.filter(eM);return 0==n.length?null:function(e){return nM(rM(e,n))}}(oM(t)):null}function Zh(t){return null!=t?function sM(t){if(!t)return null;const n=t.filter(eM);return 0==n.length?null:function(e){return function vB(...t){const n=If(t),{args:e,keys:r}=n0(t),o=new Ee(i=>{const{length:s}=e;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]=g},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?o0(r,a):a),i.complete())}))}});return n?o.pipe(r0(n)):o}(rM(e,n).map(tM)).pipe(ye(nM))}}(oM(t)):null}function aM(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Xh(t){return t?Array.isArray(t)?t:[t]:[]}function Ic(t,n){return Array.isArray(t)?t.includes(n):t===n}function uM(t,n){const e=Xh(n);return Xh(t).forEach(o=>{Ic(e,o)||e.push(o)}),e}function dM(t,n){return Xh(n).filter(e=>!Ic(t,e))}class pM{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=Yh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Zh(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,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Zt extends pM{get formDirective(){return null}get path(){return null}}class oo extends pM{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class hM{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 St=(()=>{class t extends hM{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(w(oo,2))},t.\u0275dir=ue({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&Es("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Fe]}),t})();const aa="VALID",kc="INVALID",Fi="PENDING",la="DISABLED";function Ac(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class _M{constructor(n,e){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(e)}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===aa}get invalid(){return this.status===kc}get pending(){return this.status==Fi}get disabled(){return this.status===la}get enabled(){return this.status!==la}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(uM(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(uM(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(dM(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(dM(n,this._rawAsyncValidators))}hasValidator(n){return Ic(this._rawValidators,n)}hasAsyncValidator(n){return Ic(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(e=>{e.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(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Fi,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=la,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:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=aa,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),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===aa||this.status===Fi)&&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(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?la:aa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Fi,this._hasOwnPendingAsyncValidator=!0;const e=tM(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,o)=>r&&r._find(o),this)}getError(n,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}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 le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?la:this.errors?kc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fi)?Fi:this._anyControlsHaveStatus(kc)?kc:aa}_anyControlsHaveStatus(n){return this._anyControls(e=>e.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){Ac(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 OB(t){return Array.isArray(t)?Yh(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function IB(t){return Array.isArray(t)?Zh(t):t||null}(this._rawAsyncValidators)}}const Li=new j("CallSetDisabledState",{providedIn:"root",factory:()=>Nc}),Nc="always";function ca(t,n,e=Nc){(function nf(t,n){const e=function lM(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(aM(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const r=function cM(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(aM(r,n.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();Lc(n._rawValidators,o),Lc(n._rawAsyncValidators,o)})(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function AB(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&vM(t,n)})}(t,n),function RB(t,n){const e=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function NB(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&vM(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function kB(t,n){if(n.valueAccessor.setDisabledState){const e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Lc(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function vM(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function wM(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function bM(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const MM=class extends _M{constructor(n=null,e,r){super(function Jh(t){return(Ac(t)?t.validators:t)||null}(e),function ef(t,n){return(Ac(n)?n.asyncValidators:t)||null}(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ac(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=bM(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){wM(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){wM(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){bM(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}},jB={provide:oo,useExisting:je(()=>Dt)},xM=(()=>Promise.resolve())();let Dt=(()=>{class t extends oo{constructor(e,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new MM,this._registered=!1,this.name="",this.update=new le,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function af(t,n){if(!n)return null;let e,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===Nt?e=i:function BB(t){return Object.getPrototypeOf(t.constructor)===So}(i)?r=i:o=i}),o||r||e||null}(0,i)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function sf(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){ca(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(e){xM.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,o=0!==r&&function bi(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(r);xM.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Rc(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(w(Zt,9),w($t,10),w(ro,10),w(dr,10),w(Bl,8),w(Li,8))},t.\u0275dir=ue({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Qe([jB]),Fe,en]}),t})();const GB={provide:dr,useExisting:je(()=>Vc),multi:!0};let Vc=(()=>{class t extends So{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=r=>{e(""==r?null:parseFloat(r))}}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=At(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,r){1&e&&_("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[Qe([GB]),Fe]}),t})(),SM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({}),t})();const eV={provide:dr,useExisting:je(()=>Po),multi:!0};function NM(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Po=(()=>{class t extends So{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=NM(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){const r=function tV(t){return t.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r):e}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=At(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,r){1&e&&_("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Qe([eV]),Fe]}),t})(),da=(()=>{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(NM(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(w(zt),w(br),w(Po,9))},t.\u0275dir=ue({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const nV={provide:dr,useExisting:je(()=>pf),multi:!0};function RM(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let pf=(()=>{class t extends So{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let r;if(this.value=e,Array.isArray(e)){const o=e.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(RM(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(RM(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(w(zt),w(br),w(pf,9))},t.\u0275dir=ue({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function LM(t){return"number"==typeof t?t:parseFloat(t)}let Oo=(()=>{class t{constructor(){this._validator=Oc}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Oc,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ue({type:t,features:[en]}),t})();const oV={provide:$t,useExisting:je(()=>Hc),multi:!0};let Hc=(()=>{class t extends Oo{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>LM(e),this.createValidator=e=>function qb(t){return n=>{if(no(n.value)||no(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=At(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&ir("max",r._enabled?r.max:null)},inputs:{max:"max"},features:[Qe([oV]),Fe]}),t})();const iV={provide:$t,useExisting:je(()=>$c),multi:!0};let $c=(()=>{class t extends Oo{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>LM(e),this.createValidator=e=>function Wb(t){return n=>{if(no(n.value)||no(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({imports:[SM]}),t})(),fV=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Li,useValue:e.callSetDisabledState??Nc}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({imports:[pV]}),t})();class jM{constructor(n,e,r,o="",i="en",s="",a=!1){this.Title=n,this.Pages=r,this.Password=o,this.Language=i,this.Author=e,this.Description=s,this.IsPrivate=a,this.setUndefinedValues()}setUndefinedValues(){void 0===this.Password&&(this.Password=""),void 0===this.Language&&(this.Language=""),void 0===this.Author&&(this.Author=""),void 0===this.Password&&(this.Password=""),void 0===this.Description&&(this.Description="")}}class gV{constructor(n,e="",r=""){this.Content=n,this.Hint=e,this.Result=r}}var pr=(()=>((pr=pr||{})[pr.NONE=0]="NONE",pr[pr.USER=1]="USER",pr[pr.ADMIN=2]="ADMIN",pr))();class Q{}Q.userLevel=pr.NONE,Q.userName="",Q.password="";let ha=(()=>{class t{static isChapterVerified(e){for(let r of this.verifyCache)if(r.name==e)return!0;return!1}static verifyChapter(e,r,o=!0){for(let i of this.verifyCache)if(i.name==e)return void(i.pwd=r);this.verifyCache.push({name:e,pwd:r}),""!=r&&o&&localStorage.setItem("verifyCache",JSON.stringify(this.verifyCache))}static setCache(e){this.verifyCache=e}}return t.verifyCache=[],t})(),an=(()=>{class t{constructor(e){if(this.router=e,this.rememberPage=!0,this.rememberPage=this.getRememberPage(),this.getStayLoggedIn()){const o=this.getUserName(),i=this.getPassword();null!=o&&null!=i&&(this.router.navigate(["/login"]),this.setStayLoggedIn(!0))}let r=localStorage.getItem("verifyCache");r=null==r?[]:JSON.parse(r);for(let o of r)ha.verifyChapter(o.name,o.pwd,!1)}getLanguageTo(){return localStorage.getItem("languageTo")??"en"}setLanguageTo(e){localStorage.setItem("languageTo",e)}getRememberPage(){let e=localStorage.getItem("rememberPage");return null==e||"true"==e}setRememberPage(e){localStorage.setItem("rememberPage",e?"true":"false"),this.rememberPage=e}setColorScheme(e){localStorage.setItem("colorScheme",e?"dark":"light")}getColorScheme(){return localStorage.getItem("colorScheme")}setFontSize(e){localStorage.setItem("fontSize",e.toString())}getFontSize(){let e=localStorage.getItem("fontSize");return null==e?16:parseInt(e)}setPageForChapter(e,r){localStorage.setItem(e,r.toString())}getPageForChapter(e){if(!this.rememberPage)return 0;let r=localStorage.getItem(e);return null==r?0:parseInt(r)}getServerHost(){return localStorage.getItem("serverHost")??"localhost"}setServerHost(e){localStorage.setItem("serverHost",e),Ae.host=e}getServerPort(){let e=localStorage.getItem("serverPort");return null==e?52773:parseInt(e)}setServerPort(e){localStorage.setItem("serverPort",e.toString()),Ae.port=e}getUserName(){return localStorage.getItem("userName")}setUserName(e){localStorage.setItem("userName",e)}setStayLoggedIn(e){localStorage.setItem("stayLoggedIn",e?"true":"false")}getStayLoggedIn(){let e=localStorage.getItem("stayLoggedIn");return null!=e&&"true"==e}removeUserName(){localStorage.removeItem("userName")}getPassword(){return localStorage.getItem("password")}setPassword(e){localStorage.setItem("password",e)}removePassword(){localStorage.removeItem("password")}getAllServerConnections(){let e=localStorage.getItem("serverConnections");return null==e?[]:JSON.parse(e)}getConnection(e){let r=this.getAllServerConnections();for(let o=0;o{class t{constructor(e,r){this.http=e,this.localStorageService=r,t.host=r.getServerHost(),t.port=r.getServerPort()}isServerOnline(){return this.http.get("http://"+t.host+":"+t.port+"/woop/ping").pipe(We(e=>{throw new Error("error")}))}getVersion(){return this.http.get("http://"+t.host+":"+t.port+"/woop/version")}checkUser(e,r){return this.http.get("http://"+t.host+":"+t.port+"/woop/user/check?username="+e+"&password="+r).pipe(We(o=>{throw 404===o.status?new Error("Username or password is wrong"):0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getAllChapters(){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/get/all")}verifyChapter(e,r){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/verify?title="+e+"&password="+r).pipe(We(o=>{throw 404===o.status?new Error("Could not find chapter"):0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getChapterPassword(e,r,o){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/get/password?title="+e+"&username="+r+"&password="+o).pipe(We(i=>{throw 404===i.status?new Error("Could not find chapter"):401===i.status?new Error("Unauthorized"):0===i.status?new Error("Server is offline"):new Error("unknown error: "+i.status)}))}addNewChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/new",e).pipe(We(r=>{throw 409===r.status?new Error("Chapter already exists"):500===r.status?new Error("Chapter could not be saved"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}updateChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/update",e).pipe(We(r=>{throw 404===r.status?new Error("Chapter not found"):500===r.status?new Error("Chapter could not be updated"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}importChapter(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/import?username="+e+"&password="+r,o).pipe(We(i=>{throw 401===i.status?new Error("Unauthorized"):500===i.status?new Error("Chapter could not be imported"):0===i.status?new Error("Server is offline"):new Error("unknown error: "+i.status)}))}deleteChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/delete",e).pipe(We(r=>{throw 404===r.status?new Error("Chapter not found"):500===r.status?new Error("Chapter could not be deleted"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}uploadImage(e,r){return this.http.post("http://"+t.host+":"+t.port+"/woop/image/upload",{Name:e,Content:r}).pipe(We(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}uploadFile(e,r){return this.http.post("http://"+t.host+":"+t.port+"/woop/file/upload",{Name:e,Content:r}).pipe(We(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getFile(e){return this.http.get("http://"+t.host+":"+t.port+"/woop/file/get/"+e).pipe(We(r=>{throw 404===r.status?new Error("File not found"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}translateText(e,r){return this.http.post("http://"+t.host+":"+t.port+"/woop/translate/text",{text:e,to:r}).pipe(We(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getAllImageNames(){return this.http.get("http://"+t.host+":"+t.port+"/woop/image/name/get/all").pipe(We(e=>{throw 500===e.status?new Error("Could not get image names"):0===e.status?new Error("Server is offline"):new Error("unknown error: "+e.status)}))}getAllFileNames(){return this.http.get("http://"+t.host+":"+t.port+"/woop/file/name/get/all").pipe(We(e=>{throw 500===e.status?new Error("Could not get file names"):0===e.status?new Error("Server is offline"):new Error("unknown error: "+e.status)}))}addUser(e,r,o,i){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/add",{userName:e,password:r,newUserName:o,newPassword:i}).pipe(We(s=>{throw 401===s.status?new Error("Unauthorized"):409===s.status?new Error("User already exists"):0===s.status?new Error("Server is offline"):(console.log(s.message),new Error("unknown error: "+s.status))}))}deleteUser(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/delete",{userName:e,password:r,userNameToDelete:o}).pipe(We(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}makeUserAdmin(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/make/admin",{userName:e,password:r,userNameToMakeAdmin:o}).pipe(We(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}changePassword(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/change/password",{userName:e,password:r,newPassword:o}).pipe(We(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}deployAll(e,r){return this.http.get("http://"+t.host+":"+t.port+"/woop/deploy/all?username="+e+"&password="+r).pipe(We(o=>{throw 401===o.status?new Error("Unauthorized"):500===o.status?new Error("Something went wrong (500)"):0===o.status?new Error("Server is offline"):(console.log(o.message),new Error("unknown error: "+o.status))}))}}return t.host="localhost",t.port=52773,t.\u0275fac=function(e){return new(e||t)(V(Sc),V(an))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function mV(t,n){if(1&t&&(p(0,"p",12),f(1),h()),2&t){const e=D();v(1),_e(e.wrongMessage)}}let zM=(()=>{class t{constructor(e,r,o){this.apiService=e,this.location=r,this.localStorageService=o,this.enteredPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage="",this.type="password",this.rememberMe=!1,this.stayLoggedIn=!1,this.rememberMe=o.getRememberPage(),this.stayLoggedIn=o.getStayLoggedIn();let i=o.getUserName();null!=i&&(this.entereduserName=i);let s=o.getPassword();null!=s&&(this.enteredPassword=s,this.submit())}submit(){this.apiService.checkUser(this.entereduserName,this.enteredPassword).subscribe({next:e=>{e.level>0&&(Q.userLevel=e.level,Q.userName=e.username,Q.password=this.enteredPassword,(this.rememberMe||this.stayLoggedIn)&&(this.localStorageService.setUserName(this.entereduserName),this.localStorageService.setPassword(this.enteredPassword)),this.localStorageService.setStayLoggedIn(this.stayLoggedIn),this.close())},error:e=>{this.wrongMessage=e.message,this.isWrong=!0,this.enteredPassword="",this.entereduserName=""}})}viewPassword(){this.type="password"===this.type?"text":"password"}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Yr),w(an))},t.\u0275cmp=ie({type:t,selectors:[["app-log-in"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},decls:21,vars:7,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["name","password","placeholder","Password",1,"passwordInput",3,"type","ngModel","ngModelChange","keydown.enter"],[1,"rememberMe"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"label",3,"click"],[1,"stayLoggedIn"],[1,"submitButton",3,"click","keydown.enter"],[1,"viewButton",3,"click"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Log in"),h(),T(4,mV,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"div",6)(10,"input",7),_("ngModelChange",function(i){return r.rememberMe=i}),h(),p(11,"p",8),_("click",function(){return r.rememberMe=!r.rememberMe}),f(12,"Remember me"),h()(),p(13,"div",9)(14,"input",7),_("ngModelChange",function(i){return r.stayLoggedIn=i}),h(),p(15,"p",8),_("click",function(){return r.stayLoggedIn=!r.stayLoggedIn}),f(16,"Stay logged in"),h()(),p(17,"button",10),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(18," Submit "),h(),p(19,"button",11),_("click",function(){return r.viewPassword()}),f(20),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("ngModel",r.entereduserName),v(1),C("type",r.type)("ngModel",r.enteredPassword),v(2),C("ngModel",r.rememberMe),v(4),C("ngModel",r.stayLoggedIn),v(6),ot(" ","password"==r.type?"View":"Hide"," "))},dependencies:[Te,Nt,Ri,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:350px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:45%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:45%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:30%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:60%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}.stayLoggedIn[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.stayLoggedIn[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.stayLoggedIn[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function GM(t,n,e,r,o,i,s){try{var a=t[i](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(r,o)}function Bi(t){return function(){var n=this,e=arguments;return new Promise(function(r,o){var i=t.apply(n,e);function s(l){GM(i,r,o,s,a,"next",l)}function a(l){GM(i,r,o,s,a,"throw",l)}s(void 0)})}}let Io=(()=>{class t{constructor(e){this.apiService=e,this.chapters=[],this.allChapters=[],this.initDone=!1,this.errorChapter=new jM("Error 404","",[]),this.currentChapter=this.errorChapter,this.init()}init(){var e=this;return Bi(function*(){if(!e.initDone){e.allChapters=yield e.apiService.getAllChapters().toPromise();for(let r of e.allChapters){void 0===r.Password&&(r.Password=""),void 0===r.Language&&(r.Language=""),void 0===r.Author&&(r.Author=""),void 0===r.IsPrivate&&(r.IsPrivate=!1),void 0===r.Description&&(r.Description=""),void 0===r.Pages&&(r.Pages=[]);for(let o of r.Pages)void 0===o.Content&&(o.Content=""),void 0===o.Hint&&(o.Hint=""),void 0===o.Result&&(o.Result="");""===r.Password&&ha.verifyChapter(r.Title,"")}e.allChapters=e.sortChaptersAlphabetically(e.allChapters),e.chapters=e.allChapters,e.initDone=!0}})()}sortChaptersAlphabetically(e){return e.sort((r,o)=>r.Title.localeCompare(o.Title))}getChapterByName(e,r){e=e.toLowerCase();for(let o of this.chapters)if(r){if(o.Title.replace(/\s/g,"-").toLowerCase()==e)return o}else if(o.Title.toLowerCase()==e)return o;return this.errorChapter}}return t.\u0275fac=function(e){return new(e||t)(V(Ae))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ff=(()=>{class t{constructor(e){this.apiService=e,this.version="unknown",this.date="unknown",this.notes=[],this.instanceName="Server",this.init()}init(){this.apiService.getVersion().subscribe({next:e=>{this.version=e.version,this.date=e.date,this.notes=e.notes.split(";"),this.instanceName=e.instanceName},error:e=>{this.version="unknown",this.date="unknown",this.notes=[],this.instanceName="Server"}})}}return t.\u0275fac=function(e){return new(e||t)(V(Ae))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Vi=(()=>{class t{constructor(e){this.localStorageService=e,this.darkModeEnabled=!1;let r=this.localStorageService.getColorScheme();null==r&&(r=this.detectPrefersColorScheme()),"dark"===r?this.darkMode():this.lightMode()}isDarkModeEnabled(){return this.darkModeEnabled}darkMode(){document.documentElement.setAttribute("data-theme","dark"),this.darkModeEnabled=!0,this.localStorageService.setColorScheme(!0)}lightMode(){document.documentElement.setAttribute("data-theme","light"),this.darkModeEnabled=!1,this.localStorageService.setColorScheme(!1)}funkyMode(){document.documentElement.setAttribute("data-theme","funky"),this.darkModeEnabled=!0}oceanMode(){document.documentElement.setAttribute("data-theme","ocean"),this.darkModeEnabled=!1}sunsetMode(){document.documentElement.setAttribute("data-theme","sunset"),this.darkModeEnabled=!1}rubyMode(){document.documentElement.setAttribute("data-theme","ruby"),this.darkModeEnabled=!0}coralMode(){document.documentElement.setAttribute("data-theme","coral"),this.darkModeEnabled=!1}lavenderMode(){document.documentElement.setAttribute("data-theme","lavender"),this.darkModeEnabled=!0}detectPrefersColorScheme(){return"not all"!==window.matchMedia("(prefers-color-scheme)").media&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}return t.\u0275fac=function(e){return new(e||t)(V(an))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["app-loading-screen"]],decls:15,vars:0,consts:[[1,"loadingscrren"],[1,"background"],[1,"lds-default"]],template:function(e,r){1&e&&(p(0,"div",0),K(1,"div",1),p(2,"div",2),K(3,"div")(4,"div")(5,"div")(6,"div")(7,"div")(8,"div")(9,"div")(10,"div")(11,"div")(12,"div")(13,"div")(14,"div"),h()())},styles:[".background[_ngcontent-%COMP%]{width:100%;height:100%;position:fixed;top:0;left:0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.lds-default[_ngcontent-%COMP%]{display:inline-block;width:80px;height:80px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;width:6px;height:6px;background:var(--secondary-color);border-radius:50%;animation:_ngcontent-%COMP%_lds-default 1.2s linear infinite}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s;top:37px;left:66px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.1s;top:22px;left:62px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.2s;top:11px;left:52px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:-.3s;top:7px;left:37px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:-.4s;top:11px;left:22px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){animation-delay:-.5s;top:22px;left:11px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){animation-delay:-.6s;top:37px;left:7px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){animation-delay:-.7s;top:52px;left:11px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(9){animation-delay:-.8s;top:62px;left:22px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(10){animation-delay:-.9s;top:66px;left:37px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(11){animation-delay:-1s;top:62px;left:52px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes _ngcontent-%COMP%_lds-default{0%,20%,80%,to{transform:scale(1)}50%{transform:scale(1.5)}}"]}),t})();function vV(t,n){if(1&t){const e=Y();p(0,"button",6),_("click",function(){return R(e),F(D().deploy())}),f(1,"Deploy"),h()}}function CV(t,n){if(1&t){const e=Y();p(0,"button",11),_("click",function(){return R(e),F(D().toggleLogIn())})("keydown.control.alt.l",function(){return R(e),F(D().toggleLogIn())},!1,Re),f(1," Log in "),h()}}function yV(t,n){if(1&t){const e=Y();p(0,"button",12),_("click",function(){return R(e),F(D().logOut())}),f(1," Log out "),h()}}function wV(t,n){1&t&&K(0,"app-loading-screen")}let bV=(()=>{class t{constructor(e,r,o,i){this.router=e,this.colorSchemeService=r,this.localStorageService=o,this.apiService=i,this.logIn=!1,this.isLoading=!1}increaseFontSize(){this.localStorageService.setFontSize(this.localStorageService.getFontSize()+2)}decreaseFontSize(){let e=this.localStorageService.getFontSize();e>2&&this.localStorageService.setFontSize(e-2)}getFontSize(){return this.localStorageService.getFontSize()}toggleLogIn(){this.logIn=!this.logIn,this.logIn&&this.router.navigate(["/login"])}logOut(){Q.userLevel=0,Q.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}deploy(){this.isLoading=!0,this.apiService.deployAll(Q.userName,Q.password).subscribe({next:e=>{this.isLoading=!1,e.status?ke.showNotification("Success",e.message,-1):ke.showNotification("Unsuccessful",e.message,-1,!0)},error:e=>{this.isLoading=!1,ke.showNotification("ERROR","Error deploying: "+e.message+"!",-1,!0)}})}getuserLevel(){return Q.userLevel}getUserName(){return Q.userName}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}goToAdvancedSettings(){this.router.navigate(["/settings/storage"])}hoToHelp(){this.router.navigate(["/help"])}toggleDarkMode(){this.colorSchemeService.darkModeEnabled=!this.colorSchemeService.darkModeEnabled,this.colorSchemeService.darkModeEnabled?this.colorSchemeService.darkMode():this.colorSchemeService.lightMode()}}return t.\u0275fac=function(e){return new(e||t)(w(Ve),w(Vi),w(an),w(Ae))},t.\u0275cmp=ie({type:t,selectors:[["app-settings-short"]],hostBindings:function(e,r){1&e&&_("keydown.control.alt.l",function(i){return r.toggleLogIn(i)},0,Re)},decls:18,vars:6,consts:[[1,"settings"],[1,"first",3,"click"],[1,"dividedButton"],[1,"smallButton",2,"margin-left","10px",3,"click"],[1,"text"],[1,"smallButton",2,"margin-right","10px",3,"click"],[3,"click"],[3,"click",4,"ngIf"],["class","last",3,"click","keydown.control.alt.l",4,"ngIf"],["class","last",3,"click",4,"ngIf"],[4,"ngIf"],[1,"last",3,"click","keydown.control.alt.l"],[1,"last",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"button",1),_("click",function(){return r.toggleDarkMode()}),f(2),h(),p(3,"div",2)(4,"button",3),_("click",function(){return r.decreaseFontSize()}),f(5," - "),h(),p(6,"p",4),f(7),h(),p(8,"button",5),_("click",function(){return r.increaseFontSize()}),f(9," + "),h()(),p(10,"button",6),_("click",function(){return r.goToAdvancedSettings()}),f(11,"Advanced"),h(),p(12,"button",6),_("click",function(){return r.hoToHelp()}),f(13,"Help"),h(),T(14,vV,2,0,"button",7),T(15,CV,2,0,"button",8),T(16,yV,2,0,"button",9),h(),T(17,wV,1,0,"app-loading-screen",10)),2&e&&(v(2),ot(" ",r.getDarkModeEnabled()?"Lightmode":"Darkmode"," "),v(5),_e("Font Size "+r.getFontSize()),v(7),C("ngIf",r.getuserLevel()>0),v(1),C("ngIf",0==r.getuserLevel()),v(1),C("ngIf",r.getuserLevel()>0),v(1),C("ngIf",r.isLoading))},dependencies:[Te,_V],styles:[".settings[_ngcontent-%COMP%]{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:10px 10px 10px #00000080;right:10px;top:90px;animation:_ngcontent-%COMP%_slideInFromRight .3s ease-in-out;border-radius:10px;box-sizing:border-box}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:199px;font-size:20px;display:flex;align-items:center;justify-content:center}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{width:100%;text-align:center;color:var(--text-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color);text-align:center;justify-content:center;width:45px;height:30px;border-radius:5px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-top:1px solid var(--haeder-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:201px;font-size:20px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:10px;background-color:var(--primary-color);color:var(--inverted-text-color);transform:scale(1.05)}.first[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color)!important;border-top-left-radius:10px;border-top-right-radius:10px}.last[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:var(--header-color)}@media screen and (max-width: 800px){.settings[_ngcontent-%COMP%]{top:70px;right:0;width:100%;animation:_ngcontent-%COMP%_slideInFromTop .3s ease-in-out}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:103%}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--header-color);color:var(--text-color);transform:scale(1)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{width:100%;border-left:1px solid var(--primary-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{width:50px}.first[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.last[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideInFromTop{0%{transform:translateY(-200%)}to{transform:translateY(0)}}"]}),t})();function MV(t,n){if(1&t){const e=Y();p(0,"button",2),_("click",function(){const i=R(e).$implicit;return F(D().goToPage(i.page))}),f(1),h()}if(2&t){const e=n.$implicit,r=n.index;Rn((0==r?"first ":"")+(r==D().results.length-1?"last":"")),v(1),ot(" ",e.page+": ..."+e.text+"..."," ")}}let DV=(()=>{class t{constructor(){this.results=[],this.pageChange=new le}goToPage(e){this.pageChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["app-chapter-search"]],inputs:{results:"results"},outputs:{pageChange:"pageChange"},decls:2,vars:1,consts:[[1,"settings"],[3,"class","click",4,"ngFor","ngForOf"],[3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,MV,2,3,"button",1),h()),2&e&&(v(1),C("ngForOf",r.results))},dependencies:[Sn],styles:[".settings[_ngcontent-%COMP%]{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:10px 10px 10px #00000080;top:80px;right:0;animation:_ngcontent-%COMP%_slideInFromRight .3s ease-in-out;border-radius:10px;box-sizing:border-box;z-index:10}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-top:1px solid var(--haeder-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:400px;font-size:20px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:10px;background-color:var(--primary-color);color:var(--inverted-text-color);transform:scale(1.05)}.first[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color)!important;border-top-left-radius:10px;border-top-right-radius:10px}.last[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:var(--header-color)}@media screen and (max-width: 800px){.settings[_ngcontent-%COMP%]{top:70px;right:0;width:100%;animation:_ngcontent-%COMP%_slideInFromTop .3s ease-in-out}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:103%}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--header-color);color:var(--text-color);transform:scale(1)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{width:100%;border-left:1px solid var(--primary-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{width:50px}.first[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.last[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideInFromTop{0%{transform:translateY(-200%)}to{transform:translateY(0)}}"]}),t})();function EV(t,n){if(1&t){const e=Y();p(0,"app-chapter-search",3),_("pageChange",function(o){return R(e),F(D().pageChange.emit(o))}),h()}2&t&&C("results",D().searchChapterResult)}let xV=(()=>{class t{constructor(e,r,o){this.chapterManager=e,this.colorSchemeService=r,this.router=o,this.searchValue="",this.noMatches=!1,this.slideOut=!1,this.searchChapterResult=[],this.close=new le,this.pageChange=new le,this.chapter=null,o.events.forEach(i=>{this.closeSearchBar()})}closeSearchBar(){this.slideOut=!0,this.searchValue="",this.onSearchChange(),setTimeout(()=>{this.close.emit(),this.slideOut=!1},500)}onSearchChange(){null==this.chapter?this.searchAllChapters():this.searchChapter()}searchChapter(){if(null==this.chapter||(this.searchChapterResult=[],""==this.searchValue))return;let e=this.searchValue.toLowerCase();e.split(" ");for(let o=0;o0&&c<2;)l--," "==s[l]&&c++;let u=a;for(c=0;u{class t{constructor(e,r,o){this.router=e,this.colorSchemeService=r,this.localStorageService=o,this.showSettings=!1,this.enableSearchBar=!0,this.chapter=null,this.pageChange=new le,this.searchBarOn=!1}logIn(){this.router.navigate(["/login"])}logOut(){Q.userLevel=0,Q.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}goBack(){this.router.navigate(["/"])}toggleSettings(){this.showSettings=!this.showSettings}getUserLevel(){return Q.userLevel}getUserName(){return Q.userName}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}turnOnSearchBar(){this.searchBarOn=!0}turnOffSearchBar(){this.searchBarOn=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Ve),w(Vi),w(an))},t.\u0275cmp=ie({type:t,selectors:[["app-header"]],inputs:{enableSearchBar:"enableSearchBar",chapter:"chapter"},outputs:{pageChange:"pageChange"},decls:10,vars:7,consts:[["class","background",3,"click",4,"ngIf"],["src","assets/imgs/InterSystemsWOOPLogo.png","alt","logo",1,"logo",3,"click"],["class","searchButton","alt","Search",3,"src","click",4,"ngIf"],["alt","Settings",1,"settingsButton",3,"src","click"],["class","userLabel",3,"right","click",4,"ngIf"],["class","searchBar",3,"chapter","close","pageChange",4,"ngIf"],[4,"ngIf"],[1,"background",3,"click"],["alt","Search",1,"searchButton",3,"src","click"],[1,"userLabel",3,"click"],[1,"userLabelExtended"],[1,"searchBar",3,"chapter","close","pageChange"]],template:function(e,r){1&e&&(T(0,SV,1,0,"div",0),p(1,"header")(2,"button")(3,"img",1),_("click",function(){return r.goBack()}),h()(),T(4,PV,1,1,"img",2),p(5,"img",3),_("click",function(){return r.toggleSettings()}),h(),T(6,OV,6,4,"p",4),T(7,IV,3,2,"p",4),T(8,TV,1,1,"app-search-bar-header",5),h(),T(9,kV,1,0,"app-settings-short",6)),2&e&&(C("ngIf",r.showSettings),v(4),C("ngIf",r.enableSearchBar&&!r.searchBarOn),v(1),C("src","assets/imgs/"+(r.getDarkModeEnabled()?"darkmode":"lightmode")+"/settings.png",tr),v(1),C("ngIf",r.getUserLevel()>0&&!r.searchBarOn),v(1),C("ngIf",0==r.getUserLevel()&&!r.searchBarOn),v(1),C("ngIf",r.enableSearchBar&&r.searchBarOn),v(1),C("ngIf",r.showSettings))},dependencies:[Te,bV,xV],styles:["header[_ngcontent-%COMP%]{box-shadow:2px 2px 2px #0000001a;background-color:var(--header-color);z-index:1000}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;cursor:pointer;background:none}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]{position:absolute;top:10px;font-size:20px;opacity:.3;color:var(--text-color);cursor:pointer;transition:.3s}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%] .userLabelExtended[_ngcontent-%COMP%]{opacity:0}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover{opacity:1}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover .userLabelExtended[_ngcontent-%COMP%]{opacity:1}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]{position:absolute;right:30px;height:40px;width:40px;cursor:pointer;top:20px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]:hover{opacity:1;animation-name:_ngcontent-%COMP%_rotate;animation-duration:1.2s;animation-fill-mode:forwards}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]{color:var(--text-color);position:absolute;right:85px;height:35px;width:35px;cursor:pointer;top:24px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]:hover{opacity:1;scale:1.1}header[_ngcontent-%COMP%] .searchBar[_ngcontent-%COMP%]{position:absolute;right:360px;height:35px;width:35px;top:22px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%]{position:absolute;right:30px;height:40px;width:40px;cursor:pointer;top:25px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]{position:absolute;height:5px;background-color:var(--text-color);border-radius:5px;right:0;width:100%}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(1){top:0}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(2){top:10px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(3){top:20px}.background[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.logo[_ngcontent-%COMP%]{height:45px;margin-top:16px;margin-bottom:16px;margin-left:50px;transition:.3s}.logo[_ngcontent-%COMP%]:hover{scale:1.1}@media screen and (max-width: 600px){.logo[_ngcontent-%COMP%]{height:30px;margin-left:10px}.logo[_ngcontent-%COMP%]:hover{scale:1}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]{right:10px;height:30px;width:30px;top:20px}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]:hover{opacity:.3;animation:none}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]{right:55px;height:25px;width:25px;cursor:pointer;top:24px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]:hover{opacity:1;scale:1.1}header[_ngcontent-%COMP%] .searchBar[_ngcontent-%COMP%]{position:absolute;right:0;height:70px;width:100%;top:18px}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]{top:15px;font-size:15px}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%] .userLabelExtended[_ngcontent-%COMP%]{display:none}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover{opacity:.3}}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),t})();function AV(t,n){1&t&&(p(0,"p")(1,"i"),f(2,"Private"),h()())}function NV(t,n){if(1&t&&(p(0,"p")(1,"i"),f(2,"Description"),h(),f(3),h()),2&t){const e=D();v(3),ot("",": "+e.chapter.Description," ")}}let RV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["app-chapter-meta-data"]],inputs:{chapter:"chapter"},decls:19,vars:6,consts:[[1,"container"],[4,"ngIf"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,AV,3,0,"p",1),p(2,"p")(3,"i"),f(4,"Title"),h(),f(5),h(),p(6,"p")(7,"i"),f(8,"Author"),h(),f(9),h(),p(10,"p")(11,"i"),f(12,"Language"),h(),f(13),h(),p(14,"p")(15,"i"),f(16,"Pages"),h(),f(17),h(),T(18,NV,4,1,"p",1),h()),2&e&&(v(1),C("ngIf",r.chapter.IsPrivate),v(4),_e(": "+r.chapter.Title),v(4),_e(": "+r.chapter.Author),v(4),_e(": "+r.chapter.Language),v(4),_e(": "+r.chapter.Pages.length),v(1),C("ngIf",""!=r.chapter.Description))},dependencies:[Te],styles:[".container[_ngcontent-%COMP%]{border:none;border-radius:10px;box-shadow:2px 2px 2px #0003;padding:10px;width:300px;transition:.3s;color:var(--inverted-text-color);background-color:var(--primary-color)}"]}),t})();function FV(t,n){if(1&t&&(p(0,"p",15),f(1),h()),2&t){const e=D();v(1),_e(e.wrongText)}}let LV=(()=>{class t{constructor(e,r){this.apiService=e,this.chapterManger=r,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1,this.isWrong=!1,this.wrongText="",this.closeEmitter=new le}submit(){var e=this;return Bi(function*(){if(""===e.name)return e.isWrong=!0,void(e.wrongText="Please enter a name");if(e.name.includes("#"))return e.isWrong=!0,void(e.wrongText="Chapter name cannot contain #");let r=new jM(e.name,Q.userName,[],e.password,e.language,e.description,e.isPrivate);e.apiService.addNewChapter(r).subscribe({next:o=>{o.status?(e.closeEmitter.emit(),e.name="",e.language="english",e.password="",e.description="",e.isPrivate=!1,e.chapterManger.chapters.push(r)):(e.isWrong=!0,e.wrongText="Something went wrong!")},error:o=>{e.isWrong=!0,e.wrongText=o.message}})})()}close(){this.closeEmitter.emit(),this.isWrong=!1,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Io))},t.\u0275cmp=ie({type:t,selectors:[["app-chapter-new"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},inputs:{name:"name",language:"language",password:"password",description:"description",isPrivate:"isPrivate"},outputs:{closeEmitter:"closeEmitter"},decls:24,vars:6,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],[2,"top","60px"],["type","text","name","title","placeholder","Chapter name",1,"userNameInput",2,"top","110px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","130px"],["type","text","name","language","placeholder","Language",1,"userNameInput",2,"top","180px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","200px"],["type","text","name","password","placeholder","Password",1,"userNameInput",2,"top","250px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","270px"],["type","checkbox","name","private",1,"userNameInput",2,"top","320px","cursor","pointer",3,"ngModel","ngModelChange"],[2,"top","340px"],["name","description","placeholder","Description",2,"top","460px","resize","none",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Create new Chapter"),h(),T(4,FV,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"p",4),f(8,"Name"),h(),p(9,"input",5),_("ngModelChange",function(i){return r.name=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"p",6),f(11,"Language"),h(),p(12,"input",7),_("ngModelChange",function(i){return r.language=i})("keydown.enter",function(){return r.submit()}),h(),p(13,"p",8),f(14,"Password"),h(),p(15,"input",9),_("ngModelChange",function(i){return r.password=i})("keydown.enter",function(){return r.submit()}),h(),p(16,"p",10),f(17,"Private"),h(),p(18,"input",11),_("ngModelChange",function(i){return r.isPrivate=i}),h(),p(19,"p",12),f(20,"Description"),h(),p(21,"textarea",13),_("ngModelChange",function(i){return r.description=i}),h(),p(22,"button",14),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(23," Create "),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(5),C("ngModel",r.name),v(3),C("ngModel",r.language),v(3),C("ngModel",r.password),v(3),C("ngModel",r.isPrivate),v(3),C("ngModel",r.description))},dependencies:[Te,Nt,Ri,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:650px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);color:var(--inverted-text-color);border-radius:5px;width:40%;height:40px;font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;height:150px;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:530px}"]}),t})(),WM=(()=>{class t{constructor(){this.sureEmitter=new le}close(){this.sureEmitter.emit(!1)}yes(){this.sureEmitter.emit(!0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["app-are-you-sure"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},outputs:{sureEmitter:"sureEmitter"},decls:11,vars:0,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Are you sure?"),h(),p(4,"button",2),_("click",function(){return r.close()}),f(5,"X"),h(),p(6,"div",3)(7,"button",4),_("click",function(){return r.yes()}),f(8," Yes "),h(),p(9,"button",5),_("click",function(){return r.close()}),f(10," No "),h()()())},styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:150px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function BV(t,n){if(1&t){const e=Y();p(0,"div",12)(1,"button",13),_("click",function(){R(e);const o=D(2).$implicit;return F(D().setChapterToDelete(o))}),K(2,"img",14),h(),p(3,"button",13),_("click",function(){R(e);const o=D(2).$implicit;return F(D().onChapterEditSelected(o.Title))}),K(4,"img",15),h()()}if(2&t){const e=D(3);v(2),C("src","assets/imgs/"+(e.getDarkModeEnabled()?"darkmode":"lightmode")+"/delete.png",tr),v(2),C("src","assets/imgs/"+(e.getDarkModeEnabled()?"darkmode":"lightmode")+"/edit.png",tr)}}function VV(t,n){if(1&t&&(p(0,"i"),f(1),h()),2&t){const e=D(2).$implicit;v(1),_e(e.Title)}}function HV(t,n){if(1&t&&(p(0,"div"),f(1),h()),2&t){const e=D(2).$implicit;v(1),_e(e.Title)}}function $V(t,n){if(1&t){const e=Y();p(0,"div"),T(1,BV,5,2,"div",8),p(2,"button",9),_("click",function(){R(e);const o=D().$implicit;return F(D().onChapterSelected(o.Title))}),T(3,VV,2,1,"i",10),T(4,HV,2,1,"div",10),h(),K(5,"app-chapter-meta-data",11),h()}if(2&t){const e=D().$implicit,r=D();Rn("row"+(2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author?" edit":"")),v(1),C("ngIf",2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author),v(2),C("ngIf",e.IsPrivate),v(1),C("ngIf",!e.IsPrivate),v(1),C("chapter",e)}}function UV(t,n){if(1&t&&(p(0,"div")(1,"div",6),T(2,$V,6,6,"div",7),h()()),2&t){const e=n.$implicit,r=D();v(2),C("ngIf",!e.IsPrivate||2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author)}}function jV(t,n){1&t&&(p(0,"i",16),f(1,"No Chapters"),h())}function zV(t,n){if(1&t){const e=Y();p(0,"div",17)(1,"button",13),_("click",function(){return R(e),F(D().toggleNewChapter())}),f(2,"+"),h()()}}function GV(t,n){if(1&t){const e=Y();p(0,"app-chapter-new",18),_("closeEmitter",function(){return R(e),F(D().toggleNewChapter())}),h()}}function WV(t,n){if(1&t){const e=Y();p(0,"app-are-you-sure",19),_("sureEmitter",function(o){return R(e),F(D().areYouSure(o))}),h()}}let qV=(()=>{class t{constructor(e,r){this.apiService=e,this.colorSchemeService=r,this.chapters=[],this.chapterSelected=new le,this.chapterEditSelected=new le,this.newChapter=!1,this.chapterToDelete=void 0}onChapterSelected(e){this.chapterSelected.emit(e)}onChapterEditSelected(e){this.chapterEditSelected.emit(e)}setChapterToDelete(e){this.chapterToDelete=e}areYouSure(e){e&&this.deleteChapter(this.chapterToDelete),this.chapterToDelete=void 0}deleteChapter(e){this.apiService.deleteChapter(e).subscribe({next:r=>{r.status?(this.chapters.splice(this.chapters.indexOf(e),1),ke.showNotification("Chapter deleted","The chapter was deleted successfully!")):ke.showNotification("Chapter could not be deleted","The chapter could not be deleted!",5e3,!0)},error:r=>{ke.showNotification("ERROR","Chapter could not be deleted: "+r.message+"!",-1,!0)}})}isChapterAccessible(e){return 2==this.getuserLevel()||1==this.getuserLevel()&&this.getuserName()==e.Author}getuserLevel(){return Q.userLevel}getuserName(){return Q.userName}toggleNewChapter(){this.newChapter=!this.newChapter}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Vi))},t.\u0275cmp=ie({type:t,selectors:[["app-chapter-selection"]],hostBindings:function(e,r){1&e&&_("keydown.control.alt.n",function(i){return r.toggleNewChapter(i)},0,Re)},inputs:{chapters:"chapters"},outputs:{chapterSelected:"chapterSelected",chapterEditSelected:"chapterEditSelected"},decls:6,vars:5,consts:[[1,"container"],[4,"ngFor","ngForOf"],["class","noChapters",4,"ngIf"],["class","newButton",4,"ngIf"],[3,"closeEmitter",4,"ngIf"],[3,"sureEmitter",4,"ngIf"],[1,"chapterContainer"],[3,"class",4,"ngIf"],["class","editButton",4,"ngIf"],[1,"chapterButton",3,"click"],[4,"ngIf"],[1,"metaData",3,"chapter"],[1,"editButton"],[3,"click"],["alt","Delete",3,"src"],["alt","Edit",3,"src"],[1,"noChapters"],[1,"newButton"],[3,"closeEmitter"],[3,"sureEmitter"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,UV,3,1,"div",1),T(2,jV,2,0,"i",2),T(3,zV,3,0,"div",3),h(),T(4,GV,1,0,"app-chapter-new",4),T(5,WV,1,0,"app-are-you-sure",5)),2&e&&(v(1),C("ngForOf",r.chapters),v(1),C("ngIf",0==r.chapters.length),v(1),C("ngIf",r.getuserLevel()>0),v(1),C("ngIf",r.newChapter),v(1),C("ngIf",null!=r.chapterToDelete))},dependencies:[Sn,Te,RV,LV,WM],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .metaData[_ngcontent-%COMP%]{display:none;position:fixed;right:20px;bottom:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .chapterButton[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px 20px;cursor:pointer;height:50px;width:500px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .chapterButton[_ngcontent-%COMP%]{background:var(--secondary-color);transform:scale(1.1)}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .metaData[_ngcontent-%COMP%]{display:block}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%]{height:20px;margin-right:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:20px;width:20px;margin:0 5px;cursor:pointer}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:none;border:none;margin:10px 5px;cursor:pointer}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px 20px;cursor:pointer;height:50px;width:100px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.1)}.edit[_ngcontent-%COMP%]{padding-right:112px}.noChapters[_ngcontent-%COMP%]{color:var(--text-color);font-size:20px}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .chapterButton[_ngcontent-%COMP%]{width:400px;border-radius:0}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .chapterButton[_ngcontent-%COMP%]{background:var(--primary-color);transform:scale(1)}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .metaData[_ngcontent-%COMP%]{display:none}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%]{margin-right:0;margin-bottom:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1)}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--primary-color);transform:scale(1)}.edit[_ngcontent-%COMP%]{padding-right:0}}"]}),t})();function YV(t,n){if(1&t){const e=Y();p(0,"div",6)(1,"app-chapter-selection",7),_("chapterSelected",function(o){return R(e),F(D().selectChapter(o))})("chapterEditSelected",function(o){return R(e),F(D().selectEditChapter(o))}),h()()}if(2&t){const e=D();v(1),C("chapters",e.getChapters())}}let ZV=(()=>{class t{constructor(e,r,o,i){this.router=e,this.apiService=r,this.chapterManager=o,this.metaDataService=i,this.title="InterSystemsWOOP",this.isServerOnline=!1}ngOnInit(){this.chapterManager.init(),this.checkIfServerOnline(),setInterval(()=>{this.checkIfServerOnline(),!this.isServerOnline&&"/"==this.router.url&&this.router.navigate(["/error"])},5e3)}goToServerSettings(){this.router.navigate(["settings/server"])}checkIfServerOnline(){this.apiService.isServerOnline().subscribe({next:e=>{this.isServerOnline=!0},error:e=>{this.isServerOnline=!1}})}selectChapter(e){this.router.navigate(["/chapter",e.replace(/\s/g,"-")])}selectEditChapter(e){this.router.navigate(["/chapter",e.replace(/\s/g,"-"),"edit"])}goToWhatsNew(){this.router.navigate(["/info"])}getLatestVersion(){return this.metaDataService.version}getInstancename(){return this.metaDataService.instanceName}getChapters(){return this.chapterManager.chapters}getuserLevel(){return Q.userLevel}getuserName(){return Q.userName}}return t.\u0275fac=function(e){return new(e||t)(w(Ve),w(Ae),w(Io),w(ff))},t.\u0275cmp=ie({type:t,selectors:[["app-home"]],decls:10,vars:5,consts:[[1,"sticky"],["class","container",4,"ngIf"],[1,"serverStatus"],[3,"click"],[1,"statusIcon",3,"click"],[1,"version"],[1,"container"],[3,"chapters","chapterSelected","chapterEditSelected"]],template:function(e,r){1&e&&(K(0,"app-header",0),T(1,YV,2,1,"div",1),p(2,"div",2)(3,"p",3),_("click",function(){return r.goToServerSettings()}),f(4),h(),p(5,"div",4),_("click",function(){return r.goToServerSettings()}),h()(),p(6,"div",5)(7,"p",3),_("click",function(){return r.goToWhatsNew()}),p(8,"i"),f(9),h()()()),2&e&&(v(1),C("ngIf",r.isServerOnline),v(3),_e(r.getInstancename()),v(1),Dn("background",r.isServerOnline?"green":"red"),v(4),_e("unknown"==r.getLatestVersion()?"":"v"+r.getLatestVersion()))},dependencies:[Te,kr,qV],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.container[_ngcontent-%COMP%]{padding-top:100px}.userLevelLabel[_ngcontent-%COMP%]{position:fixed;bottom:10px;left:20px;opacity:.2}.serverStatus[_ngcontent-%COMP%]{position:fixed;bottom:5px;left:20px;opacity:.8;display:flex;align-items:center;flex-direction:row}.serverStatus[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{cursor:default;color:var(--text-color);opacity:.5}.serverStatus[_ngcontent-%COMP%] .statusIcon[_ngcontent-%COMP%]{margin-left:10px;margin-top:3px;height:10px;width:10px;border-radius:50%}.version[_ngcontent-%COMP%]{position:fixed;bottom:30px;left:20px;opacity:.8;display:flex;align-items:center;flex-direction:row}.version[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{cursor:default;color:var(--text-color);opacity:.5}@media screen and (max-width: 600px){.serverStatus[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{display:none}}"]}),t})();var qM=N(83);const XV=["codeEle"];function KV(t,n){1&t&&(p(0,"p",12),f(1,"\u2713"),h())}function QV(t,n){if(1&t){const e=Y();p(0,"img",13),_("click",function(){return R(e),F(D().copyCode())}),h()}2&t&&C("src","assets/imgs/"+(D().getDarkModeEnabled()?"darkmode":"lightmode")+"/copy.png",tr)}function JV(t,n){if(1&t&&(p(0,"pre",14),f(1," "),p(2,"code",null,15),f(4),h(),f(5,"\n "),h()),2&t){const e=D();Rn("test"+(e.copyable?"":" noselect")),v(2),function qv(t,n,e){Ln(mn,sr,ai(O(),t,n,e),!0)}("language-",e.language,""),v(2),ot("\n ",e.code,"\n ")}}let e3=(()=>{class t{constructor(e){this.colorSchemeService=e,this.code="",this.language="javascript",this.title="mycode",this.copyable=!1,this.copied=!1,this.db=!1}ngAfterViewInit(){qM.highlightElement(this.codeEle.nativeElement)}ngOnChanges(e){e?.code&&this.codeEle?.nativeElement&&(this.codeEle.nativeElement.textContent=this.code,qM.highlightElement(this.codeEle.nativeElement))}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}copyCode(){const e=document.createElement("textarea");e.value=this.code,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.copied=!0,setTimeout(()=>{this.copied=!1},1e3)}onDblClick(){this.db=!this.db}}return t.\u0275fac=function(e){return new(e||t)(w(Vi))},t.\u0275cmp=ie({type:t,selectors:[["app-code-window"]],viewQuery:function(e,r){if(1&e&&ry(XV,5),2&e){let o;mp(o=function _p(){return function LT(t,n){return t[Yn].queries[n].queryList}(O(),Og())}())&&(r.codeEle=o.first)}},inputs:{code:"code",language:"language",title:"title",copyable:"copyable"},features:[en],decls:14,vars:6,consts:[["id","window"],["id","navbar"],["id","window-controls"],[1,"red","dot"],[1,"yellow","dot",3,"dblclick"],[1,"green","dot"],[1,"test"],["id","window-title"],["class","copiedMessage",4,"ngIf"],["class","copy","alt","Copy",3,"src","click",4,"ngIf"],[1,"code"],["prism","",3,"class",4,"ngIf"],[1,"copiedMessage"],["alt","Copy",1,"copy",3,"src","click"],["prism",""],["codeEle",""]],template:function(e,r){1&e&&(p(0,"div",0)(1,"div",1)(2,"div",2),K(3,"div",3),p(4,"div",4),_("dblclick",function(){return r.onDblClick()}),h(),K(5,"div",5),h(),p(6,"div",6)(7,"div",7),f(8),h(),T(9,KV,2,0,"p",8),T(10,QV,1,1,"img",9),h(),p(11,"div")(12,"div",10),T(13,JV,6,6,"pre",11),h()()()()),2&e&&(Rn(r.db?"db":""),v(8),_e(r.title),v(1),C("ngIf",r.copied),v(1),C("ngIf",!r.copied&&r.copyable),v(3),C("ngIf",r.language))},dependencies:[Te],styles:["#snippet-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background-color:red;width:max-content}#window[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-shadow:0 0 10px #0003;overflow:hidden;width:max-content;min-width:200px;padding:18px;background-color:var(--header-color);border-radius:10px;margin-left:20px;max-width:100%}#navbar[_ngcontent-%COMP%]{overflow:hidden;text-align:center}#window-controls[_ngcontent-%COMP%]{display:flex;float:left;margin-top:2px}#window-title[_ngcontent-%COMP%]{margin:0 90px}.dot[_ngcontent-%COMP%]{width:15px;height:15px;border-radius:50%;margin-right:10px;box-shadow:0 0 3px #0000004d}.dot[_ngcontent-%COMP%]:hover{scale:1.2}.copiedMessage[_ngcontent-%COMP%]{opacity:.5;width:25px;height:25px;margin-top:2px}.copy[_ngcontent-%COMP%]{width:25px;height:25px;cursor:pointer;margin-top:2px}.copy[_ngcontent-%COMP%]:hover{scale:1.2}.test[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.red[_ngcontent-%COMP%]{background-color:#ff5f5a}.yellow[_ngcontent-%COMP%]{background-color:#ffbe2e}.green[_ngcontent-%COMP%]{background-color:#2aca44}.test[_ngcontent-%COMP%]{background:var(--header-color);text-shadow:none!important}.code[_ngcontent-%COMP%] .token[_ngcontent-%COMP%]{color:red!important;background:red!important}code[class*=language-][_ngcontent-%COMP%], pre[class*=language-][_ngcontent-%COMP%]{text-shadow:none;color:var(--text-color)}pre[class*=language-][_ngcontent-%COMP%]{padding:0;margin:0;overflow:auto}.noselect[_ngcontent-%COMP%]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.db[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin .5s linear;transform:rotate(180deg)}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@media screen and (max-width: 800px){#window[_ngcontent-%COMP%]{margin-left:0;max-width:90%}.dot[_ngcontent-%COMP%]:hover{scale:1}}"]}),t})();function t3(t,n){1&t&&K(0,"markdown",6),2&t&&C("data",D().$implicit.code)}function n3(t,n){if(1&t&&K(0,"app-code-window",7),2&t){const e=D().$implicit;C("code",e.code)("language",e.language)("title",e.title)("copyable",e.settings.includes("copy")||e.settings.includes("c"))}}function r3(t,n){if(1&t&&K(0,"img",8),2&t){const e=D().$implicit;(function Nn(t){Ln(Nv,_O,t,!1)})(e.language),C("src",e.code,tr)("alt",e.title)}}function o3(t,n){if(1&t){const e=Y();p(0,"button",9),_("click",function(){R(e);const o=D().$implicit;return F(D().downloadFile(o.code))}),f(1),h()}if(2&t){const e=D().$implicit;v(1),ot(" ",e.title," ")}}function i3(t,n){if(1&t&&(p(0,"div"),T(1,t3,1,1,"markdown",2),T(2,n3,1,4,"app-code-window",3),T(3,r3,1,4,"img",4),T(4,o3,2,1,"button",5),h()),2&t){const e=n.$implicit;Dn("font-size",D().getFontSize()+"px"),v(1),C("ngIf","textblock"==e.type),v(1),C("ngIf","codeblock"==e.type),v(1),C("ngIf","image"==e.type),v(1),C("ngIf","file"==e.type)}}let s3=(()=>{class t{constructor(e,r,o,i){this.mdService=e,this.http=r,this.localStorageService=o,this.irisinterfaceService=i,this.data="",this.blocks=[]}ngOnInit(){var e=this;return Bi(function*(){let r=e.data.split("\n");for(let o=0;ou);null!=c?s=c:console.log("error getting image")}e.blocks.push({type:"image",code:s,language:a,title:i})}else if(r[o].startsWith("$$$[")){let i=r[o].split("[")[1].split("]")[0],s=r[o].split("(")[1].split(")")[0];e.blocks.push({type:"file",code:s,language:"",title:i})}else{let i="",s=!1;for(;o{const o=document.createElement("a");o.href="data:text/plain;charset=utf-8,"+encodeURIComponent(r.content),o.download=r.name,o.click()},error:r=>{ke.showNotification("ERROR","Error getting file: "+r.message+"!",-1,!0)}})}}return t.\u0275fac=function(e){return new(e||t)(w(Pc),w(Sc),w(an),w(Ae))},t.\u0275cmp=ie({type:t,selectors:[["app-markdown-content"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"contentBox"],[3,"font-size",4,"ngFor","ngForOf"],[3,"data",4,"ngIf"],[3,"code","language","title","copyable",4,"ngIf"],[3,"src","alt","style",4,"ngIf"],["class","downloadButton",3,"click",4,"ngIf"],[3,"data"],[3,"code","language","title","copyable"],[3,"src","alt"],[1,"downloadButton",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,i3,5,6,"div",1),h()),2&e&&(v(1),C("ngForOf",r.blocks))},dependencies:[Sn,Te,Ub,e3],styles:[".contentBox[_ngcontent-%COMP%]{width:80%;margin:20px auto;border:1px solid #ccc;border-radius:10px;box-shadow:2px 2px 2px #0000001a;padding:20px;font-size:20px;color:var(--text-color)}.downloadButton[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;cursor:pointer;height:50px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080;margin:0 5px 10px 20px}.downloadButton[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.1)}@media screen and (max-width: 800px){.downloadButton[_ngcontent-%COMP%]:hover{background:var(--primary-color);transform:scale(1)}}"]}),t})();function a3(t,n){if(1&t&&(p(0,"div")(1,"h1",2),f(2,"hint"),h(),K(3,"app-markdown-content",1),h()),2&t){const e=D(2);v(3),C("data",e.page.Hint)}}function l3(t,n){if(1&t&&(p(0,"div")(1,"h1",2),f(2,"Result"),h(),K(3,"app-markdown-content",1),h()),2&t){const e=D(2);v(3),C("data",e.page.Result)}}function c3(t,n){if(1&t&&(p(0,"div"),K(1,"app-markdown-content",1),T(2,a3,4,1,"div",0),T(3,l3,4,1,"div",0),h()),2&t){const e=D();v(1),C("data",e.page.Content),v(1),C("ngIf",e.showhint),v(1),C("ngIf",e.showResult)}}let u3=(()=>{class t{constructor(){this.show=!1,this.showhint=!1,this.showResult=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["app-page"]],inputs:{page:"page",show:"show",showhint:"showhint",showResult:"showResult"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"data"],[1,"heading"]],template:function(e,r){1&e&&T(0,c3,4,3,"div",0),2&e&&C("ngIf",r.show)},dependencies:[Te,s3],styles:[".heading[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem;text-align:center;text-transform:uppercase;letter-spacing:.1rem;line-height:1.2;padding:1rem 0;border-radius:.5rem;width:20%;margin:0 auto;color:var(--text-color)}"]}),t})();function d3(t,n){if(1&t){const e=Y();p(0,"img",5),_("click",function(){return R(e),F(D().showNext())}),h()}2&t&&C("src","assets/imgs/"+(D().getDarkModeEnabled()?"darkmode":"lightmode")+"/navigatePage.png",tr)}function p3(t,n){if(1&t){const e=Y();p(0,"img",6),_("click",function(){return R(e),F(D().showPrev())}),h()}2&t&&C("src","assets/imgs/"+(D().getDarkModeEnabled()?"darkmode":"lightmode")+"/navigatePage.png",tr)}function h3(t,n){if(1&t){const e=Y();p(0,"button",7),_("click",function(){return R(e),F(D().showhint())}),f(1,"Show hint"),h()}}function f3(t,n){if(1&t){const e=Y();p(0,"button",7),_("click",function(){return R(e),F(D().showResult())}),f(1,"Show result"),h()}}function g3(t,n){if(1&t){const e=Y();p(0,"button",7),_("click",function(){return R(e),F(D().showPrev())}),f(1,"Previous"),h()}}function m3(t,n){if(1&t){const e=Y();p(0,"button",7),_("click",function(){return R(e),F(D().showNext())}),f(1,"Next"),h()}}let YM=(()=>{class t{constructor(e){this.colorSchemeService=e,this.showNextButton=!0,this.showPrevButton=!0,this.showhintButton=!0,this.showResultButton=!0,this.showNextEmitter=new le,this.showPrevEmitter=new le,this.showhintEmitter=new le,this.showResultEmitter=new le}showNext(){this.showNextEmitter.emit("showNext")}showPrev(){this.showPrevEmitter.emit("showPrev")}showhint(){this.showhintEmitter.emit("showhint")}showResult(){this.showResultEmitter.emit("showResult")}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}}return t.\u0275fac=function(e){return new(e||t)(w(Vi))},t.\u0275cmp=ie({type:t,selectors:[["app-page-nav-bar"]],hostBindings:function(e,r){1&e&&_("keydown.control.arrowright",function(i){return r.showNext(i)},0,Re)("keydown.control.arrowleft",function(i){return r.showPrev(i)},!1,Re)},inputs:{showNextButton:"showNextButton",showPrevButton:"showPrevButton",showhintButton:"showhintButton",showResultButton:"showResultButton"},outputs:{showNextEmitter:"showNextEmitter",showPrevEmitter:"showPrevEmitter",showhintEmitter:"showhintEmitter",showResultEmitter:"showResultEmitter"},decls:8,vars:6,consts:[["class","nextButton navButton","alt","next",3,"src","click",4,"ngIf"],["class","prevButton navButton","alt","previous",3,"src","click",4,"ngIf"],[1,"showButtons"],[3,"click",4,"ngIf"],[1,"showButtons","mobile"],["alt","next",1,"nextButton","navButton",3,"src","click"],["alt","previous",1,"prevButton","navButton",3,"src","click"],[3,"click"]],template:function(e,r){1&e&&(T(0,d3,1,1,"img",0),T(1,p3,1,1,"img",1),p(2,"div",2),T(3,h3,2,0,"button",3),T(4,f3,2,0,"button",3),h(),p(5,"div",4),T(6,g3,2,0,"button",3),T(7,m3,2,0,"button",3),h()),2&e&&(C("ngIf",r.showNextButton),v(1),C("ngIf",r.showPrevButton),v(2),C("ngIf",r.showhintButton),v(1),C("ngIf",r.showResultButton),v(2),C("ngIf",r.showPrevButton),v(1),C("ngIf",r.showNextButton))},dependencies:[Te],styles:[".navButton[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:50%;cursor:pointer}.nextButton[_ngcontent-%COMP%]{transform:rotate(180deg);left:93%}.nextButton[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_moveRight 1s ease-in-out forwards}.prevButton[_ngcontent-%COMP%]{right:93%}.prevButton[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_moveLeft 1s ease-in-out forwards}.showButtons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:20px}.showButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px;cursor:pointer;height:50px;width:300px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.showButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.05)}.mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 800px){.nextButton[_ngcontent-%COMP%], .prevButton[_ngcontent-%COMP%]{display:none}.mobile[_ngcontent-%COMP%]{display:flex}}@keyframes _ngcontent-%COMP%_moveLeft{0%{transform:translate(0)}to{transform:translate(-20%)}}@keyframes _ngcontent-%COMP%_moveRight{0%{transform:translate(0) rotate(180deg)}to{transform:translate(20%) rotate(180deg)}}"]}),t})();function _3(t,n){if(1&t&&(p(0,"p",7),f(1),h()),2&t){const e=D();v(1),_e(e.wrongText)}}let v3=(()=>{class t{constructor(e){this.apiService=e,this.enteredPassword="",this.isWrong=!1,this.wrongText="",this.type="password",this.chapterName="",this.passwordEntered=new le}submit(){this.apiService.verifyChapter(this.chapterName,this.enteredPassword).subscribe({next:e=>{e.status?(this.passwordEntered.emit(this.enteredPassword),this.isWrong=!1,this.enteredPassword=""):(this.isWrong=!0,this.enteredPassword="",this.wrongText="Wrong password")},error:e=>{this.isWrong=!0,this.wrongText=e.message}})}viewPassword(){this.type="password"===this.type?"text":"password"}close(){this.passwordEntered.emit(void 0),this.isWrong=!1,this.enteredPassword=""}}return t.\u0275fac=function(e){return new(e||t)(w(Ae))},t.\u0275cmp=ie({type:t,selectors:[["app-password-query"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},inputs:{chapterName:"chapterName"},outputs:{passwordEntered:"passwordEntered"},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["name","password","placeholder","Password",1,"passwordInput",3,"type","ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"viewButton",3,"click"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Enter Password"),h(),T(4,_3,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"button",5),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(9," Submit "),h(),p(10,"button",6),_("click",function(){return r.viewPassword()}),f(11),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("type",r.type)("ngModel",r.enteredPassword),v(4),ot(" ","password"==r.type?"View":"Hide"," "))},dependencies:[Te,Nt,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:50%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}"]}),t})();function C3(t,n){if(1&t){const e=Y();p(0,"div")(1,"li")(2,"a",5),_("click",function(){const i=R(e).$implicit;return F(D().selectPage(i.page))}),f(3),h()()()}if(2&t){const e=n.$implicit;v(1),Dn("font-size",21-2*e.level,"px")("margin-left",10*(e.level-1),"px"),v(2),_e(e.text)}}let ZM=(()=>{class t{constructor(){this.event=new le,this.chapter=void 0,this.headings=[]}ngOnInit(){let e=!1;for(let r=0;r0?"Page ":"No Pages"),v(1),C("ngIf",e.chapter.Pages.length>0),v(1),C("ngIf",e.chapter.Pages.length>0),v(1),C("ngForOf",e.chapter.Pages),v(1),C("showPrevButton",0!=e.currentPage&&e.chapter.Pages.length>0)("showNextButton",e.currentPage!=e.chapter.Pages.length-1&&e.chapter.Pages.length>0)("showResultButton",e.chapter.Pages.length>0&&""!=e.chapter.Pages[e.currentPage].Result&&!e.resultVisible)("showhintButton",e.chapter.Pages.length>0&&""!=e.chapter.Pages[e.currentPage].Hint&&!e.hintVisible)}}function E3(t,n){if(1&t){const e=Y();p(0,"app-table-of-content",17),_("event",function(o){return R(e),F(D().onTOCInput(o))}),h()}2&t&&C("chapter",D().chapter)}let XM=(()=>{class t{constructor(e,r,o,i){this.router=e,this.route=r,this.chapterManger=o,this.localStorageService=i,this.currentPage=0,this.chapterName="",this.hintVisible=!1,this.resultVisible=!1,this.exportOptionsVisible=!1,this.contentVisible=!0,this.pageInput=1,this.showTOC=!1}ngOnInit(){let e=this.route.snapshot.paramMap.get("chapterName");null!=e?(this.chapterName=e,this.chapterManger.init().then(()=>{this.chapter=this.chapterManger.getChapterByName(this.chapterName,!0),this.chapter.IsPrivate?2==Q.userLevel||1==Q.userLevel&&this.chapter.Author==Q.userName?this.contentVisible=!0:this.router.navigate(["/login"]):((2==Q.userLevel||1==Q.userLevel&&this.chapter.Author==Q.userName)&&ha.verifyChapter(this.chapter.Title,"",!1),this.contentVisible=ha.isChapterVerified(this.chapter.Title));let r=this.localStorageService.getPageForChapter(this.chapterName);r<0&&(r=0),r>this.chapter.Pages.length-1&&(r=this.chapter.Pages.length-1),this.currentPage=r,this.pageInput=this.currentPage+1})):this.router.navigate(["/"])}onPageInput(){this.pageInput<1?this.pageInput=1:this.pageInput>this.chapter.Pages.length?this.pageInput=this.chapter.Pages.length:(this.currentPage=this.pageInput-1,this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}verifyChapter(e){null!=e?(ha.verifyChapter(this.chapter.Title,e),this.contentVisible=!0):this.router.navigate(["/"])}showNextPage(){this.currentPage!=this.chapter.Pages.length-1&&(this.currentPage++,this.pageInput=this.currentPage+1,this.hintVisible=!1,this.resultVisible=!1,window.scrollTo({top:0}),this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}showPrevPage(){0!=this.currentPage&&(this.currentPage--,this.pageInput=this.currentPage+1,this.hintVisible=!1,this.resultVisible=!1,window.scrollTo({top:0}),this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}showhint(){this.hintVisible=!0}showResult(){this.resultVisible=!0}setTOC(e){this.showTOC=e}onTOCInput(e){-1!=e?(this.currentPage=e,this.pageInput=this.currentPage+1):this.showTOC=!1}goBack(){this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(Ve),w(cr),w(Io),w(an))},t.\u0275cmp=ie({type:t,selectors:[["app-chapter"]],inputs:{chapter:"chapter",currentPage:"currentPage"},decls:4,vars:4,consts:[[3,"chapterName","passwordEntered",4,"ngIf"],["class","content",4,"ngIf"],[3,"chapter","event",4,"ngIf"],[1,"sticky",3,"chapter","pageChange"],[3,"chapterName","passwordEntered"],[1,"content"],[1,"header"],[1,"backButton",3,"click"],[1,"tocButton",3,"click"],[1,"bar"],[1,"heading"],["class","pageInput","type","number",3,"ngModel","min","max","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"page","show","showhint","showResult",4,"ngFor","ngForOf"],[3,"showPrevButton","showNextButton","showResultButton","showhintButton","showNextEmitter","showPrevEmitter","showhintEmitter","showResultEmitter"],["type","number",1,"pageInput",3,"ngModel","min","max","ngModelChange"],[3,"page","show","showhint","showResult"],[3,"chapter","event"]],template:function(e,r){1&e&&(T(0,y3,1,1,"app-password-query",0),T(1,D3,18,9,"div",1),T(2,E3,1,1,"app-table-of-content",2),p(3,"app-header",3),_("pageChange",function(i){return r.onTOCInput(i-1)}),h()),2&e&&(C("ngIf",!r.contentVisible),v(1),C("ngIf",r.contentVisible),v(1),C("ngIf",r.showTOC),v(1),C("chapter",r.chapter))},dependencies:[Sn,Te,Nt,Vc,St,$c,Hc,Dt,kr,u3,YM,v3,ZM],styles:[".heading[_ngcontent-%COMP%]{text-align:center;color:var(--text-color)}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]{background-color:#7a7a7a44;color:var(--text-color);border-radius:10%;border:none;width:30px;font-size:15px;text-align:center;transition:.2s;box-shadow:none;margin:0 0 0 3px}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]:focus{outline:none;width:50px}.heading[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.content[_ngcontent-%COMP%]{margin-top:100px}.header[_ngcontent-%COMP%]{width:100%;margin-top:20px;display:flex}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.header[_ngcontent-%COMP%] .backButton[_ngcontent-%COMP%]{margin-left:20px;margin-right:auto}.header[_ngcontent-%COMP%] .exportButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px}.tocButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px;cursor:pointer}.tocButton[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:40px;height:4px;background-color:var(--text-color);margin:6px 0;transition:.4s;border-radius:5px}"]}),t})();function x3(t,n){if(1&t){const e=Y();p(0,"div",4)(1,"button",5),_("click",function(){return R(e),F(D().uploadImage())}),f(2," Upload "),h(),p(3,"button",6),_("click",function(){return R(e),F(D().select())}),f(4," Select existing "),h()()}}function S3(t,n){if(1&t&&(p(0,"option",10),f(1),h()),2&t){const e=n.$implicit;C("value",e),v(1),ot(" ",e," ")}}function P3(t,n){if(1&t){const e=Y();p(0,"div",4)(1,"select",7),_("ngModelChange",function(o){return R(e),F(D().selectedImage=o)}),T(2,S3,2,2,"option",8),h(),p(3,"button",9),_("click",function(){return R(e),F(D().selectTheImage())}),f(4," Ok "),h()()}if(2&t){const e=D();v(1),C("ngModel",e.selectedImage),v(1),C("ngForOf",e.imageNames)}}let O3=(()=>{class t{constructor(e){this.apiService=e,this.imageEmitter=new le,this.selectImage=!1,this.selectedImage="",this.imageNames=[]}close(){this.imageEmitter.emit("")}select(){this.apiService.getAllImageNames().subscribe({next:e=>{this.imageNames=e,this.selectImage=!0},error:e=>{ke.showNotification("Error getting image names",e.message,-1,!0)}})}selectTheImage(){this.imageEmitter.emit(`?[${this.selectedImage}](${this.selectedImage}){width:100%}`)}uploadImage(){const e=document.createElement("input");e.type="file",e.accept="image/*",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsDataURL(o),i.onload=()=>{this.apiService.uploadImage(o.name,i.result).subscribe({next:a=>{a.status?(ke.showNotification("Success","Image uploaded: "+a.newName),this.imageEmitter.emit(`?[${a.newName}](${a.newName}){width:100%}`)):ke.showNotification("Error uploading image","Could not upload image!",5e3,!0)},error:a=>{ke.showNotification("Error uploading image",a.message,-1,!0)}})}},e.click()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae))},t.\u0275cmp=ie({type:t,selectors:[["app-add-image"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},outputs:{imageEmitter:"imageEmitter"},decls:8,vars:3,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],["class","buttonContainer",4,"ngIf"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"],["name","SelectImage",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3),h(),p(4,"button",2),_("click",function(){return r.close()}),f(5,"X"),h(),T(6,x3,5,0,"div",3),T(7,P3,5,2,"div",3),h()),2&e&&(v(3),_e(r.selectImage?"Select Image":"Add Image"),v(3),C("ngIf",!r.selectImage),v(1),C("ngIf",r.selectImage))},dependencies:[Sn,Te,da,pa,Po,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})(),I3=(()=>{class t{constructor(e){this.localStorageService=e,this.toLanguage="en",this.excludeCodeBlocks=!0,this.translatePage=!1,this.eventEmitter=new le,this.toLanguage=this.localStorageService.getLanguageTo()}submit(){this.localStorageService.setLanguageTo(this.toLanguage);let e=this.toLanguage;this.excludeCodeBlocks&&(e+=",excludeCodeBlocks"),this.translatePage&&(e+=",translatePage"),this.eventEmitter.emit(e),this.translatePage=!1,this.excludeCodeBlocks=!0}close(){this.eventEmitter.emit("close")}}return t.\u0275fac=function(e){return new(e||t)(w(an))},t.\u0275cmp=ie({type:t,selectors:[["app-translate-spec"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},outputs:{eventEmitter:"eventEmitter"},decls:19,vars:7,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"toLanguage"],["type","text","name","toLanguage","placeholder","To Language",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"checkBoxCon"],["type","checkbox","name","excludeCodeBlocks",3,"ngModel","ngModelChange"],["type","checkbox","name","translatePage",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Translate Text"),h(),p(4,"button",2),_("click",function(){return r.close()}),f(5,"X"),h(),p(6,"p",3),f(7,"Translate to..."),h(),p(8,"input",4),_("ngModelChange",function(i){return r.toLanguage=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"div",5)(10,"input",6),_("ngModelChange",function(i){return r.excludeCodeBlocks=i}),h(),p(11,"p"),f(12,"Exclude Codeblocks"),h()(),p(13,"div",5)(14,"input",7),_("ngModelChange",function(i){return r.translatePage=i}),h(),p(15,"p"),f(16,"Translate Page"),h()(),p(17,"button",8),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(18," Translate "),h()()),2&e&&(v(8),C("ngModel",r.toLanguage),v(1),Dn("top","50%"),v(1),C("ngModel",r.excludeCodeBlocks),v(3),Dn("top","65%"),v(1),C("ngModel",r.translatePage))},dependencies:[Nt,Ri,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;color:varvar(--inverted-text-color)}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:37%}.container[_ngcontent-%COMP%] .toLanguage[_ngcontent-%COMP%]{top:20%}.checkBoxCon[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);display:flex;flex-direction:row;margin-top:5px}.checkBoxCon[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.checkBoxCon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:120px;margin-top:2px;width:200px;font-size:20px;color:var(--inverted-text-color);cursor:pointer;text-align:left}"]}),t})();function T3(t,n){if(1&t){const e=Y();p(0,"div",4)(1,"button",5),_("click",function(){return R(e),F(D().uploadFile())}),f(2," Upload "),h(),p(3,"button",6),_("click",function(){return R(e),F(D().select())}),f(4," Select existing "),h()()}}function k3(t,n){if(1&t&&(p(0,"option",10),f(1),h()),2&t){const e=n.$implicit;C("value",e),v(1),ot(" ",e," ")}}function A3(t,n){if(1&t){const e=Y();p(0,"div",4)(1,"select",7),_("ngModelChange",function(o){return R(e),F(D().selectedFile=o)}),T(2,k3,2,2,"option",8),h(),p(3,"button",9),_("click",function(){return R(e),F(D().selectTheFile())}),f(4," Ok "),h()()}if(2&t){const e=D();v(1),C("ngModel",e.selectedFile),v(1),C("ngForOf",e.fileNames)}}let N3=(()=>{class t{constructor(e){this.apiService=e,this.fileEmitter=new le,this.selectFile=!1,this.selectedFile="",this.fileNames=[]}close(){this.fileEmitter.emit("")}select(){this.apiService.getAllFileNames().subscribe({next:e=>{this.fileNames=e,this.selectFile=!0},error:e=>{ke.showNotification("Error getting file names",e.message,-1,!0)}})}selectTheFile(){this.fileEmitter.emit(`$$$[Download](${this.selectedFile})`)}uploadFile(){const e=document.createElement("input");e.type="file",e.accept="*",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsText(o),i.onload=()=>{this.apiService.uploadFile(o.name,i.result).subscribe({next:s=>{s.status?(ke.showNotification("Success","File uploaded: "+s.newName),this.fileEmitter.emit(`$$$[Download](${s.newName})`)):ke.showNotification("Error uploading file","Could not upload file!",5e3,!0)},error:s=>{ke.showNotification("Error uploading file",s.message,-1,!0)}})}},e.click()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae))},t.\u0275cmp=ie({type:t,selectors:[["app-add-file"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},outputs:{fileEmitter:"fileEmitter"},decls:8,vars:3,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],["class","buttonContainer",4,"ngIf"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"],["name","SelectFile",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3),h(),p(4,"button",2),_("click",function(){return r.close()}),f(5,"X"),h(),T(6,T3,5,0,"div",3),T(7,A3,5,2,"div",3),h()),2&e&&(v(3),_e(r.selectFile?"Select File":"Add File"),v(3),C("ngIf",!r.selectFile),v(1),C("ngIf",r.selectFile))},dependencies:[Sn,Te,da,pa,Po,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function R3(t,n){if(1&t){const e=Y();p(0,"app-add-image",5),_("imageEmitter",function(o){return R(e),F(D().addImage(o))}),h()}}function F3(t,n){if(1&t){const e=Y();p(0,"app-add-file",6),_("fileEmitter",function(o){return R(e),F(D().addFile(o))}),h()}}function L3(t,n){if(1&t){const e=Y();p(0,"app-translate-spec",7),_("eventEmitter",function(o){return R(e),F(D().translateSpec(o))}),h()}}let B3=(()=>{class t{constructor(e,r){this.apiService=e,this.router=r,this.addImageOpened=!1,this.addFileOpened=!1,this.translateSpecOpen=!1,this.eventEmitter=new le}emit(e){this.eventEmitter.emit(e)}addImage(e){""!==e&&this.emit(e),this.addImageOpened=!1}addFile(e){""!==e&&this.emit(e),this.addFileOpened=!1}openAddImage(){this.addImageOpened=!0}openAddFile(){this.addFileOpened=!0}openTranslateSpec(){this.translateSpecOpen=!0}closeTranslateSpec(){this.translateSpecOpen=!1}closeAddImage(){this.addImageOpened=!1}translateSpec(e){"close"!==e&&this.emit("translate,"+e),this.closeTranslateSpec()}help(){this.router.navigate(["/markdown"])}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Ve))},t.\u0275cmp=ie({type:t,selectors:[["app-markdown-editor"]],outputs:{eventEmitter:"eventEmitter"},decls:20,vars:5,consts:[[1,"editor"],[3,"click"],[3,"imageEmitter",4,"ngIf"],[3,"fileEmitter",4,"ngIf"],[3,"eventEmitter",4,"ngIf"],[3,"imageEmitter"],[3,"fileEmitter"],[3,"eventEmitter"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"button",1),_("click",function(){return r.emit("bold")}),p(2,"b"),f(3,"Bold"),h()(),p(4,"button",1),_("click",function(){return r.emit("italic")}),p(5,"i"),f(6,"Italic"),h()(),p(7,"button",1),_("click",function(){return r.emit("code")}),f(8,"Code"),h(),p(9,"button",1),_("click",function(){return r.openAddImage()}),f(10,"Image"),h(),p(11,"button",1),_("click",function(){return r.openAddFile()}),f(12,"File"),h(),p(13,"button",1),_("click",function(){return r.openTranslateSpec()}),f(14,"Translate"),h(),p(15,"button",1),_("click",function(){return r.help()}),f(16,"Help"),h()(),T(17,R3,1,0,"app-add-image",2),T(18,F3,1,0,"app-add-file",3),T(19,L3,1,0,"app-translate-spec",4)),2&e&&(v(13),Dn("width",100,"px"),v(4),C("ngIf",r.addImageOpened),v(1),C("ngIf",r.addFileOpened),v(1),C("ngIf",r.translateSpecOpen))},dependencies:[Te,O3,I3,N3],styles:[".editor[_ngcontent-%COMP%]{width:100%;background:var(--header-color);height:50px;display:flex;align-items:center;border-radius:5px;margin-bottom:20px;box-shadow:0 0 10px #0003}.editor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:70px;font-size:20px;height:30px;background:var(--primary-color);border-radius:5px;border:none;outline:none;cursor:pointer;margin:0 10px;color:var(--inverted-text-color);box-shadow:0 0 5px #00000080}.editor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px #000c;scale:1.05}"]}),t})(),V3=(()=>{class t{constructor(e,r){this.localStorageService=e,this.apiService=r,this.type="",this.changeEmitter=new le,this.data="",this.dataBefore=void 0,this.focus=!1,this.slectionContent="",this.selectionStart=-1,this.selectionEnd=-1,this.getData()}handleKeydown(e){if("Tab"==e.key){e.preventDefault();var r=e.target.selectionStart,o=e.target.selectionEnd;e.target.value=e.target.value.substring(0,r)+"\t"+e.target.value.substring(o),e.target.selectionStart=e.target.selectionEnd=r+1,this.data=e.target.value,this.setData()}}ngOnInit(){this.getData()}onFocus(){this.focus=!0}onFocusOut(){this.focus=!1}selectionchange(e){this.selectionStart=e.target.selectionStart,this.selectionEnd=e.target.selectionEnd,this.slectionContent=e.target.value.substr(this.selectionStart,this.selectionEnd-this.selectionStart)}onEditorInput(e){let r=this.focus;this.focus=!0,"bold"===e?this.bold():"italic"===e?this.italic():"code"===e?this.code():e.startsWith("![")||e.startsWith("?[")||e.startsWith("$$$[")?this.addImage(e):e.startsWith("translate")&&this.translate(e.split(",")[1],e.includes("excludeCodeBlocks"),e.includes("translatePage")),this.focus=r}translate(e="en",r,o){var i=this;return Bi(function*(){o?(i.page.Content=yield i.translateText(i.page.Content,e,r),i.page.Hint=yield i.translateText(i.page.Hint,e,r),i.page.Result=yield i.translateText(i.page.Result,e,r),i.changeEmitter.emit()):(i.data=yield i.translateText(i.data,e,r),i.setData())})()}translateText(e,r="en",o){var i=this;return Bi(function*(){let s=e.split("\n"),a="",l=!1;for(let c=0;cg.text))+"\n"}return a})()}copyLineUp(){if(!this.focus)return;let e=this.data.split("\n"),r=0,o=[],i=-1;for(let s=0;sthis.selectionStart?(o.push(e[s]),i=s):o.length>0&&o.push(e[s]),r>this.selectionEnd){e.splice(i-1,0,o.join("\n"));break}this.data=e.join("\n"),this.setData()}copyLineDown(){if(!this.focus)return;let e=this.data.split("\n"),r=0,o=[],i=-1;for(let s=0;sthis.selectionStart?(o.push(e[s]),i=s):o.length>0&&o.push(e[s]),r>this.selectionEnd){e.splice(s+1,0,o.join("\n"));break}this.data=e.join("\n"),this.setData()}addImage(e){this.data+="\n"+e,this.setData()}bold(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"**"+this.slectionContent+"**"+this.data.substr(this.selectionEnd),this.setData())}italic(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"_"+this.slectionContent+"_"+this.data.substr(this.selectionEnd),this.setData())}code(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"`"+this.slectionContent+"`"+this.data.substr(this.selectionEnd),this.setData())}setToDatBefore(){!this.focus||!this.dataBefore||(this.data=this.dataBefore,this.dataBefore=void 0,this.setData())}getData(){"content"===this.type&&(this.data=this.page.Content),"hint"===this.type&&(this.data=this.page.Hint),"result"===this.type&&(this.data=this.page.Result)}setData(){this.dataBefore=this.data,"content"===this.type&&(this.page.Content=this.data),"hint"===this.type&&(this.page.Hint=this.data),"result"===this.type&&(this.page.Result=this.data),this.changeEmitter.emit()}autoComplete(){let e=this.data[this.data.length-1];"["===e&&(this.data+="]"),"("===e&&(this.data+=")"),'"'===e&&(this.data+='"'),"'"===e&&(this.data+="'"),"{"===e&&(this.data+="}"),"_"===e&&(this.data+="_"),"*"===e&&(this.data+="*"),"`"===e&&(this.data+="`")}getFontSize(){return this.localStorageService.getFontSize()}getHeight(){let e=this.data.split("\n").length*this.getFontSize()*2;return e<50?50:e}}return t.\u0275fac=function(e){return new(e||t)(w(an),w(Ae))},t.\u0275cmp=ie({type:t,selectors:[["app-edit-content"]],hostBindings:function(e,r){1&e&&_("keydown.shift.alt.arrowup",function(i){return r.copyLineUp(i)},0,Re)("keydown.shift.alt.arrowdown",function(i){return r.copyLineDown(i)},!1,Re)("keydown.control.alt.b",function(i){return r.bold(i)},!1,Re)("keydown.control.alt.i",function(i){return r.italic(i)},!1,Re)("keydown.control.alt.c",function(i){return r.code(i)},!1,Re)("keydown.control.z",function(i){return r.setToDatBefore(i)},!1,Re)},inputs:{type:"type",page:"page"},outputs:{changeEmitter:"changeEmitter"},decls:4,vars:5,consts:[[1,"contentBox"],[3,"eventEmitter"],["spellcheck","false",3,"ngModel","keydown","ngModelChange","selectionchange","focusout","focus"],["editor",""]],template:function(e,r){1&e&&(p(0,"div",0)(1,"app-markdown-editor",1),_("eventEmitter",function(i){return r.onEditorInput(i)}),h(),p(2,"textarea",2,3),_("keydown",function(i){return r.handleKeydown(i)})("ngModelChange",function(i){return r.data=i})("ngModelChange",function(){return r.setData()})("selectionchange",function(i){return r.selectionchange(i)})("focusout",function(){return r.onFocusOut()})("focus",function(){return r.onFocus()}),h()()),2&e&&(v(2),Dn("font-size",r.getFontSize()+"px")("height",r.getHeight()+"px"),C("ngModel",r.data))},dependencies:[Nt,St,Dt,B3],styles:[".contentBox[_ngcontent-%COMP%]{width:80%;margin:20px auto;border:1px solid #ccc;border-radius:10px;box-shadow:2px 2px 2px #0000001a;padding:20px;font-size:20px}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;border:none;border-radius:10px;resize:vertical;color:var(--text-color);background-color:var(--bg-color)}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:1px solid #ccc}"]}),t})();function H3(t,n){if(1&t){const e=Y();p(0,"div")(1,"h1",2),f(2,"hint"),h(),p(3,"app-edit-content",3),_("changeEmitter",function(){return R(e),F(D(2).onChange())}),h()()}if(2&t){const e=D(2);v(3),C("page",e.page)}}function $3(t,n){if(1&t){const e=Y();p(0,"div")(1,"h1",2),f(2,"Result"),h(),p(3,"app-edit-content",4),_("changeEmitter",function(){return R(e),F(D(2).onChange())}),h()()}if(2&t){const e=D(2);v(3),C("page",e.page)}}function U3(t,n){if(1&t){const e=Y();p(0,"div")(1,"app-edit-content",1),_("changeEmitter",function(){return R(e),F(D().onChange())}),h(),T(2,H3,4,1,"div",0),T(3,$3,4,1,"div",0),h()}if(2&t){const e=D();v(1),C("page",e.page),v(1),C("ngIf",e.showhint),v(1),C("ngIf",e.showResult)}}let j3=(()=>{class t{constructor(){this.show=!1,this.showhint=!1,this.showResult=!1,this.changeEmitter=new le}onChange(){this.changeEmitter.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["app-edit-page"]],inputs:{page:"page",show:"show",showhint:"showhint",showResult:"showResult"},outputs:{changeEmitter:"changeEmitter"},decls:1,vars:1,consts:[[4,"ngIf"],["type","content",3,"page","changeEmitter"],[1,"heading"],["type","hint",3,"page","changeEmitter"],["type","result",3,"page","changeEmitter"]],template:function(e,r){1&e&&T(0,U3,4,3,"div",0),2&e&&C("ngIf",r.show)},dependencies:[Te,V3],styles:[".heading[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem;text-align:center;text-transform:uppercase;letter-spacing:.1rem;line-height:1.2;padding:1rem 0;border-radius:.5rem;width:20%;margin:0 auto;color:var(--text-color)}"]}),t})();function z3(t,n){if(1&t&&(p(0,"p",13),f(1),h()),2&t){const e=D();v(1),_e(e.wrongText)}}let G3=(()=>{class t{constructor(e){this.apiService=e,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1,this.updateChapter=void 0,this.isWrong=!1,this.wrongText="",this.closeEmitter=new le}submit(){var e=this;return Bi(function*(){void 0!==e.updateChapter&&(e.updateChapter.Password=e.password,e.updateChapter.Language=e.language,e.updateChapter.Description=e.description,e.updateChapter.IsPrivate=e.isPrivate,e.apiService.updateChapter(e.updateChapter).subscribe({next:r=>{r.status?(e.closeEmitter.emit(),e.name="",e.language="english",e.password="",e.description="",e.updateChapter=void 0,e.isPrivate=!1):(e.isWrong=!0,e.wrongText="error")},error:r=>{e.isWrong=!0,e.wrongText=r.message}}))})()}close(){this.closeEmitter.emit(),this.isWrong=!1,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Ae))},t.\u0275cmp=ie({type:t,selectors:[["app-edit-chapter-meta-data"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},inputs:{name:"name",language:"language",password:"password",description:"description",isPrivate:"isPrivate",updateChapter:"updateChapter"},outputs:{closeEmitter:"closeEmitter"},decls:21,vars:6,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],[2,"top","60px"],["type","text","name","language","placeholder","Language",1,"userNameInput",2,"top","110px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","130px"],["type","text","name","password","placeholder","Password",1,"userNameInput",2,"top","180px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","200px"],["type","checkbox","name","private",1,"userNameInput",2,"top","250px","cursor","pointer",3,"ngModel","ngModelChange"],[2,"top","270px"],["name","description","placeholder","Description",2,"top","390px","resize","none",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3),h(),T(4,z3,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"p",4),f(8,"Language"),h(),p(9,"input",5),_("ngModelChange",function(i){return r.language=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"p",6),f(11,"Password"),h(),p(12,"input",7),_("ngModelChange",function(i){return r.password=i})("keydown.enter",function(){return r.submit()}),h(),p(13,"p",8),f(14,"Private"),h(),p(15,"input",9),_("ngModelChange",function(i){return r.isPrivate=i}),h(),p(16,"p",10),f(17,"Description"),h(),p(18,"textarea",11),_("ngModelChange",function(i){return r.description=i}),h(),p(19,"button",12),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(20," Save "),h()()),2&e&&(v(3),_e(null==r.updateChapter?"":r.updateChapter.Title),v(1),C("ngIf",r.isWrong),v(5),C("ngModel",r.language),v(3),C("ngModel",r.password),v(3),C("ngModel",r.isPrivate),v(3),C("ngModel",r.description))},dependencies:[Te,Nt,Ri,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:550px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);color:var(--inverted-text-color);border-radius:5px;width:40%;height:40px;font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;height:150px;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:530px}"]}),t})();function W3(t,n){if(1&t){const e=Y();p(0,"button",15),_("click",function(){return R(e),F(D(2).goBack())}),f(1,"Back"),h()}}function q3(t,n){if(1&t){const e=Y();p(0,"div",16),_("click",function(){return R(e),F(D(2).setTOC(!0))}),K(1,"div",17)(2,"div",17)(3,"div",17),h()}}function Y3(t,n){if(1&t){const e=Y();p(0,"input",22),_("ngModelChange",function(o){return R(e),F(D(3).pageInput=o)})("ngModelChange",function(){return R(e),F(D(3).onPageInput())}),h()}if(2&t){const e=D(3);C("ngModel",e.pageInput)("min",1)("max",e.chapter.Pages.length)}}function Z3(t,n){if(1&t&&(p(0,"i"),f(1),h()),2&t){const e=D(3);v(1),_e("/ "+e.chapter.Pages.length)}}function X3(t,n){if(1&t){const e=Y();p(0,"app-edit-page",23),_("changeEmitter",function(){return R(e),F(D(3).onChange())}),h()}if(2&t){const e=n.$implicit,r=n.index,o=D(3);C("page",e)("show",r==o.currentPage)("showhint",!0)("showResult",!0)}}function K3(t,n){if(1&t){const e=Y();p(0,"button",11),_("click",function(){return R(e),F(D(3).setSureDelete(!0))}),f(1," Remove Page "),h()}}function Q3(t,n){if(1&t){const e=Y();p(0,"div")(1,"div",18)(2,"h1"),f(3),h(),p(4,"p")(5,"i"),f(6),h(),T(7,Y3,1,3,"input",19),T(8,Z3,2,1,"i",6),h()(),T(9,X3,1,4,"app-edit-page",20),p(10,"app-page-nav-bar",21),_("showNextEmitter",function(){return R(e),F(D(2).showNextPage())})("showPrevEmitter",function(){return R(e),F(D(2).showPrevPage())}),h(),p(11,"div",9),T(12,K3,2,0,"button",10),p(13,"button",11),_("click",function(){return R(e),F(D(2).addPage())}),f(14,"Add Page"),h()(),p(15,"div",9)(16,"button",11),_("click",function(){return R(e),F(D(2).toggleEditMetaData())}),f(17,"Edit meta data"),h(),p(18,"button",11),_("click",function(){return R(e),F(D(2).toggleAutoSave())}),f(19),h()()()}if(2&t){const e=D(2);v(3),_e(e.chapter.Title+" EDIT"),v(3),_e(e.chapter.Pages.length>0?"Page ":"No Pages"),v(1),C("ngIf",e.chapter.Pages.length>0),v(1),C("ngIf",e.chapter.Pages.length>0),v(1),C("ngForOf",e.chapter.Pages),v(1),C("showPrevButton",0!=e.currentPage)("showNextButton",e.currentPage!=e.chapter.Pages.length-1)("showResultButton",!1)("showhintButton",!1),v(2),C("ngIf",e.chapter.Pages.length>0),v(7),ot(" ","Autosave "+(e.getAutoSave()?"ON":"OFF")," ")}}function J3(t,n){1&t&&(p(0,"h1",24),f(1,"PREVIEW"),h())}function eH(t,n){if(1&t&&K(0,"app-chapter",25),2&t){const e=D(2);C("chapter",e.chapter)("currentPage",e.currentPage)}}function tH(t,n){if(1&t){const e=Y();p(0,"button",11),_("click",function(){return R(e),F(D(2).togglePreview())}),f(1),h()}if(2&t){const e=D(2);v(1),ot(" ",e.preview?"Edit":"Preview"," ")}}function nH(t,n){if(1&t){const e=Y();p(0,"app-table-of-content",26),_("event",function(o){return R(e),F(D(2).onTOCInput(o))}),h()}2&t&&C("chapter",D(2).chapter)}function rH(t,n){if(1&t){const e=Y();p(0,"app-edit-chapter-meta-data",27),_("closeEmitter",function(){return R(e),F(D(2).toggleEditMetaData())}),h()}if(2&t){const e=D(2);C("updateChapter",e.chapter)("name",e.chapter.Title)("description",e.chapter.Description)("language",e.chapter.Language)("password",e.chapterPassword)("isPrivate",e.chapter.IsPrivate)}}function oH(t,n){if(1&t){const e=Y();p(0,"app-are-you-sure",28),_("sureEmitter",function(o){return R(e),F(D(2).deletePage(o))}),h()}}function iH(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"div",3),T(2,W3,2,0,"button",4),T(3,q3,4,0,"div",5),h(),T(4,Q3,20,11,"div",6),T(5,J3,2,0,"h1",7),T(6,eH,1,2,"app-chapter",8),p(7,"div",9),T(8,tH,2,1,"button",10),p(9,"button",11),_("click",function(){return R(e),F(D().save())}),f(10),h()(),T(11,nH,1,1,"app-table-of-content",12),T(12,rH,1,6,"app-edit-chapter-meta-data",13),T(13,oH,1,0,"app-are-you-sure",14),h()}if(2&t){const e=D();v(2),C("ngIf",!e.preview),v(1),C("ngIf",!e.preview),v(1),C("ngIf",!e.preview),v(1),C("ngIf",e.preview),v(1),C("ngIf",e.preview),v(2),C("ngIf",e.chapter.Pages.length>0),v(2),_e((e.changes?"*":"")+"Save"),v(1),C("ngIf",e.showTOC),v(1),C("ngIf",e.editMetaData),v(1),C("ngIf",e.sureDelete)}}let sH=(()=>{class t{constructor(e,r,o,i,s){this.apiService=e,this.router=r,this.route=o,this.chapterManager=i,this.localStorageService=s,this.currentPage=0,this.preview=!1,this.changes=!1,this.sureDelete=!1,this.editMetaData=!1,this.contentVisible=!0,this.chapterName="",this.pageInput=1,this.showTOC=!1,this.chapterPassword=""}ngOnInit(){let e=this.route.snapshot.paramMap.get("chapterName");null!=e?(this.chapterName=e,this.chapterManager.init().then(()=>{this.chapter=this.chapterManager.getChapterByName(this.chapterName,!0),2==Q.userLevel||1==Q.userLevel&&this.chapter.Author==Q.userName?this.contentVisible=!0:this.router.navigate(["/login"]);let r=this.localStorageService.getPageForChapter(this.chapterName);r<0&&(r=0),r>this.chapter.Pages.length-1&&(r=this.chapter.Pages.length-1),this.currentPage=r,this.pageInput=this.currentPage+1})):this.router.navigate(["/"])}onPageInput(){this.pageInput<1?this.pageInput=1:this.pageInput>this.chapter.Pages.length?this.pageInput=this.chapter.Pages.length:this.currentPage=this.pageInput-1}setTOC(e){this.showTOC=e}onTOCInput(e){-1!=e?(this.currentPage=e,this.pageInput=this.currentPage+1):this.showTOC=!1}showNextPage(){this.currentPage!=this.chapter.Pages.length-1&&(this.currentPage++,this.pageInput=this.currentPage+1,window.scrollTo({top:0}))}showPrevPage(){0!=this.currentPage&&(this.currentPage--,this.pageInput=this.currentPage+1,window.scrollTo({top:0}))}addPage(){this.chapter.Pages.push(new gV("","","")),this.currentPage=this.chapter.Pages.length-1,this.pageInput=this.currentPage+1,window.scrollTo({top:0}),this.changes=!0}setSureDelete(e){this.sureDelete=e}deletePage(e){e&&(this.chapter.Pages.splice(this.currentPage,1),this.currentPage=this.currentPage-1,this.currentPage<0&&(this.currentPage=0),this.pageInput=this.currentPage+1,window.scrollTo({top:0}),this.changes=!0),this.sureDelete=!1}save(e=!0){this.apiService.updateChapter(this.chapter).subscribe({next:r=>{r.status?(e&&ke.showNotification("Chapter saved","The chapter was saved successfully!",2e3),this.changes=!1):ke.showNotification("Chapter could not be saved","The chapter could not be saved!",5e3,!0)},error:r=>{ke.showNotification("ERROR","Chapter could not be saved: "+r.message+"!",-1,!0)}})}onChange(){this.changes=!0}togglePreview(){this.preview=!this.preview,window.scrollTo({top:0})}toggleAutoSave(){t.autoSave=!t.autoSave,this.setAutoSave()}toggleEditMetaData(){this.editMetaData=!this.editMetaData,this.editMetaData&&(console.log(this.chapterName),this.apiService.getChapterPassword(this.chapter.Title,Q.userName,Q.password).subscribe({next:e=>{this.chapterPassword=e.password},error:e=>{ke.showNotification("ERROR","Error getting chapter password: "+e.message+"!",-1,!0),this.chapterPassword=this.chapter.Password}}))}getAutoSave(){return t.autoSave}setAutoSave(){t.autoSave?t.interval=setInterval(()=>{this.save(!1)},1e4):clearInterval(t.interval)}goBack(){this.changes&&this.save(!1),clearInterval(t.interval),this.router.navigate(["/"])}}return t.autoSave=!1,t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Ve),w(cr),w(Io),w(an))},t.\u0275cmp=ie({type:t,selectors:[["app-edit-chapter"]],hostBindings:function(e,r){1&e&&_("keydown.control.alt.s",function(i){return r.save(i)},0,Re)("keydown.control.alt.p",function(i){return r.togglePreview(i)},!1,Re)},inputs:{chapter:"chapter"},decls:2,vars:2,consts:[["class","content",4,"ngIf"],[1,"sticky",3,"chapter","pageChange"],[1,"content"],[1,"header"],["class","backButton",3,"click",4,"ngIf"],["class","tocButton",3,"click",4,"ngIf"],[4,"ngIf"],["class","previewHeading",4,"ngIf"],[3,"chapter","currentPage",4,"ngIf"],[1,"editButtons"],[3,"click",4,"ngIf"],[3,"click"],[3,"chapter","event",4,"ngIf"],[3,"updateChapter","name","description","language","password","isPrivate","closeEmitter",4,"ngIf"],[3,"sureEmitter",4,"ngIf"],[1,"backButton",3,"click"],[1,"tocButton",3,"click"],[1,"bar"],[1,"heading"],["class","pageInput","type","number",3,"ngModel","min","max","ngModelChange",4,"ngIf"],[3,"page","show","showhint","showResult","changeEmitter",4,"ngFor","ngForOf"],[3,"showPrevButton","showNextButton","showResultButton","showhintButton","showNextEmitter","showPrevEmitter"],["type","number",1,"pageInput",3,"ngModel","min","max","ngModelChange"],[3,"page","show","showhint","showResult","changeEmitter"],[1,"previewHeading"],[3,"chapter","currentPage"],[3,"chapter","event"],[3,"updateChapter","name","description","language","password","isPrivate","closeEmitter"],[3,"sureEmitter"]],template:function(e,r){1&e&&(T(0,iH,14,10,"div",0),p(1,"app-header",1),_("pageChange",function(i){return r.onTOCInput(i-1)}),h()),2&e&&(C("ngIf",r.contentVisible),v(1),C("chapter",r.chapter))},dependencies:[Sn,Te,Nt,Vc,St,$c,Hc,Dt,kr,YM,XM,j3,WM,G3,ZM],styles:[".heading[_ngcontent-%COMP%]{text-align:center;color:var(--text-color)}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]{background-color:#7a7a7a44;color:var(--text-color);border-radius:10%;border:none;width:30px;font-size:15px;text-align:center;transition:.2s;box-shadow:none;margin:0 0 0 3px}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]:focus{outline:none;width:50px}.heading[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.content[_ngcontent-%COMP%]{margin-top:100px}.editButtons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:20px}.editButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px;cursor:pointer;height:50px;width:300px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.editButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.05)}.header[_ngcontent-%COMP%]{width:100%;margin-top:20px;display:flex}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.header[_ngcontent-%COMP%] .backButton[_ngcontent-%COMP%]{margin-left:20px;margin-right:auto}.tocButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px;cursor:pointer}.tocButton[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:40px;height:4px;background-color:var(--text-color);margin:6px 0;transition:.4s;border-radius:5px}.previewHeading[_ngcontent-%COMP%]{width:100%;text-align:center;color:var(--text-color)}"]}),t})(),aH=(()=>{class t{constructor(e){this.router=e,this.selected="storage",this.selectedChange=new le}setSelected(e){this.selected=e,this.router.navigate(["/settings",e]),this.selectedChange.emit(e)}getUserLevel(){return Q.userLevel}}return t.\u0275fac=function(e){return new(e||t)(w(Ve))},t.\u0275cmp=ie({type:t,selectors:[["app-settings-header"]],inputs:{selected:"selected"},outputs:{selectedChange:"selectedChange"},decls:9,vars:8,consts:[[1,"header"],[3,"click"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"button",1),_("click",function(){return r.setSelected("storage")}),f(2," Storage "),h(),p(3,"button",1),_("click",function(){return r.setSelected("server")}),f(4," Server "),h(),p(5,"button",1),_("click",function(){return r.setSelected("user")}),f(6," User "),h(),p(7,"button",1),_("click",function(){return r.setSelected("about")}),f(8," About "),h()()),2&e&&(v(1),Rn("storage"==r.selected?"selected":""),v(2),Rn("server"==r.selected?"selected":""),v(2),Rn("user"==r.selected?"selected":""),v(2),Rn("about"==r.selected?"selected":""))},styles:[".header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center;transition:.3s}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:150px;margin-left:20px;font-size:20px;padding:10px;cursor:pointer;border:none;background:none;color:var(--text-color);border-radius:10px}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);box-shadow:0 0 10px 0 var(--secondary-color)}.header[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{border:2px solid var(--secondary-color);box-shadow:0 0 10px 0 var(--secondary-color)}@media screen and (max-width: 600px){.header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center;transition:.3s}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100px;margin-left:10px;font-size:15px;padding:5px}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:none;box-shadow:0 0 0 0 var(--secondary-color)}}"]}),t})();function lH(t,n){if(1&t&&(p(0,"option",7),f(1),h()),2&t){const e=n.$implicit;C("value",e),v(1),ot(" ",e," ")}}let cH=(()=>{class t{constructor(e){this.chaptermanagerService=e,this.chapterEmitter=new le,this.selectedchapter="",this.chapterNames=[]}ngOnInit(){const e=this.chaptermanagerService.allChapters;for(let r of e){if(0==Q.userLevel)return;(r.Author==Q.userName||2==Q.userLevel)&&this.chapterNames.push(r.Title)}}close(){this.chapterEmitter.emit("")}selectTheChapter(){this.chapterEmitter.emit(this.selectedchapter)}}return t.\u0275fac=function(e){return new(e||t)(w(Io))},t.\u0275cmp=ie({type:t,selectors:[["app-select-chapter"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},outputs:{chapterEmitter:"chapterEmitter"},decls:11,vars:2,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"buttonContainer"],["name","SelectChapter",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Select chapter"),h(),p(4,"button",2),_("click",function(){return r.close()}),f(5,"X"),h(),p(6,"div",3)(7,"select",4),_("ngModelChange",function(i){return r.selectedchapter=i}),T(8,lH,2,2,"option",5),h(),p(9,"button",6),_("click",function(){return r.selectTheChapter()}),f(10," Ok "),h()()()),2&e&&(v(7),C("ngModel",r.selectedchapter),v(1),C("ngForOf",r.chapterNames))},dependencies:[Sn,da,pa,Po,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function uH(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"Export chapter"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().showSelectChapter=!0)}),f(4,"Export"),h()()}}function dH(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"Import chapter"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().importChapter())}),f(4,"Import"),h()()}}function pH(t,n){if(1&t){const e=Y();p(0,"app-select-chapter",7),_("chapterEmitter",function(o){return R(e),F(D().exportChapter(o))}),h()}}let hH=(()=>{class t{constructor(e,r,o){this.localStorageService=e,this.chaptermanagerService=r,this.irisinterfaceService=o,this.showSelectChapter=!1}clearStorage(){this.localStorageService.clearAll(),ke.showNotification("Success","Storage cleared!")}getRememberPage(){return this.localStorageService.rememberPage}toggleRememberPage(){this.localStorageService.setRememberPage(!this.localStorageService.rememberPage)}exportChapter(e){if(this.showSelectChapter=!1,""==e)return;const r=this.chaptermanagerService.getChapterByName(e,!1);console.log(r);const o="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(r)),i=document.createElement("a");i.setAttribute("href",o),i.setAttribute("download",r.Title.replace(/ /g,"-")+".woop"),document.body.appendChild(i),i.click(),i.remove()}importChapter(){const e=document.createElement("input");e.type="file",e.accept=".woop",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsText(o,"UTF-8"),i.onload=s=>{let l=JSON.parse(s.target.result);l.Author=Q.userName,this.irisinterfaceService.importChapter(Q.userName,Q.password,l).subscribe({next:c=>{c.status?(ke.showNotification("Chapter imported","The chapter was imported successfully!"),this.chaptermanagerService.chapters.push(l)):ke.showNotification("Chapter import failed","The chapter could not be imported!",5e3,!0)},error:c=>{ke.showNotification("ERROR","Chapter import failed: "+c.message+"!",-1,!0)}})}},e.click()}getUserLevel(){return Q.userLevel}}return t.\u0275fac=function(e){return new(e||t)(w(an),w(Io),w(Ae))},t.\u0275cmp=ie({type:t,selectors:[["app-storage-settings"]],decls:14,vars:5,consts:[[1,"container"],["class","row",4,"ngIf"],[1,"row"],[1,"label"],[1,"action",3,"click"],[1,"red","action",3,"click"],[3,"chapterEmitter",4,"ngIf"],[3,"chapterEmitter"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,uH,5,0,"div",1),T(2,dH,5,0,"div",1),p(3,"div",2)(4,"p",3),f(5),h(),p(6,"button",4),_("click",function(){return r.toggleRememberPage()}),f(7),h()(),p(8,"div",2)(9,"p",3),f(10,"Clear Local Storage"),h(),p(11,"button",5),_("click",function(){return r.clearStorage()}),f(12,"Clear"),h()()(),T(13,pH,1,0,"app-select-chapter",6)),2&e&&(v(1),C("ngIf",r.getUserLevel()>0),v(1),C("ngIf",r.getUserLevel()>0),v(3),ot(" ","Remember Page: "+(r.getRememberPage()?"ON":"OFF")," "),v(2),ot(" ",r.getRememberPage()?"Turn OFF":"Turn ON"," "),v(6),C("ngIf",r.showSelectChapter))},dependencies:[Te,cH],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function fH(t,n){if(1&t&&(p(0,"option",12),f(1),h()),2&t){const e=n.$implicit;C("value",e.name),v(1),ot(" ",e.name," ")}}function gH(t,n){if(1&t){const e=Y();p(0,"button",13),_("click",function(){return R(e),F(D().removeConnection())}),f(1," Remove "),h()}}let mH=(()=>{class t{constructor(e,r){this.localStorageService=e,this.router=r,this.connection="",this.name="",this.host="",this.port=0,this.host=e.getServerHost(),this.port=e.getServerPort()}connect(){this.localStorageService.setServerHost(this.host),this.localStorageService.setServerPort(this.port),this.router.navigate(["/"])}removeConnection(){this.localStorageService.removeServerConnection(this.connection),this.connection="",this.openConnection()}saveConnection(){""!==this.name?(this.localStorageService.addServerConnection(this.name,this.host,this.port),ke.showNotification("Success","Connection saved!")):ke.showNotification("Error","Please enter a name for the connection!",-1,!0)}openConnection(){if(""===this.connection)return this.name="",this.host=this.localStorageService.getServerHost(),void(this.port=this.localStorageService.getServerPort());const e=this.localStorageService.getConnection(this.connection);e&&(this.name=e.name,this.host=e.host,this.port=e.port)}getConnections(){return this.localStorageService.getAllServerConnections()}isCurrentConnection(){return this.localStorageService.getServerHost()===this.host&&this.localStorageService.getServerPort()===this.port}getCurrentConnection(){return Ae.host+":"+Ae.port}}return t.\u0275fac=function(e){return new(e||t)(w(an),w(Ve))},t.\u0275cmp=ie({type:t,selectors:[["app-server-settings"]],decls:32,vars:9,consts:[[1,"container"],[1,"row"],[1,"label"],["name","Level",2,"width","110px",3,"ngModel","ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","text","placeholder","Name",1,"action",3,"ngModel","ngModelChange"],["type","text","placeholder","Host",1,"action",3,"ngModel","ngModelChange"],["type","text","placeholder","Port",1,"action",3,"ngModel","ngModelChange"],["class","action red",3,"click",4,"ngIf"],[1,"action",3,"click"],[1,"action","green",3,"click"],[3,"value"],[1,"action","red",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"div",1)(2,"p",2),f(3," Current connection: "),p(4,"i"),f(5),h()()(),p(6,"div",1)(7,"p",2),f(8,"Select Connection"),h(),p(9,"select",3),_("ngModelChange",function(i){return r.connection=i})("ngModelChange",function(){return r.openConnection()}),p(10,"option",4),f(11,"NEW"),h(),T(12,fH,2,2,"option",5),h()(),p(13,"div",1)(14,"p",2),f(15,"Connection Name"),h(),p(16,"input",6),_("ngModelChange",function(i){return r.name=i}),h()(),p(17,"div",1)(18,"p",2),f(19,"Host"),h(),p(20,"input",7),_("ngModelChange",function(i){return r.host=i}),h()(),p(21,"div",1)(22,"p",2),f(23,"Port"),h(),p(24,"input",8),_("ngModelChange",function(i){return r.port=i}),h()(),p(25,"div",1),K(26,"p",2),T(27,gH,2,0,"button",9),p(28,"button",10),_("click",function(){return r.saveConnection()}),f(29),h(),p(30,"button",11),_("click",function(){return r.connect()}),f(31),h()()()),2&e&&(v(5),_e(r.getCurrentConnection()),v(4),C("ngModel",r.connection),v(3),C("ngForOf",r.getConnections()),v(4),C("ngModel",r.name),v(4),C("ngModel",r.host),v(4),C("ngModel",r.port),v(3),C("ngIf",""!=r.connection),v(2),ot(" ",""===r.connection?"Save":"Update"," "),v(2),ot(" ","Connect"+(r.isCurrentConnection()?"":"*")," "))},dependencies:[Sn,Te,da,pa,Nt,Po,St,Dt],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function _H(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"Log in"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().logIn())}),f(4,"Log in"),h()()}}function vH(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2," Username: "),p(3,"i"),f(4),h()(),p(5,"button",4),_("click",function(){return R(e),F(D().logOut())}),f(6,"Log out"),h()()}if(2&t){const e=D();v(4),_e(e.getUsername()+(2==e.getUserLevel()?" Admin":""))}}function CH(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"Change Password"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().changePassword())}),f(4,"Change"),h()()}}function yH(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"New User"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().addUser())}),f(4,"Add"),h()()}}function wH(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"Configure Admin Rights"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().makeUserAdmin())}),f(4,"Configure"),h()()}}function bH(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"Delete User"),h(),p(3,"button",5),_("click",function(){return R(e),F(D().deleteUser())}),f(4,"Delete"),h()()}}let MH=(()=>{class t{constructor(e,r){this.router=e,this.localStorageService=r}changePassword(){this.router.navigate(["user/change/password"])}addUser(){this.router.navigate(["user/add"])}deleteUser(){this.router.navigate(["user/delete"])}makeUserAdmin(){this.router.navigate(["user/make/admin"])}logIn(){this.router.navigate(["login"])}logOut(){Q.userLevel=0,Q.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}getUserLevel(){return Q.userLevel}getUsername(){return Q.userName}}return t.\u0275fac=function(e){return new(e||t)(w(Ve),w(an))},t.\u0275cmp=ie({type:t,selectors:[["app-user-settings"]],decls:7,vars:6,consts:[[1,"container"],["class","row",4,"ngIf"],[1,"row"],[1,"label"],[1,"action",3,"click"],[1,"action","red",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,_H,5,0,"div",1),T(2,vH,7,1,"div",1),T(3,CH,5,0,"div",1),T(4,yH,5,0,"div",1),T(5,wH,5,0,"div",1),T(6,bH,5,0,"div",1),h()),2&e&&(v(1),C("ngIf",0==r.getUserLevel()),v(1),C("ngIf",r.getUserLevel()>0),v(1),C("ngIf",r.getUserLevel()>0),v(1),C("ngIf",2==r.getUserLevel()),v(1),C("ngIf",2==r.getUserLevel()),v(1),C("ngIf",2==r.getUserLevel()))},dependencies:[Te],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})(),DH=(()=>{class t{constructor(e,r){this.router=e,this.metaDataService=r}getHelp(){this.router.navigate(["help"])}whatsNew(){this.router.navigate(["info"])}getVersion(){return this.metaDataService.version}goToImpressum(){this.router.navigate(["impressum"])}}return t.\u0275fac=function(e){return new(e||t)(w(Ve),w(ff))},t.\u0275cmp=ie({type:t,selectors:[["app-about-settings"]],decls:28,vars:1,consts:[[1,"container"],[1,"row"],[1,"label"],[1,"action",3,"click"],["href","mailto:Philipp.Bonin@intersystems.com?subject=WOOP%20Issue",1,"actionA"],["href","https://github.com/phil1436/InterSystemsWOOP","target","_blank",1,"actionA"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"div",1)(2,"p",2),f(3," Version: "),p(4,"i"),f(5),h()(),p(6,"button",3),_("click",function(){return r.whatsNew()}),f(7,"Info"),h()(),p(8,"div",1)(9,"p",2),f(10,"Need Help?"),h(),p(11,"button",3),_("click",function(){return r.getHelp()}),f(12,"Get Help"),h()(),p(13,"div",1)(14,"p",2),f(15,"Report an Issue"),h(),p(16,"a",4),f(17," Report "),h()(),p(18,"div",1)(19,"p",2),f(20,"Impressum"),h(),p(21,"button",3),_("click",function(){return r.goToImpressum()}),f(22,"View"),h()(),p(23,"div",1)(24,"p",2),f(25,"View on GitHub"),h(),p(26,"a",5),f(27," View "),h()()()),2&e&&(v(5),_e(r.getVersion()))},styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function EH(t,n){1&t&&K(0,"app-storage-settings")}function xH(t,n){1&t&&K(0,"app-server-settings")}function SH(t,n){1&t&&K(0,"app-user-settings")}function PH(t,n){1&t&&K(0,"app-about-settings")}function OH(t,n){if(1&t&&(p(0,"div",5),T(1,EH,1,0,"app-storage-settings",6),T(2,xH,1,0,"app-server-settings",6),T(3,SH,1,0,"app-user-settings",6),T(4,PH,1,0,"app-about-settings",6),h()),2&t){const e=D();v(1),C("ngIf","storage"==e.selected.toLowerCase()),v(1),C("ngIf","server"==e.selected.toLowerCase()),v(1),C("ngIf","user"==e.selected.toLowerCase()),v(1),C("ngIf","about"==e.selected.toLowerCase())}}let KM=(()=>{class t{constructor(e,r){this.router=e,this.route=r,this.selected=""}ngOnInit(){let e=this.route.snapshot.paramMap.get("settingsName");this.selected=null!=e?e:""}setSelected(e){this.selected=e}goBack(){this.router.navigate(["/"])}getUserLevel(){return Q.userLevel}}return t.\u0275fac=function(e){return new(e||t)(w(Ve),w(cr))},t.\u0275cmp=ie({type:t,selectors:[["app-settings-advanced"]],decls:6,vars:3,consts:[[1,"sticky",3,"enableSearchBar"],[1,"settingsHeader"],[1,"backButton",3,"click"],[3,"selected","selectedChange"],["class","settings",4,"ngIf"],[1,"settings"],[4,"ngIf"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"div",1)(2,"button",2),_("click",function(){return r.goBack()}),f(3,"Back"),h(),p(4,"app-settings-header",3),_("selectedChange",function(i){return r.setSelected(i)}),h()(),T(5,OH,5,4,"div",4)),2&e&&(C("enableSearchBar",!1),v(4),C("selected",r.selected),v(1),C("ngIf",""!=r.selected))},dependencies:[Te,kr,aH,hH,mH,MH,DH],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.settingsHeader[_ngcontent-%COMP%]{margin-top:100px}.settings[_ngcontent-%COMP%]{width:90%;margin:30px auto 20px;padding:20px;border-radius:10px;box-shadow:0 0 10px #0003}.backButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}@media screen and (max-width: 800px){.backButton[_ngcontent-%COMP%]{display:none}}"]}),t})(),IH=(()=>{class t{constructor(e){this.router=e}goToServerSettings(){this.router.navigate(["/settings/server"])}}return t.\u0275fac=function(e){return new(e||t)(w(Ve))},t.\u0275cmp=ie({type:t,selectors:[["app-error-page"]],decls:9,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"container"],["src","https://media.makeameme.org/created/what-has-happened.jpg"],[3,"click"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"div",1)(2,"h1"),f(3,"(W)OOPs..."),h(),K(4,"img",2),p(5,"p"),f(6,"Looks like the server could not be reached!"),h(),p(7,"button",3),_("click",function(){return r.goToServerSettings()}),f(8,"Go to Server Settings"),h()()),2&e&&C("enableSearchBar",!1)},dependencies:[kr],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;color:var(--text-color);margin-top:50px;margin-bottom:50px}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:4rem;font-weight:700;margin-bottom:20px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:20px;padding:10px 20px;border-radius:10px;border:none;background-color:var(--primary-color);color:var(--inverted-text-color);cursor:pointer;transition:all .3s ease-in-out;font-size:20px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1.1}"]}),t})(),TH=(()=>{class t{constructor(e){this.router=e}goBack(){this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(Ve))},t.\u0275cmp=ie({type:t,selectors:[["app-markdown-cheat-sheet"]],decls:148,vars:2,consts:[[1,"sticky",3,"enableSearchBar"],[1,"container"],[1,"backButton",3,"click"],["id","basic-syntax"],["href","https://www.markdownguide.org/basic-syntax/#headings","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#bold","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#italic","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#blockquotes-1","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#ordered-lists","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#unordered-lists","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#code","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#horizontal-rules","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#links","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#images-1","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#tables","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#fenced-code-blocks","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#strikethrough","target","_blank"],["href","https://www.markdownguide.org/assets/markdown-cheat-sheet.md","target","_blank","download","markdown-cheat-sheet.md"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"div",1)(2,"button",2),_("click",function(){return r.goBack()}),f(3,"Back"),h(),p(4,"h1",3),f(5,"Markdown Syntax"),h(),p(6,"table")(7,"tr")(8,"th"),f(9,"Element"),h(),p(10,"th"),f(11,"Markdown Syntax"),h()(),p(12,"tr")(13,"td")(14,"a",4),f(15," Heading "),h()(),p(16,"td")(17,"code"),f(18,"# H1"),K(19,"br"),f(20," ## H2"),K(21,"br"),f(22," ### H3 "),h()()(),p(23,"tr")(24,"td")(25,"a",5),f(26," Bold "),h()(),p(27,"td")(28,"code"),f(29,"**bold text**"),h()()(),p(30,"tr")(31,"td")(32,"a",6),f(33," Italic "),h()(),p(34,"td")(35,"code"),f(36,"*italicized text*"),h()()(),p(37,"tr")(38,"td")(39,"a",7),f(40," Blockquote "),h()(),p(41,"td")(42,"code"),f(43,"> blockquote"),h()()(),p(44,"tr")(45,"td")(46,"a",8),f(47,"Ordered List"),h()(),p(48,"td")(49,"code"),f(50," 1. First item"),K(51,"br"),f(52," 2. Second item"),K(53,"br"),f(54," 3. Third item"),K(55,"br"),h()()(),p(56,"tr")(57,"td")(58,"a",9),f(59,"Unordered List"),h()(),p(60,"td")(61,"code"),f(62," - First item"),K(63,"br"),f(64," - Second item"),K(65,"br"),f(66," - Third item"),K(67,"br"),h()()(),p(68,"tr")(69,"td")(70,"a",10),f(71,"Code"),h()(),p(72,"td")(73,"code"),f(74,"`code`"),h()()(),p(75,"tr")(76,"td")(77,"a",11),f(78,"Horizontal Rule"),h()(),p(79,"td")(80,"code"),f(81,"---"),h()()(),p(82,"tr")(83,"td")(84,"a",12),f(85,"Link"),h()(),p(86,"td")(87,"code"),f(88,"[title](https://www.example.com)"),h()()(),p(89,"tr")(90,"td")(91,"a",13),f(92,"Image"),h()(),p(93,"td")(94,"code"),f(95,"![alt text](image.jpg)"),h()()(),p(96,"tr")(97,"td"),f(98,"Image with CSS"),h(),p(99,"td")(100,"code"),f(101),h()()(),p(102,"tr")(103,"td")(104,"a",14),f(105,"Table"),h()(),p(106,"td")(107,"code"),f(108," | Syntax | Description |"),K(109,"br"),f(110," | ----------- | ----------- |"),K(111,"br"),f(112," | Header | Title |"),K(113,"br"),f(114," | Paragraph | Text | "),h()()(),p(115,"tr")(116,"td")(117,"a",15),f(118,"Fenced Code Block"),h()(),p(119,"td")(120,"code"),f(121," ```language"),K(122,"br"),f(123,' this = codeblock["fenced"]'),K(124,"br"),f(125," ``` "),h()()(),p(126,"tr")(127,"td"),f(128,"Code Window"),h(),p(129,"td")(130,"code"),f(131," ~~~language"),K(132,"br"),f(133,' this = codeblock["fenced"]'),K(134,"br"),f(135," ~~~ "),h()()(),p(136,"tr")(137,"td")(138,"a",16),f(139,"Strikethrough"),h()(),p(140,"td")(141,"code"),f(142,"~~The world is flat.~~"),h()()()(),p(143,"p"),f(144," You can "),p(145,"a",17),f(146,"download this cheat sheet as a Markdown file"),h(),f(147," for use in your Markdown application. "),h()()),2&e&&(C("enableSearchBar",!1),v(101),_e("![alt text](image.jpg){width: 100px; height:100px}"))},dependencies:[kr],styles:[".container[_ngcontent-%COMP%]{padding-top:100px;padding-left:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color);text-decoration:none}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:90%;border:1px solid var(--text-color);box-shadow:0 0 20px #00000026}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;padding:16px}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:var(--header-color)}.backButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})();function kH(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();v(1),_e(e.wrongMessage)}}let AH=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){return this.enteredPassword!==this.enteredConfirmPassword?(this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.entereduserName.length<1?(this.wrongMessage="Username cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.enteredPassword.length<1?(this.wrongMessage="Password cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):void this.apiService.addUser(Q.userName,Q.password,this.entereduserName,this.enteredPassword).subscribe({next:e=>{e.status?(ke.showNotification("User added successfully!","The user was added successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Yr))},t.\u0275cmp=ie({type:t,selectors:[["app-add-user"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","text","name","password","placeholder","Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","text","name","confirmPassword","placeholder","Confirm Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Add User"),h(),T(4,kH,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),_("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Submit "),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("ngModel",r.entereduserName),v(1),C("ngModel",r.enteredPassword),v(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Te,Nt,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function NH(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();v(1),_e(e.wrongMessage)}}let RH=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.oldPassword="",this.isWrong=!1,this.wrongMessage=""}submit(){return this.enteredPassword!==this.enteredConfirmPassword?(this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.enteredPassword.length<1?(this.wrongMessage="Password cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):void this.apiService.changePassword(Q.userName,this.oldPassword,this.enteredPassword).subscribe({next:e=>{e.status?(ke.showNotification("Password changed successfully!","The password was changed successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.oldPassword="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Yr))},t.\u0275cmp=ie({type:t,selectors:[["app-change-password"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","password","name","oldPassword","placeholder","Old Password",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","New Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm New Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Change Password"),h(),T(4,NH,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.oldPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),_("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Submit "),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("ngModel",r.oldPassword),v(1),C("ngModel",r.enteredPassword),v(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Te,Nt,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function FH(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();v(1),_e(e.wrongMessage)}}let LH=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){if(this.enteredPassword!==this.enteredConfirmPassword)return this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="");this.apiService.deleteUser(Q.userName,this.enteredPassword,this.entereduserName).subscribe({next:e=>{e.status?(ke.showNotification("User deleted successfully!","The user was deleted successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Yr))},t.\u0275cmp=ie({type:t,selectors:[["app-delete-user"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username to delete",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","Your Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm Your Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Delete User"),h(),T(4,FH,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),_("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Delete "),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("ngModel",r.entereduserName),v(1),C("ngModel",r.enteredPassword),v(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Te,Nt,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:red;border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})(),BH=(()=>{class t{goBack(){window.history.back()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["app-get-help"]],decls:188,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"],["href","","target","_blank"],[2,"font-size","10px"],["href","https://github.com/phil1436","target","_blank"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"button",1),_("click",function(){return r.goBack()}),f(2,"Back"),h(),p(3,"div",2)(4,"h1"),f(5,"InterSystems Workshop Organizer and Optimizer Program "),p(6,"i"),f(7,"HELP"),h()(),p(8,"p"),f(9," This program is designed to help you organize and optimize your InterSystems workshop. It will help you to determine the best order to present the material. "),h(),p(10,"h2"),f(11,"Connect to an instance"),h(),p(12,"p"),f(13," Click on the "),p(14,"b"),f(15,"Settings Icon"),h(),f(16," in the top right corner of the screen. Select "),p(17,"i"),f(18,"Advanced"),h(),f(19," and go to the "),p(20,"i"),f(21,"Server"),h(),f(22," tab. Type in the host adress and port number of the instance you want to connect to and click "),p(23,"b"),f(24,"Connect"),h(),f(25,". You can store the connection information by giving the connection a name and click on "),p(26,"b"),f(27,"Save"),h(),f(28,".You can then select the connection from the "),p(29,"i"),f(30,"Connection"),h(),f(31," dropdown menu. "),h(),p(32,"h2"),f(33,"Navigation"),h(),p(34,"ul")(35,"li"),f(36," You can always click on the logo in the top left corner to go back to the home screen. "),h(),p(37,"li"),f(38," You can click on "),p(39,"i"),f(40,"Log in"),h(),f(41," in the top right corner to log in to account or when you are already logged in, you can click on your name to log out of your account. "),h(),p(42,"li"),f(43," You can click on the "),p(44,"b"),f(45,"Settings Icon"),h(),f(46," in the top right corner of the screen to open the shortcut settings. From there you can select "),p(47,"i"),f(48,"Advanced"),h(),f(49," to open the advanced settings. "),h()(),p(50,"h2"),f(51,"Create a new Chapter"),h(),p(52,"p")(53,"i"),f(54," You have to be logged in to create a new chapter! "),h()(),p(55,"ol")(56,"li"),f(57,"Go to the home screen."),h(),p(58,"li"),f(59,"Click on the "),p(60,"b"),f(61,"+"),h(),f(62," icon."),h(),p(63,"li"),f(64," Fill in the following information: "),p(65,"ul")(66,"li")(67,"b"),f(68,"Name"),h(),f(69," - The name of the chapter. This will be displayed in the chapter list. "),h(),p(70,"li")(71,"b"),f(72,"Language"),h(),f(73," - The language of the chapter."),h(),p(74,"li")(75,"b"),f(76,"Password"),h(),f(77," - You can set a password for the chapter. If you leave this field empty, the chapter will be public. "),h(),p(78,"li")(79,"b"),f(80,"Private"),h(),f(81," - If enabeled the chapter will be private and only accessible by you and the admins. "),h(),p(82,"li")(83,"b"),f(84,"Description"),h(),f(85," - Add a description to the chapter. This will be displayed in the chapter list. "),h()()(),p(86,"li"),f(87,"Click on "),p(88,"b"),f(89,"Create"),h(),f(90," to save the chapter."),h()(),p(91,"h2"),f(92,"Edit a chapter"),h(),p(93,"p")(94,"i"),f(95," You have to be logged in to edit a chapter! "),h()(),p(96,"p"),f(97," You can edit a chapter by clicking on the "),p(98,"b"),f(99,"Edit"),h(),f(100," icon in the chapter list. Write the content of your chapters in markdown. You can find a markdown cheat sheet by clicking on the "),p(101,"b"),f(102,"Help"),h(),f(103," button in the editor. "),h(),p(104,"p"),f(105," You can add a hint and a result on each page of your chapter. If you leave the hint or result empty, they will not be displayed. "),h(),p(106,"p"),f(107," You can add and remove a page by clicking on "),p(108,"b"),f(109,"Add Page"),h(),f(110," and "),p(111,"b"),f(112,"Remove Page"),h(),f(113,". To show a Preview of your chapter, click on "),p(114,"b"),f(115,"Preview"),h(),f(116,". To save your changes, click on "),p(117,"b"),f(118,"Save"),h(),f(119,". You can see if there are unsaved changes by looking at the "),p(120,"b"),f(121,"Save"),h(),f(122," button. If there "),p(123,"b"),f(124,"*Save"),h(),f(125," is displayed, there are unsaved changes. You can turn on autosave by clicking on "),p(126,"b"),f(127,"Autosave"),h(),f(128,". If autosave is turned on, your changes will be saved every 10 seconds. You can edit the metadata of your chapter by clicking on "),p(129,"b"),f(130,"Edit meta data"),h(),f(131,". "),h(),p(132,"h2"),f(133,"Create your own instance"),h(),p(134,"p"),f(135," Before you can create your own instance, you need to have a InterSystems IRIS Dataplatform instance running. "),h(),p(136,"ol")(137,"li"),f(138," Download the "),p(139,"a",3),f(140,"InterSystems Workshop Organizer and Optimizer Program"),h(),f(141," from Github. "),h(),p(142,"li"),f(143," In the Management Portal, go to "),p(144,"i"),f(145,"System Explorer"),h(),f(146," and select "),p(147,"i"),f(148,"Classes"),h(),f(149,". Click on "),p(150,"b"),f(151,"Import"),h(),f(152," and select the "),p(153,"i"),f(154,"cls"),h(),f(155," folder from the downloaded program. "),h(),p(156,"li"),f(157," Open an InterSystems IRIS terminal and go to the namespace where you just imported the classes. "),h(),p(158,"li"),f(159," Run the following command: "),p(160,"code"),f(161,"Do ##class(WOOP.Installer).SetUp()"),h()(),p(162,"li"),f(163,"Follow the instructions on the screen."),h(),p(164,"li"),f(165," After successful installation, you can access connect to the instance by clicking on the "),p(166,"b"),f(167,"Settings Icon"),h(),f(168," in the top right corner of the screen. Select "),p(169,"i"),f(170,"Advanced"),h(),f(171," and go to the "),p(172,"i"),f(173,"Server"),h(),f(174," tab. Type in the host adress and port number of the instance you want to connect to and click "),p(175,"b"),f(176,"Connect"),h(),f(177,". "),h()(),p(178,"div",4),K(179,"br")(180,"br"),p(181,"p"),f(182," by "),p(183,"a",5),f(184," Philipp B. "),h()(),p(185,"p")(186,"i"),f(187," This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility. "),h()()()()),2&e&&C("enableSearchBar",!1)},dependencies:[kr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})();function VH(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();v(1),_e(e.wrongMessage)}}function $H(t,n){if(1&t&&(p(0,"p"),f(1),h()),2&t){const e=n.$implicit;v(1),_e("- "+e)}}const UH=[{path:"",component:ZV},{path:"login",component:zM},{path:"user/add",component:AH},{path:"user/delete",component:LH},{path:"user/make/admin",component:(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){if(this.enteredPassword!==this.enteredConfirmPassword)return this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="");this.apiService.makeUserAdmin(Q.userName,this.enteredPassword,this.entereduserName).subscribe({next:e=>{e.status?(ke.showNotification("User made admin successfully!","The user was made admin successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Yr))},t.\u0275cmp=ie({type:t,selectors:[["app-make-admin"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Re)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username to make admin",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","Your Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm Your Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Make User Admin"),h(),T(4,VH,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),_("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Make Admin "),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("ngModel",r.entereduserName),v(1),C("ngModel",r.enteredPassword),v(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Te,Nt,St,Dt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:red;border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})()},{path:"user/change/password",component:RH},{path:"login",component:zM},{path:"error",component:IH},{path:"chapter/:chapterName",component:XM},{path:"chapter/:chapterName/edit",component:sH},{path:"settings",component:KM},{path:"settings/:settingsName",component:KM},{path:"markdown",component:TH},{path:"help",component:BH},{path:"info",component:(()=>{class t{constructor(e){this.metaDataService=e}goBack(){window.history.back()}getVersion(){return this.metaDataService.version}getRealeseDate(){return this.metaDataService.date}getReleaseNotes(){return this.metaDataService.notes}}return t.\u0275fac=function(e){return new(e||t)(w(ff))},t.\u0275cmp=ie({type:t,selectors:[["app-whats-new"]],decls:31,vars:4,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"],[4,"ngFor","ngForOf"],[2,"font-size","10px"],["href","https://github.com/phil1436","target","_blank"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"button",1),_("click",function(){return r.goBack()}),f(2,"Back"),h(),p(3,"div",2)(4,"h1"),f(5," InterSystems Workshop Organizer and Optimizer Program "),p(6,"i"),f(7,"INFO"),h()(),p(8,"h2"),f(9,"Current version"),h(),p(10,"p"),f(11," Version: "),p(12,"i"),f(13),h()(),p(14,"p"),f(15," Release date: "),p(16,"i"),f(17),h()(),p(18,"h2"),f(19,"Release notes"),h(),T(20,$H,2,1,"p",3),p(21,"div",4),K(22,"br")(23,"br"),p(24,"p"),f(25," by "),p(26,"a",5),f(27," Philipp B. "),h()(),p(28,"p")(29,"i"),f(30," This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility. "),h()()()()),2&e&&(C("enableSearchBar",!1),v(13),_e(r.getVersion()),v(4),_e(r.getRealeseDate()),v(3),C("ngForOf",r.getReleaseNotes()))},dependencies:[Sn,kr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})()},{path:"impressum",component:(()=>{class t{goBack(){window.history.back()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ie({type:t,selectors:[["app-impressum"]],decls:20,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"button",1),_("click",function(){return r.goBack()}),f(2,"Back"),h(),p(3,"div",2)(4,"h1"),f(5," InterSystems Workshop Organizer and Optimizer Program "),p(6,"i"),f(7,"Impressum"),h()(),p(8,"h2"),f(9,"License"),h(),p(10,"p"),f(11,"MIT License"),h(),p(12,"p"),f(13,"Copyright (c) 2023 Philipp B."),h(),p(14,"p"),f(15,' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: '),h(),p(16,"p"),f(17," The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. "),h(),p(18,"p"),f(19,' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. '),h()()),2&e&&C("enableSearchBar",!1)},dependencies:[kr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})()},{path:"connect/:host/:port",component:(()=>{class t{constructor(e,r,o){this.router=e,this.route=r,this.localStorageService=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("host");if(null==e)return void this.router.navigate(["/"]);let r=this.route.snapshot.paramMap.get("port");if(null==r||isNaN(Number(r)))return void this.router.navigate(["/"]);let o=Number(r);this.localStorageService.setServerHost(e),this.localStorageService.setServerPort(o),Ae.host=e,Ae.port=o,this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(Ve),w(cr),w(an))},t.\u0275cmp=ie({type:t,selectors:[["app-connect-via-url"]],decls:2,vars:0,template:function(e,r){1&e&&(p(0,"p"),f(1,"Connecting via url..."),h())}}),t})()}];let jH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({imports:[Ql,db.forRoot(UH),db]}),t})();N(852),N(568),N(428),N(984),N(544),N(668),N(841),N(890);let zH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=hn({type:t}),t.\u0275inj=Xt({imports:[Ql]}),t})(),GH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=hn({type:t,bootstrap:[KL]}),t.\u0275inj=Xt({providers:[{provide:qr,useClass:pw}],imports:[gR,J2,_B.forRoot(),fV,jH,zH]}),t})();hR().bootstrapModule(GH).catch(t=>console.error(t))},890:()=>{!function(Se){var Pt="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",N={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},G={bash:N,environment:{pattern:RegExp("\\$"+Pt),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Pt),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Se.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Pt),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:G},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:N}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:G},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:G.entity}}],environment:{pattern:RegExp("\\$?"+Pt),alias:"constant"},variable:G.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},N.inside=Se.languages.bash;for(var qe=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Et=G.variable[1].inside,ut=0;ut{var Se,Pt,N,G;Se=Prism,Pt=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,N=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,G={pattern:RegExp(/(^|[^\w.])/.source+N+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},Se.languages.java=Se.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[G,{pattern:RegExp(/(^|[^\w.])/.source+N+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:G.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+N+/[A-Z]\w*\b/.source),lookbehind:!0,inside:G.inside}],keyword:Pt,function:[Se.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),Se.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),Se.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":G,keyword:Pt,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+N+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:G.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+N+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:G.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return Pt.source})),lookbehind:!0,inside:{punctuation:/\./}}})},852:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},984:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},568:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},544:()=>{Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss},841:()=>{Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},668:()=>{!function(Se){Se.languages.typescript=Se.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Se.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Se.languages.typescript.parameter,delete Se.languages.typescript["literal-property"];var Pt=Se.languages.extend("typescript",{});delete Pt["class-name"],Se.languages.typescript["class-name"].inside=Pt,Se.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Pt}}}}),Se.languages.ts=Se.languages.typescript}(Prism)},83:Se=>{var N=function(G){var qe=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Et=0,ut={},U={manual:G.Prism&&G.Prism.manual,disableWorkerMessageHandler:G.Prism&&G.Prism.disableWorkerMessageHandler,util:{encode:function P(S){return S instanceof Ot?new Ot(S.type,P(S.content),S.alias):Array.isArray(S)?S.map(P):S.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(B){var P=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(B.stack)||[])[1];if(P){var S=document.getElementsByTagName("script");for(var A in S)if(S[A].src==P)return S[A]}return null}},isActive:function(P,S,A){for(var B="no-"+S;P;){var L=P.classList;if(L.contains(S))return!0;if(L.contains(B))return!1;P=P.parentElement}return!!A}},languages:{plain:ut,plaintext:ut,text:ut,txt:ut,extend:function(P,S){var A=U.util.clone(U.languages[P]);for(var B in S)A[B]=S[B];return A},insertBefore:function(P,S,A,B){var L=(B=B||U.languages)[P],J={};for(var Ce in L)if(L.hasOwnProperty(Ce)){if(Ce==S)for(var X in A)A.hasOwnProperty(X)&&(J[X]=A[X]);A.hasOwnProperty(Ce)||(J[Ce]=L[Ce])}var Be=B[P];return B[P]=J,U.languages.DFS(U.languages,function(st,zn){zn===Be&&st!=P&&(this[st]=J)}),J},DFS:function P(S,A,B,L){L=L||{};var J=U.util.objId;for(var Ce in S)if(S.hasOwnProperty(Ce)){A.call(S,Ce,S[Ce],B||Ce);var X=S[Ce],Be=U.util.type(X);"Object"!==Be||L[J(X)]?"Array"===Be&&!L[J(X)]&&(L[J(X)]=!0,P(X,A,Ce,L)):(L[J(X)]=!0,P(X,A,null,L))}}},plugins:{},highlightAll:function(P,S){U.highlightAllUnder(document,P,S)},highlightAllUnder:function(P,S,A){var B={callback:A,container:P,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};U.hooks.run("before-highlightall",B),B.elements=Array.prototype.slice.apply(B.container.querySelectorAll(B.selector)),U.hooks.run("before-all-elements-highlight",B);for(var J,L=0;J=B.elements[L++];)U.highlightElement(J,!0===S,B.callback)},highlightElement:function(P,S,A){var B=U.util.getLanguage(P),L=U.languages[B];U.util.setLanguage(P,B);var J=P.parentElement;J&&"pre"===J.nodeName.toLowerCase()&&U.util.setLanguage(J,B);var X={element:P,language:B,grammar:L,code:P.textContent};function Be(zn){X.highlightedCode=zn,U.hooks.run("before-insert",X),X.element.innerHTML=X.highlightedCode,U.hooks.run("after-highlight",X),U.hooks.run("complete",X),A&&A.call(X.element)}if(U.hooks.run("before-sanity-check",X),(J=X.element.parentElement)&&"pre"===J.nodeName.toLowerCase()&&!J.hasAttribute("tabindex")&&J.setAttribute("tabindex","0"),!X.code)return U.hooks.run("complete",X),void(A&&A.call(X.element));if(U.hooks.run("before-highlight",X),X.grammar)if(S&&G.Worker){var st=new Worker(U.filename);st.onmessage=function(zn){Be(zn.data)},st.postMessage(JSON.stringify({language:X.language,code:X.code,immediateClose:!0}))}else Be(U.highlight(X.code,X.grammar,X.language));else Be(U.util.encode(X.code))},highlight:function(P,S,A){var B={code:P,grammar:S,language:A};if(U.hooks.run("before-tokenize",B),!B.grammar)throw new Error('The language "'+B.language+'" has no grammar.');return B.tokens=U.tokenize(B.code,B.grammar),U.hooks.run("after-tokenize",B),Ot.stringify(U.util.encode(B.tokens),B.language)},tokenize:function(P,S){var A=S.rest;if(A){for(var B in A)S[B]=A[B];delete S.rest}var L=new ln;return On(L,L.head,P),io(P,L,S,L.head,0),function Nr(P){for(var S=[],A=P.head.next;A!==P.tail;)S.push(A.value),A=A.next;return S}(L)},hooks:{all:{},add:function(P,S){var A=U.hooks.all;A[P]=A[P]||[],A[P].push(S)},run:function(P,S){var A=U.hooks.all[P];if(A&&A.length)for(var L,B=0;L=A[B++];)L(S)}},Token:Ot};function Ot(P,S,A,B){this.type=P,this.content=S,this.alias=A,this.length=0|(B||"").length}function Ar(P,S,A,B){P.lastIndex=S;var L=P.exec(A);if(L&&B&&L[1]){var J=L[1].length;L.index+=J,L[0]=L[0].slice(J)}return L}function io(P,S,A,B,L,J){for(var Ce in A)if(A.hasOwnProperty(Ce)&&A[Ce]){var X=A[Ce];X=Array.isArray(X)?X:[X];for(var Be=0;Be=J.reach);Ee+=_t.value.length,_t=_t.next){var hr=_t.value;if(S.length>P.length)return;if(!(hr instanceof Ot)){var cn,Ao=1;if(fa){if(!(cn=Ar(ga,Ee,P,ko))||cn.index>=P.length)break;var so=cn.index,jc=cn.index+cn[0].length,nt=Ee;for(nt+=_t.value.length;so>=nt;)nt+=(_t=_t.next).value.length;if(Ee=nt-=_t.value.length,_t.value instanceof Ot)continue;for(var Rr=_t;Rr!==S.tail&&(ntJ.reach&&(J.reach=ye);var Fr=_t.prev;if(Ke&&(Fr=On(S,Fr,Ke),Ee+=Ke.length),To(S,Fr,Ao),_t=On(S,Fr,new Ot(Ce,zn?U.tokenize(Xe,zn):Xe,Hi,Xe)),ma&&On(S,_t,ma),Ao>1){var ao={cause:Ce+","+Be,reach:ye};io(P,S,A,_t.prev,Ee,ao),J&&ao.reach>J.reach&&(J.reach=ao.reach)}}}}}}function ln(){var P={value:null,prev:null,next:null},S={value:null,prev:P,next:null};P.next=S,this.head=P,this.tail=S,this.length=0}function On(P,S,A){var B=S.next,L={value:A,prev:S,next:B};return S.next=L,B.prev=L,P.length++,L}function To(P,S,A){for(var B=S.next,L=0;L"+L.content+""},!G.document)return G.addEventListener&&(U.disableWorkerMessageHandler||G.addEventListener("message",function(P){var S=JSON.parse(P.data),A=S.language,L=S.immediateClose;G.postMessage(U.highlight(S.code,U.languages[A],A)),L&&G.close()},!1)),U;var dt=U.util.currentScript();function He(){U.manual||U.highlightAll()}if(dt&&(U.filename=dt.src,dt.hasAttribute("data-manual")&&(U.manual=!0)),!U.manual){var pt=document.readyState;"loading"===pt||"interactive"===pt&&dt&&dt.defer?document.addEventListener("DOMContentLoaded",He):window.requestAnimationFrame?window.requestAnimationFrame(He):window.setTimeout(He,16)}return U}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});Se.exports&&(Se.exports=N),typeof global<"u"&&(global.Prism=N),N.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},N.languages.markup.tag.inside["attr-value"].inside.entity=N.languages.markup.entity,N.languages.markup.doctype.inside["internal-subset"].inside=N.languages.markup,N.hooks.add("wrap",function(G){"entity"===G.type&&(G.attributes.title=G.content.replace(/&/,"&"))}),Object.defineProperty(N.languages.markup.tag,"addInlined",{value:function(qe,Et){var ut={};ut["language-"+Et]={pattern:/(^$)/i,lookbehind:!0,inside:N.languages[Et]},ut.cdata=/^$/i;var U={"included-cdata":{pattern://i,inside:ut}};U["language-"+Et]={pattern:/[\s\S]+/,inside:N.languages[Et]};var Ot={};Ot[qe]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return qe}),"i"),lookbehind:!0,greedy:!0,inside:U},N.languages.insertBefore("markup","cdata",Ot)}}),Object.defineProperty(N.languages.markup.tag,"addAttribute",{value:function(G,qe){N.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+G+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[qe,"language-"+qe],inside:N.languages[qe]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),N.languages.html=N.languages.markup,N.languages.mathml=N.languages.markup,N.languages.svg=N.languages.markup,N.languages.xml=N.languages.extend("markup",{}),N.languages.ssml=N.languages.xml,N.languages.atom=N.languages.xml,N.languages.rss=N.languages.xml,function(G){var qe=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;G.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+qe.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+qe.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+qe.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+qe.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:qe,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},G.languages.css.atrule.inside.rest=G.languages.css;var Et=G.languages.markup;Et&&(Et.tag.addInlined("style","css"),Et.tag.addAttribute("style","css"))}(N),N.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},N.languages.javascript=N.languages.extend("clike",{"class-name":[N.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),N.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,N.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:N.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:N.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:N.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:N.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:N.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),N.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:N.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),N.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),N.languages.markup&&(N.languages.markup.tag.addInlined("script","javascript"),N.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),N.languages.js=N.languages.javascript,function(){if(!(typeof N>"u"||typeof document>"u")){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var ut={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},U="data-src-status",Ot="loading",ln="pre[data-src]:not(["+U+'="loaded"]):not(['+U+'="'+Ot+'"])';N.hooks.add("before-highlightall",function(dt){dt.selector+=", "+ln}),N.hooks.add("before-sanity-check",function(dt){var He=dt.element;if(He.matches(ln)){dt.code="",He.setAttribute(U,Ot);var pt=He.appendChild(document.createElement("CODE"));pt.textContent="Loading\u2026";var P=He.getAttribute("data-src"),S=dt.language;if("none"===S){var A=(/\.(\w+)$/.exec(P)||[,"none"])[1];S=ut[A]||A}N.util.setLanguage(pt,S),N.util.setLanguage(He,S);var B=N.plugins.autoloader;B&&B.loadLanguages(S),function On(dt,He,pt){var P=new XMLHttpRequest;P.open("GET",dt,!0),P.onreadystatechange=function(){4==P.readyState&&(P.status<400&&P.responseText?He(P.responseText):pt(P.status>=400?function(dt,He){return"\u2716 Error "+dt+" while fetching file: "+He}(P.status,P.statusText):"\u2716 Error: File does not exist or is empty"))},P.send(null)}(P,function(L){He.setAttribute(U,"loaded");var J=function To(dt){var He=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(dt||"");if(He){var pt=Number(He[1]),S=He[3];return He[2]?S?[pt,Number(S)]:[pt,void 0]:[pt,pt]}}(He.getAttribute("data-range"));if(J){var Ce=L.split(/\r\n?|\n/g),X=J[0],Be=null==J[1]?Ce.length:J[1];X<0&&(X+=Ce.length),X=Math.max(0,Math.min(X-1,Ce.length)),Be<0&&(Be+=Ce.length),Be=Math.max(0,Math.min(Be,Ce.length)),L=Ce.slice(X,Be).join("\n"),He.hasAttribute("data-start")||He.setAttribute("data-start",String(X+1))}pt.textContent=L,N.highlightElement(pt)},function(L){He.setAttribute(U,"failed"),pt.textContent=L})}}),N.plugins.fileHighlight={highlight:function(He){for(var S,pt=(He||document).querySelectorAll(ln),P=0;S=pt[P++];)N.highlightElement(S)}};var Nr=!1;N.fileHighlight=function(){Nr||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),Nr=!0),N.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}},Se=>{Se(Se.s=271)}]); \ No newline at end of file diff --git a/main.5818d2033f689139.js b/main.5818d2033f689139.js deleted file mode 100644 index e111f4f..0000000 --- a/main.5818d2033f689139.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkInterSystemsWOOP=self.webpackChunkInterSystemsWOOP||[]).push([[179],{133:(Se,St,N)=>{"use strict";function G(t){return"function"==typeof t}function We(t){const e=t(r=>{Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Dt=We(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ct(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class U{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:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const i of e)i.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(G(r))try{r()}catch(i){n=i instanceof Dt?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{oo(i)}catch(s){n=n??[],s instanceof Dt?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Dt(n)}}add(n){var e;if(n&&n!==this)if(this.closed)oo(n);else{if(n instanceof U){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&ct(e,n)}remove(n){const{_finalizers:e}=this;e&&ct(e,n),n instanceof U&&n._removeParent(this)}}U.EMPTY=(()=>{const t=new U;return t.closed=!0,t})();const Pt=U.EMPTY;function kr(t){return t instanceof U||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function oo(t){G(t)?t():t.unsubscribe()}const an={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Sn={setTimeout(t,n,...e){const{delegate:r}=Sn;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=Sn;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Io(t){Sn.setTimeout(()=>{const{onUnhandledError:n}=an;if(!n)throw t;n(t)})}function Ar(){}const ut=P("C",void 0,void 0);function P(t,n,e){return{kind:t,value:n,error:e}}let S=null;function A(t){if(an.useDeprecatedSynchronousErrorHandling){const n=!S;if(n&&(S={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:r}=S;if(S=null,e)throw r}}else t()}class L extends U{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,kr(n)&&n.add(this)):this.destination=ha}static create(n,e,r){return new Le(n,e,r)}next(n){this.isStopped?To(function dt(t){return P("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?To(function Ve(t){return P("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?To(ut,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 J=Function.prototype.bind;function Ce(t,n){return J.call(t,n)}class X{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){ot(r)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){ot(r)}else ot(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){ot(e)}}}class Le extends L{constructor(n,e,r){let o;if(super(),G(n)||!n)o={next:n??void 0,error:e??void 0,complete:r??void 0};else{let i;this&&an.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Ce(n.next,i),error:n.error&&Ce(n.error,i),complete:n.complete&&Ce(n.complete,i)}):o=n}this.destination=new X(o)}}function ot(t){an.useDeprecatedSynchronousErrorHandling?function B(t){an.useDeprecatedSynchronousErrorHandling&&S&&(S.errorThrown=!0,S.error=t)}(t):Io(t)}function To(t,n){const{onStoppedNotification:e}=an;e&&Sn.setTimeout(()=>e(t,n))}const ha={closed:!0,next:Ar,error:function Un(t){throw t},complete:Ar},Vi="function"==typeof Symbol&&Symbol.observable||"@@observable";function jn(t){return t}function mt(t){return 0===t.length?jn:1===t.length?t[0]:function(e){return t.reduce((r,o)=>o(r),e)}}let Ee=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,o){const i=function ln(t){return t&&t instanceof L||function ko(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}(t)&&kr(t)}(e)?e:new Le(e,r,o);return A(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=pr(r))((o,i)=>{const s=new Le({next:a=>{try{e(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[Vi](){return this}pipe(...e){return mt(e)(this)}toPromise(e){return new(e=pr(e))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=n=>new t(n),t})();function pr(t){var n;return null!==(n=t??an.Promise)&&void 0!==n?n:Promise}const Uc=We(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let tt=(()=>{class t extends Ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new Nr(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new Uc}next(e){A(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){A(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){A(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Pt:(this.currentObservers=null,i.push(e),new U(()=>{this.currentObservers=null,ct(i,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:o,isStopped:i}=this;r?e.error(o):i&&e.complete()}asObservable(){const e=new Ee;return e.source=this,e}}return t.create=(n,e)=>new Nr(n,e),t})();class Nr extends tt{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,n)}error(n){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==r?r:Pt}}function io(t){return G(t?.lift)}function Ze(t){return n=>{if(io(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Xe(t,n,e,r,o){return new ga(t,n,e,r,o)}class ga extends L{constructor(n,e,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(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:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ye(t,n){return Ze((e,r)=>{let o=0;e.subscribe(Xe(r,i=>{r.next(t.call(n,i,o++))}))})}function Fr(t){return this instanceof Fr?(this.v=t,this):new Fr(t)}function _f(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Gc(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(i){e[i]=t[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=t[i](s)).done,s.value)})}}}const vf=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Cf(t){return G(t?.then)}function yf(t){return G(t[Vi])}function wf(t){return Symbol.asyncIterator&&G(t?.[Symbol.asyncIterator])}function bf(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Mf=function fD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Df(t){return G(t?.[Mf])}function Ef(t){return function mf(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=e.apply(t,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(g){r[g]&&(o[g]=function(m){return new Promise(function(y,M){i.push([g,m,y,M])>1||a(g,m)})})}function a(g,m){try{!function l(g){g.value instanceof Fr?Promise.resolve(g.value.v).then(c,u):d(i[0][2],g)}(r[g](m))}catch(y){d(i[0][3],y)}}function c(g){a("next",g)}function u(g){a("throw",g)}function d(g,m){g(m),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:r,done:o}=yield Fr(e.read());if(o)return yield Fr(void 0);yield yield Fr(r)}}finally{e.releaseLock()}})}function xf(t){return G(t?.getReader)}function cn(t){if(t instanceof Ee)return t;if(null!=t){if(yf(t))return function gD(t){return new Ee(n=>{const e=t[Vi]();if(G(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(vf(t))return function mD(t){return new Ee(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Io)})}(t);if(wf(t))return Sf(t);if(Df(t))return function vD(t){return new Ee(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(xf(t))return function CD(t){return Sf(Ef(t))}(t)}throw bf(t)}function Sf(t){return new Ee(n=>{(function yD(t,n){var e,r,o,i;return function ff(t,n,e,r){return new(e||(e=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 e?i:new e(function(s){s(i)})}(u.value).then(a,l)}c((r=r.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=_f(t);!(r=yield e.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function hr(t,n,e,r=0,o=!1){const i=n.schedule(function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Ot(t,n,e=1/0){return G(n)?Ot((r,o)=>ye((i,s)=>n(r,i,o,s))(cn(t(r,o))),e):("number"==typeof n&&(e=n),Ze((r,o)=>function wD(t,n,e,r,o,i,s,a){const l=[];let c=0,u=0,d=!1;const g=()=>{d&&!l.length&&!c&&n.complete()},m=M=>c{i&&n.next(M),c++;let E=!1;cn(e(M,u++)).subscribe(Xe(n,x=>{o?.(x),i?m(x):n.next(x)},()=>{E=!0},void 0,()=>{if(E)try{for(c--;l.length&&cy(x)):y(x)}g()}catch(x){n.error(x)}}))};return t.subscribe(Xe(n,m,()=>{d=!0,g()})),()=>{a?.()}}(r,o,t,e)))}function Ao(t=1/0){return Ot(jn,t)}const zn=new Ee(t=>t.complete());function Pf(t){return t&&G(t.schedule)}function Wc(t){return t[t.length-1]}function Of(t){return G(Wc(t))?t.pop():void 0}function Hi(t){return Pf(Wc(t))?t.pop():void 0}function If(t,n=0){return Ze((e,r)=>{e.subscribe(Xe(r,o=>hr(r,t,()=>r.next(o),n),()=>hr(r,t,()=>r.complete(),n),o=>hr(r,t,()=>r.error(o),n)))})}function Tf(t,n=0){return Ze((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function kf(t,n){if(!t)throw new Error("Iterable cannot be null");return new Ee(e=>{hr(e,n,()=>{const r=t[Symbol.asyncIterator]();hr(e,n,()=>{r.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function _t(t,n){return n?function OD(t,n){if(null!=t){if(yf(t))return function DD(t,n){return cn(t).pipe(Tf(n),If(n))}(t,n);if(vf(t))return function xD(t,n){return new Ee(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}(t,n);if(Cf(t))return function ED(t,n){return cn(t).pipe(Tf(n),If(n))}(t,n);if(wf(t))return kf(t,n);if(Df(t))return function SD(t,n){return new Ee(e=>{let r;return hr(e,n,()=>{r=t[Mf](),hr(e,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void e.error(s)}i?e.complete():e.next(o)},0,!0)}),()=>G(r?.return)&&r.return()})}(t,n);if(xf(t))return function PD(t,n){return kf(Ef(t),n)}(t,n)}throw bf(t)}(t,n):cn(t)}function Af(...t){const n=Hi(t),e=function MD(t,n){return"number"==typeof Wc(t)?t.pop():n}(t,1/0),r=t;return r.length?1===r.length?cn(r[0]):Ao(e)(_t(r,n)):zn}function Nf(t={}){const{connector:n=(()=>new tt),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,l,c=0,u=!1,d=!1;const g=()=>{a?.unsubscribe(),a=void 0},m=()=>{g(),s=l=void 0,u=d=!1},y=()=>{const M=s;m(),M?.unsubscribe()};return Ze((M,E)=>{c++,!d&&!u&&g();const x=l=l??n();E.add(()=>{c--,0===c&&!d&&!u&&(a=qc(y,o))}),x.subscribe(E),!s&&c>0&&(s=new Le({next:b=>x.next(b),error:b=>{d=!0,g(),a=qc(m,e,b),x.error(b)},complete:()=>{u=!0,g(),a=qc(m,r),x.complete()}}),cn(M).subscribe(s))})(i)}}function qc(t,n,...e){if(!0===n)return void t();if(!1===n)return;const r=new Le({next:()=>{r.unsubscribe(),t()}});return cn(n(...e)).subscribe(r)}function ke(t){for(let n in t)if(t[n]===ke)return n;throw Error("Could not find renamed property on target object.")}function Yc(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function vt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(vt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Zc(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const ID=ke({__forward_ref__:ke});function Ue(t){return t.__forward_ref__=Ue,t.toString=function(){return vt(this())},t}function de(t){return Xc(t)?t():t}function Xc(t){return"function"==typeof t&&t.hasOwnProperty(ID)&&t.__forward_ref__===Ue}function Kc(t){return t&&!!t.\u0275providers}const Rf="https://g.co/ng/security#xss";class I extends Error{constructor(n,e){super(function ma(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function pe(t){return"string"==typeof t?t:null==t?"":String(t)}function _a(t,n){throw new I(-201,!1)}function yn(t,n){null==t&&function Ie(t,n,e,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${e} ${r} ${n} <=Actual]`))}(n,t,null,"!=")}function Y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Zt(t){return{providers:t.providers||[],imports:t.imports||[]}}function va(t){return Ff(t,Ca)||Ff(t,Bf)}function Ff(t,n){return t.hasOwnProperty(n)?t[n]:null}function Lf(t){return t&&(t.hasOwnProperty(Qc)||t.hasOwnProperty(BD))?t[Qc]:null}const Ca=ke({\u0275prov:ke}),Qc=ke({\u0275inj:ke}),Bf=ke({ngInjectableDef:ke}),BD=ke({ngInjectorDef:ke});var oe=(()=>((oe=oe||{})[oe.Default=0]="Default",oe[oe.Host=1]="Host",oe[oe.Self=2]="Self",oe[oe.SkipSelf=4]="SkipSelf",oe[oe.Optional=8]="Optional",oe))();let Jc;function Xt(t){const n=Jc;return Jc=t,n}function Hf(t,n,e){const r=va(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&oe.Optional?null:void 0!==n?n:void _a(vt(t))}const je=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),$i={},eu="__NG_DI_FLAG__",ya="ngTempTokenPath",HD=/\n/gm,$f="__source";let No;function Br(t){const n=No;return No=t,n}function jD(t,n=oe.Default){if(void 0===No)throw new I(-203,!1);return null===No?Hf(t,void 0,n):No.get(t,n&oe.Optional?null:void 0,n)}function V(t,n=oe.Default){return(function Vf(){return Jc}()||jD)(de(t),n)}function z(t,n=oe.Default){return V(t,wa(n))}function wa(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function tu(t){const n=[];for(let e=0;e((Gn=Gn||{})[Gn.OnPush=0]="OnPush",Gn[Gn.Default=1]="Default",Gn))(),dn=(()=>{return(t=dn||(dn={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",dn;var t})();const gr={},xe=[],ba=ke({\u0275cmp:ke}),nu=ke({\u0275dir:ke}),ru=ke({\u0275pipe:ke}),jf=ke({\u0275mod:ke}),mr=ke({\u0275fac:ke}),ji=ke({__NG_ELEMENT_ID__:ke}),zf=ke({__NG_ENV_ID__:ke});function Gf(t,n,e){let r=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const i=n.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}e=o+1}}function ou(t,n,e){let r=0;for(;rn){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const m=8&r?g:null;if(m&&-1!==Gf(m,c,0)||2&r&&c!==g){if(Pn(r))return!1;s=!0}}}}else{if(!s&&!Pn(r)&&!Pn(l))return!1;if(s&&Pn(l))continue;s=!1,r=l|1&r}}return Pn(r)||s}function Pn(t){return 0==(1&t)}function XD(t,n,e,r){if(null===n)return-1;let o=0;if(r||!e){let i=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Pn(s)&&(n+=Qf(i,o),o=""),r=s,i=i||!Pn(r);e++}return""!==o&&(n+=Qf(i,o)),n}function se(t){return fr(()=>{const n=eg(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Gn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||dn.Emulated,styles:t.styles||xe,_:null,schemas:t.schemas||null,tView:null,id:""};tg(e);const r=t.dependencies;return e.directiveDefs=Ma(r,!1),e.pipeDefs=Ma(r,!0),e.id=function cE(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function iE(t){return Pe(t)||Rt(t)}function sE(t){return null!==t}function pn(t){return fr(()=>({type:t.type,bootstrap:t.bootstrap||xe,declarations:t.declarations||xe,imports:t.imports||xe,exports:t.exports||xe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Jf(t,n){if(null==t)return gr;const e={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),e[o]=r,n&&(n[o]=i)}return e}function ue(t){return fr(()=>{const n=eg(t);return tg(n),n})}function Nt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Pe(t){return t[ba]||null}function Rt(t){return t[nu]||null}function Kt(t){return t[ru]||null}function hn(t,n){const e=t[jf]||null;if(!e&&!0===n)throw new Error(`Type ${vt(t)} does not have '\u0275mod' property.`);return e}function eg(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||xe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Jf(t.inputs,n),outputs:Jf(t.outputs)}}function tg(t){t.features?.forEach(n=>n(t))}function Ma(t,n){if(!t)return null;const e=n?Kt:iE;return()=>("function"==typeof t?t():t).map(r=>e(r)).filter(sE)}const Ct=0,H=1,ge=2,Qe=3,On=4,ao=5,Ft=6,Fo=7,nt=8,Lo=9,lo=10,he=11,Gi=12,ng=13,Bo=14,pt=15,Wi=16,Vo=17,Wn=18,qi=19,rg=20,Vr=21,_r=22,Da=23,Ea=24,Me=25,iu=1,og=2,qn=7,xa=8,Ho=9,It=11;function fn(t){return Array.isArray(t)&&"object"==typeof t[iu]}function Qt(t){return Array.isArray(t)&&!0===t[iu]}function su(t){return 0!=(4&t.flags)}function co(t){return t.componentOffset>-1}function Sa(t){return 1==(1&t.flags)}function In(t){return!!t.template}function au(t){return 0!=(512&t[ge])}function uo(t,n){return t.hasOwnProperty(mr)?t[mr]:null}let fE=je.WeakRef??class hE{constructor(n){this.ref=n}deref(){return this.ref}},mE=0,Yn=null,Pa=!1;function Et(t){const n=Yn;return Yn=t,n}class cg{constructor(){this.id=mE++,this.ref=function gE(t){return new fE(t)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[n,e]of this.producers){const r=e.producerNode.deref();if(void 0!==r&&e.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(e.seenValueVersion))return!0}else this.producers.delete(n),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const n=Pa;Pa=!0;try{for(const[e,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(e),o?.producers.delete(this.id))}}finally{Pa=n}}producerAccessed(){if(Pa)throw new Error("");if(null===Yn)return;let n=Yn.producers.get(this.id);void 0===n?(n={consumerNode:Yn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Yn.trackingVersion},Yn.producers.set(this.id,n),this.consumers.set(Yn.id,n)):(n.seenValueVersion=this.valueVersion,n.atTrackingVersion=Yn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Yn?.consumerAllowSignalWrites}producerPollStatus(n){return this.valueVersion!==n||(this.onProducerUpdateValueVersion(),this.valueVersion!==n)}}let ug=null;const dg=()=>{};class yE extends cg{constructor(n,e,r){super(),this.watch=n,this.schedule=e,this.dirty=!1,this.cleanupFn=dg,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const n=Et(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=dg,this.watch(this.registerOnCleanup)}finally{Et(n)}}cleanup(){this.cleanupFn()}}class wE{constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function Jt(){return pg}function pg(t){return t.type.prototype.ngOnChanges&&(t.setInput=ME),bE}function bE(){const t=fg(this),n=t?.current;if(n){const e=t.previous;if(e===gr)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function ME(t,n,e,r){const o=this.declaredInputs[e],i=fg(t)||function DE(t,n){return t[hg]=n}(t,{previous:gr,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new wE(l&&l.currentValue,n,a===gr),t[r]=n}Jt.ngInherit=!0;const hg="__ngSimpleChanges__";function fg(t){return t[hg]||null}const Zn=function(t,n,e){};function qe(t){for(;Array.isArray(t);)t=t[Ct];return t}function Ta(t,n){return qe(n[t])}function en(t,n){return qe(n[t.index])}function _g(t,n){return t.data[n]}function tn(t,n){const e=n[t];return fn(e)?e:e[Ct]}function ka(t){return 128==(128&t[ge])}function Hr(t,n){return null==n?null:t[n]}function vg(t){t[Vo]=0}function IE(t){1024&t[ge]||(t[ge]|=1024,yg(t,1))}function Cg(t){1024&t[ge]&&(t[ge]&=-1025,yg(t,-1))}function yg(t,n){let e=t[Qe];if(null===e)return;e[ao]+=n;let r=e;for(e=e[Qe];null!==e&&(1===n&&1===r[ao]||-1===n&&0===r[ao]);)e[ao]+=n,r=e,e=e[Qe]}const ae={lFrame:Tg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Mg(){return ae.bindingsEnabled}function Uo(){return null!==ae.skipHydrationRootTNode}function O(){return ae.lFrame.lView}function De(){return ae.lFrame.tView}function R(t){return ae.lFrame.contextLView=t,t[nt]}function F(t){return ae.lFrame.contextLView=null,t}function Tt(){let t=Dg();for(;null!==t&&64===t.type;)t=t.parent;return t}function Dg(){return ae.lFrame.currentTNode}function Xn(t,n){const e=ae.lFrame;e.currentTNode=t,e.isParent=n}function hu(){return ae.lFrame.isParent}function fu(){ae.lFrame.isParent=!1}function jo(){return ae.lFrame.bindingIndex++}function Cr(t){const n=ae.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function UE(t,n){const e=ae.lFrame;e.bindingIndex=e.bindingRootIndex=t,gu(n)}function gu(t){ae.lFrame.currentDirectiveIndex=t}function Pg(){return ae.lFrame.currentQueryIndex}function _u(t){ae.lFrame.currentQueryIndex=t}function zE(t){const n=t[H];return 2===n.type?n.declTNode:1===n.type?t[Ft]:null}function Og(t,n,e){if(e&oe.SkipSelf){let o=n,i=t;for(;!(o=o.parent,null!==o||e&oe.Host||(o=zE(i),null===o||(i=i[Bo],10&o.type))););if(null===o)return!1;n=o,t=i}const r=ae.lFrame=Ig();return r.currentTNode=n,r.lView=t,!0}function vu(t){const n=Ig(),e=t[H];ae.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Ig(){const t=ae.lFrame,n=null===t?null:t.child;return null===n?Tg(t):n}function Tg(t){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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function kg(){const t=ae.lFrame;return ae.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ag=kg;function Cu(){const t=kg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ut(){return ae.lFrame.selectedIndex}function po(t){ae.lFrame.selectedIndex=t}function Je(){const t=ae.lFrame;return _g(t.tView,t.selectedIndex)}let Rg=!0;function Aa(){return Rg}function $r(t){Rg=t}function Na(t,n){for(let e=n.directiveStart,r=n.directiveEnd;e=r)break}else n[l]<0&&(t[Vo]+=65536),(a>12>16&&(3&t[ge])===n&&(t[ge]+=4096,Lg(a,i)):Lg(a,i)}const zo=-1;class Xi{constructor(n,e,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function Bg(t){return t!==zo}function La(t){return 32767&t}function Ba(t,n){let e=function nx(t){return t>>16}(t),r=n;for(;e>0;)r=r[Bo],e--;return r}let bu=!0;function Va(t){const n=bu;return bu=t,n}const Vg=255,Hg=5;let rx=0;const Kn={};function Ha(t,n){const e=$g(t,n);if(-1!==e)return e;const r=n[H];r.firstCreatePass&&(t.injectorIndex=n.length,Mu(r.data,t),Mu(n,null),Mu(r.blueprint,null));const o=Du(t,n),i=t.injectorIndex;if(Bg(o)){const s=La(o),a=Ba(o,n),l=a[H].data;for(let c=0;c<8;c++)n[i+c]=a[s+c]|l[s+c]}return n[i+8]=o,i}function Mu(t,n){t.push(0,0,0,0,0,0,0,0,n)}function $g(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Du(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,r=null,o=n;for(;null!==o;){if(r=Yg(o),null===r)return zo;if(e++,o=o[Bo],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return zo}function Eu(t,n,e){!function ox(t,n,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(ji)&&(r=e[ji]),null==r&&(r=e[ji]=rx++);const o=r&Vg;n.data[t+(o>>Hg)]|=1<=0?n&Vg:lx:n}(e);if("function"==typeof i){if(!Og(n,t,r))return r&oe.Host?Ug(o,0,r):jg(n,e,r,o);try{const s=i(r);if(null!=s||r&oe.Optional)return s;_a()}finally{Ag()}}else if("number"==typeof i){let s=null,a=$g(t,n),l=zo,c=r&oe.Host?n[pt][Ft]:null;for((-1===a||r&oe.SkipSelf)&&(l=-1===a?Du(t,n):n[a+8],l!==zo&&qg(r,!1)?(s=n[H],a=La(l),n=Ba(l,n)):a=-1);-1!==a;){const u=n[H];if(Wg(i,a,u.data)){const d=sx(a,n,e,s,r,c);if(d!==Kn)return d}l=n[a+8],l!==zo&&qg(r,n[H].data[a+8]===c)&&Wg(i,a,n)?(s=u,a=La(l),n=Ba(l,n)):a=-1}}return o}function sx(t,n,e,r,o,i){const s=n[H],a=s.data[t+8],u=$a(a,s,e,null==r?co(a)&&bu:r!=s&&0!=(3&a.type),o&oe.Host&&i===a);return null!==u?ho(n,s,u,a):Kn}function $a(t,n,e,r,o){const i=t.providerIndexes,s=n.data,a=1048575&i,l=t.directiveStart,u=i>>20,g=o?a+u:t.directiveEnd;for(let m=r?a:a+u;m=l&&y.type===e)return m}if(o){const m=s[l];if(m&&In(m)&&m.type===e)return l}return null}function ho(t,n,e,r){let o=t[e];const i=n.data;if(function JE(t){return t instanceof Xi}(o)){const s=o;s.resolving&&function TD(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new I(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Oe(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():pe(t)}(i[e]));const a=Va(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Xt(s.injectImpl):null;Og(t,r,oe.Default);try{o=t[e]=s.factory(void 0,i,t,r),n.firstCreatePass&&e>=r.directiveStart&&function KE(t,n,e){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=pg(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}o&&(e.preOrderHooks??=[]).push(0-t,o),i&&((e.preOrderHooks??=[]).push(t,i),(e.preOrderCheckHooks??=[]).push(t,i))}(e,i[e],n)}finally{null!==l&&Xt(l),Va(a),s.resolving=!1,Ag()}}return o}function Wg(t,n,e){return!!(e[n+(t>>Hg)]&1<{const n=t.prototype.constructor,e=n[mr]||xu(n),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[mr]||xu(o);if(i&&i!==e)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function xu(t){return Xc(t)?()=>{const n=xu(de(t));return n&&n()}:uo(t)}function Yg(t){const n=t[H],e=n.type;return 2===e?n.declTNode:1===e?t[Ft]:null}const qo="__parameters__";function Zo(t,n,e){return fr(()=>{const r=function Su(t){return function(...e){if(t){const r=t(...e);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(qo)?l[qo]:Object.defineProperty(l,qo,{value:[]})[qo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function Ji(t,n){t.forEach(e=>Array.isArray(e)?Ji(e,n):n(e))}function Xg(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function ja(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function es(t,n){const e=[];for(let r=0;r=0?t[1|r]=e:(r=~r,function fx(t,n,e,r){let o=t.length;if(o==n)t.push(e,r);else if(1===o)t.push(r,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=r}}(t,r,n,e)),r}function Pu(t,n){const e=Xo(t,n);if(e>=0)return t[1|e]}function Xo(t,n){return function Kg(t,n,e){let r=0,o=t.length>>e;for(;o!==r;){const i=r+(o-r>>1),s=t[i<n?o=i:r=i+1}return~(o<((nn=nn||{})[nn.Important=1]="Important",nn[nn.DashCase=2]="DashCase",nn))();const Nu=new Map;let Bx=0;const Fu="__ngContext__";function Lt(t,n){fn(n)?(t[Fu]=n[qi],function Hx(t){Nu.set(t[qi],t)}(n)):t[Fu]=n}let Lu;function Bu(t,n){return Lu(t,n)}function rs(t){const n=t[Qe];return Qt(n)?n[Qe]:n}function Vu(t){return mm(t[Gi])}function Hu(t){return mm(t[On])}function mm(t){for(;null!==t&&!Qt(t);)t=t[On];return t}function Jo(t,n,e,r,o){if(null!=r){let i,s=!1;Qt(r)?i=r:fn(r)&&(s=!0,r=r[Ct]);const a=qe(r);0===t&&null!==e?null==o?wm(n,e,a):fo(n,e,a,o||null,!0):1===t&&null!==e?fo(n,e,a,o||null,!0):2===t?function nl(t,n,e){const r=el(t,n);r&&function i1(t,n,e,r){t.removeChild(n,e,r)}(t,r,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=i&&function l1(t,n,e,r,o){const i=e[qn];i!==qe(e)&&Jo(n,t,r,i,o);for(let a=It;a0&&(t[e-1][On]=r[On]);const i=ja(t,It+n);!function Kx(t,n){is(t,n,n[he],2,null,null),n[Ct]=null,n[Ft]=null}(r[H],r);const s=i[Wn];null!==s&&s.detachView(i[H]),r[Qe]=null,r[On]=null,r[ge]&=-129}return r}function Cm(t,n){if(!(256&n[ge])){const e=n[he];n[Da]?.destroy(),n[Ea]?.destroy(),e.destroyNode&&is(t,n,e,3,null,null),function e1(t){let n=t[Gi];if(!n)return ju(t[H],t);for(;n;){let e=null;if(fn(n))e=n[Gi];else{const r=n[It];r&&(e=r)}if(!e){for(;n&&!n[On]&&n!==t;)fn(n)&&ju(n[H],n),n=n[Qe];null===n&&(n=t),fn(n)&&ju(n[H],n),e=n&&n[On]}n=e}}(n)}}function ju(t,n){if(!(256&n[ge])){n[ge]&=-129,n[ge]|=256,function o1(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else e[i].call(r[e[i+1]]);null!==r&&(n[Fo]=null);const o=n[Vr];if(null!==o){n[Vr]=null;for(let i=0;i-1){const{encapsulation:i}=t.data[r.directiveStart+o];if(i===dn.None||i===dn.Emulated)return null}return en(r,e)}}(t,n.parent,e)}function fo(t,n,e,r,o){t.insertBefore(n,e,r,o)}function wm(t,n,e){t.appendChild(n,e)}function bm(t,n,e,r,o){null!==r?fo(t,n,e,r,o):wm(t,n,e)}function el(t,n){return t.parentNode(n)}function Mm(t,n,e){return Em(t,n,e)}let Gu,rl,Zu,Em=function Dm(t,n,e){return 40&t.type?en(t,e):null};function tl(t,n,e,r){const o=zu(t,r,n),i=n[he],a=Mm(r.parent||n[Ft],r,n);if(null!=o)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return rl}()?.createHTML(t)||t}class go{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rf})`}}class g1 extends go{getTypeName(){return"HTML"}}class m1 extends go{getTypeName(){return"Style"}}class _1 extends go{getTypeName(){return"Script"}}class v1 extends go{getTypeName(){return"URL"}}class C1 extends go{getTypeName(){return"ResourceURL"}}function mn(t){return t instanceof go?t.changingThisBreaksApplicationSecurity:t}function Qn(t,n){const e=function y1(t){return t instanceof go&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Rf})`)}return e===n}class x1{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(ei(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class S1{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=ei(n),e}}const O1=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function il(t){return(t=String(t)).match(O1)?t:"unsafe:"+t}function yr(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function as(...t){const n={};for(const e of t)for(const r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}const Fm=yr("area,br,col,hr,img,wbr"),Lm=yr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Bm=yr("rp,rt"),Ku=as(Fm,as(Lm,yr("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")),as(Bm,yr("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")),as(Bm,Lm)),Qu=yr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vm=as(Qu,yr("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"),yr("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")),I1=yr("script,style,template");class T1{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,r=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!Ku.hasOwnProperty(e))return this.sanitizedSomething=!0,!I1.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();Ku.hasOwnProperty(e)&&!Fm.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(Hm(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const k1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,A1=/([^\#-~ |!])/g;function Hm(t){return t.replace(/&/g,"&").replace(k1,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(A1,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let sl;function $m(t,n){let e=null;try{sl=sl||function Rm(t){const n=new S1(t);return function P1(){try{return!!(new window.DOMParser).parseFromString(ei(""),"text/html")}catch{return!1}}()?new x1(n):n}(t);let r=n?String(n):"";e=sl.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=e.innerHTML,e=sl.getInertBodyElement(r)}while(r!==i);return ei((new T1).sanitizeChildren(Ju(e)||e))}finally{if(e){const r=Ju(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ju(t){return"content"in t&&function N1(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var He=(()=>((He=He||{})[He.NONE=0]="NONE",He[He.HTML=1]="HTML",He[He.STYLE=2]="STYLE",He[He.SCRIPT=3]="SCRIPT",He[He.URL=4]="URL",He[He.RESOURCE_URL=5]="RESOURCE_URL",He))();function Jn(t){const n=function ls(){const t=O();return t&&t[lo].sanitizer}();return n?n.sanitize(He.URL,t)||"":Qn(t,"URL")?mn(t):il(pe(t))}class j{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const cs=new j("ENVIRONMENT_INITIALIZER"),zm=new j("INJECTOR",-1),Gm=new j("INJECTOR_DEF_TYPES");class Wm{get(n,e=$i){if(e===$i){const r=new Error(`NullInjectorError: No provider for ${vt(n)}!`);throw r.name="NullInjectorError",r}return e}}function $1(...t){return{\u0275providers:qm(0,t),\u0275fromNgModule:!0}}function qm(t,...n){const e=[],r=new Set;let o;return Ji(n,i=>{const s=i;td(s,e,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Ym(o,e),e}function Ym(t,n){for(let e=0;e{n.push(i)})}}function td(t,n,e,r){if(!(t=de(t)))return!1;let o=null,i=Lf(t);const s=!i&&Pe(t);if(i||s){if(s&&!s.standalone)return!1;o=t}else{const l=t.ngModule;if(i=Lf(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)td(c,n,e,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let c;r.add(o);try{Ji(i.imports,u=>{td(u,n,e,r)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Ym(c,n)}if(!a){const c=uo(o)||(()=>new o);n.push({provide:o,useFactory:c,deps:xe},{provide:Gm,useValue:o,multi:!0},{provide:cs,useValue:()=>V(o),multi:!0})}const l=i.providers;null==l||a||nd(l,u=>{n.push(u)})}}return o!==t&&void 0!==t.providers}function nd(t,n){for(let e of t)Kc(e)&&(e=e.\u0275providers),Array.isArray(e)?nd(e,n):n(e)}const U1=ke({provide:String,useValue:ke});function rd(t){return null!==t&&"object"==typeof t&&U1 in t}function mo(t){return"function"==typeof t}const od=new j("Set Injector scope."),al={},z1={};let id;function ll(){return void 0===id&&(id=new Wm),id}class er{}class sd extends er{get destroyed(){return this._destroyed}constructor(n,e,r,o){super(),this.parent=e,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ld(n,s=>this.processProvider(s)),this.records.set(zm,ti(void 0,this)),o.has("environment")&&this.records.set(er,ti(void 0,this));const i=this.records.get(od);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gm.multi,xe,oe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=Br(this),r=Xt(void 0);try{return n()}finally{Br(e),Xt(r)}}get(n,e=$i,r=oe.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(zf))return n[zf](this);r=wa(r);const o=Br(this),i=Xt(void 0);try{if(!(r&oe.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function Z1(t){return"function"==typeof t||"object"==typeof t&&t instanceof j}(n)&&va(n);a=l&&this.injectableDefInScope(l)?ti(ad(n),al):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&oe.Self?ll():this.parent).get(n,e=r&oe.Optional&&e===$i?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[ya]=s[ya]||[]).unshift(vt(n)),o)throw s;return function GD(t,n,e,r){const o=t[ya];throw n[$f]&&o.unshift(n[$f]),t.message=function WD(t,n,e,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=vt(n);if(Array.isArray(n))o=n.map(vt).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):vt(a)))}o=`{${i.join(", ")}}`}return`${e}${r?"("+r+")":""}[${o}]: ${t.replace(HD,"\n ")}`}("\n"+t.message,o,e,r),t.ngTokenPath=o,t[ya]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Xt(i),Br(o)}}resolveInjectorInitializers(){const n=Br(this),e=Xt(void 0);try{const r=this.get(cs.multi,xe,oe.Self);for(const o of r)o()}finally{Br(n),Xt(e)}}toString(){const n=[],e=this.records;for(const r of e.keys())n.push(vt(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(n){let e=mo(n=de(n))?n:de(n&&n.provide);const r=function W1(t){return rd(t)?ti(void 0,t.useValue):ti(Km(t),al)}(n);if(mo(n)||!0!==n.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=ti(void 0,al,!0),o.factory=()=>tu(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,r)}hydrate(n,e){return e.value===al&&(e.value=z1,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Y1(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=de(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function ad(t){const n=va(t),e=null!==n?n.factory:uo(t);if(null!==e)return e;if(t instanceof j)throw new I(204,!1);if(t instanceof Function)return function G1(t){const n=t.length;if(n>0)throw es(n,"?"),new I(204,!1);const e=function LD(t){return t&&(t[Ca]||t[Bf])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new I(204,!1)}function Km(t,n,e){let r;if(mo(t)){const o=de(t);return uo(o)||ad(o)}if(rd(t))r=()=>de(t.useValue);else if(function Xm(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...tu(t.deps||[]));else if(function Zm(t){return!(!t||!t.useExisting)}(t))r=()=>V(de(t.useExisting));else{const o=de(t&&(t.useClass||t.provide));if(!function q1(t){return!!t.deps}(t))return uo(o)||ad(o);r=()=>new o(...tu(t.deps))}return r}function ti(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function ld(t,n){for(const e of t)Array.isArray(e)?ld(e,n):e&&Kc(e)?ld(e.\u0275providers,n):n(e)}const cl=new j("AppId",{providedIn:"root",factory:()=>X1}),X1="ng",Qm=new j("Platform Initializer"),Ur=new j("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jm=new j("CSP nonce",{providedIn:"root",factory:()=>function ss(){if(void 0!==Zu)return Zu;if(typeof document<"u")return document;throw new I(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let t_=(t,n)=>null;function n_(t,n){return t_(t,n)}class iS{}class i_{}class aS{resolveComponentFactory(n){throw function sS(t){const n=Error(`No component factory found for ${vt(t)}.`);return n.ngComponent=t,n}(n)}}let fl=(()=>{class t{}return t.NULL=new aS,t})();function lS(){return ni(Tt(),O())}function ni(t,n){return new jt(en(t,n))}let jt=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=lS,t})();function cS(t){return t instanceof jt?t.nativeElement:t}class a_{}let wr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function uS(){const t=O(),e=tn(Tt().index,t);return(fn(e)?e:t)[he]}(),t})(),dS=(()=>{class t{}return t.\u0275prov=Y({token:t,providedIn:"root",factory:()=>null}),t})();class hs{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const pS=new hs("16.0.2"),Cd={};function fs(t){for(;t;){t[ge]|=64;const n=rs(t);if(au(t)&&!n)return t;t=n}return null}function yd(t){return t.ngOriginalError}class _o{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&yd(n);for(;e&&yd(e);)e=yd(e);return e||null}}const u_=new j("",{providedIn:"root",factory:()=>!1});function Ae(t){return t.ownerDocument}function br(t){return t instanceof Function?t():t}class h_ extends cg{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(n){this._lView=n}onConsumerDependencyMayHaveChanged(){fs(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(n,e,r){const o=Et(this);this.trackingVersion++;try{n(e,r)}finally{Et(o)}}destroy(){this.trackingVersion++}}let ml=null;function f_(){return ml??=new h_,ml}function g_(t,n){return t[n]??f_()}function m_(t,n){const e=f_();e.hasReadASignal&&(t[n]=ml,e.lView=t,ml=new h_)}const fe={};function v(t){__(De(),O(),Ut()+t,!1)}function __(t,n,e,r){if(!r)if(3==(3&n[ge])){const i=t.preOrderCheckHooks;null!==i&&Ra(n,i,e)}else{const i=t.preOrderHooks;null!==i&&Fa(n,i,0,e)}po(e)}function w_(t,n=null,e=null,r){const o=b_(t,n,e,r);return o.resolveInjectorInitializers(),o}function b_(t,n=null,e=null,r,o=new Set){const i=[e||xe,$1(t)];return r=r||("object"==typeof t?void 0:vt(t)),new sd(i,n||ll(),r||null,o)}let Tn=(()=>{class t{static create(e,r){if(Array.isArray(e))return w_({name:""},r,e,"");{const o=e.name??"";return w_({name:o},e.parent,e.providers,o)}}}return t.THROW_IF_NOT_FOUND=$i,t.NULL=new Wm,t.\u0275prov=Y({token:t,providedIn:"any",factory:()=>V(zm)}),t.__NG_ELEMENT_ID__=-1,t})();function w(t,n=oe.Default){const e=O();return null===e?V(t,n):zg(Tt(),e,de(t),n)}function _l(t,n,e,r,o,i,s,a,l,c,u){const d=n.blueprint.slice();return d[Ct]=o,d[ge]=140|r,(null!==c||t&&2048&t[ge])&&(d[ge]|=2048),vg(d),d[Qe]=d[Bo]=t,d[nt]=e,d[lo]=s||t&&t[lo],d[he]=a||t&&t[he],d[Lo]=l||t&&t[Lo]||null,d[Ft]=i,d[qi]=function Vx(){return Bx++}(),d[_r]=u,d[rg]=c,d[pt]=2==n.type?t[pt]:d,d}function oi(t,n,e,r,o){let i=t.data[n];if(null===i)i=function wd(t,n,e,r,o){const i=Dg(),s=hu(),l=t.data[n]=function kS(t,n,e,r,o,i){let s=n?n.injectorIndex:-1,a=0;return Uo()&&(a|=128),{type:e,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,e,n,r,o);return null===t.firstChild&&(t.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(t,n,e,r,o),function $E(){return ae.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=e,i.value=r,i.attrs=o;const s=function Zi(){const t=ae.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Xn(i,!0),i}function gs(t,n,e,r){if(0===e)return-1;const o=n.length;for(let i=0;iMe&&__(t,n,Me,!1),Zn(a?2:0,o),a)i.runInContext(e,r,o);else{const c=Et(null);try{e(r,o)}finally{Et(c)}}}finally{a&&null===n[Da]&&m_(n,Da),po(s),Zn(a?3:1,o)}}function bd(t,n,e){if(su(n)){const r=Et(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;snull;function S_(t,n,e,r){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const i=t[o];null===r?P_(e,n,o,i):r.hasOwnProperty(o)&&P_(e,n,r[o],i)}return e}function P_(t,n,e,r){t.hasOwnProperty(e)?t[e].push(n,r):t[e]=[n,r]}function xd(t,n,e,r){if(Mg()){const o=null===r?null:{"":-1},i=function $S(t,n){const e=t.directiveRegistry;let r=null,o=null;if(e)for(let i=0;i0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,r,i)}}(t,n,r,gs(t,e,o.hostVars,fe),o)}function tr(t,n,e,r,o,i){const s=en(t,n);!function Pd(t,n,e,r,o,i,s){if(null==i)t.removeAttribute(n,o,e);else{const a=null==s?pe(i):s(i,r||"",o);t.setAttribute(n,o,a,e)}}(n[he],s,i,t.value,e,r,o)}function qS(t,n,e,r,o,i){const s=i[n];if(null!==s)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new yE(e,c=>{this.all.has(c)&&this.queue.set(c,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,r]of this.queue)this.queue.delete(e),r?r.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}}return t.\u0275prov=Y({token:t,providedIn:"root",factory:()=>new t}),t})();function Cl(t,n,e){let r=e?t.styles:null,o=e?t.classes:null,i=0;if(null!==n)for(let s=0;s0&&kd(e)}}function kd(t){for(let r=Vu(t);null!==r;r=Hu(r))for(let o=It;o0&&kd(i)}const e=t[H].components;if(null!==e)for(let r=0;r0&&kd(o)}}class _s{get rootNodes(){const n=this._lView,e=n[H];return ms(e,n,e.firstChild,[])}constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[nt]}set context(n){this._lView[nt]=n}get destroyed(){return 256==(256&this._lView[ge])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Qe];if(Qt(n)){const e=n[xa],r=e?e.indexOf(this):-1;r>-1&&(Uu(n,r),ja(e,r))}this._attachedToViewContainer=!1}Cm(this._lView[H],this._lView)}onDestroy(n){!function wg(t,n){if(256==(256&t[ge]))throw new I(911,!1);null===t[Vr]&&(t[Vr]=[]),t[Vr].push(n)}(this._lView,n)}markForCheck(){fs(this._cdRefInjectingView||this._lView)}detach(){this._lView[ge]&=-129}reattach(){this._lView[ge]|=128}detectChanges(){yl(this._lView[H],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Jx(t,n){is(t,n,n[he],2,null,null)}(this._lView[H],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=n}}class sP extends _s{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;yl(n[H],n,n[nt],!1)}checkNoChanges(){}get context(){return null}}class V_ extends fl{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Pe(n);return new vs(e,this.ngModule)}}function H_(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class lP{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,r){r=wa(r);const o=this.injector.get(n,Cd,r);return o!==Cd||e===Cd?o:this.parentInjector.get(n,e,r)}}class vs extends i_{get inputs(){return H_(this.componentDef.inputs)}get outputs(){return H_(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function nE(t){return t.map(tE).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,r,o){let i=(o=o||this.ngModule)instanceof er?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new lP(n,i):n,a=s.get(a_,null);if(null===a)throw new I(407,!1);const u={rendererFactory:a,sanitizer:s.get(dS,null),effectManager:s.get(B_,null)},d=a.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",m=r?function SS(t,n,e,r){const i=r.get(u_,!1)||e===dn.ShadowDom,s=t.selectRootElement(n,i);return function PS(t){x_(t)}(s),s}(d,r,this.componentDef.encapsulation,s):Ja(d,g,function aP(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(g)),y=this.componentDef.onPush?576:528,M=Ed(0,null,null,1,0,null,null,null,null,null,null),E=_l(null,M,null,y,null,null,u,d,s,null,null);let x,b;vu(E);try{const k=this.componentDef;let q,re=null;k.findHostDirectiveDefs?(q=[],re=new Map,k.findHostDirectiveDefs(k,q,re),q.push(k)):q=[k];const be=function uP(t,n){const e=t[H],r=Me;return t[r]=n,oi(e,r,2,"#host",null)}(E,m),xn=function dP(t,n,e,r,o,i,s){const a=o[H];!function pP(t,n,e,r){for(const o of t)n.mergedAttrs=zi(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(Cl(n,n.mergedAttrs,!0),null!==e&&Tm(r,e,n))}(r,t,n,s);let l=null;null!==n&&(l=n_(n,o[Lo]));const c=i.rendererFactory.createRenderer(n,e),u=_l(o,E_(e),null,e.onPush?64:16,o[t.index],t,i,c,null,null,l);return a.firstCreatePass&&Sd(a,t,r.length-1),vl(o,u),o[t.index]=u}(be,m,k,q,E,u,d);b=_g(M,Me),m&&function fP(t,n,e,r){if(r)ou(t,e,["ng-version",pS.full]);else{const{attrs:o,classes:i}=function rE(t){const n=[],e=[];let r=1,o=2;for(;r0&&Im(t,e,i.join(" "))}}(d,k,m,r),void 0!==e&&function gP(t,n,e){const r=t.projection=[];for(let o=0;o=0;r--){const o=t[r];o.hostVars=n+=o.hostVars,o.hostAttrs=zi(o.hostAttrs,e=zi(e,o.hostAttrs))}}(r)}function Ad(t){return t===gr?{}:t===xe?[]:t}function vP(t,n){const e=t.viewQuery;t.viewQuery=e?(r,o)=>{n(r,o),e(r,o)}:n}function CP(t,n){const e=t.contentQueries;t.contentQueries=e?(r,o,i)=>{n(r,o,i),e(r,o,i)}:n}function yP(t,n){const e=t.hostBindings;t.hostBindings=e?(r,o)=>{n(r,o),e(r,o)}:n}function bl(t){return!!function Nd(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Bt(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function rr(t,n,e,r){const o=O();return Bt(o,jo(),n)&&(De(),tr(Je(),o,t,n,e,r)),rr}function si(t,n,e,r){return Bt(t,jo(),e)?n+pe(e)+r:fe}function T(t,n,e,r,o,i,s,a){const l=O(),c=De(),u=t+Me,d=c.firstCreatePass?function GP(t,n,e,r,o,i,s,a,l){const c=n.consts,u=oi(n,t,4,s||null,Hr(c,a));xd(n,e,u,Hr(c,l)),Na(n,u);const d=u.tView=Ed(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,e,r,o,i,s):c.data[u];Xn(d,!1);const g=rv(c,l,d,t);Aa()&&tl(c,l,g,d),Lt(g,l),vl(l,l[u]=k_(g,l,g,d)),Sa(d)&&Md(c,l,d),null!=s&&Dd(l,d,a)}let rv=function ov(t,n,e,r){return $r(!0),n[he].createComment("")};function C(t,n,e){const r=O();return Bt(r,jo(),n)&&function _n(t,n,e,r,o,i,s,a){const l=en(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[r])?(Id(t,e,u,r,o),co(n)&&function RS(t,n){const e=tn(n,t);16&e[ge]||(e[ge]|=64)}(e,n.index)):3&n.type&&(r=function NS(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(l,r,o))}(De(),Je(),r,t,n,r[he],e,!1),C}function Hd(t,n,e,r,o){const s=o?"class":"style";Id(t,e,n.inputs[s],s,r)}function p(t,n,e,r){const o=O(),i=De(),s=Me+t,a=o[he],l=i.firstCreatePass?function XP(t,n,e,r,o,i){const s=n.consts,l=oi(n,t,2,r,Hr(s,o));return xd(n,e,l,Hr(s,i)),null!==l.attrs&&Cl(l,l.attrs,!1),null!==l.mergedAttrs&&Cl(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,i,o,n,e,r):i.data[s],c=iv(i,o,l,a,n,t);o[s]=c;const u=Sa(l);return Xn(l,!0),Tm(a,c,l),32!=(32&l.flags)&&Aa()&&tl(i,o,c,l),0===function kE(){return ae.lFrame.elementDepthCount}()&&Lt(c,o),function AE(){ae.lFrame.elementDepthCount++}(),u&&(Md(i,o,l),bd(i,l,o)),null!==r&&Dd(o,l),p}function h(){let t=Tt();hu()?fu():(t=t.parent,Xn(t,!1));const n=t;(function RE(t){return ae.skipHydrationRootTNode===t})(n)&&function VE(){ae.skipHydrationRootTNode=null}(),function NE(){ae.lFrame.elementDepthCount--}();const e=De();return e.firstCreatePass&&(Na(e,t),su(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function ex(t){return 0!=(8&t.flags)}(n)&&Hd(e,n,O(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tx(t){return 0!=(16&t.flags)}(n)&&Hd(e,n,O(),n.stylesWithoutHost,!1),h}function K(t,n,e,r){return p(t,n,e,r),h(),K}let iv=(t,n,e,r,o,i)=>($r(!0),Ja(r,o,function Ng(){return ae.lFrame.currentNamespace}()));function Z(){return O()}function Ms(t){return!!t&&"function"==typeof t.then}function lv(t){return!!t&&"function"==typeof t.subscribe}function _(t,n,e,r){const o=O(),i=De(),s=Tt();return function uv(t,n,e,r,o,i,s){const a=Sa(r),c=t.firstCreatePass&&R_(t),u=n[nt],d=N_(n);let g=!0;if(3&r.type||s){const M=en(r,n),E=s?s(M):M,x=d.length,b=s?q=>s(qe(q[r.index])):r.index;let k=null;if(!s&&a&&(k=function nO(t,n,e,r){const o=t.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(t,n,o,r.index)),null!==k)(k.__ngLastListenerFn__||k).__ngNextListenerFn__=i,k.__ngLastListenerFn__=i,g=!1;else{i=pv(r,n,u,i,!1);const q=e.listen(E,o,i);d.push(i,q),c&&c.push(o,b,x,x+1)}}else i=pv(r,n,u,i,!1);const m=r.outputs;let y;if(g&&null!==m&&(y=m[o])){const M=y.length;if(M)for(let E=0;E-1?tn(t.index,n):n);let l=dv(n,e,r,s),c=i.__ngNextListenerFn__;for(;c;)l=dv(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&s.preventDefault(),l}}function D(t=1){return function GE(t){return(ae.lFrame.contextLView=function WE(t,n){for(;t>0;)n=n[Bo],t--;return n}(t,ae.lFrame.contextLView))[nt]}(t)}function rO(t,n){let e=null;const r=function KD(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o>17&32767}function zd(t){return 2|t}function Co(t){return(131068&t)>>2}function Gd(t,n){return-131069&t|n<<2}function Wd(t){return 1|t}function Dv(t,n,e,r,o){const i=t[e+1],s=null===n;let a=r?jr(i):Co(i),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];cO(t[a],n)&&(l=!0,t[a+1]=r?Wd(u):zd(u)),a=r?jr(u):Co(u)}l&&(t[e+1]=r?zd(i):Wd(i))}function cO(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Xo(t,n)>=0}const wt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ev(t){return t.substring(wt.key,wt.keyEnd)}function uO(t){return t.substring(wt.value,wt.valueEnd)}function xv(t,n){const e=wt.textEnd;return e===n?-1:(n=wt.keyEnd=function hO(t,n,e){for(;n32;)n++;return n}(t,wt.key=n,e),fi(t,n,e))}function Sv(t,n){const e=wt.textEnd;let r=wt.key=fi(t,n,e);return e===r?-1:(r=wt.keyEnd=function fO(t,n,e){let r;for(;n=65&&(-33&r)<=90||r>=48&&r<=57);)n++;return n}(t,r,e),r=Ov(t,r,e),r=wt.value=fi(t,r,e),r=wt.valueEnd=function gO(t,n,e){let r=-1,o=-1,i=-1,s=n,a=s;for(;s32&&(a=s),i=o,o=r,r=-33&l}return a}(t,r,e),Ov(t,r,e))}function Pv(t){wt.key=0,wt.keyEnd=0,wt.value=0,wt.valueEnd=0,wt.textEnd=t.length}function fi(t,n,e){for(;n=0;e=Sv(n,e))Av(t,Ev(n),uO(n))}function or(t){Rn(bO,ir,t,!0)}function ir(t,n){for(let e=function dO(t){return Pv(t),xv(t,fi(t,0,wt.textEnd))}(n);e>=0;e=xv(n,e))gn(t,Ev(n),!0)}function Nn(t,n,e,r){const o=O(),i=De(),s=Cr(2);i.firstUpdatePass&&kv(i,t,s,r),n!==fe&&Bt(o,s,n)&&Nv(i,i.data[Ut()],o,o[he],t,o[s+1]=function DO(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=vt(mn(t)))),t}(n,e),r,s)}function Rn(t,n,e,r){const o=De(),i=Cr(2);o.firstUpdatePass&&kv(o,null,i,r);const s=O();if(e!==fe&&Bt(s,i,e)){const a=o.data[Ut()];if(Fv(a,r)&&!Tv(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Zc(l,e||"")),Hd(o,a,s,e,r)}else!function MO(t,n,e,r,o,i,s,a){o===fe&&(o=xe);let l=0,c=0,u=0=t.expandoStartIndex}function kv(t,n,e,r){const o=t.data;if(null===o[e+1]){const i=o[Ut()],s=Tv(t,e);Fv(i,r)&&null===n&&!s&&(n=!1),n=function _O(t,n,e,r){const o=function mu(t){const n=ae.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(e=Es(e=qd(null,t,n,e,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==o)if(e=qd(o,t,n,e,r),null===i){let l=function vO(t,n,e){const r=e?n.classBindings:n.styleBindings;if(0!==Co(r))return t[jr(r)]}(t,n,r);void 0!==l&&Array.isArray(l)&&(l=qd(null,t,n,l[1],r),l=Es(l,n.attrs,r),function CO(t,n,e,r){t[jr(e?n.classBindings:n.styleBindings)]=r}(t,n,r,l))}else i=function yO(t,n,e){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(c=!0)):u=e,o)if(0!==l){const g=jr(t[a+1]);t[r+1]=Sl(g,a),0!==g&&(t[g+1]=Gd(t[g+1],r)),t[a+1]=function iO(t,n){return 131071&t|n<<17}(t[a+1],r)}else t[r+1]=Sl(a,0),0!==a&&(t[a+1]=Gd(t[a+1],r)),a=r;else t[r+1]=Sl(l,0),0===a?a=r:t[l+1]=Gd(t[l+1],r),l=r;c&&(t[r+1]=zd(t[r+1])),Dv(t,u,r,!0),Dv(t,u,r,!1),function lO(t,n,e,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof n&&Xo(i,n)>=0&&(e[r+1]=Wd(e[r+1]))}(n,u,t,r,i),s=Sl(a,l),i?n.classBindings=s:n.styleBindings=s}(o,i,n,e,s,r)}}function qd(t,n,e,r,o){let i=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let g=e[o+1];g===fe&&(g=d?xe:void 0);let m=d?Pu(g,r):u===r?g:void 0;if(c&&!Pl(m)&&(m=Pu(l,r)),Pl(m)&&(a=m,s))return a;const y=t[o+1];o=s?jr(y):Co(y)}if(null!==n){let l=i?n.residualClasses:n.residualStyles;null!=l&&(a=Pu(l,r))}return a}function Pl(t){return void 0!==t}function Fv(t,n){return 0!=(t.flags&(n?8:16))}function f(t,n=""){const e=O(),r=De(),o=t+Me,i=r.firstCreatePass?oi(r,o,1,n,null):r.data[o],s=Lv(r,e,i,n,t);e[o]=s,Aa()&&tl(r,e,s,i),Xn(i,!1)}let Lv=(t,n,e,r,o)=>($r(!0),function Qa(t,n){return t.createText(n)}(n[he],r));function ve(t){return it("",t,""),ve}function it(t,n,e){const r=O(),o=si(r,t,n,e);return o!==fe&&function Mr(t,n,e){const r=Ta(n,t);!function _m(t,n,e){t.setValue(n,e)}(t[he],r,e)}(r,Ut(),o),it}const mi="en-US";let sC=mi;function Xd(t,n,e,r,o){if(t=de(t),Array.isArray(t))for(let i=0;i>20;if(mo(t)||!t.multi){const m=new Xi(l,o,w),y=Qd(a,n,o?u:u+g,d);-1===y?(Eu(Ha(c,s),i,a),Kd(i,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(m),s.push(m)):(e[y]=m,s[y]=m)}else{const m=Qd(a,n,u+g,d),y=Qd(a,n,u,u+g),E=y>=0&&e[y];if(o&&!E||!o&&!(m>=0&&e[m])){Eu(Ha(c,s),i,a);const x=function jI(t,n,e,r,o){const i=new Xi(t,e,w);return i.multi=[],i.index=n,i.componentProviders=0,TC(i,o,r&&!e),i}(o?UI:$I,e.length,o,r,l);!o&&E&&(e[y].providerFactory=x),Kd(i,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(x),s.push(x)}else Kd(i,t,m>-1?m:y,TC(e[o?y:m],l,!o&&r));!o&&r&&E&&e[y].componentProviders++}}}function Kd(t,n,e,r){const o=mo(n),i=function j1(t){return!!t.useClass}(n);if(o||i){const l=(i?de(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[r,l]):c[u+1].push(r,l)}else c.push(e,l)}}}function TC(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Qd(t,n,e,r){for(let o=e;o{e.providersResolver=(r,o)=>function HI(t,n,e){const r=De();if(r.firstCreatePass){const o=In(t);Xd(e,r.data,r.blueprint,o,!0),Xd(n,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,n)}}class _i{}class kC{}class ep extends _i{constructor(n,e,r){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new V_(this);const o=hn(n);this._bootstrapComponents=br(o.bootstrap),this._r3Injector=b_(n,e,[{provide:_i,useValue:this},{provide:fl,useValue:this.componentFactoryResolver},...r],vt(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(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class tp extends kC{constructor(n){super(),this.moduleType=n}create(n){return new ep(this.moduleType,n,[])}}class AC extends _i{constructor(n){super(),this.componentFactoryResolver=new V_(this),this.instance=null;const e=new sd([...n.providers,{provide:_i,useValue:this},{provide:fl,useValue:this.componentFactoryResolver}],n.parent||ll(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function np(t,n,e=null){return new AC({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let WI=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const r=qm(0,e.type),o=r.length>0?np([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,o)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Y({token:t,providedIn:"environment",factory:()=>new t(V(er))}),t})();function NC(t){t.getStandaloneInjector=n=>n.get(WI).getOrCreateStandaloneInjector(t)}function $C(t,n,e,r,o,i){const s=n+e;return Bt(t,s,o)?function nr(t,n,e){return t[n]=e}(t,s+1,i?r.call(i,o):r(o)):function Ts(t,n){const e=t[n];return e===fe?void 0:e}(t,s+1)}function op(t,n){const e=De();let r;const o=t+Me;e.firstCreatePass?(r=function dT(t,n){if(n)for(let e=n.length-1;e>=0;e--){const r=n[e];if(t===r.name)return r}}(n,e.pipeRegistry),e.data[o]=r,r.onDestroy&&(e.destroyHooks??=[]).push(o,r.onDestroy)):r=e.data[o];const i=r.factory||(r.factory=uo(r.type)),s=Xt(w);try{const a=Va(!1),l=i();return Va(a),function YP(t,n,e,r){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}(e,O(),o,l),l}finally{Xt(s)}}function ip(t,n,e){const r=t+Me,o=O(),i=function $o(t,n){return t[n]}(o,r);return function ks(t,n){return t[H].data[n].pure}(o,r)?$C(o,function $t(){const t=ae.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}(),n,i.transform,e,i):i.transform(e)}function sp(t){return n=>{setTimeout(t,void 0,n)}}const le=class mT extends tt{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,r){let o=n,i=e||(()=>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=sp(i),o&&(o=sp(o)),s&&(s=sp(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof U&&n.add(a),a}};function _T(){return this._results[Symbol.iterator]()}class ap{get changes(){return this._changes||(this._changes=new le)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ap.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_T)}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,e){return this._results.reduce(n,e)}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,e){const r=this;r.dirty=!1;const o=function wn(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function px(t,n,e){if(t.length!==n.length)return!1;for(let r=0;r{class t{}return t.__NG_ELEMENT_ID__=yT,t})();const vT=Dr,CT=class extends vT{constructor(n,e,r){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e,null)}createEmbeddedViewImpl(n,e,r){const o=this._declarationTContainer.tView,i=_l(this._declarationLView,o,n,16,null,o.declTNode,null,null,null,e||null,r||null);i[Wi]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Wn];return null!==a&&(i[Wn]=a.createEmbeddedView(o)),Td(o,i,n),new _s(i)}};function yT(){return Al(Tt(),O())}function Al(t,n){return 4&t.type?new CT(n,t,ni(t,n)):null}let vn=(()=>{class t{}return t.__NG_ELEMENT_ID__=ST,t})();function ST(){return KC(Tt(),O())}const PT=vn,ZC=class extends PT{constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return ni(this._hostTNode,this._hostLView)}get injector(){return new Go(this._hostTNode,this._hostLView)}get parentInjector(){const n=Du(this._hostTNode,this._hostLView);if(Bg(n)){const e=Ba(n,this._hostLView),r=La(n);return new Go(e[H].data[r+8],e)}return new Go(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=XC(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-It}createEmbeddedView(n,e,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(e||{},i,null);return this.insertImpl(a,o,false),a}createComponent(n,e,r,o,i){const s=n&&!function Qi(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const M=e||{};a=M.index,r=M.injector,o=M.projectableNodes,i=M.environmentInjector||M.ngModuleRef}const l=s?n:new vs(Pe(n)),c=r||this.parentInjector;if(!i&&null==l.ngModule){const E=(s?c:this.parentInjector).get(er,null);E&&(i=E)}Pe(l.componentType??{});const m=l.create(c,o,null,i);return this.insertImpl(m.hostView,a,false),m}insert(n,e){return this.insertImpl(n,e,!1)}insertImpl(n,e,r){const o=n._lView,i=o[H];if(function OE(t){return Qt(t[Qe])}(o)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const c=o[Qe],u=new ZC(c,c[Ft],c[Qe]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(e),a=this._lContainer;if(function t1(t,n,e,r){const o=It+r,i=e.length;r>0&&(e[o-1][On]=n),r0)r.push(s[a/2]);else{const c=i[a+1],u=n[-l];for(let d=It;d{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r}),this.appInits=z(bp,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const i=o();if(Ms(i))e.push(i);else if(lv(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});e.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(o=>{this.reject(o)}),0===e.length&&r(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),My=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Er=new j("LocaleId",{providedIn:"root",factory:()=>z(Er,oe.Optional|oe.SkipSelf)||function ik(){return typeof $localize<"u"&&$localize.locale||mi}()});class ak{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Dy=(()=>{class t{compileModuleSync(e){return new tp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const r=this.compileModuleSync(e),i=br(hn(e).declarations).reduce((s,a)=>{const l=Pe(a);return l&&s.push(new vs(l)),s},[]);return new ak(r,i)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const uk=(()=>Promise.resolve(0))();function Dp(t){typeof Zone>"u"?uk.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function Sy(...t){}class Ye{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new le(!1),this.onMicrotaskEmpty=new le(!1),this.onStable=new le(!1),this.onError=new le(!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&&e,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function dk(){let t=je.requestAnimationFrame,n=je.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function fk(t){const n=()=>{!function hk(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(je,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,xp(t),t.isCheckStableRunning=!0,Ep(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),xp(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,o,i,s,a)=>{try{return Py(t),e.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&n(),Oy(t)}},onInvoke:(e,r,o,i,s,a,l)=>{try{return Py(t),e.invoke(o,i,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Oy(t)}},onHasTask:(e,r,o,i)=>{e.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,xp(t),Ep(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,r,o,i)=>(e.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ye.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(Ye.isInAngularZone())throw new I(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,pk,Sy,Sy);try{return i.runTask(s,e,r)}finally{i.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}}const pk={};function Ep(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function xp(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Py(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Oy(t){t._nesting--,Ep(t)}class gk{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new le,this.onMicrotaskEmpty=new le,this.onStable=new le,this.onError=new le}run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,o){return n.apply(e,r)}}const Iy=new j("",{providedIn:"root",factory:Ty});function Ty(){const t=z(Ye);let n=!0;return Af(new Ee(o=>{n=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(n),o.complete()})}),new Ee(o=>{let i;t.runOutsideAngular(()=>{i=t.onStable.subscribe(()=>{Ye.assertNotInAngularZone(),Dp(()=>{!n&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const s=t.onUnstable.subscribe(()=>{Ye.assertInAngularZone(),n&&(n=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(Nf()))}const ky=new j(""),Rl=new j("");let Op,Sp=(()=>{class t{constructor(e,r,o){this._ngZone=e,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Op||(function mk(t){Op=t}(o),o.addToWindow(r)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ye.assertNotInAngularZone(),Dp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Dp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:o})}whenStable(e,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(e,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,o){return[]}}return t.\u0275fac=function(e){return new(e||t)(V(Ye),V(Pp),V(Rl))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})(),Pp=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return Op?.findTestabilityInTree(this,e,r)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),zr=null;const Ay=new j("AllowMultipleToken"),Ip=new j("PlatformDestroyListeners"),Tp=new j("appBootstrapListener");class Ry{constructor(n,e){this.name=n,this.token=e}}function Ly(t,n,e=[]){const r=`Platform: ${n}`,o=new j(r);return(i=[])=>{let s=kp();if(!s||s.injector.get(Ay,!1)){const a=[...e,...i,{provide:o,useValue:!0}];t?t(a):function Ck(t){if(zr&&!zr.get(Ay,!1))throw new I(400,!1);(function Ny(){!function vE(t){ug=t}(()=>{throw new I(600,!1)})})(),zr=t;const n=t.get(Vy);(function Fy(t){t.get(Qm,null)?.forEach(e=>e())})(t)}(function By(t=[],n){return Tn.create({name:n,providers:[{provide:od,useValue:"platform"},{provide:Ip,useValue:new Set([()=>zr=null])},...t]})}(a,r))}return function wk(t){const n=kp();if(!n)throw new I(401,!1);return n}()}}function kp(){return zr?.get(Vy)??null}let Vy=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const o=function bk(t="zone.js",n){return"noop"===t?new gk:"zone.js"===t?new Ye(n):t}(r?.ngZone,function Hy(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function GI(t,n,e){return new ep(t,n,e)}(e.moduleType,this.injector,function Gy(t){return[{provide:Ye,useFactory:t},{provide:cs,multi:!0,useFactory:()=>{const n=z(Dk,{optional:!0});return()=>n.initialize()}},{provide:zy,useFactory:Mk},{provide:Iy,useFactory:Ty}]}(()=>o)),s=i.injector.get(_o,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Fl(this._modules,i),a.unsubscribe()})}),function $y(t,n,e){try{const r=e();return Ms(r)?r.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>t.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Mp);return a.runInitializers(),a.donePromise.then(()=>(function aC(t){yn(t,"Expected localeId to be defined"),"string"==typeof t&&(sC=t.toLowerCase().replace(/_/g,"-"))}(i.injector.get(Er,mi)||mi),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,r=[]){const o=Uy({},r);return function _k(t,n,e){const r=new tp(e);return Promise.resolve(r)}(0,0,e).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(e){const r=e.injector.get(yi);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new I(-403,!1);e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}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 e=this._injector.get(Ip,null);e&&(e.forEach(r=>r()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(V(Tn))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Uy(t,n){return Array.isArray(n)?n.reduce(Uy,t):{...t,...n}}let yi=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=z(zy),this.componentTypes=[],this.components=[],this.isStable=z(Iy),this._injector=z(er)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,r){const o=e instanceof i_;if(!this._injector.get(Mp).done)throw!o&&function Ro(t){const n=Pe(t)||Rt(t)||Kt(t);return null!==n&&n.standalone}(e),new I(405,!1);let s;s=o?e:this._injector.get(fl).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function vk(t){return t.isBoundToModule}(s)?void 0:this._injector.get(_i),c=s.create(Tn.NULL,[],r||s.selector,a),u=c.location.nativeElement,d=c.injector.get(ky,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Fl(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new I(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;Fl(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const r=this._injector.get(Tp,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Fl(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new I(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Fl(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const zy=new j("",{providedIn:"root",factory:()=>z(_o).handleError.bind(void 0)});function Mk(){const t=z(Ye),n=z(_o);return e=>t.runOutsideAngular(()=>n.handleError(e))}let Dk=(()=>{class t{constructor(){this.zone=z(Ye),this.applicationRef=z(yi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();let Ll=(()=>{class t{}return t.__NG_ELEMENT_ID__=xk,t})();function xk(t){return function Sk(t,n,e){if(co(t)&&!e){const r=tn(t.index,n);return new _s(r,r)}return 47&t.type?new _s(n[pt],n):null}(Tt(),O(),16==(16&t))}class Zy{constructor(){}supports(n){return bl(n)}create(n){return new Ak(n)}}const kk=(t,n)=>n;class Ak{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||kk}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,o=0,i=null;for(;e||r;){const s=!r||e&&e.currentIndex{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),r=!0),e=e._next,o++}),this.length=o;return this._truncate(e),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,e,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,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,i,o)):n=this._addAfter(new Nk(e,r),i,o),n}_verifyReinsertion(n,e,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 e=n._next;this._addToRemovals(this._unlink(n)),n=e}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,e,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,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Xy),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 e=n._prev,r=n._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Xy),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,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Nk{constructor(n,e){this.item=n,this.trackById=e,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 Rk{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,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const e=n._prevDup,r=n._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class Xy{constructor(){this.map=new Map}put(n){const e=n.trackById;let r=this.map.get(e);r||(r=new Rk,this.map.set(e,r)),r.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ky(t,n,e){const r=t.previousIndex;if(null===r)return r;let o=0;return e&&r{class t{constructor(e){this.factories=e}static create(e,r){if(null!=r){const o=r.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||Jy()),deps:[[t,new Wa,new Ga]]}}find(e){const r=this.factories.find(o=>o.supports(e));if(null!=r)return r;throw new I(901,!1)}}return t.\u0275prov=Y({token:t,providedIn:"root",factory:Jy}),t})();const Hk=Ly(null,"core",[]);let $k=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(V(yi))},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({}),t})(),sw=(()=>{class t{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=z(Ye),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(e=>{this.resolve=e})})}add(){if(this.completed)return-1;const e=this.taskId++;return this.collection.add(e),e}remove(e){this.completed||(this.collection.delete(e),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();let Vp=null;function Gr(){return Vp}class Jk{}const Wt=new j("DocumentToken");let Hp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:function(){return z(tA)},providedIn:"platform"}),t})();const eA=new j("Location Initialized");let tA=(()=>{class t extends Hp{constructor(){super(),this._doc=z(Wt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Gr().getBaseHref(this._doc)}onPopState(e){const r=Gr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=Gr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,r,o){this._history.pushState(e,r,o)}replaceState(e,r,o){this._history.replaceState(e,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:function(){return new t},providedIn:"platform"}),t})();function $p(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function lw(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function xr(t){return t&&"?"!==t[0]?"?"+t:t}let Wr=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:function(){return z(uw)},providedIn:"root"}),t})();const cw=new j("appBaseHref");let uw=(()=>{class t extends Wr{constructor(e,r){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??z(Wt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return $p(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+xr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${r}${o}`:r}pushState(e,r,o,i){const s=this.prepareExternalUrl(o+xr(i));this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){const s=this.prepareExternalUrl(o+xr(i));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(V(Hp),V(cw,8))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dw=(()=>{class t extends Wr{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=$p(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,o,i){let s=this.prepareExternalUrl(o+xr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){let s=this.prepareExternalUrl(o+xr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(V(Hp),V(cw,8))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})(),qr=(()=>{class t{constructor(e){this._subject=new le,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const r=this._locationStrategy.getBaseHref();this._basePath=function oA(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(lw(pw(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(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+xr(r))}normalize(e){return t.stripTrailingSlash(function rA(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,pw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",o=null){this._locationStrategy.pushState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xr(r)),o)}replaceState(e,r="",o=null){this._locationStrategy.replaceState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xr(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(o=>o(e,r))}subscribe(e,r,o){return this._subject.subscribe({next:e,error:r,complete:o})}}return t.normalizeQueryParams=xr,t.joinWithSlash=$p,t.stripTrailingSlash=lw,t.\u0275fac=function(e){return new(e||t)(V(Wr))},t.\u0275prov=Y({token:t,factory:function(){return function nA(){return new qr(V(Wr))}()},providedIn:"root"}),t})();function pw(t){return t.replace(/\/index.html$/,"")}function ww(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const r=e.indexOf("="),[o,i]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}class jA{constructor(n,e,r,o){this.$implicit=n,this.ngForOf=e,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 t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,r,o){this._viewContainer=e,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new jA(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),Dw(a,o)}});for(let o=0,i=r.length;o{Dw(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(w(vn),w(Dr),w(Hl))},t.\u0275dir=ue({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function Dw(t,n){t.context.$implicit=n.item}let Re=(()=>{class t{constructor(e,r){this._viewContainer=e,this._context=new zA,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Ew("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ew("ngIfElse",e),this._elseTemplateRef=e,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(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(w(vn),w(Dr))},t.\u0275dir=ue({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class zA{constructor(){this.$implicit=null,this.ngIf=null}}function Ew(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${vt(n)}'.`)}class qA{createSubscription(n,e){return n.subscribe({next:e,error:r=>{throw r}})}dispose(n){n.unsubscribe()}}class YA{createSubscription(n,e){return n.then(e,r=>{throw r})}dispose(n){}}const ZA=new YA,XA=new qA;let Sw=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r))}_selectStrategy(e){if(Ms(e))return ZA;if(lv(e))return XA;throw function Bn(t,n){return new I(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(w(Ll,16))},t.\u0275pipe=Nt({name:"async",type:t,pure:!1,standalone:!0}),t})(),Kl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({}),t})();const Ow="browser";function bi(t){return t===Ow}function Iw(t){return"server"===t}let _N=(()=>{class t{}return t.\u0275prov=Y({token:t,providedIn:"root",factory:()=>new vN(V(Wt),window)}),t})();class vN{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function CN(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const r=t.createTreeWalker(t.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);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),r=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Tw(this.window.history)||Tw(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Tw(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class kw{}class WN extends Jk{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oh extends WN{static makeCurrent(){!function Qk(t){Vp||(Vp=t)}(new oh)}onAndCancel(n,e,r){return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||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,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function qN(){return Bs=Bs||document.querySelector("base"),Bs?Bs.getAttribute("href"):null}();return null==e?null:function YN(t){tc=tc||document.createElement("a"),tc.setAttribute("href",t);const n=tc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Bs=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return ww(document.cookie,n)}}let tc,Bs=null,XN=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();const ih=new j("EventManagerPlugins");let Lw=(()=>{class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,o){return this._findPluginFor(r).addEventListener(e,r,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(i=>i.supports(e)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(V(ih),V(Ye))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();class Bw{constructor(n){this._doc=n}}const sh="ng-app-id";let Vw=(()=>{class t{constructor(e,r,o,i={}){this.doc=e,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Iw(i),this.resetHostNodes()}addStyles(e){for(const r of e)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(e){for(const r of e)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(r=>r.remove()),e.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const r of this.getAllStyles())this.addStyleToHost(e,r)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const r of this.hostNodes)this.addStyleToHost(r,e)}onStyleRemoved(e){const r=this.styleRef;r.get(e)?.elements?.forEach(o=>o.remove()),r.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${sh}="${this.appId}"]`);if(e?.length){const r=new Map;return e.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(e,r){const o=this.styleRef;if(o.has(e)){const i=o.get(e);return i.usage+=r,i.usage}return o.set(e,{usage:r,elements:[]}),r}getStyleElement(e,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===e)return o.delete(r),i.removeAttribute(sh),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(sh,this.appId),s}}addStyleToHost(e,r){const o=this.getStyleElement(e,r);e.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(V(Wt),V(cl),V(Jm,8),V(Ur))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();const ah={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/"},lh=/%COMP%/g,eR=new j("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function $w(t,n){return n.map(e=>e.replace(lh,t))}let Uw=(()=>{class t{constructor(e,r,o,i,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Iw(a),this.defaultRenderer=new ch(e,s,l,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===dn.ShadowDom&&(r={...r,encapsulation:dn.Emulated});const o=this.getOrCreateRenderer(e,r);return o instanceof zw?o.applyToHost(e):o instanceof uh&&o.applyStyles(),o}getOrCreateRenderer(e,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.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case dn.Emulated:i=new zw(l,c,r,this.appId,u,s,a,d);break;case dn.ShadowDom:return new oR(l,c,e,r,s,a,this.nonce,d);default:i=new uh(l,c,r,u,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return t.\u0275fac=function(e){return new(e||t)(V(Lw),V(Vw),V(cl),V(eR),V(Wt),V(Ur),V(Ye),V(Jm))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();class ch{constructor(n,e,r,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(ah[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(jw(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(jw(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new I(5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,o){if(o){e=o+":"+e;const i=ah[o];i?n.setAttributeNS(i,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){const o=ah[r];o?n.removeAttributeNS(o,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,o){o&(nn.DashCase|nn.Important)?n.style.setProperty(e,r,o&nn.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&nn.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n[e]=r}setValue(n,e){n.nodeValue=e}listen(n,e,r){if("string"==typeof n&&!(n=Gr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(r))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function jw(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class oR extends ch{constructor(n,e,r,o,i,s,a,l){super(n,i,s,l),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=$w(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,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class uh extends ch{constructor(n,e,r,o,i,s,a,l){super(n,i,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?$w(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class zw extends uh{constructor(n,e,r,o,i,s,a,l){const c=o+"-"+r.id;super(n,e,r,i,s,a,l,c),this.contentAttr=function tR(t){return"_ngcontent-%COMP%".replace(lh,t)}(c),this.hostAttr=function nR(t){return"_nghost-%COMP%".replace(lh,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}}let iR=(()=>{class t extends Bw{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o){return e.addEventListener(r,o,!1),()=>this.removeEventListener(e,r,o)}removeEventListener(e,r,o){return e.removeEventListener(r,o)}}return t.\u0275fac=function(e){return new(e||t)(V(Wt))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();const Gw=["alt","control","meta","shift"],sR={"\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"},aR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let lR=(()=>{class t extends Bw{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gr().onAndCancel(e,i.domEventName,s))}static parseEventName(e){const r=e.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Gw.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(e,r){let o=sR[e.key]||e.key,i="";return r.indexOf("code.")>-1&&(o=e.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Gw.forEach(s=>{s!==o&&(0,aR[s])(e)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(e,r,o){return i=>{t.matchEventFullKeyCode(i,e)&&o.runGuarded(()=>r(i))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(V(Wt))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();const pR=Ly(Hk,"browser",[{provide:Ur,useValue:Ow},{provide:Qm,useValue:function cR(){oh.makeCurrent()},multi:!0},{provide:Wt,useFactory:function dR(){return function f1(t){Zu=t}(document),document},deps:[]}]),hR=new j(""),Yw=[{provide:Rl,useClass:class ZN{addToWindow(n){je.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new I(5103,!1);return i},je.getAllAngularTestabilities=()=>n.getAllTestabilities(),je.getAllAngularRootElements=()=>n.getAllRootElements(),je.frameworkStabilizers||(je.frameworkStabilizers=[]),je.frameworkStabilizers.push(r=>{const o=je.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,r){return null==e?null:n.getTestability(e)??(r?Gr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:ky,useClass:Sp,deps:[Ye,Pp,Rl]},{provide:Sp,useClass:Sp,deps:[Ye,Pp,Rl]}],Zw=[{provide:od,useValue:"root"},{provide:_o,useFactory:function uR(){return new _o},deps:[]},{provide:ih,useClass:iR,multi:!0,deps:[Wt,Ye,Ur]},{provide:ih,useClass:lR,multi:!0,deps:[Wt]},Uw,Vw,Lw,{provide:a_,useExisting:Uw},{provide:kw,useClass:XN,deps:[]},[]];let fR=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:cl,useValue:e.appId}]}}}return t.\u0275fac=function(e){return new(e||t)(V(hR,12))},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({providers:[...Zw,...Yw],imports:[Kl,$k]}),t})(),Xw=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(V(Wt))},t.\u0275prov=Y({token:t,factory:function(e){let r=null;return r=e?new e:function mR(){return new Xw(V(Wt))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let ph=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:function(e){let r=null;return r=e?new(e||t):V(Jw),r},providedIn:"root"}),t})(),Jw=(()=>{class t extends ph{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case He.NONE:return r;case He.HTML:return Qn(r,"HTML")?mn(r):$m(this._doc,String(r)).toString();case He.STYLE:return Qn(r,"Style")?mn(r):r;case He.SCRIPT:if(Qn(r,"Script"))return mn(r);throw new I(5200,!1);case He.URL:return Qn(r,"URL")?mn(r):il(String(r));case He.RESOURCE_URL:if(Qn(r,"ResourceURL"))return mn(r);throw new I(5201,!1);default:throw new I(5202,!1)}}bypassSecurityTrustHtml(e){return function w1(t){return new g1(t)}(e)}bypassSecurityTrustStyle(e){return function b1(t){return new m1(t)}(e)}bypassSecurityTrustScript(e){return function M1(t){return new _1(t)}(e)}bypassSecurityTrustUrl(e){return function D1(t){return new v1(t)}(e)}bypassSecurityTrustResourceUrl(e){return function E1(t){return new C1(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(V(Wt))},t.\u0275prov=Y({token:t,factory:function(e){let r=null;return r=e?new e:function yR(t){return new Jw(t.get(Wt))}(V(Tn)),r},providedIn:"root"}),t})();function ce(...t){return _t(t,Hi(t))}class Vn extends tt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}const{isArray:bR}=Array,{getPrototypeOf:MR,prototype:DR,keys:ER}=Object;function t0(t){if(1===t.length){const n=t[0];if(bR(n))return{args:n,keys:null};if(function xR(t){return t&&"object"==typeof t&&MR(t)===DR}(n)){const e=ER(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}const{isArray:SR}=Array;function n0(t){return ye(n=>function PR(t,n){return SR(n)?t(...n):t(n)}(t,n))}function r0(t,n){return t.reduce((e,r,o)=>(e[r]=n[o],e),{})}function hh(...t){const n=Hi(t),e=Of(t),{args:r,keys:o}=t0(t);if(0===r.length)return _t([],n);const i=new Ee(function OR(t,n,e=jn){return r=>{o0(n,()=>{const{length:o}=t,i=new Array(o);let s=o,a=o;for(let l=0;l{const c=_t(t[l],n);let u=!1;c.subscribe(Xe(r,d=>{i[l]=d,u||(u=!0,a--),a||r.next(e(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>r0(o,s):jn));return e?i.pipe(n0(e)):i}function o0(t,n,e){t?hr(e,t,n):n()}const nc=We(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function fh(...t){return function IR(){return Ao(1)}()(_t(t,Hi(t)))}function s0(t){return new Ee(n=>{cn(t()).subscribe(n)})}function Vs(t,n){const e=G(t)?t:()=>t,r=o=>o.error(e());return new Ee(n?o=>n.schedule(r,0,o):r)}function gh(){return Ze((t,n)=>{let e=null;t._refCount++;const r=Xe(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,i=e;e=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}class a0 extends Ee{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,io(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 U;const e=this.getSubject();n.add(this.source.subscribe(Xe(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=U.EMPTY)}return n}refCount(){return gh()(this)}}function Hn(t,n){return Ze((e,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();e.subscribe(Xe(r,l=>{o?.unsubscribe();let c=0;const u=i++;cn(t(l,u)).subscribe(o=Xe(r,d=>r.next(n?n(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Mi(t){return t<=0?()=>zn:Ze((n,e)=>{let r=0;n.subscribe(Xe(e,o=>{++r<=t&&(e.next(o),t<=r&&e.complete())}))})}function l0(...t){const n=Hi(t);return Ze((e,r)=>{(n?fh(t,e,n):fh(t,e)).subscribe(r)})}function Pr(t,n){return Ze((e,r)=>{let o=0;e.subscribe(Xe(r,i=>t.call(n,i,o++)&&r.next(i)))})}function rc(t){return Ze((n,e)=>{let r=!1;n.subscribe(Xe(e,o=>{r=!0,e.next(o)},()=>{r||e.next(t),e.complete()}))})}function c0(t=TR){return Ze((n,e)=>{let r=!1;n.subscribe(Xe(e,o=>{r=!0,e.next(o)},()=>r?e.complete():e.error(t())))})}function TR(){return new nc}function Zr(t,n){const e=arguments.length>=2;return r=>r.pipe(t?Pr((o,i)=>t(o,i,r)):jn,Mi(1),e?rc(n):c0(()=>new nc))}function Di(t,n){return G(n)?Ot(t,n,1):Ot(t,1)}function qt(t,n,e){const r=G(t)||n||e?{next:t,error:n,complete:e}:t;return r?Ze((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Xe(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)}))}):jn}function Ge(t){return Ze((n,e)=>{let i,r=null,o=!1;r=n.subscribe(Xe(e,void 0,void 0,s=>{i=cn(t(s,Ge(t)(n))),r?(r.unsubscribe(),r=null,i.subscribe(e)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(e))})}function mh(t){return t<=0?()=>zn:Ze((n,e)=>{let r=[];n.subscribe(Xe(e,o=>{r.push(o),t{for(const o of r)e.next(o);e.complete()},void 0,()=>{r=null}))})}function u0(t){return ye(()=>t)}function _h(t){return Ze((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}const me="primary",Hs=Symbol("RouteTitle");class RR{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ei(t){return new RR(t)}function FR(t,n,e){const r=e.path.split("/");if(r.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return t===n}function p0(t){return t.length>0?t[t.length-1]:null}function Xr(t){return function wR(t){return!!t&&(t instanceof Ee||G(t.lift)&&G(t.subscribe))}(t)?t:Ms(t)?_t(Promise.resolve(t)):ce(t)}const BR={exact:function g0(t,n,e){if(!bo(t.segments,n.segments)||!oc(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!t.children[r]||!g0(t.children[r],n.children[r],e))return!1;return!0},subset:m0},h0={exact:function VR(t,n){return sr(t,n)},subset:function HR(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>d0(t[e],n[e]))},ignored:()=>!0};function f0(t,n,e){return BR[e.paths](t.root,n.root,e.matrixParams)&&h0[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function m0(t,n,e){return _0(t,n,n.segments,e)}function _0(t,n,e,r){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!bo(o,e)||n.hasChildren()||!oc(o,e,r))}if(t.segments.length===e.length){if(!bo(t.segments,e)||!oc(t.segments,e,r))return!1;for(const o in n.children)if(!t.children[o]||!m0(t.children[o],n.children[o],r))return!1;return!0}{const o=e.slice(0,t.segments.length),i=e.slice(t.segments.length);return!!(bo(t.segments,o)&&oc(t.segments,o,r)&&t.children[me])&&_0(t.children[me],n,i,r)}}function oc(t,n,e){return n.every((r,o)=>h0[e](t[o].parameters,r.parameters))}class xi{constructor(n=new Fe([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ei(this.queryParams)),this._queryParamMap}toString(){return jR.serialize(this)}}class Fe{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ic(this)}}class $s{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ei(this.parameters)),this._parameterMap}toString(){return y0(this)}}function bo(t,n){return t.length===n.length&&t.every((e,r)=>e.path===n[r].path)}let Us=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:function(){return new vh},providedIn:"root"}),t})();class vh{parse(n){const e=new eF(n);return new xi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${js(n.root,!0)}`,r=function WR(t){const n=Object.keys(t).map(e=>{const r=t[e];return Array.isArray(r)?r.map(o=>`${sc(e)}=${sc(o)}`).join("&"):`${sc(e)}=${sc(r)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${r}${"string"==typeof n.fragment?`#${function zR(t){return encodeURI(t)}(n.fragment)}`:""}`}}const jR=new vh;function ic(t){return t.segments.map(n=>y0(n)).join("/")}function js(t,n){if(!t.hasChildren())return ic(t);if(n){const e=t.children[me]?js(t.children[me],!1):"",r=[];return Object.entries(t.children).forEach(([o,i])=>{o!==me&&r.push(`${o}:${js(i,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function UR(t,n){let e=[];return Object.entries(t.children).forEach(([r,o])=>{r===me&&(e=e.concat(n(o,r)))}),Object.entries(t.children).forEach(([r,o])=>{r!==me&&(e=e.concat(n(o,r)))}),e}(t,(r,o)=>o===me?[js(t.children[me],!1)]:[`${o}:${js(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[me]?`${ic(t)}/${e[0]}`:`${ic(t)}/(${e.join("//")})`}}function v0(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function sc(t){return v0(t).replace(/%3B/gi,";")}function Ch(t){return v0(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ac(t){return decodeURIComponent(t)}function C0(t){return ac(t.replace(/\+/g,"%20"))}function y0(t){return`${Ch(t.path)}${function GR(t){return Object.keys(t).map(n=>`;${Ch(n)}=${Ch(t[n])}`).join("")}(t.parameters)}`}const qR=/^[^\/()?;#]+/;function yh(t){const n=t.match(qR);return n?n[0]:""}const YR=/^[^\/()?;=#]+/,XR=/^[^=?&#]+/,QR=/^[^&#]+/;class eF{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Fe([],{}):new Fe([],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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[me]=new Fe(n,e)),r}parseSegment(){const n=yh(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(n),new $s(ac(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function ZR(t){const n=t.match(YR);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const o=yh(this.remaining);o&&(r=o,this.capture(r))}n[ac(e)]=ac(r)}parseQueryParam(n){const e=function KR(t){const n=t.match(XR);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const s=function JR(t){const n=t.match(QR);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=C0(e),i=C0(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 e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=yh(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=me);const s=this.parseChildren();e[i]=1===Object.keys(s).length?s[me]:new Fe([],s),this.consumeOptional("//")}return e}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 w0(t){return t.segments.length>0?new Fe([],{[me]:t}):t}function b0(t){const n={};for(const r of Object.keys(t.children)){const i=b0(t.children[r]);if(r===me&&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 tF(t){if(1===t.numberOfChildren&&t.children[me]){const n=t.children[me];return new Fe(t.segments.concat(n.segments),n.children)}return t}(new Fe(t.segments,n))}function Mo(t){return t instanceof xi}function M0(t){let n;const o=w0(function e(i){const s={};for(const l of i.children){const c=e(l);s[l.outlet]=c}const a=new Fe(i.url,s);return i===t&&(n=a),a}(t.root));return n??o}function D0(t,n,e,r){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return wh(o,o,o,e,r);const i=function rF(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new x0(!0,0,t);let n=0,e=!1;const r=t.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?e=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new x0(e,n,r)}(n);if(i.toRoot())return wh(o,o,new Fe([],{}),e,r);const s=function oF(t,n,e){if(t.isAbsolute)return new cc(n,!0,0);if(!e)return new cc(n,!1,NaN);if(null===e.parent)return new cc(e,!0,0);const r=lc(t.commands[0])?0:1;return function iF(t,n,e){let r=t,o=n,i=e;for(;i>o;){if(i-=o,r=r.parent,!r)throw new I(4005,!1);o=r.segments.length}return new cc(r,!1,o-i)}(e,e.segments.length-1+r,t.numberOfDoubleDots)}(i,o,t),a=s.processChildren?Gs(s.segmentGroup,s.index,i.commands):S0(s.segmentGroup,s.index,i.commands);return wh(o,s.segmentGroup,a,e,r)}function lc(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function zs(t){return"object"==typeof t&&null!=t&&t.outlets}function wh(t,n,e,r,o){let s,i={};r&&Object.entries(r).forEach(([l,c])=>{i[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=t===n?e:E0(t,n,e);const a=w0(b0(s));return new xi(a,i,o)}function E0(t,n,e){const r={};return Object.entries(t.children).forEach(([o,i])=>{r[o]=i===n?e:E0(i,n,e)}),new Fe(t.segments,r)}class x0{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&lc(r[0]))throw new I(4003,!1);const o=r.find(zs);if(o&&o!==p0(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cc{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}}function S0(t,n,e){if(t||(t=new Fe([],{})),0===t.segments.length&&t.hasChildren())return Gs(t,n,e);const r=function aF(t,n,e){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return i;const s=t.segments[o],a=e[r];if(zs(a))break;const l=`${a}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!O0(l,c,s))return i;r+=2}else{if(!O0(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,n,e),o=e.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=S0(t.children[i],n,s))}),Object.entries(t.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new Fe(t.segments,o)}}function bh(t,n,e){const r=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(n[e]=bh(new Fe([],{}),0,r))}),n}function P0(t){const n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function O0(t,n,e){return t==e.path&&sr(n,e.parameters)}const Ws="imperative";class ar{constructor(n,e){this.id=n,this.url=e}}class Mh extends ar{constructor(n,e,r="imperative",o=null){super(n,e),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Do extends ar{constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class uc extends ar{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qs extends ar{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=16}}class Dh extends ar{constructor(n,e,r,o){super(n,e),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class cF extends ar{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uF extends ar{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dF extends ar{constructor(n,e,r,o,i){super(n,e),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class pF extends ar{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hF extends ar{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fF{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gF{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mF{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _F{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vF{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class CF{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class I0{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class yF{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ys,this.attachRef=null}}let Ys=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){const o=this.getOrCreateContext(e);o.outlet=r,this.contexts.set(e,o)}onChildOutletDestroyed(e){const r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new yF,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class T0{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=Eh(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){const e=Eh(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=xh(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return xh(n,this._root).map(e=>e.value)}}function Eh(t,n){if(t===n.value)return n;for(const e of n.children){const r=Eh(t,e);if(r)return r}return null}function xh(t,n){if(t===n.value)return[n];for(const e of n.children){const r=xh(t,e);if(r.length)return r.unshift(n),r}return[]}class Or{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Si(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class k0 extends T0{constructor(n,e){super(n),this.snapshot=e,Sh(this,n)}toString(){return this.snapshot.toString()}}function A0(t,n){const e=function wF(t,n){const s=new dc([],{},{},"",{},me,n,null,{});return new R0("",new Or(s,[]))}(0,n),r=new Vn([new $s("",{})]),o=new Vn({}),i=new Vn({}),s=new Vn({}),a=new Vn(""),l=new lr(r,o,s,a,i,me,n,e.root);return l.snapshot=e.root,new k0(new Or(l,[]),e)}class lr{constructor(n,e,r,o,i,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ye(c=>c[Hs]))??ce(void 0),this.url=n,this.params=e,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._paramMap=this.params.pipe(ye(n=>Ei(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ye(n=>Ei(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function N0(t,n="emptyOnly"){const e=t.pathFromRoot;let r=0;if("always"!==n)for(r=e.length-1;r>=1;){const o=e[r],i=e[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function bF(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(r))}class dc{get title(){return this.data?.[Hs]}constructor(n,e,r,o,i,s,a,l,c){this.url=n,this.params=e,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||(this._paramMap=Ei(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ei(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class R0 extends T0{constructor(n,e){super(e),this.url=n,Sh(this,e)}toString(){return F0(this._root)}}function Sh(t,n){n.value._routerState=t,n.children.forEach(e=>Sh(t,e))}function F0(t){const n=t.children.length>0?` { ${t.children.map(F0).join(", ")} } `:"";return`${t.value}${n}`}function Ph(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,sr(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),sr(n.params,e.params)||t.paramsSubject.next(e.params),function LR(t,n){if(t.length!==n.length)return!1;for(let e=0;esr(e.parameters,n[r].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||Oh(t.parent,n.parent))}let Ih=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=me,this.activateEvents=new le,this.deactivateEvents=new le,this.attachEvents=new le,this.detachEvents=new le,this.parentContexts=z(Ys),this.location=z(vn),this.changeDetector=z(Ll),this.environmentInjector=z(er),this.inputBinder=z(pc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:r,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new 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 e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=e;const o=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new MF(e,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)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Jt]}),t})();class MF{constructor(n,e,r){this.route=n,this.childContexts=e,this.parent=r}get(n,e){return n===lr?this.route:n===Ys?this.childContexts:this.parent.get(n,e)}}const pc=new j("");let L0=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:r}=e,o=hh([r.queryParams,r.params,r.data]).pipe(Hn(([i,s,a],l)=>(a={...i,...s,...a},0===l?ce(a):Promise.resolve(a)))).subscribe(i=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(e);const s=function Kk(t){const n=Pe(t);if(!n)return null;const e=new vs(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();function Zs(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=n.value;const o=function EF(t,n,e){return n.children.map(r=>{for(const o of e.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return Zs(t,r,o);return Zs(t,r)})}(t,n,e);return new Or(r,o)}{if(t.shouldAttach(n.value)){const i=t.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Zs(t,a)),s}}const r=function xF(t){return new lr(new Vn(t.url),new Vn(t.params),new Vn(t.queryParams),new Vn(t.fragment),new Vn(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(i=>Zs(t,i));return new Or(r,o)}}const Th="ngNavigationCancelingError";function B0(t,n){const{redirectTo:e,navigationBehaviorOptions:r}=Mo(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=V0(!1,0,n);return o.url=e,o.navigationBehaviorOptions=r,o}function V0(t,n,e){const r=new Error("NavigationCancelingError: "+(t||""));return r[Th]=!0,r.cancellationCode=n,e&&(r.url=e),r}function H0(t){return $0(t)&&Mo(t.url)}function $0(t){return t&&t[Th]}let U0=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["ng-component"]],standalone:!0,features:[NC],decls:1,vars:0,template:function(e,r){1&e&&K(0,"router-outlet")},dependencies:[Ih],encapsulation:2}),t})();function kh(t){const n=t.children&&t.children.map(kh),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==me&&(e.component=U0),e}function $n(t){return t.outlet||me}function Xs(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class AF{constructor(n,e,r,o,i){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Ph(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){const o=Si(e);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,e,r){const o=n.value,i=e?e.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else i&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Si(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Si(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){const o=Si(e);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new CF(i.value.snapshot))}),n.children.length&&this.forwardEvent(new _F(n.value.snapshot))}activateRoutes(n,e,r){const o=n.value,i=e?e.value:null;if(Ph(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,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),Ph(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Xs(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 j0{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class hc{constructor(n,e){this.component=n,this.route=e}}function NF(t,n,e){const r=t._root;return Ks(r,n?n._root:null,e,[r.value])}function Pi(t,n){const e=Symbol(),r=n.get(t,e);return r===e?"function"!=typeof t||function FD(t){return null!==va(t)}(t)?n.get(t):t:r}function Ks(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Si(n);return t.children.forEach(s=>{(function FF(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function LF(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!bo(t.url,n.url);case"pathParamsOrQueryParamsChange":return!bo(t.url,n.url)||!sr(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Oh(t,n)||!sr(t.queryParams,n.queryParams);default:return!Oh(t,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new j0(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Ks(t,n,i.component?a?a.children:null:e,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new hc(a.outlet.component,s))}else s&&Qs(n,a,o),o.canActivateChecks.push(new j0(r)),Ks(t,null,i.component?a?a.children:null:e,r,o)})(s,i[s.value.outlet],e,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Qs(a,e.getContext(s),o)),o}function Qs(t,n,e){const r=Si(t),o=t.value;Object.entries(r).forEach(([i,s])=>{Qs(s,o.component?n?n.children.getContext(i):null:n,e)}),e.canDeactivateChecks.push(new hc(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function Js(t){return"function"==typeof t}function z0(t){return t instanceof nc||"EmptyError"===t?.name}const fc=Symbol("INITIAL_VALUE");function Oi(){return Hn(t=>hh(t.map(n=>n.pipe(Mi(1),l0(fc)))).pipe(ye(n=>{for(const e of n)if(!0!==e){if(e===fc)return fc;if(!1===e||e instanceof xi)return e}return!0}),Pr(n=>n!==fc),Mi(1)))}function G0(t){return function fa(...t){return mt(t)}(qt(n=>{if(Mo(n))throw B0(0,n)}),ye(n=>!0===n))}class gc{constructor(n){this.segmentGroup=n||null}}class W0{constructor(n){this.urlTree=n}}function Ii(t){return Vs(new gc(t))}function q0(t){return Vs(new W0(t))}class rL{constructor(n,e){this.urlSerializer=n,this.urlTree=e}noMatchError(n){return new I(4002,!1)}lineralizeSegments(n,e){let r=[],o=e.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return ce(r);if(o.numberOfChildren>1||!o.children[me])return Vs(new I(4e3,!1));o=o.children[me]}}applyRedirectCommands(n,e,r){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r)}applyRedirectCreateUrlTree(n,e,r,o){const i=this.createSegmentGroup(n,e.root,r,o);return new xi(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=e[a]}else r[o]=i}),r}createSegmentGroup(n,e,r,o){const i=this.createSegments(n,e.segments,r,o);let s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,r,o)}),new Fe(i,s)}createSegments(n,e,r,o){return e.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,e,r){const o=r[e.path.substring(1)];if(!o)throw new I(4001,!1);return o}findOrReturn(n,e){let r=0;for(const o of e){if(o.path===n.path)return e.splice(r),o;r++}return n}}const Ah={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oL(t,n,e,r,o){const i=Nh(t,n,e);return i.matched?(r=function SF(t,n){return t.providers&&!t._injector&&(t._injector=np(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,r),function eL(t,n,e,r){const o=n.canMatch;return o&&0!==o.length?ce(o.map(s=>{const a=Pi(s,t);return Xr(function jF(t){return t&&Js(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Oi(),G0()):ce(!0)}(r,n,e).pipe(ye(s=>!0===s?i:{...Ah}))):ce(i)}function Nh(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...Ah}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||FR)(e,t,n);if(!o)return{...Ah};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:e.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Y0(t,n,e,r){return e.length>0&&function aL(t,n,e){return e.some(r=>mc(t,n,r)&&$n(r)!==me)}(t,e,r)?{segmentGroup:new Fe(n,sL(r,new Fe(e,t.children))),slicedSegments:[]}:0===e.length&&function lL(t,n,e){return e.some(r=>mc(t,n,r))}(t,e,r)?{segmentGroup:new Fe(t.segments,iL(t,0,e,r,t.children)),slicedSegments:e}:{segmentGroup:new Fe(t.segments,t.children),slicedSegments:e}}function iL(t,n,e,r,o){const i={};for(const s of r)if(mc(t,e,s)&&!o[$n(s)]){const a=new Fe([],{});i[$n(s)]=a}return{...o,...i}}function sL(t,n){const e={};e[me]=n;for(const r of t)if(""===r.path&&$n(r)!==me){const o=new Fe([],{});e[$n(r)]=o}return e}function mc(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class pL{constructor(n,e,r,o,i,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new rL(this.urlSerializer,this.urlTree)}noMatchError(n){return new I(4002,!1)}recognize(){const n=Y0(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,me).pipe(Ge(e=>{if(e instanceof W0)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof gc?this.noMatchError(e):e}),ye(e=>{const r=new dc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},me,this.rootComponentType,null,{}),o=new Or(r,e),i=new R0("",o),s=function nF(t,n,e=null,r=null){return D0(M0(t),n,e,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,me).pipe(Ge(r=>{throw r instanceof gc?this.noMatchError(r):r}))}inheritParamsAndData(n){const e=n.value,r=N0(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,e,r):this.processSegment(n,e,r,r.segments,o,!0)}processChildren(n,e,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return _t(o).pipe(Di(i=>{const s=r.children[i],a=function TF(t,n){const e=t.filter(r=>$n(r)===n);return e.push(...t.filter(r=>$n(r)!==n)),e}(e,i);return this.processSegmentGroup(n,a,s,i)}),function AR(t,n){return Ze(function kR(t,n,e,r,o){return(i,s)=>{let a=e,l=n,c=0;i.subscribe(Xe(s,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(t,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),rc(null),function NR(t,n){const e=arguments.length>=2;return r=>r.pipe(t?Pr((o,i)=>t(o,i,r)):jn,mh(1),e?rc(n):c0(()=>new nc))}(),Ot(i=>{if(null===i)return Ii(r);const s=Z0(i);return function hL(t){t.sort((n,e)=>n.value.outlet===me?-1:e.value.outlet===me?1:n.value.outlet.localeCompare(e.value.outlet))}(s),ce(s)}))}processSegment(n,e,r,o,i,s){return _t(e).pipe(Di(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,o,i,s).pipe(Ge(l=>{if(l instanceof gc)return ce(null);throw l}))),Zr(a=>!!a),Ge(a=>{if(z0(a))return function uL(t,n,e){return 0===n.length&&!t.children[e]}(r,o,i)?ce([]):Ii(r);throw a}))}processSegmentAgainstRoute(n,e,r,o,i,s,a){return function cL(t,n,e,r){return!!($n(t)===r||r!==me&&mc(n,e,t))&&("**"===t.path||Nh(n,t,e).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,r,i,s):Ii(o):Ii(o)}expandSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?q0(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Ot(s=>{const a=new Fe(s,{});return this.processSegment(n,e,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Nh(e,o,i);if(!a)return Ii(e);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?q0(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Ot(g=>this.processSegment(n,r,e,g.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?p0(o).parameters:{};a=ce({snapshot:new dc(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,X0(r),$n(r),r.component??r._loadedComponent??null,r,K0(r)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=oL(e,r,o,n).pipe(ye(({matched:l,consumedSegments:c,remainingSegments:u,parameters:d})=>l?{snapshot:new dc(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,X0(r),$n(r),r.component??r._loadedComponent??null,r,K0(r)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Hn(l=>null===l?Ii(e):this.getChildConfig(n=r._injector??n,r,o).pipe(Hn(({routes:c})=>{const u=r._loadedInjector??n,{snapshot:d,consumedSegments:g,remainingSegments:m}=l,{segmentGroup:y,slicedSegments:M}=Y0(e,g,m,c);if(0===M.length&&y.hasChildren())return this.processChildren(u,c,y).pipe(ye(x=>null===x?null:[new Or(d,x)]));if(0===c.length&&0===M.length)return ce([new Or(d,[])]);const E=$n(r)===i;return this.processSegment(u,c,y,M,E?me:i,!0).pipe(ye(x=>[new Or(d,x)]))}))))}getChildConfig(n,e,r){return e.children?ce({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?ce({routes:e._loadedRoutes,injector:e._loadedInjector}):function JF(t,n,e,r){const o=n.canLoad;return void 0===o||0===o.length?ce(!0):ce(o.map(s=>{const a=Pi(s,t);return Xr(function VF(t){return t&&Js(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Oi(),G0())}(n,e,r).pipe(Ot(o=>o?this.configLoader.loadChildren(n,e).pipe(qt(i=>{e._loadedRoutes=i.routes,e._loadedInjector=i.injector})):function nL(t){return Vs(V0(!1,3))}())):ce({routes:[],injector:n})}}function fL(t){const n=t.value.routeConfig;return n&&""===n.path}function Z0(t){const n=[],e=new Set;for(const r of t){if(!fL(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),e.add(o)):n.push(r)}for(const r of e){const o=Z0(r.children);n.push(new Or(r.value,o))}return n.filter(r=>!e.has(r))}function X0(t){return t.data||{}}function K0(t){return t.resolve||{}}function Q0(t){return"string"==typeof t.title||null===t.title}function Rh(t){return Hn(n=>{const e=t(n);return e?_t(e).pipe(ye(()=>n)):ce(n)})}const Ti=new j("ROUTES");let Fh=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=z(Dy)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ce(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const r=Xr(e.loadComponent()).pipe(ye(J0),qt(i=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=i}),_h(()=>{this.componentLoaders.delete(e)})),o=new a0(r,()=>new tt).pipe(gh());return this.componentLoaders.set(e,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ce({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ye(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,c;return Array.isArray(a)?c=a:(l=a.create(e).injector,c=l.get(Ti,[],oe.Self|oe.Optional).flat()),{routes:c.map(kh),injector:l}}),_h(()=>{this.childrenLoaders.delete(r)})),s=new a0(i,()=>new tt).pipe(gh());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(e){return Xr(e()).pipe(ye(J0),Ot(r=>r instanceof kC||Array.isArray(r)?ce(r):_t(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function J0(t){return function wL(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let _c=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new tt,this.configLoader=z(Fh),this.environmentInjector=z(er),this.urlSerializer=z(Us),this.rootContexts=z(Ys),this.inputBindingEnabled=null!==z(pc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ce(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new gF(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new fF(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:r})}setupNavigations(e){return this.transitions=new Vn({id:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ws,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Pr(r=>0!==r.id),ye(r=>({...r,extractedUrl:e.urlHandlingStrategy.extract(r.rawUrl)})),Hn(r=>{let o=!1,i=!1;return ce(r).pipe(qt(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Hn(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new qs(s.id,e.serializeUrl(r.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),zn}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return eb(s.source)&&(e.browserUrlTree=s.extractedUrl),ce(s).pipe(Hn(u=>{const d=this.transitions?.getValue();return this.events.next(new Mh(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?zn:Promise.resolve(u)}),function gL(t,n,e,r,o,i){return Ot(s=>function dL(t,n,e,r,o,i,s="emptyOnly"){return new pL(t,n,e,r,o,s,i).recognize()}(t,n,e,r,s.extractedUrl,o,i).pipe(ye(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),qt(u=>{if(r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const g=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(g,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new cF(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:g,restoredState:m,extras:y}=s,M=new Mh(u,this.urlSerializer.serialize(d),g,m);this.events.next(M);const E=A0(0,this.rootComponentType).snapshot;return ce(r={...s,targetSnapshot:E,urlAfterRedirects:d,extras:{...y,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new qs(s.id,e.serializeUrl(r.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),zn}}),qt(s=>{const a=new uF(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ye(s=>r={...s,guards:NF(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function GF(t,n){return Ot(e=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=e;return 0===s.length&&0===i.length?ce({...e,guardsResult:!0}):function WF(t,n,e,r){return _t(t).pipe(Ot(o=>function QF(t,n,e,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?ce(i.map(a=>{const l=Xs(n)??o,c=Pi(a,l);return Xr(function UF(t){return t&&Js(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,r):l.runInContext(()=>c(t,n,e,r))).pipe(Zr())})).pipe(Oi()):ce(!0)}(o.component,o.route,e,n,r)),Zr(o=>!0!==o,!0))}(s,r,o,t).pipe(Ot(a=>a&&function BF(t){return"boolean"==typeof t}(a)?function qF(t,n,e,r){return _t(n).pipe(Di(o=>fh(function ZF(t,n){return null!==t&&n&&n(new mF(t)),ce(!0)}(o.route.parent,r),function YF(t,n){return null!==t&&n&&n(new vF(t)),ce(!0)}(o.route,r),function KF(t,n,e){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function RF(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>s0(()=>ce(s.guards.map(l=>{const c=Xs(s.node)??e,u=Pi(l,c);return Xr(function $F(t){return t&&Js(t.canActivateChild)}(u)?u.canActivateChild(r,t):c.runInContext(()=>u(r,t))).pipe(Zr())})).pipe(Oi())));return ce(i).pipe(Oi())}(t,o.path,e),function XF(t,n,e){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return ce(!0);const o=r.map(i=>s0(()=>{const s=Xs(n)??e,a=Pi(i,s);return Xr(function HF(t){return t&&Js(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(Zr())}));return ce(o).pipe(Oi())}(t,o.route,e))),Zr(o=>!0!==o,!0))}(r,i,t,n):ce(a)),ye(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),qt(s=>{if(r.guardsResult=s.guardsResult,Mo(s.guardsResult))throw B0(0,s.guardsResult);const a=new dF(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Pr(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Rh(s=>{if(s.guards.canActivateChecks.length)return ce(s).pipe(qt(a=>{const l=new pF(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),Hn(a=>{let l=!1;return ce(a).pipe(function mL(t,n){return Ot(e=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=e;if(!o.length)return ce(e);let i=0;return _t(o).pipe(Di(s=>function _L(t,n,e,r){const o=t.routeConfig,i=t._resolve;return void 0!==o?.title&&!Q0(o)&&(i[Hs]=o.title),function vL(t,n,e,r){const o=function CL(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ce({});const i={};return _t(o).pipe(Ot(s=>function yL(t,n,e,r){const o=Xs(n)??r,i=Pi(t,o);return Xr(i.resolve?i.resolve(n,e):o.runInContext(()=>i(n,e)))}(t[s],n,e,r).pipe(Zr(),qt(a=>{i[s]=a}))),mh(1),u0(i),Ge(s=>z0(s)?zn:Vs(s)))}(i,t,n,r).pipe(ye(s=>(t._resolvedData=s,t.data=N0(t,e).resolve,o&&Q0(o)&&(t.data[Hs]=o.title),null)))}(s.route,r,t,n)),qt(()=>i++),mh(1),Ot(s=>i===o.length?ce(e):zn))})}(e.paramsInheritanceStrategy,this.environmentInjector),qt({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),qt(a=>{const l=new hF(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Rh(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(qt(u=>{l.component=u}),ye(()=>{})));for(const u of l.children)c.push(...a(u));return c};return hh(a(s.targetSnapshot.root)).pipe(rc(),Mi(1))}),Rh(()=>this.afterPreactivation()),ye(s=>{const a=function DF(t,n,e){const r=Zs(t,n._root,e?e._root:void 0);return new k0(r,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),qt(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e,r)=>ye(o=>(new AF(n,o.targetRouterState,o.currentRouterState,e,r).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Mi(1),qt({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Do(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),_h(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Ge(s=>{if(i=!0,$0(s)){H0(s)||(e.navigated=!0,e.restoreHistory(r,!0));const a=new uc(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),H0(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||eb(r.source)};e.scheduleNavigation(l,Ws,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{e.restoreHistory(r,!0);const a=new Dh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(e.errorHandler(s))}catch(l){r.reject(l)}}return zn}))}))}cancelNavigationTransition(e,r,o){const i=new uc(e.id,this.urlSerializer.serialize(e.extractedUrl),r,o);this.events.next(i),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function eb(t){return t!==Ws}let tb=(()=>{class t{buildTitle(e){let r,o=e.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===me);return r}getResolvedTitleForRoute(e){return e.data[Hs]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:function(){return z(bL)},providedIn:"root"}),t})(),bL=(()=>{class t extends tb{constructor(e){super(),this.title=e}updateTitle(e){const r=this.buildTitle(e);void 0!==r&&this.title.setTitle(r)}}return t.\u0275fac=function(e){return new(e||t)(V(Xw))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ML=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:function(){return z(EL)},providedIn:"root"}),t})();class DL{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let EL=(()=>{class t extends DL{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=kt(t)))(r||t)}}(),t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const vc=new j("",{providedIn:"root",factory:()=>({})});let xL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:function(){return z(SL)},providedIn:"root"}),t})(),SL=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Cn=(()=>((Cn=Cn||{})[Cn.COMPLETE=0]="COMPLETE",Cn[Cn.FAILED=1]="FAILED",Cn[Cn.REDIRECTING=2]="REDIRECTING",Cn))();function nb(t,n){t.events.pipe(Pr(e=>e instanceof Do||e instanceof uc||e instanceof Dh||e instanceof qs),ye(e=>e instanceof Do||e instanceof qs?Cn.COMPLETE:e instanceof uc&&(0===e.code||1===e.code)?Cn.REDIRECTING:Cn.FAILED),Pr(e=>e!==Cn.REDIRECTING),Mi(1)).subscribe(()=>{n()})}function PL(t){throw t}function OL(t,n,e){return n.parse("/")}const IL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},TL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Be=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=z(My),this.isNgZoneEnabled=!1,this.options=z(vc,{optional:!0})||{},this.pendingTasks=z(sw),this.errorHandler=this.options.errorHandler||PL,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||OL,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=z(xL),this.routeReuseStrategy=z(ML),this.titleStrategy=z(tb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=z(Ti,{optional:!0})?.flat()??[],this.navigationTransitions=z(_c),this.urlSerializer=z(Us),this.location=z(qr),this.componentInputBindingEnabled=!!z(pc,{optional:!0}),this.isNgZoneEnabled=z(Ye)instanceof Ye&&Ye.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new xi,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=A0(0,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ws,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,r,e.state)},0)}))}navigateToSyncWithBrowser(e,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(e);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(e){this.config=e.map(kh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,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=M0(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return D0(d,e,u,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){const o=Mo(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Ws,null,r)}navigate(e,r={skipLocationChange:!1}){return function kL(t){for(let n=0;n{const i=e[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(e,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,g)=>{a=d,l=g});const u=this.pendingTasks.add();return nb(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:i,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,r){const o=this.urlSerializer.serialize(e);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??0)+1)};this.location.go(o,"",i)}}restoreHistory(e,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class rb{}let RL=(()=>{class t{constructor(e,r,o,i,s){this.router=e,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Pr(e=>e instanceof Do),Di(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=np(i.providers,e,`Route: ${i.path}`));const s=i._injector??e,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 _t(o).pipe(Ao())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(e,r):ce(null);const i=o.pipe(Ot(s=>null===s?ce(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return r.loadComponent&&!r._loadedComponent?_t([i,this.loader.loadComponent(r)]).pipe(Ao()):i})}}return t.\u0275fac=function(e){return new(e||t)(V(Be),V(Dy),V(er),V(rb),V(Fh))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Bh=new j("");let ob=(()=>{class t{constructor(e,r,o,i,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Mh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Do?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof qs&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof I0&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new I0(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function M_(){throw new Error("invalid")}()},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();function Ir(t,n){return{\u0275kind:t,\u0275providers:n}}function sb(){const t=z(Tn);return n=>{const e=t.get(yi);if(n!==e.components[0])return;const r=t.get(Be),o=t.get(ab);1===t.get(Vh)&&r.initialNavigation(),t.get(lb,null,oe.Optional)?.setUpPreloading(),t.get(Bh,null,oe.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const ab=new j("",{factory:()=>new tt}),Vh=new j("",{providedIn:"root",factory:()=>1}),lb=new j("");function VL(t){return Ir(0,[{provide:lb,useExisting:RL},{provide:rb,useExisting:t}])}const cb=new j("ROUTER_FORROOT_GUARD"),$L=[qr,{provide:Us,useClass:vh},Be,Ys,{provide:lr,useFactory:function ib(t){return t.routerState.root},deps:[Be]},Fh,[]];function UL(){return new Ry("Router",Be)}let ub=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[$L,[],{provide:Ti,multi:!0,useValue:e},{provide:cb,useFactory:WL,deps:[[Be,new Ga,new Wa]]},{provide:vc,useValue:r||{}},r?.useHash?{provide:Wr,useClass:dw}:{provide:Wr,useClass:uw},{provide:Bh,useFactory:()=>{const t=z(_N),n=z(Ye),e=z(vc),r=z(_c),o=z(Us);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ob(o,r,t,n,e)}},r?.preloadingStrategy?VL(r.preloadingStrategy).\u0275providers:[],{provide:Ry,multi:!0,useFactory:UL},r?.initialNavigation?qL(r):[],r?.bindToComponentInputs?Ir(8,[L0,{provide:pc,useExisting:L0}]).\u0275providers:[],[{provide:db,useFactory:sb},{provide:Tp,multi:!0,useExisting:db}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Ti,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(V(cb,8))},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({}),t})();function WL(t){return"guarded"}function qL(t){return["disabled"===t.initialNavigation?Ir(3,[{provide:bp,multi:!0,useFactory:()=>{const n=z(Be);return()=>{n.setUpLocationChangeListener()}}},{provide:Vh,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Ir(2,[{provide:Vh,useValue:0},{provide:bp,multi:!0,deps:[Tn],useFactory:n=>{const e=n.get(eA,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const o=n.get(Be),i=n.get(ab);nb(o,()=>{r(!0)}),n.get(_c).afterPreactivation=()=>(r(!0),i.closed?ce(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const db=new j("");let ZL=(()=>{class t{constructor(){this.title="InterSystemsWOOP"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(e,r){1&e&&K(0,"router-outlet")},dependencies:[Ih],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.container[_ngcontent-%COMP%]{padding-top:70px}.userLevelLabel[_ngcontent-%COMP%]{position:fixed;bottom:10px;left:20px;opacity:.2}"]}),t})();class XL extends U{constructor(n,e){super()}schedule(n,e=0){return this}}const Cc={setInterval(t,n,...e){const{delegate:r}=Cc;return r?.setInterval?r.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Cc;return(n?.clearInterval||clearInterval)(t)},delegate:void 0},Hh={now:()=>(Hh.delegate||Date).now(),delegate:void 0};class ea{constructor(n,e=ea.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,r){return new this.schedulerActionCtor(this,n).schedule(r,e)}}ea.now=Hh.now;const JL=new class QL extends ea{constructor(n,e=ea.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,r){for(;n=e.shift();)n.unsubscribe();throw r}}}(class KL extends XL{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,e),this}requestAsyncId(n,e,r=0){return Cc.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,e,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&Cc.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:r}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ct(r,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}});function r2(t,n){return t===n}class o2 extends tt{constructor(n=1/0,e=1/0,r=Hh){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;e||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s"']/,d2=new RegExp(hb.source,"g"),fb=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,p2=new RegExp(fb.source,"g"),h2={"&":"&","<":"<",">":">",'"':""","'":"'"},gb=t=>h2[t];function Vt(t,n){if(n){if(hb.test(t))return t.replace(d2,gb)}else if(fb.test(t))return t.replace(p2,gb);return t}const f2=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function mb(t){return t.replace(f2,(n,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const g2=/(^|[^\[])\^/g;function $e(t,n){t="string"==typeof t?t:t.source,n=n||"";const e={replace:(r,o)=>(o=(o=o.source||o).replace(g2,"$1"),t=t.replace(r,o),e),getRegex:()=>new RegExp(t,n)};return e}const m2=/[^\w:]/g,_2=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _b(t,n,e){if(t){let r;try{r=decodeURIComponent(mb(e)).replace(m2,"").toLowerCase()}catch{return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}n&&!_2.test(e)&&(e=function w2(t,n){yc[" "+t]||(yc[" "+t]=v2.test(t)?t+"/":bc(t,"/",!0));const e=-1===(t=yc[" "+t]).indexOf(":");return"//"===n.substring(0,2)?e?n:t.replace(C2,"$1")+n:"/"===n.charAt(0)?e?n:t.replace(y2,"$1")+n:t+n}(n,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const yc={},v2=/^[^:]+:\/*[^/]*$/,C2=/^([^:]+:)[\s\S]*$/,y2=/^([^:]+:\/*[^/]*)[\s\S]*$/,wc={exec:function(){}};function vb(t,n){const r=t.replace(/\|/g,(i,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>n)r.splice(n);else for(;r.length1;)1&n&&(e+=t),n>>=1,t+=t;return e+t}function yb(t,n,e,r){const o=n.href,i=n.title?Vt(n.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){r.state.inLink=!0;const a={type:"link",raw:e,href:o,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,a}return{type:"image",raw:e,href:o,title:i,text:Vt(s)}}class $h{constructor(n){this.options=n||Eo}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const r=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:bc(r,"\n")}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const r=e[0],o=function D2(t,n){const e=t.match(/^(\s+)(?:```)/);if(null===e)return n;const r=e[1];return n.split("\n").map(o=>{const i=o.match(/^\s+/);if(null===i)return o;const[s]=i;return s.length>=r.length?o.slice(r.length):o}).join("\n")}(r,e[3]||"");return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:o}}}heading(n){const e=this.rules.block.heading.exec(n);if(e){let r=e[2].trim();if(/#$/.test(r)){const o=bc(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(n){const e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:e[0]}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){const r=e[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:e[0],tokens:i,text:r}}}list(n){let e=this.rules.block.list.exec(n);if(e){let r,o,i,s,a,l,c,u,d,g,m,y,M=e[1].trim();const E=M.length>1,x={type:"list",raw:"",ordered:E,start:E?+M.slice(0,-1):"",loose:!1,items:[]};M=E?`\\d{1,9}\\${M.slice(-1)}`:`\\${M}`,this.options.pedantic&&(M=E?M:"[*+-]");const b=new RegExp(`^( {0,3}${M})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;n&&(y=!1,(e=b.exec(n))&&!this.rules.block.hr.test(n));){if(r=e[0],n=n.substring(r.length),u=e[2].split("\n",1)[0].replace(/^\t+/,q=>" ".repeat(3*q.length)),d=n.split("\n",1)[0],this.options.pedantic?(s=2,m=u.trimLeft()):(s=e[2].search(/[^ ]/),s=s>4?1:s,m=u.slice(s),s+=e[1].length),l=!1,!u&&/^ *$/.test(d)&&(r+=d+"\n",n=n.substring(d.length+1),y=!0),!y){const q=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),re=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),be=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),xn=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;n&&(g=n.split("\n",1)[0],d=g,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(be.test(d)||xn.test(d)||q.test(d)||re.test(n)));){if(d.search(/[^ ]/)>=s||!d.trim())m+="\n"+d.slice(s);else{if(l||u.search(/[^ ]/)>=4||be.test(u)||xn.test(u)||re.test(u))break;m+="\n"+d}!l&&!d.trim()&&(l=!0),r+=g+"\n",n=n.substring(g.length+1),u=d.slice(s)}}x.loose||(c?x.loose=!0:/\n *\n *$/.test(r)&&(c=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(m),o&&(i="[ ] "!==o[0],m=m.replace(/^\[[ xX]\] +/,""))),x.items.push({type:"list_item",raw:r,task:!!o,checked:i,loose:!1,text:m}),x.raw+=r}x.items[x.items.length-1].raw=r.trimRight(),x.items[x.items.length-1].text=m.trimRight(),x.raw=x.raw.trimRight();const k=x.items.length;for(a=0;a"space"===be.type),re=q.length>0&&q.some(be=>/\n.*\n/.test(be.raw));x.loose=re}if(x.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:o,title:i}}}table(n){const e=this.rules.block.table.exec(n);if(e){const r={type:"table",header:vb(e[1]).map(o=>({text:o})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=e[0];let i,s,a,l,o=r.align.length;for(i=0;i({text:c}));for(o=r.header.length,s=0;s/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Vt(e[0]):e[0]}}link(n){const e=this.rules.inline.link.exec(n);if(e){const r=e[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const s=bc(r.slice(0,-1),"\\");if((r.length-s.length)%2==0)return}else{const s=function b2(t,n){if(-1===t.indexOf(n[1]))return-1;const e=t.length;let r=0,o=0;for(;o-1){const l=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let o=e[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],i=s[3])}else i=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o.slice(1):o.slice(1,-1)),yb(e,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(n,e){let r;if((r=this.rules.inline.reflink.exec(n))||(r=this.rules.inline.nolink.exec(n))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=e[o.toLowerCase()],!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return yb(r,o,r[0],this.lexer)}}emStrong(n,e,r=""){let o=this.rules.inline.emStrong.lDelim.exec(n);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;const i=o[1]||o[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){const s=o[0].length-1;let a,l,c=s,u=0;const d="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,e=e.slice(-1*n.length+s);null!=(o=d.exec(e));){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(l=a.length,o[3]||o[4]){c+=l;continue}if((o[5]||o[6])&&s%3&&!((s+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const g=n.slice(0,s+o.index+(o[0].length-a.length)+l);if(Math.min(s,l)%2){const y=g.slice(1,-1);return{type:"em",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}const m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(n){const e=this.rules.inline.code.exec(n);if(e){let r=e[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=Vt(r,!0),{type:"codespan",raw:e[0],text:r}}}br(n){const e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){const e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n,e){const r=this.rules.inline.autolink.exec(n);if(r){let o,i;return"@"===r[2]?(o=Vt(this.options.mangle?e(r[1]):r[1]),i="mailto:"+o):(o=Vt(r[1]),i=o),{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(n,e){let r;if(r=this.rules.inline.url.exec(n)){let o,i;if("@"===r[2])o=Vt(this.options.mangle?e(r[0]):r[0]),i="mailto:"+o;else{let s;do{s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(s!==r[0]);o=Vt(r[0]),i="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(n,e){const r=this.rules.inline.text.exec(n);if(r){let o;return o=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Vt(r[0]):r[0]:Vt(this.options.smartypants?e(r[0]):r[0]),{type:"text",raw:r[0],text:o}}}}const ee={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:wc,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};ee.def=$e(ee.def).replace("label",ee._label).replace("title",ee._title).getRegex(),ee.bullet=/(?:[*+-]|\d{1,9}[.)])/,ee.listItemStart=$e(/^( *)(bull) */).replace("bull",ee.bullet).getRegex(),ee.list=$e(ee.list).replace(/bull/g,ee.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ee.def.source+")").getRegex(),ee._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ee._comment=/|$)/,ee.html=$e(ee.html,"i").replace("comment",ee._comment).replace("tag",ee._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ee.paragraph=$e(ee._paragraph).replace("hr",ee.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ee._tag).getRegex(),ee.blockquote=$e(ee.blockquote).replace("paragraph",ee.paragraph).getRegex(),ee.normal={...ee},ee.gfm={...ee.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},ee.gfm.table=$e(ee.gfm.table).replace("hr",ee.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ee._tag).getRegex(),ee.gfm.paragraph=$e(ee._paragraph).replace("hr",ee.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ee.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ee._tag).getRegex(),ee.pedantic={...ee.normal,html:$e("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ee._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:wc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:$e(ee.normal._paragraph).replace("hr",ee.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ee.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const W={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:wc,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:wc,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}W._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",W.punctuation=$e(W.punctuation).replace(/punctuation/g,W._punctuation).getRegex(),W.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,W.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,W._comment=$e(ee._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),W.emStrong.lDelim=$e(W.emStrong.lDelim).replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimAst=$e(W.emStrong.rDelimAst,"g").replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimUnd=$e(W.emStrong.rDelimUnd,"g").replace(/punct/g,W._punctuation).getRegex(),W._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,W._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,W._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,W.autolink=$e(W.autolink).replace("scheme",W._scheme).replace("email",W._email).getRegex(),W._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,W.tag=$e(W.tag).replace("comment",W._comment).replace("attribute",W._attribute).getRegex(),W._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,W._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,W._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,W.link=$e(W.link).replace("label",W._label).replace("href",W._href).replace("title",W._title).getRegex(),W.reflink=$e(W.reflink).replace("label",W._label).replace("ref",ee._label).getRegex(),W.nolink=$e(W.nolink).replace("ref",ee._label).getRegex(),W.reflinkSearch=$e(W.reflinkSearch,"g").replace("reflink",W.reflink).replace("nolink",W.nolink).getRegex(),W.normal={...W},W.pedantic={...W.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:$e(/^!?\[(label)\]\((.*?)\)/).replace("label",W._label).getRegex(),reflink:$e(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W._label).getRegex()},W.gfm={...W.normal,escape:$e(W.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\l+" ".repeat(c.length));n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(r=a.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.space(n)){n=n.substring(r.raw.length),1===r.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?e.push(r):(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.fences(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(o.raw+="\n"+r.raw,o.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.table(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(i=n,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=n.slice(1);let c;this.options.extensions.startBlock.forEach(function(u){c=u.call({lexer:this},l),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(i=n.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){o=e[e.length-1],s&&"paragraph"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r),s=i.length!==n.length,n=n.substring(r.raw.length);continue}if(r=this.tokenizer.text(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r);continue}if(n){const a="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){let r,o,i,a,l,c,s=n;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+Cb("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+Cb("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,a.index+a[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;n;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>!!(r=u.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.escape(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.link(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(n,s,c)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(n,wb)){n=n.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(n,wb))){n=n.substring(r.raw.length),e.push(r);continue}if(i=n,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const d=n.slice(1);let g;this.options.extensions.startInline.forEach(function(m){g=m.call({lexer:this},d),"number"==typeof g&&g>=0&&(u=Math.min(u,g))}),u<1/0&&u>=0&&(i=n.substring(0,u+1))}if(r=this.tokenizer.inlineText(i,E2)){n=n.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(c=r.raw.slice(-1)),l=!0,o=e[e.length-1],o&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(n){const u="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}return e}}class na{constructor(n){this.options=n||Eo}code(n,e,r){const o=(e||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(n,o);null!=i&&i!==n&&(r=!0,n=i)}return n=n.replace(/\n$/,"")+"\n",o?'
    '+(r?n:Vt(n,!0))+"
    \n":"
    "+(r?n:Vt(n,!0))+"
    \n"}blockquote(n){return`
    \n${n}
    \n`}html(n){return n}heading(n,e,r,o){return this.options.headerIds?`${n}\n`:`${n}\n`}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(n,e,r){const o=e?"ol":"ul";return"<"+o+(e&&1!==r?' start="'+r+'"':"")+">\n"+n+"\n"}listitem(n){return`
  • ${n}
  • \n`}checkbox(n){return" "}paragraph(n){return`

    ${n}

    \n`}table(n,e){return e&&(e=`${e}`),"\n\n"+n+"\n"+e+"
    \n"}tablerow(n){return`\n${n}\n`}tablecell(n,e){const r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`\n`}strong(n){return`${n}`}em(n){return`${n}`}codespan(n){return`${n}`}br(){return this.options.xhtml?"
    ":"
    "}del(n){return`${n}`}link(n,e,r){if(null===(n=_b(this.options.sanitize,this.options.baseUrl,n)))return r;let o='
    ",o}image(n,e,r){if(null===(n=_b(this.options.sanitize,this.options.baseUrl,n)))return r;let o=`${r}":">",o}text(n){return n}}class bb{strong(n){return n}em(n){return n}codespan(n){return n}del(n){return n}html(n){return n}text(n){return n}link(n,e,r){return""+r}image(n,e,r){return""+r}br(){return""}}class Mb{constructor(){this.seen={}}serialize(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(n,e){let r=n,o=0;if(this.seen.hasOwnProperty(r)){o=this.seen[n];do{o++,r=n+"-"+o}while(this.seen.hasOwnProperty(r))}return e||(this.seen[n]=o,this.seen[r]=0),r}slug(n,e={}){const r=this.serialize(n);return this.getNextSafeSlug(r,e.dryrun)}}class Qr{constructor(n){this.options=n||Eo,this.options.renderer=this.options.renderer||new na,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new bb,this.slugger=new Mb}static parse(n,e){return new Qr(e).parse(n)}static parseInline(n,e){return new Qr(e).parseInline(n)}parse(n,e=!0){let o,i,s,a,l,c,u,d,g,m,y,M,E,x,b,k,q,re,be,r="";const xn=n.length;for(o=0;o0&&"paragraph"===b.tokens[0].type?(b.tokens[0].text=re+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&"text"===b.tokens[0].tokens[0].type&&(b.tokens[0].tokens[0].text=re+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:re}):x+=re),x+=this.parse(b.tokens,E),g+=this.renderer.listitem(x,q,k);r+=this.renderer.list(g,y,M);continue;case"html":r+=this.renderer.html(m.text);continue;case"paragraph":r+=this.renderer.paragraph(this.parseInline(m.tokens));continue;case"text":for(g=m.tokens?this.parseInline(m.tokens):m.text;o+1{"function"==typeof r&&(o=r,r=null);const i={...r},s=function x2(t,n,e){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const o="

    An error occurred:

    "+Vt(r.message+"",!0)+"
    ";return n?Promise.resolve(o):e?void e(null,o):o}if(n)return Promise.reject(r);if(!e)throw r;e(r)}}((r={...te.defaults,...i}).silent,r.async,o);if(typeof e>"u"||null===e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function M2(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),o){const a=r.highlight;let l;try{r.hooks&&(e=r.hooks.preprocess(e)),l=t(e,r)}catch(d){return s(d)}const c=function(d){let g;if(!d)try{r.walkTokens&&te.walkTokens(l,r.walkTokens),g=n(l,r),r.hooks&&(g=r.hooks.postprocess(g))}catch(m){d=m}return r.highlight=a,d?s(d):o(null,g)};if(!a||a.length<3||(delete r.highlight,!l.length))return c();let u=0;return te.walkTokens(l,function(d){"code"===d.type&&(u++,setTimeout(()=>{a(d.text,d.lang,function(g,m){if(g)return c(g);null!=m&&m!==d.text&&(d.text=m,d.escaped=!0),u--,0===u&&c()})},0))}),void(0===u&&c())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(a=>t(a,r)).then(a=>r.walkTokens?Promise.all(te.walkTokens(a,r.walkTokens)).then(()=>a):a).then(a=>n(a,r)).then(a=>r.hooks?r.hooks.postprocess(a):a).catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));const a=t(e,r);r.walkTokens&&te.walkTokens(a,r.walkTokens);let l=n(a,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(a){return s(a)}}}function te(t,n,e){return Db(Kr.lex,Qr.parse)(t,n,e)}!function c2(t,n,e){(n=function l2(t){var n=function a2(t,n){if("object"!==ta(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!==ta(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===ta(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e}(Mc,"passThroughHooks",new Set(["preprocess","postprocess"])),te.options=te.setOptions=function(t){return function u2(t){Eo=t}(te.defaults={...te.defaults,...t}),te},te.getDefaults=function pb(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},te.defaults=Eo,te.use=function(...t){const n=te.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(e=>{const r={...e};if(r.async=te.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const i=n.renderers[o.name];n.renderers[o.name]=i?function(...s){let a=o.renderer.apply(this,s);return!1===a&&(a=i.apply(this,s)),a}:o.renderer}if(o.tokenizer){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");n[o.level]?n[o.level].unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&("block"===o.level?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:"inline"===o.level&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),r.extensions=n),e.renderer){const o=te.defaults.renderer||new na;for(const i in e.renderer){const s=o[i];o[i]=(...a)=>{let l=e.renderer[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.renderer=o}if(e.tokenizer){const o=te.defaults.tokenizer||new $h;for(const i in e.tokenizer){const s=o[i];o[i]=(...a)=>{let l=e.tokenizer[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.tokenizer=o}if(e.hooks){const o=te.defaults.hooks||new Mc;for(const i in e.hooks){const s=o[i];o[i]=Mc.passThroughHooks.has(i)?a=>{if(te.defaults.async)return Promise.resolve(e.hooks[i].call(o,a)).then(c=>s.call(o,c));const l=e.hooks[i].call(o,a);return s.call(o,l)}:(...a)=>{let l=e.hooks[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.hooks=o}if(e.walkTokens){const o=te.defaults.walkTokens;r.walkTokens=function(i){let s=[];return s.push(e.walkTokens.call(this,i)),o&&(s=s.concat(o.call(this,i))),s}}te.setOptions(r)})},te.walkTokens=function(t,n){let e=[];for(const r of t)switch(e=e.concat(n.call(te,r)),r.type){case"table":for(const o of r.header)e=e.concat(te.walkTokens(o.tokens,n));for(const o of r.rows)for(const i of o)e=e.concat(te.walkTokens(i.tokens,n));break;case"list":e=e.concat(te.walkTokens(r.items,n));break;default:te.defaults.extensions&&te.defaults.extensions.childTokens&&te.defaults.extensions.childTokens[r.type]?te.defaults.extensions.childTokens[r.type].forEach(function(o){e=e.concat(te.walkTokens(r[o],n))}):r.tokens&&(e=e.concat(te.walkTokens(r.tokens,n)))}return e},te.parseInline=Db(Kr.lexInline,Qr.parseInline),te.Parser=Qr,te.parser=Qr.parse,te.Renderer=na,te.TextRenderer=bb,te.Lexer=Kr,te.lexer=Kr.lex,te.Tokenizer=$h,te.Slugger=Mb,te.Hooks=Mc,te.parse=te;class Dc{}class Uh{}class cr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const o=e.slice(0,r),i=o.toLowerCase(),s=e.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=e.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(e,i)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof cr?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(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new cr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof cr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=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,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...r),this.headers.set(e,o);break;case"d":const i=n.value;if(i){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class S2{encodeKey(n){return Eb(n)}encodeValue(n){return Eb(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const O2=/%(\d[a-f0-9])/gi,I2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Eb(t){return encodeURIComponent(t).replace(O2,(n,e)=>I2[e]??n)}function Ec(t){return`${t}`}class Jr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new S2,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function P2(t,n){const e=new Map;return t.length>0&&t.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=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const r=n.fromObject[e],o=Array.isArray(r)?r.map(Ec):[Ec(r)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(i=>{e.push({param:r,value:i,op:"a"})}):e.push({param:r,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Jr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}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 e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Ec(n.value)),this.map.set(n.param,e);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(Ec(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 T2{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),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 xb(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Sb(t){return typeof Blob<"u"&&t instanceof Blob}function Pb(t){return typeof FormData<"u"&&t instanceof FormData}class ra{constructor(n,e,r,o){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function k2(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new cr),this.context||(this.context=new T2),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(g,n.setHeaders[g]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,g)=>d.set(g,n.setParams[g]),c)),new ra(e,r,i,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:s})}}var gt=(()=>((gt=gt||{})[gt.Sent=0]="Sent",gt[gt.UploadProgress=1]="UploadProgress",gt[gt.ResponseHeader=2]="ResponseHeader",gt[gt.DownloadProgress=3]="DownloadProgress",gt[gt.Response=4]="Response",gt[gt.User=5]="User",gt))();class jh{constructor(n,e=200,r="OK"){this.headers=n.headers||new cr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class zh extends jh{constructor(n={}){super(n),this.type=gt.ResponseHeader}clone(n={}){return new zh({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 ki extends jh{constructor(n={}){super(n),this.type=gt.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ki({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 Ob extends jh{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Gh(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let xc=(()=>{class t{constructor(e){this.handler=e}request(e,r,o={}){let i;if(e instanceof ra)i=e;else{let l,c;l=o.headers instanceof cr?o.headers:new cr(o.headers),o.params&&(c=o.params instanceof Jr?o.params:new Jr({fromObject:o.params})),i=new ra(e,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})}const s=ce(i).pipe(Di(l=>this.handler.handle(l)));if(e instanceof ra||"events"===o.observe)return s;const a=s.pipe(Pr(l=>l instanceof ki));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ye(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(ye(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(ye(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ye(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new Jr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,Gh(o,r))}post(e,r,o={}){return this.request("POST",e,Gh(o,r))}put(e,r,o={}){return this.request("PUT",e,Gh(o,r))}}return t.\u0275fac=function(e){return new(e||t)(V(Dc))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();function Ib(t,n){return n(t)}function N2(t,n){return(e,r)=>n.intercept(e,{handle:o=>t(o,r)})}const F2=new j(""),oa=new j(""),Tb=new j("");function L2(){let t=null;return(n,e)=>(null===t&&(t=(z(F2,{optional:!0})??[]).reduceRight(N2,Ib)),t(n,e))}let kb=(()=>{class t extends Dc{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(oa),...this.injector.get(Tb,[])]));this.chain=r.reduceRight((o,i)=>function R2(t,n,e){return(r,o)=>e.runInContext(()=>n(r,i=>t(i,o)))}(o,i,this.injector),Ib)}return this.chain(e,r=>this.backend.handle(r))}}return t.\u0275fac=function(e){return new(e||t)(V(Uh),V(er))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();const $2=/^\)\]\}',?\n/;let Nb=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?_t(r.\u0275loadImpl()):ce(null)).pipe(Hn(()=>new Ee(i=>{const s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((b,k)=>s.setRequestHeader(b,k.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&s.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();s.responseType="json"!==b?b:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=s.statusText||"OK",k=new cr(s.getAllResponseHeaders()),q=function U2(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return l=new zh({headers:k,status:s.status,statusText:b,url:q}),l},u=()=>{let{headers:b,status:k,statusText:q,url:re}=c(),be=null;204!==k&&(be=typeof s.response>"u"?s.responseText:s.response),0===k&&(k=be?200:0);let xn=k>=200&&k<300;if("json"===e.responseType&&"string"==typeof be){const $c=be;be=be.replace($2,"");try{be=""!==be?JSON.parse(be):null}catch(zH){be=$c,xn&&(xn=!1,be={error:zH,text:be})}}xn?(i.next(new ki({body:be,headers:b,status:k,statusText:q,url:re||void 0})),i.complete()):i.error(new Ob({error:be,headers:b,status:k,statusText:q,url:re||void 0}))},d=b=>{const{url:k}=c(),q=new Ob({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:k||void 0});i.error(q)};let g=!1;const m=b=>{g||(i.next(c()),g=!0);let k={type:gt.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(k.total=b.total),"text"===e.responseType&&s.responseText&&(k.partialText=s.responseText),i.next(k)},y=b=>{let k={type:gt.UploadProgress,loaded:b.loaded};b.lengthComputable&&(k.total=b.total),i.next(k)};let M;s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),e.reportProgress&&(s.addEventListener("progress",m),null!==a&&s.upload&&s.upload.addEventListener("progress",y));const E=()=>{M??=function z2(){const t=setTimeout(()=>{},j2);return()=>clearTimeout(t)}()},x=()=>{M?.()};return s.addEventListener("loadstart",E),s.addEventListener("loadend",x),s.send(a),i.next({type:gt.Sent}),()=>{s.removeEventListener("loadstart",E),s.removeEventListener("loadend",x),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),M?.(),e.reportProgress&&(s.removeEventListener("progress",m),null!==a&&s.upload&&s.upload.removeEventListener("progress",y)),s.readyState!==s.DONE&&s.abort()}})))}}return t.\u0275fac=function(e){return new(e||t)(V(kw))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();const j2=2147483647,Wh=new j("XSRF_ENABLED"),Rb=new j("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Fb=new j("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Lb{}let q2=(()=>{class t{constructor(e,r,o){this.doc=e,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ww(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(V(Wt),V(Ur),V(Rb))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})();function Y2(t,n){const e=t.url.toLowerCase();if(!z(Wh)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const r=z(Lb).getToken(),o=z(Fb);return null!=r&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,r)})),n(t)}var lt=(()=>((lt=lt||{})[lt.Interceptors=0]="Interceptors",lt[lt.LegacyInterceptors=1]="LegacyInterceptors",lt[lt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",lt[lt.NoXsrfProtection=3]="NoXsrfProtection",lt[lt.JsonpSupport=4]="JsonpSupport",lt[lt.RequestsMadeViaParent=5]="RequestsMadeViaParent",lt))();function Ai(t,n){return{\u0275kind:t,\u0275providers:n}}function Z2(...t){const n=[xc,Nb,kb,{provide:Dc,useExisting:kb},{provide:Uh,useExisting:Nb},{provide:oa,useValue:Y2,multi:!0},{provide:Wh,useValue:!0},{provide:Lb,useClass:q2}];for(const e of t)n.push(...e.\u0275providers);return function ed(t){return{\u0275providers:t}}(n)}const Bb=new j("LEGACY_INTERCEPTOR_FN");let K2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({providers:[Z2(Ai(lt.LegacyInterceptors,[{provide:Bb,useFactory:L2},{provide:oa,useExisting:Bb,multi:!0}]))]}),t})();const rB=["*"];let Vb=(()=>{class t{constructor(){this._buttonClick$=new tt,this.copied$=this._buttonClick$.pipe(Hn(()=>Af(ce(!0),function t2(t=0,n,e=JL){let r=-1;return null!=n&&(Pf(n)?e=n:r=n),new Ee(o=>{let i=function e2(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;i<0&&(i=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}(3e3).pipe(u0(!1)))),function n2(t,n=jn){return t=t??r2,Ze((e,r)=>{let o,i=!0;e.subscribe(Xe(r,s=>{const a=n(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}(),function i2(t,n,e){let r,o=!1;return t&&"object"==typeof t?({bufferSize:r=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:e}=t):r=t??1/0,Nf({connector:()=>new o2(r,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}(1)),this.copiedText$=this.copied$.pipe(l0(!1),ye(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(e,r){1&e&&(p(0,"button",0),_("click",function(){return r.onCopyToClipboardClick()}),op(1,"async"),f(2),op(3,"async"),h()),2&e&&(Ds("copied",ip(1,3,r.copied$)),v(2),ve(ip(3,5,r.copiedText$)))},dependencies:[Sw],encapsulation:2,changeDetection:0}),t})();class sB{}var eo=(()=>((eo=eo||{}).CommandLine="command-line",eo.LineHighlight="line-highlight",eo.LineNumbers="line-numbers",eo))();class lB{}const Hb=new j("SECURITY_CONTEXT");let Sc=(()=>{class t{get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}constructor(e,r,o,i,s,a){this.platform=e,this.securityContext=r,this.http=o,this.clipboardOptions=i,this.sanitizer=a,this.DEFAULT_MARKED_OPTIONS={renderer:new na},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:this.DEFAULT_MARKED_OPTIONS,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new tt,this.reload$=this._reload$.asObservable(),this.options=s}parse(e,r=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:o,inline:i,emoji:s,mermaid:a,disableSanitizer:l}=r,c={...this.options,...r.markedOptions};a&&(this.renderer=this.extendRenderer(c.renderer||new na));const u=this.trimIndentation(e),d=o?this.decodeHtml(u):u,g=s?this.parseEmoji(d):d,m=this.parseMarked(g,c,i);return(l?m:this.sanitizer.sanitize(this.securityContext,m))||""}render(e,r=this.DEFAULT_RENDER_OPTIONS,o){const{clipboard:i,clipboardOptions:s,katex:a,katexOptions:l,mermaid:c,mermaidOptions:u}=r;i&&this.renderClipboard(e,o,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),a&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...l}),c&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...u}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(ye(r=>this.handleExtension(e,r)))}highlight(e){if(!bi(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const r=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(r,o=>o.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!bi(this.platform))return e;const r=document.createElement("textarea");return r.innerHTML=e,r.value}extendRenderer(e){const r=e;if(!0===r.\u0275NgxMarkdownRendererExtended)return e;const o=e.code;return e.code=function(i,s,a){return"mermaid"===s?`
    ${i}
    `:o.call(this,i,s,a)},r.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,r){const o=e.lastIndexOf("://"),i=o>-1?e.substring(o+4):e,s=i.lastIndexOf("/"),a=s>-1?i.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&"md"!==c?"```"+c+"\n"+r+"\n```":r}parseMarked(e,r,o=!1){return o?te.parseInline(e,r):te.parse(e,r)}parseEmoji(e){if(!bi(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,r){if(bi(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,r)}}renderClipboard(e,r,o){if(!bi(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!r)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:i,buttonTemplate:s}=o,a=e.querySelectorAll("pre");for(let l=0;ld.style.opacity="1",c.onmouseout=()=>d.style.opacity="0",g=i?r.createComponent(i).hostView:s?r.createEmbeddedView(s):r.createComponent(Vb).hostView,g.rootNodes.forEach(y=>{y.onmouseover=()=>d.style.opacity="1",d.appendChild(y),m=new ClipboardJS(y,{text:()=>c.innerText})}),g.onDestroy(()=>m.destroy())}}renderMermaid(e,r=this.DEFAULT_MERMAID_OPTIONS){if(!bi(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.init>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const o=e.querySelectorAll(".mermaid");0!==o.length&&(mermaid.initialize(r),mermaid.init(o))}trimIndentation(e){if(!e)return"";let r;return e.split("\n").map(o=>{let i=r;return o.length>0&&(i=isNaN(i)?o.search(/\S|$/):Math.min(o.search(/\S|$/),i)),isNaN(r)&&(r=i),i?o.substring(i):o}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(V(Ur),V(Hb),V(xc,8),V(sB,8),V(lB,8),V(ph))},t.\u0275prov=Y({token:t,factory:t.\u0275fac}),t})(),$b=(()=>{class t{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(e){this._disableSanitizer=this.coerceBooleanProperty(e)}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get srcRelativeLink(){return this._srcRelativeLink}set srcRelativeLink(e){this._srcRelativeLink=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}constructor(e,r,o){this.element=e,this.markdownService=r,this.viewContainerRef=o,this.error=new le,this.load=new le,this.ready=new le,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this._srcRelativeLink=!1,this.destroyed$=new tt}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(function s2(t){return Ze((n,e)=>{cn(t).subscribe(Xe(e,()=>e.complete(),Ar)),!e.closed&&n.subscribe(e)})}(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,r=!1){let o;this.src&&this.srcRelativeLink&&(o={baseUrl:new URL(this.src,location.origin).pathname});const s={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},a=this.markdownService.parse(e,{decodeHtml:r,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,markedOptions:o,disableSanitizer:this.disableSanitizer});this.element.nativeElement.innerHTML=a,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,s,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e),this.load.emit(e)},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,eo.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,eo.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,r){const o=e.querySelectorAll("pre");for(let i=0;i{const a=r[s];if(a){const l=this.toLispCase(s);o.item(i).setAttribute(l,a.toString())}})}toLispCase(e){const r=e.match(/([A-Z])/g);if(!r)return e;let o=e.toString();for(let i=0,s=r.length;i{class t{static forRoot(e){return{ngModule:t,providers:[Sc,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:Hb,useValue:e&&null!=e.sanitize?e.sanitize:He.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({imports:[Kl]}),t})();var Ub;!function(t){let n;var o;let e,r;(o=n=t.SecurityLevel||(t.SecurityLevel={})).Strict="strict",o.Loose="loose",o.Antiscript="antiscript",o.Sandbox="sandbox",function(o){o.Base="base",o.Forest="forest",o.Dark="dark",o.Default="default",o.Neutral="neutral"}(e=t.Theme||(t.Theme={})),function(o){o[o.Debug=1]="Debug",o[o.Info=2]="Info",o[o.Warn=3]="Warn",o[o.Error=4]="Error",o[o.Fatal=5]="Fatal"}(r=t.LogLevel||(t.LogLevel={}))}(Ub||(Ub={}));let jb=(()=>{class t{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(w(wr),w(jt))},t.\u0275dir=ue({type:t}),t})(),xo=(()=>{class t extends jb{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=kt(t)))(r||t)}}(),t.\u0275dir=ue({type:t,features:[Ne]}),t})();const ur=new j("NgValueAccessor"),_B={provide:ur,useExisting:Ue(()=>Ni),multi:!0};let Ni=(()=>{class t extends xo{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=kt(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&_("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[Ke([_B]),Ne]}),t})();const vB={provide:ur,useExisting:Ue(()=>At),multi:!0},yB=new j("CompositionEventMode");let At=(()=>{class t extends jb{constructor(e,r,o){super(e,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function CB(){const t=Gr()?Gr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(w(wr),w(jt),w(yB,8))},t.\u0275dir=ue({type:t,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(e,r){1&e&&_("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[Ke([vB]),Ne]}),t})();function to(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}const Ht=new j("NgValidators"),no=new j("NgAsyncValidators");function Pc(t){return null}function Jb(t){return null!=t}function eM(t){return Ms(t)?_t(t):t}function tM(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function nM(t,n){return n.map(e=>e(t))}function rM(t){return t.map(n=>function bB(t){return!t.validate}(n)?n:e=>n.validate(e))}function qh(t){return null!=t?function oM(t){if(!t)return null;const n=t.filter(Jb);return 0==n.length?null:function(e){return tM(nM(e,n))}}(rM(t)):null}function Yh(t){return null!=t?function iM(t){if(!t)return null;const n=t.filter(Jb);return 0==n.length?null:function(e){return function mB(...t){const n=Of(t),{args:e,keys:r}=t0(t),o=new Ee(i=>{const{length:s}=e;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]=g},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?r0(r,a):a),i.complete())}))}});return n?o.pipe(n0(n)):o}(nM(e,n).map(eM)).pipe(ye(tM))}}(rM(t)):null}function sM(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Zh(t){return t?Array.isArray(t)?t:[t]:[]}function Oc(t,n){return Array.isArray(t)?t.includes(n):t===n}function cM(t,n){const e=Zh(n);return Zh(t).forEach(o=>{Oc(e,o)||e.push(o)}),e}function uM(t,n){return Zh(n).filter(e=>!Oc(t,e))}class dM{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=qh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Yh(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,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Yt extends dM{get formDirective(){return null}get path(){return null}}class ro extends dM{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class pM{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 xt=(()=>{class t extends pM{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(w(ro,2))},t.\u0275dir=ue({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&Ds("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Ne]}),t})();const sa="VALID",Tc="INVALID",Ri="PENDING",aa="DISABLED";function kc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class mM{constructor(n,e){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(e)}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===sa}get invalid(){return this.status===Tc}get pending(){return this.status==Ri}get disabled(){return this.status===aa}get enabled(){return this.status!==aa}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(cM(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(cM(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(uM(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(uM(n,this._rawAsyncValidators))}hasValidator(n){return Oc(this._rawValidators,n)}hasAsyncValidator(n){return Oc(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(e=>{e.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(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Ri,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=aa,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:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=sa,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),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===sa||this.status===Ri)&&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(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?aa:sa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ri,this._hasOwnPendingAsyncValidator=!0;const e=eM(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,o)=>r&&r._find(o),this)}getError(n,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}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 le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?aa:this.errors?Tc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ri)?Ri:this._anyControlsHaveStatus(Tc)?Tc:sa}_anyControlsHaveStatus(n){return this._anyControls(e=>e.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){kc(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 SB(t){return Array.isArray(t)?qh(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function PB(t){return Array.isArray(t)?Yh(t):t||null}(this._rawAsyncValidators)}}const Fi=new j("CallSetDisabledState",{providedIn:"root",factory:()=>Ac}),Ac="always";function la(t,n,e=Ac){(function tf(t,n){const e=function aM(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(sM(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const r=function lM(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(sM(r,n.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();Fc(n._rawValidators,o),Fc(n._rawAsyncValidators,o)})(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function TB(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&_M(t,n)})}(t,n),function AB(t,n){const e=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function kB(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&_M(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function IB(t,n){if(n.valueAccessor.setDisabledState){const e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Fc(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function _M(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function yM(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function wM(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const bM=class extends mM{constructor(n=null,e,r){super(function Qh(t){return(kc(t)?t.validators:t)||null}(e),function Jh(t,n){return(kc(n)?n.asyncValidators:t)||null}(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kc(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=wM(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){yM(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){yM(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){wM(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}},$B={provide:ro,useExisting:Ue(()=>Mt)},EM=(()=>Promise.resolve())();let Mt=(()=>{class t extends ro{constructor(e,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new bM,this._registered=!1,this.name="",this.update=new le,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function sf(t,n){if(!n)return null;let e,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===At?e=i:function FB(t){return Object.getPrototypeOf(t.constructor)===xo}(i)?r=i:o=i}),o||r||e||null}(0,i)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function rf(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){la(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(e){EM.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,o=0!==r&&function wi(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(r);EM.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Nc(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(w(Yt,9),w(Ht,10),w(no,10),w(ur,10),w(Ll,8),w(Fi,8))},t.\u0275dir=ue({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ke([$B]),Ne,Jt]}),t})();const jB={provide:ur,useExisting:Ue(()=>Bc),multi:!0};let Bc=(()=>{class t extends xo{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=r=>{e(""==r?null:parseFloat(r))}}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=kt(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,r){1&e&&_("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[Ke([jB]),Ne]}),t})(),xM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({}),t})();const QB={provide:ur,useExisting:Ue(()=>So),multi:!0};function AM(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let So=(()=>{class t extends xo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=AM(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){const r=function JB(t){return t.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r):e}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=kt(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,r){1&e&&_("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ke([QB]),Ne]}),t})(),ua=(()=>{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(AM(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(w(jt),w(wr),w(So,9))},t.\u0275dir=ue({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const eV={provide:ur,useExisting:Ue(()=>df),multi:!0};function NM(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let df=(()=>{class t extends xo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let r;if(this.value=e,Array.isArray(e)){const o=e.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(NM(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(NM(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(w(jt),w(wr),w(df,9))},t.\u0275dir=ue({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function FM(t){return"number"==typeof t?t:parseFloat(t)}let Po=(()=>{class t{constructor(){this._validator=Pc}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Pc,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ue({type:t,features:[Jt]}),t})();const nV={provide:Ht,useExisting:Ue(()=>Vc),multi:!0};let Vc=(()=>{class t extends Po{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>FM(e),this.createValidator=e=>function Wb(t){return n=>{if(to(n.value)||to(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=kt(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&rr("max",r._enabled?r.max:null)},inputs:{max:"max"},features:[Ke([nV]),Ne]}),t})();const rV={provide:Ht,useExisting:Ue(()=>Hc),multi:!0};let Hc=(()=>{class t extends Po{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>FM(e),this.createValidator=e=>function Gb(t){return n=>{if(to(n.value)||to(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({imports:[xM]}),t})(),pV=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Fi,useValue:e.callSetDisabledState??Ac}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({imports:[uV]}),t})();class UM{constructor(n,e,r,o="",i="en",s="",a=!1){this.Title=n,this.Pages=r,this.Password=o,this.Language=i,this.Author=e,this.Description=s,this.IsPrivate=a,this.setUndefinedValues()}setUndefinedValues(){void 0===this.Password&&(this.Password=""),void 0===this.Language&&(this.Language=""),void 0===this.Author&&(this.Author=""),void 0===this.Password&&(this.Password=""),void 0===this.Description&&(this.Description="")}}class hV{constructor(n,e="",r=""){this.Content=n,this.Hint=e,this.Result=r}}var dr=(()=>((dr=dr||{})[dr.NONE=0]="NONE",dr[dr.USER=1]="USER",dr[dr.ADMIN=2]="ADMIN",dr))();class Q{}Q.userLevel=dr.NONE,Q.userName="",Q.password="";let pa=(()=>{class t{static isChapterVerified(e){for(let r of this.verifyCache)if(r.name==e)return!0;return!1}static verifyChapter(e,r,o=!0){for(let i of this.verifyCache)if(i.name==e)return void(i.pwd=r);this.verifyCache.push({name:e,pwd:r}),""!=r&&o&&localStorage.setItem("verifyCache",JSON.stringify(this.verifyCache))}static setCache(e){this.verifyCache=e}}return t.verifyCache=[],t})(),sn=(()=>{class t{constructor(e){if(this.router=e,this.rememberPage=!0,this.rememberPage=this.getRememberPage(),this.getStayLoggedIn()){const o=this.getUserName(),i=this.getPassword();null!=o&&null!=i&&(this.router.navigate(["/login"]),this.setStayLoggedIn(!0))}let r=localStorage.getItem("verifyCache");r=null==r?[]:JSON.parse(r);for(let o of r)pa.verifyChapter(o.name,o.pwd,!1)}getLanguageTo(){return localStorage.getItem("languageTo")??"en"}setLanguageTo(e){localStorage.setItem("languageTo",e)}getRememberPage(){let e=localStorage.getItem("rememberPage");return null==e||"true"==e}setRememberPage(e){localStorage.setItem("rememberPage",e?"true":"false"),this.rememberPage=e}setColorScheme(e){localStorage.setItem("colorScheme",e?"dark":"light")}getColorScheme(){return localStorage.getItem("colorScheme")}setFontSize(e){localStorage.setItem("fontSize",e.toString())}getFontSize(){let e=localStorage.getItem("fontSize");return null==e?16:parseInt(e)}setPageForChapter(e,r){localStorage.setItem(e,r.toString())}getPageForChapter(e){if(!this.rememberPage)return 0;let r=localStorage.getItem(e);return null==r?0:parseInt(r)}getServerHost(){return localStorage.getItem("serverHost")??"localhost"}setServerHost(e){localStorage.setItem("serverHost",e),Te.host=e}getServerPort(){let e=localStorage.getItem("serverPort");return null==e?52773:parseInt(e)}setServerPort(e){localStorage.setItem("serverPort",e.toString()),Te.port=e}getUserName(){return localStorage.getItem("userName")}setUserName(e){localStorage.setItem("userName",e)}setStayLoggedIn(e){localStorage.setItem("stayLoggedIn",e?"true":"false")}getStayLoggedIn(){let e=localStorage.getItem("stayLoggedIn");return null!=e&&"true"==e}removeUserName(){localStorage.removeItem("userName")}getPassword(){return localStorage.getItem("password")}setPassword(e){localStorage.setItem("password",e)}removePassword(){localStorage.removeItem("password")}getAllServerConnections(){let e=localStorage.getItem("serverConnections");return null==e?[]:JSON.parse(e)}getConnection(e){let r=this.getAllServerConnections();for(let o=0;o{class t{constructor(e,r){this.http=e,this.localStorageService=r,t.host=r.getServerHost(),t.port=r.getServerPort()}isServerOnline(){return this.http.get("http://"+t.host+":"+t.port+"/woop/ping").pipe(Ge(e=>{throw new Error("error")}))}getVersion(){return this.http.get("http://"+t.host+":"+t.port+"/woop/version")}checkUser(e,r){return this.http.get("http://"+t.host+":"+t.port+"/woop/user/check?username="+e+"&password="+r).pipe(Ge(o=>{throw 404===o.status?new Error("Username or password is wrong"):0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getAllChapters(){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/get/all")}verifyChapter(e,r){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/verify?title="+e+"&password="+r).pipe(Ge(o=>{throw 404===o.status?new Error("Could not find chapter"):0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getChapterPassword(e,r,o){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/get/password?title="+e+"&username="+r+"&password="+o).pipe(Ge(i=>{throw 404===i.status?new Error("Could not find chapter"):401===i.status?new Error("Unauthorized"):0===i.status?new Error("Server is offline"):new Error("unknown error: "+i.status)}))}addNewChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/new",e).pipe(Ge(r=>{throw 409===r.status?new Error("Chapter already exists"):500===r.status?new Error("Chapter could not be saved"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}updateChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/update",e).pipe(Ge(r=>{throw 404===r.status?new Error("Chapter not found"):500===r.status?new Error("Chapter could not be updated"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}importChapter(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/import?username="+e+"&password="+r,o).pipe(Ge(i=>{throw 401===i.status?new Error("Unauthorized"):500===i.status?new Error("Chapter could not be imported"):0===i.status?new Error("Server is offline"):new Error("unknown error: "+i.status)}))}deleteChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/delete",e).pipe(Ge(r=>{throw 404===r.status?new Error("Chapter not found"):500===r.status?new Error("Chapter could not be deleted"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}uploadImage(e,r){return this.http.post("http://"+t.host+":"+t.port+"/woop/image/upload",{Name:e,Content:r}).pipe(Ge(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}uploadFile(e,r){return this.http.post("http://"+t.host+":"+t.port+"/woop/file/upload",{Name:e,Content:r}).pipe(Ge(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getFile(e){return this.http.get("http://"+t.host+":"+t.port+"/woop/file/get/"+e).pipe(Ge(r=>{throw 404===r.status?new Error("File not found"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}translateText(e,r){return this.http.post("http://"+t.host+":"+t.port+"/woop/translate/text",{text:e,to:r}).pipe(Ge(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getAllImageNames(){return this.http.get("http://"+t.host+":"+t.port+"/woop/image/name/get/all").pipe(Ge(e=>{throw 500===e.status?new Error("Could not get image names"):0===e.status?new Error("Server is offline"):new Error("unknown error: "+e.status)}))}getAllFileNames(){return this.http.get("http://"+t.host+":"+t.port+"/woop/file/name/get/all").pipe(Ge(e=>{throw 500===e.status?new Error("Could not get file names"):0===e.status?new Error("Server is offline"):new Error("unknown error: "+e.status)}))}addUser(e,r,o,i){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/add",{userName:e,password:r,newUserName:o,newPassword:i}).pipe(Ge(s=>{throw 401===s.status?new Error("Unauthorized"):409===s.status?new Error("User already exists"):0===s.status?new Error("Server is offline"):(console.log(s.message),new Error("unknown error: "+s.status))}))}deleteUser(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/delete",{userName:e,password:r,userNameToDelete:o}).pipe(Ge(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}makeUserAdmin(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/make/admin",{userName:e,password:r,userNameToMakeAdmin:o}).pipe(Ge(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}changePassword(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/change/password",{userName:e,password:r,newPassword:o}).pipe(Ge(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}deployAll(e,r){return this.http.get("http://"+t.host+":"+t.port+"/woop/deploy/all?username="+e+"&password="+r).pipe(Ge(o=>{throw 401===o.status?new Error("Unauthorized"):500===o.status?new Error("Something went wrong (500)"):0===o.status?new Error("Server is offline"):(console.log(o.message),new Error("unknown error: "+o.status))}))}}return t.host="localhost",t.port=52773,t.\u0275fac=function(e){return new(e||t)(V(xc),V(sn))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function fV(t,n){if(1&t&&(p(0,"p",12),f(1),h()),2&t){const e=D();v(1),ve(e.wrongMessage)}}let jM=(()=>{class t{constructor(e,r,o){this.apiService=e,this.location=r,this.localStorageService=o,this.enteredPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage="",this.type="password",this.rememberMe=!1,this.stayLoggedIn=!1,this.rememberMe=o.getRememberPage(),this.stayLoggedIn=o.getStayLoggedIn();let i=o.getUserName();null!=i&&(this.entereduserName=i);let s=o.getPassword();null!=s&&(this.enteredPassword=s,this.submit())}submit(){this.apiService.checkUser(this.entereduserName,this.enteredPassword).subscribe({next:e=>{e.level>0&&(Q.userLevel=e.level,Q.userName=e.username,Q.password=this.enteredPassword,(this.rememberMe||this.stayLoggedIn)&&(this.localStorageService.setUserName(this.entereduserName),this.localStorageService.setPassword(this.enteredPassword)),this.localStorageService.setStayLoggedIn(this.stayLoggedIn),this.close())},error:e=>{this.wrongMessage=e.message,this.isWrong=!0,this.enteredPassword="",this.entereduserName=""}})}viewPassword(){this.type="password"===this.type?"text":"password"}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Te),w(qr),w(sn))},t.\u0275cmp=se({type:t,selectors:[["app-log-in"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},decls:21,vars:7,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["name","password","placeholder","Password",1,"passwordInput",3,"type","ngModel","ngModelChange","keydown.enter"],[1,"rememberMe"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"label",3,"click"],[1,"stayLoggedIn"],[1,"submitButton",3,"click","keydown.enter"],[1,"viewButton",3,"click"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Log in"),h(),T(4,fV,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"div",6)(10,"input",7),_("ngModelChange",function(i){return r.rememberMe=i}),h(),p(11,"p",8),_("click",function(){return r.rememberMe=!r.rememberMe}),f(12,"Remember me"),h()(),p(13,"div",9)(14,"input",7),_("ngModelChange",function(i){return r.stayLoggedIn=i}),h(),p(15,"p",8),_("click",function(){return r.stayLoggedIn=!r.stayLoggedIn}),f(16,"Stay logged in"),h()(),p(17,"button",10),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(18," Submit "),h(),p(19,"button",11),_("click",function(){return r.viewPassword()}),f(20),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("ngModel",r.entereduserName),v(1),C("type",r.type)("ngModel",r.enteredPassword),v(2),C("ngModel",r.rememberMe),v(4),C("ngModel",r.stayLoggedIn),v(6),it(" ","password"==r.type?"View":"Hide"," "))},dependencies:[Re,At,Ni,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:350px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:45%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:45%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:30%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:60%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}.stayLoggedIn[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.stayLoggedIn[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.stayLoggedIn[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function zM(t,n,e,r,o,i,s){try{var a=t[i](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(r,o)}function Li(t){return function(){var n=this,e=arguments;return new Promise(function(r,o){var i=t.apply(n,e);function s(l){zM(i,r,o,s,a,"next",l)}function a(l){zM(i,r,o,s,a,"throw",l)}s(void 0)})}}let Oo=(()=>{class t{constructor(e){this.apiService=e,this.chapters=[],this.allChapters=[],this.initDone=!1,this.errorChapter=new UM("Error 404","",[]),this.currentChapter=this.errorChapter,this.init()}init(){var e=this;return Li(function*(){if(!e.initDone){e.allChapters=yield e.apiService.getAllChapters().toPromise();for(let r of e.allChapters){void 0===r.Password&&(r.Password=""),void 0===r.Language&&(r.Language=""),void 0===r.Author&&(r.Author=""),void 0===r.IsPrivate&&(r.IsPrivate=!1),void 0===r.Description&&(r.Description=""),void 0===r.Pages&&(r.Pages=[]);for(let o of r.Pages)void 0===o.Content&&(o.Content=""),void 0===o.Hint&&(o.Hint=""),void 0===o.Result&&(o.Result="");""===r.Password&&pa.verifyChapter(r.Title,"")}e.allChapters=e.sortChaptersAlphabetically(e.allChapters),e.chapters=e.allChapters,e.initDone=!0}})()}sortChaptersAlphabetically(e){return e.sort((r,o)=>r.Title.localeCompare(o.Title))}getChapterByName(e,r){e=e.toLowerCase();for(let o of this.chapters)if(r){if(o.Title.replace(/\s/g,"-").toLowerCase()==e)return o}else if(o.Title.toLowerCase()==e)return o;return this.errorChapter}}return t.\u0275fac=function(e){return new(e||t)(V(Te))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hf=(()=>{class t{constructor(e){this.apiService=e,this.version="unknown",this.date="unknown",this.notes=[],this.instanceName="Server",this.init()}init(){this.apiService.getVersion().subscribe({next:e=>{this.version=e.version,this.date=e.date,this.notes=e.notes.split(";"),this.instanceName=e.instanceName},error:e=>{this.version="unknown",this.date="unknown",this.notes=[],this.instanceName="Server"}})}}return t.\u0275fac=function(e){return new(e||t)(V(Te))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Bi=(()=>{class t{constructor(e){this.localStorageService=e,this.darkModeEnabled=!1;let r=this.localStorageService.getColorScheme();null==r&&(r=this.detectPrefersColorScheme()),"dark"===r?this.darkMode():this.lightMode()}isDarkModeEnabled(){return this.darkModeEnabled}darkMode(){document.documentElement.setAttribute("data-theme","dark"),this.darkModeEnabled=!0,this.localStorageService.setColorScheme(!0)}lightMode(){document.documentElement.setAttribute("data-theme","light"),this.darkModeEnabled=!1,this.localStorageService.setColorScheme(!1)}funkyMode(){document.documentElement.setAttribute("data-theme","funky"),this.darkModeEnabled=!0}detectPrefersColorScheme(){return"not all"!==window.matchMedia("(prefers-color-scheme)").media&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}return t.\u0275fac=function(e){return new(e||t)(V(sn))},t.\u0275prov=Y({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),gV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["app-loading-screen"]],decls:15,vars:0,consts:[[1,"loadingscrren"],[1,"background"],[1,"lds-default"]],template:function(e,r){1&e&&(p(0,"div",0),K(1,"div",1),p(2,"div",2),K(3,"div")(4,"div")(5,"div")(6,"div")(7,"div")(8,"div")(9,"div")(10,"div")(11,"div")(12,"div")(13,"div")(14,"div"),h()())},styles:[".background[_ngcontent-%COMP%]{width:100%;height:100%;position:fixed;top:0;left:0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.lds-default[_ngcontent-%COMP%]{display:inline-block;width:80px;height:80px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;width:6px;height:6px;background:var(--secondary-color);border-radius:50%;animation:_ngcontent-%COMP%_lds-default 1.2s linear infinite}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s;top:37px;left:66px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.1s;top:22px;left:62px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.2s;top:11px;left:52px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:-.3s;top:7px;left:37px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:-.4s;top:11px;left:22px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){animation-delay:-.5s;top:22px;left:11px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){animation-delay:-.6s;top:37px;left:7px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){animation-delay:-.7s;top:52px;left:11px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(9){animation-delay:-.8s;top:62px;left:22px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(10){animation-delay:-.9s;top:66px;left:37px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(11){animation-delay:-1s;top:62px;left:52px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes _ngcontent-%COMP%_lds-default{0%,20%,80%,to{transform:scale(1)}50%{transform:scale(1.5)}}"]}),t})();function mV(t,n){if(1&t){const e=Z();p(0,"button",6),_("click",function(){return R(e),F(D().deploy())}),f(1,"Deploy"),h()}}function _V(t,n){if(1&t){const e=Z();p(0,"button",11),_("click",function(){return R(e),F(D().toggleLogIn())})("keydown.control.alt.l",function(){return R(e),F(D().toggleLogIn())},!1,Ae),f(1," Log in "),h()}}function vV(t,n){if(1&t){const e=Z();p(0,"button",12),_("click",function(){return R(e),F(D().logOut())}),f(1," Log out "),h()}}function CV(t,n){1&t&&K(0,"app-loading-screen")}let yV=(()=>{class t{constructor(e,r,o,i){this.router=e,this.colorSchemeService=r,this.localStorageService=o,this.apiService=i,this.logIn=!1,this.isLoading=!1}increaseFontSize(){this.localStorageService.setFontSize(this.localStorageService.getFontSize()+2)}decreaseFontSize(){let e=this.localStorageService.getFontSize();e>2&&this.localStorageService.setFontSize(e-2)}getFontSize(){return this.localStorageService.getFontSize()}toggleLogIn(){this.logIn=!this.logIn,this.logIn&&this.router.navigate(["/login"])}logOut(){Q.userLevel=0,Q.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}deploy(){this.isLoading=!0,this.apiService.deployAll(Q.userName,Q.password).subscribe({next:e=>{this.isLoading=!1,e.status?alert(e.message):alert("ERROR: "+e.message)},error:e=>{this.isLoading=!1,alert(e.message)}})}getuserLevel(){return Q.userLevel}getUserName(){return Q.userName}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}goToAdvancedSettings(){this.router.navigate(["/settings/storage"])}hoToHelp(){this.router.navigate(["/help"])}toggleDarkMode(){this.colorSchemeService.darkModeEnabled=!this.colorSchemeService.darkModeEnabled,this.colorSchemeService.darkModeEnabled?this.colorSchemeService.darkMode():this.colorSchemeService.lightMode()}}return t.\u0275fac=function(e){return new(e||t)(w(Be),w(Bi),w(sn),w(Te))},t.\u0275cmp=se({type:t,selectors:[["app-settings-short"]],hostBindings:function(e,r){1&e&&_("keydown.control.alt.l",function(i){return r.toggleLogIn(i)},0,Ae)},decls:18,vars:6,consts:[[1,"settings"],[1,"first",3,"click"],[1,"dividedButton"],[1,"smallButton",2,"margin-left","10px",3,"click"],[1,"text"],[1,"smallButton",2,"margin-right","10px",3,"click"],[3,"click"],[3,"click",4,"ngIf"],["class","last",3,"click","keydown.control.alt.l",4,"ngIf"],["class","last",3,"click",4,"ngIf"],[4,"ngIf"],[1,"last",3,"click","keydown.control.alt.l"],[1,"last",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"button",1),_("click",function(){return r.toggleDarkMode()}),f(2),h(),p(3,"div",2)(4,"button",3),_("click",function(){return r.decreaseFontSize()}),f(5," - "),h(),p(6,"p",4),f(7),h(),p(8,"button",5),_("click",function(){return r.increaseFontSize()}),f(9," + "),h()(),p(10,"button",6),_("click",function(){return r.goToAdvancedSettings()}),f(11,"Advanced"),h(),p(12,"button",6),_("click",function(){return r.hoToHelp()}),f(13,"Help"),h(),T(14,mV,2,0,"button",7),T(15,_V,2,0,"button",8),T(16,vV,2,0,"button",9),h(),T(17,CV,1,0,"app-loading-screen",10)),2&e&&(v(2),it(" ",r.getDarkModeEnabled()?"Lightmode":"Darkmode"," "),v(5),ve("Font Size "+r.getFontSize()),v(7),C("ngIf",r.getuserLevel()>0),v(1),C("ngIf",0==r.getuserLevel()),v(1),C("ngIf",r.getuserLevel()>0),v(1),C("ngIf",r.isLoading))},dependencies:[Re,gV],styles:[".settings[_ngcontent-%COMP%]{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:10px 10px 10px #00000080;right:10px;top:90px;animation:_ngcontent-%COMP%_slideInFromRight .3s ease-in-out;border-radius:10px;box-sizing:border-box}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:199px;font-size:20px;display:flex;align-items:center;justify-content:center}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{width:100%;text-align:center;color:var(--text-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color);text-align:center;justify-content:center;width:45px;height:30px;border-radius:5px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-top:1px solid var(--haeder-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:201px;font-size:20px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:10px;background-color:var(--primary-color);color:var(--inverted-text-color);transform:scale(1.05)}.first[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color)!important;border-top-left-radius:10px;border-top-right-radius:10px}.last[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:var(--header-color)}@media screen and (max-width: 800px){.settings[_ngcontent-%COMP%]{top:70px;right:0;width:100%;animation:_ngcontent-%COMP%_slideInFromTop .3s ease-in-out}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:103%}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--header-color);color:var(--text-color);transform:scale(1)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{width:100%;border-left:1px solid var(--primary-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{width:50px}.first[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.last[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideInFromTop{0%{transform:translateY(-200%)}to{transform:translateY(0)}}"]}),t})();function wV(t,n){if(1&t){const e=Z();p(0,"button",2),_("click",function(){const i=R(e).$implicit;return F(D().goToPage(i.page))}),f(1),h()}if(2&t){const e=n.$implicit,r=n.index;or((0==r?"first ":"")+(r==D().results.length-1?"last":"")),v(1),it(" ",e.page+": ..."+e.text+"..."," ")}}let bV=(()=>{class t{constructor(){this.results=[],this.pageChange=new le}goToPage(e){this.pageChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["app-chapter-search"]],inputs:{results:"results"},outputs:{pageChange:"pageChange"},decls:2,vars:1,consts:[[1,"settings"],[3,"class","click",4,"ngFor","ngForOf"],[3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,wV,2,3,"button",1),h()),2&e&&(v(1),C("ngForOf",r.results))},dependencies:[En],styles:[".settings[_ngcontent-%COMP%]{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:10px 10px 10px #00000080;top:80px;right:0;animation:_ngcontent-%COMP%_slideInFromRight .3s ease-in-out;border-radius:10px;box-sizing:border-box;z-index:10}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-top:1px solid var(--haeder-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:400px;font-size:20px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:10px;background-color:var(--primary-color);color:var(--inverted-text-color);transform:scale(1.05)}.first[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color)!important;border-top-left-radius:10px;border-top-right-radius:10px}.last[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:var(--header-color)}@media screen and (max-width: 800px){.settings[_ngcontent-%COMP%]{top:70px;right:0;width:100%;animation:_ngcontent-%COMP%_slideInFromTop .3s ease-in-out}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:103%}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--header-color);color:var(--text-color);transform:scale(1)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{width:100%;border-left:1px solid var(--primary-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{width:50px}.first[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.last[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideInFromTop{0%{transform:translateY(-200%)}to{transform:translateY(0)}}"]}),t})();function MV(t,n){if(1&t){const e=Z();p(0,"app-chapter-search",3),_("pageChange",function(o){return R(e),F(D().pageChange.emit(o))}),h()}2&t&&C("results",D().searchChapterResult)}let DV=(()=>{class t{constructor(e,r,o){this.chapterManager=e,this.colorSchemeService=r,this.router=o,this.searchValue="",this.noMatches=!1,this.slideOut=!1,this.searchChapterResult=[],this.close=new le,this.pageChange=new le,this.chapter=null,o.events.forEach(i=>{this.closeSearchBar()})}closeSearchBar(){this.slideOut=!0,this.searchValue="",this.onSearchChange(),setTimeout(()=>{this.close.emit(),this.slideOut=!1},500)}onSearchChange(){null==this.chapter?this.searchAllChapters():this.searchChapter()}searchChapter(){if(null==this.chapter||(this.searchChapterResult=[],""==this.searchValue))return;let e=this.searchValue.toLowerCase();e.split(" ");for(let o=0;o0&&c<2;)l--," "==s[l]&&c++;let u=a;for(c=0;u{class t{constructor(e,r,o){this.router=e,this.colorSchemeService=r,this.localStorageService=o,this.showSettings=!1,this.enableSearchBar=!0,this.chapter=null,this.pageChange=new le,this.searchBarOn=!1}logIn(){this.router.navigate(["/login"])}logOut(){Q.userLevel=0,Q.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}goBack(){this.router.navigate(["/"])}toggleSettings(){this.showSettings=!this.showSettings}getUserLevel(){return Q.userLevel}getUserName(){return Q.userName}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}turnOnSearchBar(){this.searchBarOn=!0}turnOffSearchBar(){this.searchBarOn=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Be),w(Bi),w(sn))},t.\u0275cmp=se({type:t,selectors:[["app-header"]],inputs:{enableSearchBar:"enableSearchBar",chapter:"chapter"},outputs:{pageChange:"pageChange"},decls:10,vars:7,consts:[["class","background",3,"click",4,"ngIf"],["src","assets/imgs/InterSystemsWOOPLogo.png","alt","logo",1,"logo",3,"click"],["class","searchButton","alt","Search",3,"src","click",4,"ngIf"],["alt","Settings",1,"settingsButton",3,"src","click"],["class","userLabel",3,"right","click",4,"ngIf"],["class","searchBar",3,"chapter","close","pageChange",4,"ngIf"],[4,"ngIf"],[1,"background",3,"click"],["alt","Search",1,"searchButton",3,"src","click"],[1,"userLabel",3,"click"],[1,"userLabelExtended"],[1,"searchBar",3,"chapter","close","pageChange"]],template:function(e,r){1&e&&(T(0,EV,1,0,"div",0),p(1,"header")(2,"button")(3,"img",1),_("click",function(){return r.goBack()}),h()(),T(4,xV,1,1,"img",2),p(5,"img",3),_("click",function(){return r.toggleSettings()}),h(),T(6,SV,6,4,"p",4),T(7,PV,3,2,"p",4),T(8,OV,1,1,"app-search-bar-header",5),h(),T(9,IV,1,0,"app-settings-short",6)),2&e&&(C("ngIf",r.showSettings),v(4),C("ngIf",r.enableSearchBar&&!r.searchBarOn),v(1),C("src","assets/imgs/"+(r.getDarkModeEnabled()?"darkmode":"lightmode")+"/settings.png",Jn),v(1),C("ngIf",r.getUserLevel()>0&&!r.searchBarOn),v(1),C("ngIf",0==r.getUserLevel()&&!r.searchBarOn),v(1),C("ngIf",r.enableSearchBar&&r.searchBarOn),v(1),C("ngIf",r.showSettings))},dependencies:[Re,yV,DV],styles:["header[_ngcontent-%COMP%]{box-shadow:2px 2px 2px #0000001a;background-color:var(--header-color);z-index:1000}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;cursor:pointer;background:none}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]{position:absolute;top:10px;font-size:20px;opacity:.3;color:var(--text-color);cursor:pointer;transition:.3s}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%] .userLabelExtended[_ngcontent-%COMP%]{opacity:0}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover{opacity:1}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover .userLabelExtended[_ngcontent-%COMP%]{opacity:1}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]{position:absolute;right:30px;height:40px;width:40px;cursor:pointer;top:20px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]:hover{opacity:1;animation-name:_ngcontent-%COMP%_rotate;animation-duration:1.2s;animation-fill-mode:forwards}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]{color:var(--text-color);position:absolute;right:85px;height:35px;width:35px;cursor:pointer;top:24px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]:hover{opacity:1;scale:1.1}header[_ngcontent-%COMP%] .searchBar[_ngcontent-%COMP%]{position:absolute;right:360px;height:35px;width:35px;top:22px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%]{position:absolute;right:30px;height:40px;width:40px;cursor:pointer;top:25px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]{position:absolute;height:5px;background-color:var(--text-color);border-radius:5px;right:0;width:100%}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(1){top:0}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(2){top:10px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(3){top:20px}.background[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.logo[_ngcontent-%COMP%]{height:45px;margin-top:16px;margin-bottom:16px;margin-left:50px;transition:.3s}.logo[_ngcontent-%COMP%]:hover{scale:1.1}@media screen and (max-width: 600px){.logo[_ngcontent-%COMP%]{height:30px;margin-left:10px}.logo[_ngcontent-%COMP%]:hover{scale:1}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]{right:10px;height:30px;width:30px;top:20px}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]:hover{opacity:.3;animation:none}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]{right:55px;height:25px;width:25px;cursor:pointer;top:24px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]:hover{opacity:1;scale:1.1}header[_ngcontent-%COMP%] .searchBar[_ngcontent-%COMP%]{position:absolute;right:0;height:70px;width:100%;top:18px}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]{top:15px;font-size:15px}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%] .userLabelExtended[_ngcontent-%COMP%]{display:none}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover{opacity:.3}}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),t})();function TV(t,n){1&t&&(p(0,"p")(1,"i"),f(2,"Private"),h()())}function kV(t,n){if(1&t&&(p(0,"p")(1,"i"),f(2,"Description"),h(),f(3),h()),2&t){const e=D();v(3),it("",": "+e.chapter.Description," ")}}let AV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["app-chapter-meta-data"]],inputs:{chapter:"chapter"},decls:19,vars:6,consts:[[1,"container"],[4,"ngIf"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,TV,3,0,"p",1),p(2,"p")(3,"i"),f(4,"Title"),h(),f(5),h(),p(6,"p")(7,"i"),f(8,"Author"),h(),f(9),h(),p(10,"p")(11,"i"),f(12,"Language"),h(),f(13),h(),p(14,"p")(15,"i"),f(16,"Pages"),h(),f(17),h(),T(18,kV,4,1,"p",1),h()),2&e&&(v(1),C("ngIf",r.chapter.IsPrivate),v(4),ve(": "+r.chapter.Title),v(4),ve(": "+r.chapter.Author),v(4),ve(": "+r.chapter.Language),v(4),ve(": "+r.chapter.Pages.length),v(1),C("ngIf",""!=r.chapter.Description))},dependencies:[Re],styles:[".container[_ngcontent-%COMP%]{border:none;border-radius:10px;box-shadow:2px 2px 2px #0003;padding:10px;width:300px;transition:.3s;color:var(--inverted-text-color);background-color:var(--primary-color)}"]}),t})();function NV(t,n){if(1&t&&(p(0,"p",15),f(1),h()),2&t){const e=D();v(1),ve(e.wrongText)}}let RV=(()=>{class t{constructor(e,r){this.apiService=e,this.chapterManger=r,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1,this.isWrong=!1,this.wrongText="",this.closeEmitter=new le}submit(){var e=this;return Li(function*(){if(""===e.name)return e.isWrong=!0,void(e.wrongText="Please enter a name");if(e.name.includes("#"))return e.isWrong=!0,void(e.wrongText="Chapter name cannot contain #");let r=new UM(e.name,Q.userName,[],e.password,e.language,e.description,e.isPrivate);e.apiService.addNewChapter(r).subscribe({next:o=>{o.status?(e.closeEmitter.emit(),e.name="",e.language="english",e.password="",e.description="",e.isPrivate=!1,e.chapterManger.chapters.push(r)):(e.isWrong=!0,e.wrongText="Something went wrong!")},error:o=>{e.isWrong=!0,e.wrongText=o.message}})})()}close(){this.closeEmitter.emit(),this.isWrong=!1,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Te),w(Oo))},t.\u0275cmp=se({type:t,selectors:[["app-chapter-new"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},inputs:{name:"name",language:"language",password:"password",description:"description",isPrivate:"isPrivate"},outputs:{closeEmitter:"closeEmitter"},decls:24,vars:6,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],[2,"top","60px"],["type","text","name","title","placeholder","Chapter name",1,"userNameInput",2,"top","110px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","130px"],["type","text","name","language","placeholder","Language",1,"userNameInput",2,"top","180px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","200px"],["type","text","name","password","placeholder","Password",1,"userNameInput",2,"top","250px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","270px"],["type","checkbox","name","private",1,"userNameInput",2,"top","320px","cursor","pointer",3,"ngModel","ngModelChange"],[2,"top","340px"],["name","description","placeholder","Description",2,"top","460px","resize","none",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Create new Chapter"),h(),T(4,NV,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"p",4),f(8,"Name"),h(),p(9,"input",5),_("ngModelChange",function(i){return r.name=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"p",6),f(11,"Language"),h(),p(12,"input",7),_("ngModelChange",function(i){return r.language=i})("keydown.enter",function(){return r.submit()}),h(),p(13,"p",8),f(14,"Password"),h(),p(15,"input",9),_("ngModelChange",function(i){return r.password=i})("keydown.enter",function(){return r.submit()}),h(),p(16,"p",10),f(17,"Private"),h(),p(18,"input",11),_("ngModelChange",function(i){return r.isPrivate=i}),h(),p(19,"p",12),f(20,"Description"),h(),p(21,"textarea",13),_("ngModelChange",function(i){return r.description=i}),h(),p(22,"button",14),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(23," Create "),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(5),C("ngModel",r.name),v(3),C("ngModel",r.language),v(3),C("ngModel",r.password),v(3),C("ngModel",r.isPrivate),v(3),C("ngModel",r.description))},dependencies:[Re,At,Ni,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:650px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);color:var(--inverted-text-color);border-radius:5px;width:40%;height:40px;font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;height:150px;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:530px}"]}),t})(),GM=(()=>{class t{constructor(){this.sureEmitter=new le}close(){this.sureEmitter.emit(!1)}yes(){this.sureEmitter.emit(!0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["app-are-you-sure"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},outputs:{sureEmitter:"sureEmitter"},decls:11,vars:0,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Are you sure?"),h(),p(4,"button",2),_("click",function(){return r.close()}),f(5,"X"),h(),p(6,"div",3)(7,"button",4),_("click",function(){return r.yes()}),f(8," Yes "),h(),p(9,"button",5),_("click",function(){return r.close()}),f(10," No "),h()()())},styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:150px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function FV(t,n){if(1&t){const e=Z();p(0,"div",12)(1,"button",13),_("click",function(){R(e);const o=D(2).$implicit;return F(D().setChapterToDelete(o))}),K(2,"img",14),h(),p(3,"button",13),_("click",function(){R(e);const o=D(2).$implicit;return F(D().onChapterEditSelected(o.Title))}),K(4,"img",15),h()()}if(2&t){const e=D(3);v(2),C("src","assets/imgs/"+(e.getDarkModeEnabled()?"darkmode":"lightmode")+"/delete.png",Jn),v(2),C("src","assets/imgs/"+(e.getDarkModeEnabled()?"darkmode":"lightmode")+"/edit.png",Jn)}}function LV(t,n){if(1&t&&(p(0,"i"),f(1),h()),2&t){const e=D(2).$implicit;v(1),ve(e.Title)}}function BV(t,n){if(1&t&&(p(0,"div"),f(1),h()),2&t){const e=D(2).$implicit;v(1),ve(e.Title)}}function VV(t,n){if(1&t){const e=Z();p(0,"div"),T(1,FV,5,2,"div",8),p(2,"button",9),_("click",function(){R(e);const o=D().$implicit;return F(D().onChapterSelected(o.Title))}),T(3,LV,2,1,"i",10),T(4,BV,2,1,"div",10),h(),K(5,"app-chapter-meta-data",11),h()}if(2&t){const e=D().$implicit,r=D();or("row"+(2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author?" edit":"")),v(1),C("ngIf",2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author),v(2),C("ngIf",e.IsPrivate),v(1),C("ngIf",!e.IsPrivate),v(1),C("chapter",e)}}function HV(t,n){if(1&t&&(p(0,"div")(1,"div",6),T(2,VV,6,6,"div",7),h()()),2&t){const e=n.$implicit,r=D();v(2),C("ngIf",!e.IsPrivate||2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author)}}function $V(t,n){1&t&&(p(0,"i",16),f(1,"No Chapters"),h())}function UV(t,n){if(1&t){const e=Z();p(0,"div",17)(1,"button",13),_("click",function(){return R(e),F(D().toggleNewChapter())}),f(2,"+"),h()()}}function jV(t,n){if(1&t){const e=Z();p(0,"app-chapter-new",18),_("closeEmitter",function(){return R(e),F(D().toggleNewChapter())}),h()}}function zV(t,n){if(1&t){const e=Z();p(0,"app-are-you-sure",19),_("sureEmitter",function(o){return R(e),F(D().areYouSure(o))}),h()}}let GV=(()=>{class t{constructor(e,r){this.apiService=e,this.colorSchemeService=r,this.chapters=[],this.chapterSelected=new le,this.chapterEditSelected=new le,this.newChapter=!1,this.chapterToDelete=void 0}onChapterSelected(e){this.chapterSelected.emit(e)}onChapterEditSelected(e){this.chapterEditSelected.emit(e)}setChapterToDelete(e){this.chapterToDelete=e}areYouSure(e){e&&this.deleteChapter(this.chapterToDelete),this.chapterToDelete=void 0}deleteChapter(e){this.apiService.deleteChapter(e).subscribe({next:r=>{r.status?(this.chapters.splice(this.chapters.indexOf(e),1),alert("Chapter deleted")):alert("Chapter could not be deleted!")},error:r=>{alert("Chapter could not be deleted: "+r.message+"!")}})}isChapterAccessible(e){return 2==this.getuserLevel()||1==this.getuserLevel()&&this.getuserName()==e.Author}getuserLevel(){return Q.userLevel}getuserName(){return Q.userName}toggleNewChapter(){this.newChapter=!this.newChapter}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}}return t.\u0275fac=function(e){return new(e||t)(w(Te),w(Bi))},t.\u0275cmp=se({type:t,selectors:[["app-chapter-selection"]],hostBindings:function(e,r){1&e&&_("keydown.control.alt.n",function(i){return r.toggleNewChapter(i)},0,Ae)},inputs:{chapters:"chapters"},outputs:{chapterSelected:"chapterSelected",chapterEditSelected:"chapterEditSelected"},decls:6,vars:5,consts:[[1,"container"],[4,"ngFor","ngForOf"],["class","noChapters",4,"ngIf"],["class","newButton",4,"ngIf"],[3,"closeEmitter",4,"ngIf"],[3,"sureEmitter",4,"ngIf"],[1,"chapterContainer"],[3,"class",4,"ngIf"],["class","editButton",4,"ngIf"],[1,"chapterButton",3,"click"],[4,"ngIf"],[1,"metaData",3,"chapter"],[1,"editButton"],[3,"click"],["alt","Delete",3,"src"],["alt","Edit",3,"src"],[1,"noChapters"],[1,"newButton"],[3,"closeEmitter"],[3,"sureEmitter"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,HV,3,1,"div",1),T(2,$V,2,0,"i",2),T(3,UV,3,0,"div",3),h(),T(4,jV,1,0,"app-chapter-new",4),T(5,zV,1,0,"app-are-you-sure",5)),2&e&&(v(1),C("ngForOf",r.chapters),v(1),C("ngIf",0==r.chapters.length),v(1),C("ngIf",r.getuserLevel()>0),v(1),C("ngIf",r.newChapter),v(1),C("ngIf",null!=r.chapterToDelete))},dependencies:[En,Re,AV,RV,GM],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .metaData[_ngcontent-%COMP%]{display:none;position:fixed;right:20px;bottom:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .chapterButton[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px 20px;cursor:pointer;height:50px;width:500px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .chapterButton[_ngcontent-%COMP%]{background:var(--secondary-color);transform:scale(1.1)}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .metaData[_ngcontent-%COMP%]{display:block}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%]{height:20px;margin-right:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:20px;width:20px;margin:0 5px;cursor:pointer}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:none;border:none;margin:10px 5px;cursor:pointer}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px 20px;cursor:pointer;height:50px;width:100px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.1)}.edit[_ngcontent-%COMP%]{padding-right:112px}.noChapters[_ngcontent-%COMP%]{color:var(--text-color);font-size:20px}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .chapterButton[_ngcontent-%COMP%]{width:400px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .chapterButton[_ngcontent-%COMP%]{background:var(--primary-color);transform:scale(1)}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .metaData[_ngcontent-%COMP%]{display:none}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%]{margin-right:0;margin-bottom:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1)}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--primary-color);transform:scale(1)}.edit[_ngcontent-%COMP%]{padding-right:0}}"]}),t})();function WV(t,n){if(1&t){const e=Z();p(0,"div",6)(1,"app-chapter-selection",7),_("chapterSelected",function(o){return R(e),F(D().selectChapter(o))})("chapterEditSelected",function(o){return R(e),F(D().selectEditChapter(o))}),h()()}if(2&t){const e=D();v(1),C("chapters",e.getChapters())}}let qV=(()=>{class t{constructor(e,r,o,i){this.router=e,this.apiService=r,this.chapterManager=o,this.metaDataService=i,this.title="InterSystemsWOOP",this.isServerOnline=!1}ngOnInit(){this.chapterManager.init(),this.checkIfServerOnline(),setInterval(()=>{this.checkIfServerOnline(),!this.isServerOnline&&"/"==this.router.url&&this.router.navigate(["/error"])},5e3)}goToServerSettings(){this.router.navigate(["settings/server"])}checkIfServerOnline(){this.apiService.isServerOnline().subscribe({next:e=>{this.isServerOnline=!0},error:e=>{this.isServerOnline=!1}})}selectChapter(e){this.router.navigate(["/chapter",e.replace(/\s/g,"-")])}selectEditChapter(e){this.router.navigate(["/chapter",e.replace(/\s/g,"-"),"edit"])}goToWhatsNew(){this.router.navigate(["/info"])}getLatestVersion(){return this.metaDataService.version}getInstancename(){return this.metaDataService.instanceName}getChapters(){return this.chapterManager.chapters}getuserLevel(){return Q.userLevel}getuserName(){return Q.userName}}return t.\u0275fac=function(e){return new(e||t)(w(Be),w(Te),w(Oo),w(hf))},t.\u0275cmp=se({type:t,selectors:[["app-home"]],decls:10,vars:5,consts:[[1,"sticky"],["class","container",4,"ngIf"],[1,"serverStatus"],[3,"click"],[1,"statusIcon",3,"click"],[1,"version"],[1,"container"],[3,"chapters","chapterSelected","chapterEditSelected"]],template:function(e,r){1&e&&(K(0,"app-header",0),T(1,WV,2,1,"div",1),p(2,"div",2)(3,"p",3),_("click",function(){return r.goToServerSettings()}),f(4),h(),p(5,"div",4),_("click",function(){return r.goToServerSettings()}),h()(),p(6,"div",5)(7,"p",3),_("click",function(){return r.goToWhatsNew()}),p(8,"i"),f(9),h()()()),2&e&&(v(1),C("ngIf",r.isServerOnline),v(3),ve(r.getInstancename()),v(1),kn("background",r.isServerOnline?"green":"red"),v(4),ve("unknown"==r.getLatestVersion()?"":"v"+r.getLatestVersion()))},dependencies:[Re,Tr,GV],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.container[_ngcontent-%COMP%]{padding-top:100px}.userLevelLabel[_ngcontent-%COMP%]{position:fixed;bottom:10px;left:20px;opacity:.2}.serverStatus[_ngcontent-%COMP%]{position:fixed;bottom:5px;left:20px;opacity:.8;display:flex;align-items:center;flex-direction:row}.serverStatus[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{cursor:default;color:var(--text-color);opacity:.5}.serverStatus[_ngcontent-%COMP%] .statusIcon[_ngcontent-%COMP%]{margin-left:10px;margin-top:3px;height:10px;width:10px;border-radius:50%}.version[_ngcontent-%COMP%]{position:fixed;bottom:30px;left:20px;opacity:.8;display:flex;align-items:center;flex-direction:row}.version[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{cursor:default;color:var(--text-color);opacity:.5}@media screen and (max-width: 600px){.serverStatus[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{display:none}}"]}),t})();var WM=N(83);const YV=["codeEle"];function ZV(t,n){1&t&&(p(0,"p",12),f(1,"\u2713"),h())}function XV(t,n){if(1&t){const e=Z();p(0,"img",13),_("click",function(){return R(e),F(D().copyCode())}),h()}2&t&&C("src","assets/imgs/"+(D().getDarkModeEnabled()?"darkmode":"lightmode")+"/copy.png",Jn)}function KV(t,n){if(1&t&&(p(0,"pre",14),f(1," "),p(2,"code",null,15),f(4),h(),f(5,"\n "),h()),2&t){const e=D();or("test"+(e.copyable?"":" noselect")),v(2),function Wv(t,n,e){Rn(gn,ir,si(O(),t,n,e),!0)}("language-",e.language,""),v(2),it("\n ",e.code,"\n ")}}let QV=(()=>{class t{constructor(e){this.colorSchemeService=e,this.code="",this.language="javascript",this.title="mycode",this.copyable=!1,this.copied=!1,this.db=!1}ngAfterViewInit(){WM.highlightElement(this.codeEle.nativeElement)}ngOnChanges(e){e?.code&&this.codeEle?.nativeElement&&(this.codeEle.nativeElement.textContent=this.code,WM.highlightElement(this.codeEle.nativeElement))}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}copyCode(){const e=document.createElement("textarea");e.value=this.code,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.copied=!0,setTimeout(()=>{this.copied=!1},1e3)}onDblClick(){this.db=!this.db}}return t.\u0275fac=function(e){return new(e||t)(w(Bi))},t.\u0275cmp=se({type:t,selectors:[["app-code-window"]],viewQuery:function(e,r){if(1&e&&ny(YV,5),2&e){let o;gp(o=function mp(){return function FT(t,n){return t[Wn].queries[n].queryList}(O(),Pg())}())&&(r.codeEle=o.first)}},inputs:{code:"code",language:"language",title:"title",copyable:"copyable"},features:[Jt],decls:14,vars:6,consts:[["id","window"],["id","navbar"],["id","window-controls"],[1,"red","dot"],[1,"yellow","dot",3,"dblclick"],[1,"green","dot"],[1,"test"],["id","window-title"],["class","copiedMessage",4,"ngIf"],["class","copy","alt","Copy",3,"src","click",4,"ngIf"],[1,"code"],["prism","",3,"class",4,"ngIf"],[1,"copiedMessage"],["alt","Copy",1,"copy",3,"src","click"],["prism",""],["codeEle",""]],template:function(e,r){1&e&&(p(0,"div",0)(1,"div",1)(2,"div",2),K(3,"div",3),p(4,"div",4),_("dblclick",function(){return r.onDblClick()}),h(),K(5,"div",5),h(),p(6,"div",6)(7,"div",7),f(8),h(),T(9,ZV,2,0,"p",8),T(10,XV,1,1,"img",9),h(),p(11,"div")(12,"div",10),T(13,KV,6,6,"pre",11),h()()()()),2&e&&(or(r.db?"db":""),v(8),ve(r.title),v(1),C("ngIf",r.copied),v(1),C("ngIf",!r.copied&&r.copyable),v(3),C("ngIf",r.language))},dependencies:[Re],styles:["#snippet-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background-color:red;width:max-content}#window[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-shadow:0 0 10px #0003;overflow:hidden;width:max-content;min-width:200px;padding:18px;background-color:var(--header-color);border-radius:10px;margin-left:20px;max-width:100%}#navbar[_ngcontent-%COMP%]{overflow:hidden;text-align:center}#window-controls[_ngcontent-%COMP%]{display:flex;float:left;margin-top:2px}#window-title[_ngcontent-%COMP%]{margin:0 90px}.dot[_ngcontent-%COMP%]{width:15px;height:15px;border-radius:50%;margin-right:10px;box-shadow:0 0 3px #0000004d}.dot[_ngcontent-%COMP%]:hover{scale:1.2}.copiedMessage[_ngcontent-%COMP%]{opacity:.5;width:25px;height:25px;margin-top:2px}.copy[_ngcontent-%COMP%]{width:25px;height:25px;cursor:pointer;margin-top:2px}.copy[_ngcontent-%COMP%]:hover{scale:1.2}.test[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.red[_ngcontent-%COMP%]{background-color:#ff5f5a}.yellow[_ngcontent-%COMP%]{background-color:#ffbe2e}.green[_ngcontent-%COMP%]{background-color:#2aca44}.test[_ngcontent-%COMP%]{background:var(--header-color);text-shadow:none!important}.code[_ngcontent-%COMP%] .token[_ngcontent-%COMP%]{color:red!important;background:red!important}code[class*=language-][_ngcontent-%COMP%], pre[class*=language-][_ngcontent-%COMP%]{text-shadow:none;color:var(--text-color)}pre[class*=language-][_ngcontent-%COMP%]{padding:0;margin:0;overflow:auto}.noselect[_ngcontent-%COMP%]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.db[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin .5s linear;transform:rotate(180deg)}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@media screen and (max-width: 800px){#window[_ngcontent-%COMP%]{margin-left:0;max-width:90%}.dot[_ngcontent-%COMP%]:hover{scale:1}}"]}),t})();function JV(t,n){1&t&&K(0,"markdown",6),2&t&&C("data",D().$implicit.code)}function e3(t,n){if(1&t&&K(0,"app-code-window",7),2&t){const e=D().$implicit;C("code",e.code)("language",e.language)("title",e.title)("copyable",e.settings.includes("copy")||e.settings.includes("c"))}}function t3(t,n){if(1&t&&K(0,"img",8),2&t){const e=D().$implicit;(function An(t){Rn(Av,mO,t,!1)})(e.language),C("src",e.code,Jn)("alt",e.title)}}function n3(t,n){if(1&t){const e=Z();p(0,"button",9),_("click",function(){R(e);const o=D().$implicit;return F(D().downloadFile(o.code))}),f(1),h()}if(2&t){const e=D().$implicit;v(1),it(" ",e.title," ")}}function r3(t,n){if(1&t&&(p(0,"div"),T(1,JV,1,1,"markdown",2),T(2,e3,1,4,"app-code-window",3),T(3,t3,1,4,"img",4),T(4,n3,2,1,"button",5),h()),2&t){const e=n.$implicit;kn("font-size",D().getFontSize()+"px"),v(1),C("ngIf","textblock"==e.type),v(1),C("ngIf","codeblock"==e.type),v(1),C("ngIf","image"==e.type),v(1),C("ngIf","file"==e.type)}}let o3=(()=>{class t{constructor(e,r,o,i){this.mdService=e,this.http=r,this.localStorageService=o,this.irisinterfaceService=i,this.data="",this.blocks=[]}ngOnInit(){var e=this;return Li(function*(){let r=e.data.split("\n");for(let o=0;ou);null!=c?s=c:console.log("error getting image")}e.blocks.push({type:"image",code:s,language:a,title:i})}else if(r[o].startsWith("$$$[")){let i=r[o].split("[")[1].split("]")[0],s=r[o].split("(")[1].split(")")[0];e.blocks.push({type:"file",code:s,language:"",title:i})}else{let i="",s=!1;for(;o{const o=document.createElement("a");o.href="data:text/plain;charset=utf-8,"+encodeURIComponent(r.content),o.download=r.name,o.click()},error:r=>{alert("Error getting file:"+r.message)}})}}return t.\u0275fac=function(e){return new(e||t)(w(Sc),w(xc),w(sn),w(Te))},t.\u0275cmp=se({type:t,selectors:[["app-markdown-content"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"contentBox"],[3,"font-size",4,"ngFor","ngForOf"],[3,"data",4,"ngIf"],[3,"code","language","title","copyable",4,"ngIf"],[3,"src","alt","style",4,"ngIf"],["class","downloadButton",3,"click",4,"ngIf"],[3,"data"],[3,"code","language","title","copyable"],[3,"src","alt"],[1,"downloadButton",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,r3,5,6,"div",1),h()),2&e&&(v(1),C("ngForOf",r.blocks))},dependencies:[En,Re,$b,QV],styles:[".contentBox[_ngcontent-%COMP%]{width:80%;margin:20px auto;border:1px solid #ccc;border-radius:10px;box-shadow:2px 2px 2px #0000001a;padding:20px;font-size:20px;color:var(--text-color)}.downloadButton[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px 10px;cursor:pointer;height:50px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.downloadButton[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.1)}@media screen and (max-width: 800px){.downloadButton[_ngcontent-%COMP%]:hover{background:var(--primary-color);transform:scale(1)}}"]}),t})();function i3(t,n){if(1&t&&(p(0,"div")(1,"h1",2),f(2,"hint"),h(),K(3,"app-markdown-content",1),h()),2&t){const e=D(2);v(3),C("data",e.page.Hint)}}function s3(t,n){if(1&t&&(p(0,"div")(1,"h1",2),f(2,"Result"),h(),K(3,"app-markdown-content",1),h()),2&t){const e=D(2);v(3),C("data",e.page.Result)}}function a3(t,n){if(1&t&&(p(0,"div"),K(1,"app-markdown-content",1),T(2,i3,4,1,"div",0),T(3,s3,4,1,"div",0),h()),2&t){const e=D();v(1),C("data",e.page.Content),v(1),C("ngIf",e.showhint),v(1),C("ngIf",e.showResult)}}let l3=(()=>{class t{constructor(){this.show=!1,this.showhint=!1,this.showResult=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["app-page"]],inputs:{page:"page",show:"show",showhint:"showhint",showResult:"showResult"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"data"],[1,"heading"]],template:function(e,r){1&e&&T(0,a3,4,3,"div",0),2&e&&C("ngIf",r.show)},dependencies:[Re,o3],styles:[".heading[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem;text-align:center;text-transform:uppercase;letter-spacing:.1rem;line-height:1.2;padding:1rem 0;border-radius:.5rem;width:20%;margin:0 auto;color:var(--text-color)}"]}),t})();function c3(t,n){if(1&t){const e=Z();p(0,"img",5),_("click",function(){return R(e),F(D().showNext())}),h()}2&t&&C("src","assets/imgs/"+(D().getDarkModeEnabled()?"darkmode":"lightmode")+"/navigatePage.png",Jn)}function u3(t,n){if(1&t){const e=Z();p(0,"img",6),_("click",function(){return R(e),F(D().showPrev())}),h()}2&t&&C("src","assets/imgs/"+(D().getDarkModeEnabled()?"darkmode":"lightmode")+"/navigatePage.png",Jn)}function d3(t,n){if(1&t){const e=Z();p(0,"button",7),_("click",function(){return R(e),F(D().showhint())}),f(1,"Show hint"),h()}}function p3(t,n){if(1&t){const e=Z();p(0,"button",7),_("click",function(){return R(e),F(D().showResult())}),f(1,"Show result"),h()}}function h3(t,n){if(1&t){const e=Z();p(0,"button",7),_("click",function(){return R(e),F(D().showPrev())}),f(1,"Previous"),h()}}function f3(t,n){if(1&t){const e=Z();p(0,"button",7),_("click",function(){return R(e),F(D().showNext())}),f(1,"Next"),h()}}let qM=(()=>{class t{constructor(e){this.colorSchemeService=e,this.showNextButton=!0,this.showPrevButton=!0,this.showhintButton=!0,this.showResultButton=!0,this.showNextEmitter=new le,this.showPrevEmitter=new le,this.showhintEmitter=new le,this.showResultEmitter=new le}showNext(){this.showNextEmitter.emit("showNext")}showPrev(){this.showPrevEmitter.emit("showPrev")}showhint(){this.showhintEmitter.emit("showhint")}showResult(){this.showResultEmitter.emit("showResult")}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}}return t.\u0275fac=function(e){return new(e||t)(w(Bi))},t.\u0275cmp=se({type:t,selectors:[["app-page-nav-bar"]],hostBindings:function(e,r){1&e&&_("keydown.control.arrowright",function(i){return r.showNext(i)},0,Ae)("keydown.control.arrowleft",function(i){return r.showPrev(i)},!1,Ae)},inputs:{showNextButton:"showNextButton",showPrevButton:"showPrevButton",showhintButton:"showhintButton",showResultButton:"showResultButton"},outputs:{showNextEmitter:"showNextEmitter",showPrevEmitter:"showPrevEmitter",showhintEmitter:"showhintEmitter",showResultEmitter:"showResultEmitter"},decls:8,vars:6,consts:[["class","nextButton navButton","alt","next",3,"src","click",4,"ngIf"],["class","prevButton navButton","alt","previous",3,"src","click",4,"ngIf"],[1,"showButtons"],[3,"click",4,"ngIf"],[1,"showButtons","mobile"],["alt","next",1,"nextButton","navButton",3,"src","click"],["alt","previous",1,"prevButton","navButton",3,"src","click"],[3,"click"]],template:function(e,r){1&e&&(T(0,c3,1,1,"img",0),T(1,u3,1,1,"img",1),p(2,"div",2),T(3,d3,2,0,"button",3),T(4,p3,2,0,"button",3),h(),p(5,"div",4),T(6,h3,2,0,"button",3),T(7,f3,2,0,"button",3),h()),2&e&&(C("ngIf",r.showNextButton),v(1),C("ngIf",r.showPrevButton),v(2),C("ngIf",r.showhintButton),v(1),C("ngIf",r.showResultButton),v(2),C("ngIf",r.showPrevButton),v(1),C("ngIf",r.showNextButton))},dependencies:[Re],styles:[".navButton[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:50%;cursor:pointer}.nextButton[_ngcontent-%COMP%]{transform:rotate(180deg);left:93%}.nextButton[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_moveRight 1s ease-in-out forwards}.prevButton[_ngcontent-%COMP%]{right:93%}.prevButton[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_moveLeft 1s ease-in-out forwards}.showButtons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:20px}.showButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px;cursor:pointer;height:50px;width:300px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.showButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.05)}.mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 800px){.nextButton[_ngcontent-%COMP%], .prevButton[_ngcontent-%COMP%]{display:none}.mobile[_ngcontent-%COMP%]{display:flex}}@keyframes _ngcontent-%COMP%_moveLeft{0%{transform:translate(0)}to{transform:translate(-20%)}}@keyframes _ngcontent-%COMP%_moveRight{0%{transform:translate(0) rotate(180deg)}to{transform:translate(20%) rotate(180deg)}}"]}),t})();function g3(t,n){if(1&t&&(p(0,"p",7),f(1),h()),2&t){const e=D();v(1),ve(e.wrongText)}}let m3=(()=>{class t{constructor(e){this.apiService=e,this.enteredPassword="",this.isWrong=!1,this.wrongText="",this.type="password",this.chapterName="",this.passwordEntered=new le}submit(){this.apiService.verifyChapter(this.chapterName,this.enteredPassword).subscribe({next:e=>{e.status?(this.passwordEntered.emit(this.enteredPassword),this.isWrong=!1,this.enteredPassword=""):(this.isWrong=!0,this.enteredPassword="",this.wrongText="Wrong password")},error:e=>{this.isWrong=!0,this.wrongText=e.message}})}viewPassword(){this.type="password"===this.type?"text":"password"}close(){this.passwordEntered.emit(void 0),this.isWrong=!1,this.enteredPassword=""}}return t.\u0275fac=function(e){return new(e||t)(w(Te))},t.\u0275cmp=se({type:t,selectors:[["app-password-query"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},inputs:{chapterName:"chapterName"},outputs:{passwordEntered:"passwordEntered"},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["name","password","placeholder","Password",1,"passwordInput",3,"type","ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"viewButton",3,"click"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Enter Password"),h(),T(4,g3,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"button",5),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(9," Submit "),h(),p(10,"button",6),_("click",function(){return r.viewPassword()}),f(11),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("type",r.type)("ngModel",r.enteredPassword),v(4),it(" ","password"==r.type?"View":"Hide"," "))},dependencies:[Re,At,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:50%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}"]}),t})();function _3(t,n){if(1&t){const e=Z();p(0,"div")(1,"li")(2,"a",5),_("click",function(){const i=R(e).$implicit;return F(D().selectPage(i.page))}),f(3),h()()()}if(2&t){const e=n.$implicit;v(1),kn("font-size",21-2*e.level,"px")("margin-left",10*(e.level-1),"px"),v(2),ve(e.text)}}let YM=(()=>{class t{constructor(){this.event=new le,this.chapter=void 0,this.headings=[]}ngOnInit(){let e=!1;for(let r=0;r0?"Page ":"No Pages"),v(1),C("ngIf",e.chapter.Pages.length>0),v(1),C("ngIf",e.chapter.Pages.length>0),v(1),C("ngForOf",e.chapter.Pages),v(1),C("showPrevButton",0!=e.currentPage&&e.chapter.Pages.length>0)("showNextButton",e.currentPage!=e.chapter.Pages.length-1&&e.chapter.Pages.length>0)("showResultButton",e.chapter.Pages.length>0&&""!=e.chapter.Pages[e.currentPage].Result&&!e.resultVisible)("showhintButton",e.chapter.Pages.length>0&&""!=e.chapter.Pages[e.currentPage].Hint&&!e.hintVisible)}}function M3(t,n){if(1&t){const e=Z();p(0,"app-table-of-content",17),_("event",function(o){return R(e),F(D().onTOCInput(o))}),h()}2&t&&C("chapter",D().chapter)}let ZM=(()=>{class t{constructor(e,r,o,i){this.router=e,this.route=r,this.chapterManger=o,this.localStorageService=i,this.currentPage=0,this.chapterName="",this.hintVisible=!1,this.resultVisible=!1,this.exportOptionsVisible=!1,this.contentVisible=!0,this.pageInput=1,this.showTOC=!1}ngOnInit(){let e=this.route.snapshot.paramMap.get("chapterName");null!=e?(this.chapterName=e,this.chapterManger.init().then(()=>{this.chapter=this.chapterManger.getChapterByName(this.chapterName,!0),this.chapter.IsPrivate?2==Q.userLevel||1==Q.userLevel&&this.chapter.Author==Q.userName?this.contentVisible=!0:this.router.navigate(["/login"]):((2==Q.userLevel||1==Q.userLevel&&this.chapter.Author==Q.userName)&&pa.verifyChapter(this.chapter.Title,"",!1),this.contentVisible=pa.isChapterVerified(this.chapter.Title));let r=this.localStorageService.getPageForChapter(this.chapterName);r<0&&(r=0),r>this.chapter.Pages.length-1&&(r=this.chapter.Pages.length-1),this.currentPage=r,this.pageInput=this.currentPage+1})):this.router.navigate(["/"])}onPageInput(){this.pageInput<1?this.pageInput=1:this.pageInput>this.chapter.Pages.length?this.pageInput=this.chapter.Pages.length:(this.currentPage=this.pageInput-1,this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}verifyChapter(e){null!=e?(pa.verifyChapter(this.chapter.Title,e),this.contentVisible=!0):this.router.navigate(["/"])}showNextPage(){this.currentPage!=this.chapter.Pages.length-1&&(this.currentPage++,this.pageInput=this.currentPage+1,this.hintVisible=!1,this.resultVisible=!1,window.scrollTo({top:0}),this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}showPrevPage(){0!=this.currentPage&&(this.currentPage--,this.pageInput=this.currentPage+1,this.hintVisible=!1,this.resultVisible=!1,window.scrollTo({top:0}),this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}showhint(){this.hintVisible=!0}showResult(){this.resultVisible=!0}setTOC(e){this.showTOC=e}onTOCInput(e){-1!=e?(this.currentPage=e,this.pageInput=this.currentPage+1):this.showTOC=!1}goBack(){this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(Be),w(lr),w(Oo),w(sn))},t.\u0275cmp=se({type:t,selectors:[["app-chapter"]],inputs:{chapter:"chapter",currentPage:"currentPage"},decls:4,vars:4,consts:[[3,"chapterName","passwordEntered",4,"ngIf"],["class","content",4,"ngIf"],[3,"chapter","event",4,"ngIf"],[1,"sticky",3,"chapter","pageChange"],[3,"chapterName","passwordEntered"],[1,"content"],[1,"header"],[1,"backButton",3,"click"],[1,"tocButton",3,"click"],[1,"bar"],[1,"heading"],["class","pageInput","type","number",3,"ngModel","min","max","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"page","show","showhint","showResult",4,"ngFor","ngForOf"],[3,"showPrevButton","showNextButton","showResultButton","showhintButton","showNextEmitter","showPrevEmitter","showhintEmitter","showResultEmitter"],["type","number",1,"pageInput",3,"ngModel","min","max","ngModelChange"],[3,"page","show","showhint","showResult"],[3,"chapter","event"]],template:function(e,r){1&e&&(T(0,v3,1,1,"app-password-query",0),T(1,b3,18,9,"div",1),T(2,M3,1,1,"app-table-of-content",2),p(3,"app-header",3),_("pageChange",function(i){return r.onTOCInput(i-1)}),h()),2&e&&(C("ngIf",!r.contentVisible),v(1),C("ngIf",r.contentVisible),v(1),C("ngIf",r.showTOC),v(1),C("chapter",r.chapter))},dependencies:[En,Re,At,Bc,xt,Hc,Vc,Mt,Tr,l3,qM,m3,YM],styles:[".heading[_ngcontent-%COMP%]{text-align:center;color:var(--text-color)}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]{background-color:#7a7a7a44;color:var(--text-color);border-radius:10%;border:none;width:30px;font-size:15px;text-align:center;transition:.2s;box-shadow:none;margin:0 0 0 3px}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]:focus{outline:none;width:50px}.heading[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.content[_ngcontent-%COMP%]{margin-top:100px}.header[_ngcontent-%COMP%]{width:100%;margin-top:20px;display:flex}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.header[_ngcontent-%COMP%] .backButton[_ngcontent-%COMP%]{margin-left:20px;margin-right:auto}.header[_ngcontent-%COMP%] .exportButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px}.tocButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px;cursor:pointer}.tocButton[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:40px;height:4px;background-color:var(--text-color);margin:6px 0;transition:.4s;border-radius:5px}"]}),t})();function D3(t,n){if(1&t){const e=Z();p(0,"div",4)(1,"button",5),_("click",function(){return R(e),F(D().uploadImage())}),f(2," Upload "),h(),p(3,"button",6),_("click",function(){return R(e),F(D().select())}),f(4," Select existing "),h()()}}function E3(t,n){if(1&t&&(p(0,"option",10),f(1),h()),2&t){const e=n.$implicit;C("value",e),v(1),it(" ",e," ")}}function x3(t,n){if(1&t){const e=Z();p(0,"div",4)(1,"select",7),_("ngModelChange",function(o){return R(e),F(D().selectedImage=o)}),T(2,E3,2,2,"option",8),h(),p(3,"button",9),_("click",function(){return R(e),F(D().selectTheImage())}),f(4," Ok "),h()()}if(2&t){const e=D();v(1),C("ngModel",e.selectedImage),v(1),C("ngForOf",e.imageNames)}}let S3=(()=>{class t{constructor(e){this.apiService=e,this.imageEmitter=new le,this.selectImage=!1,this.selectedImage="",this.imageNames=[]}close(){this.imageEmitter.emit("")}select(){this.apiService.getAllImageNames().subscribe({next:e=>{this.imageNames=e,this.selectImage=!0},error:e=>{alert("Error getting image names:"+e.message)}})}selectTheImage(){this.imageEmitter.emit(`?[${this.selectedImage}](${this.selectedImage}){width:100%}`)}uploadImage(){const e=document.createElement("input");e.type="file",e.accept="image/*",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsDataURL(o),i.onload=()=>{this.apiService.uploadImage(o.name,i.result).subscribe({next:a=>{a.status?(alert("Image uploaded: "+a.newName),this.imageEmitter.emit(`?[${a.newName}](${a.newName}){width:100%}`)):alert("Could not upload image!")},error:a=>{alert("Error uploading image:"+a.message)}})}},e.click()}}return t.\u0275fac=function(e){return new(e||t)(w(Te))},t.\u0275cmp=se({type:t,selectors:[["app-add-image"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},outputs:{imageEmitter:"imageEmitter"},decls:8,vars:3,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],["class","buttonContainer",4,"ngIf"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"],["name","SelectImage",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3),h(),p(4,"button",2),_("click",function(){return r.close()}),f(5,"X"),h(),T(6,D3,5,0,"div",3),T(7,x3,5,2,"div",3),h()),2&e&&(v(3),ve(r.selectImage?"Select Image":"Add Image"),v(3),C("ngIf",!r.selectImage),v(1),C("ngIf",r.selectImage))},dependencies:[En,Re,ua,da,So,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})(),P3=(()=>{class t{constructor(e){this.localStorageService=e,this.toLanguage="en",this.excludeCodeBlocks=!0,this.translatePage=!1,this.eventEmitter=new le,this.toLanguage=this.localStorageService.getLanguageTo()}submit(){this.localStorageService.setLanguageTo(this.toLanguage);let e=this.toLanguage;this.excludeCodeBlocks&&(e+=",excludeCodeBlocks"),this.translatePage&&(e+=",translatePage"),this.eventEmitter.emit(e),this.translatePage=!1,this.excludeCodeBlocks=!0}close(){this.eventEmitter.emit("close")}}return t.\u0275fac=function(e){return new(e||t)(w(sn))},t.\u0275cmp=se({type:t,selectors:[["app-translate-spec"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},outputs:{eventEmitter:"eventEmitter"},decls:19,vars:7,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"toLanguage"],["type","text","name","toLanguage","placeholder","To Language",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"checkBoxCon"],["type","checkbox","name","excludeCodeBlocks",3,"ngModel","ngModelChange"],["type","checkbox","name","translatePage",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Translate Text"),h(),p(4,"button",2),_("click",function(){return r.close()}),f(5,"X"),h(),p(6,"p",3),f(7,"Translate to..."),h(),p(8,"input",4),_("ngModelChange",function(i){return r.toLanguage=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"div",5)(10,"input",6),_("ngModelChange",function(i){return r.excludeCodeBlocks=i}),h(),p(11,"p"),f(12,"Exclude Codeblocks"),h()(),p(13,"div",5)(14,"input",7),_("ngModelChange",function(i){return r.translatePage=i}),h(),p(15,"p"),f(16,"Translate Page"),h()(),p(17,"button",8),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(18," Translate "),h()()),2&e&&(v(8),C("ngModel",r.toLanguage),v(1),kn("top","50%"),v(1),C("ngModel",r.excludeCodeBlocks),v(3),kn("top","65%"),v(1),C("ngModel",r.translatePage))},dependencies:[At,Ni,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;color:varvar(--inverted-text-color)}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:37%}.container[_ngcontent-%COMP%] .toLanguage[_ngcontent-%COMP%]{top:20%}.checkBoxCon[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);display:flex;flex-direction:row;margin-top:5px}.checkBoxCon[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.checkBoxCon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:120px;margin-top:2px;width:200px;font-size:20px;color:var(--inverted-text-color);cursor:pointer;text-align:left}"]}),t})();function O3(t,n){if(1&t){const e=Z();p(0,"div",4)(1,"button",5),_("click",function(){return R(e),F(D().uploadFile())}),f(2," Upload "),h(),p(3,"button",6),_("click",function(){return R(e),F(D().select())}),f(4," Select existing "),h()()}}function I3(t,n){if(1&t&&(p(0,"option",10),f(1),h()),2&t){const e=n.$implicit;C("value",e),v(1),it(" ",e," ")}}function T3(t,n){if(1&t){const e=Z();p(0,"div",4)(1,"select",7),_("ngModelChange",function(o){return R(e),F(D().selectedFile=o)}),T(2,I3,2,2,"option",8),h(),p(3,"button",9),_("click",function(){return R(e),F(D().selectTheFile())}),f(4," Ok "),h()()}if(2&t){const e=D();v(1),C("ngModel",e.selectedFile),v(1),C("ngForOf",e.fileNames)}}let k3=(()=>{class t{constructor(e){this.apiService=e,this.fileEmitter=new le,this.selectFile=!1,this.selectedFile="",this.fileNames=[]}close(){this.fileEmitter.emit("")}select(){this.apiService.getAllFileNames().subscribe({next:e=>{this.fileNames=e,this.selectFile=!0},error:e=>{alert("Error getting file names:"+e.message)}})}selectTheFile(){this.fileEmitter.emit(`$$$[Download](${this.selectedFile})`)}uploadFile(){const e=document.createElement("input");e.type="file",e.accept="*",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsText(o),i.onload=()=>{this.apiService.uploadFile(o.name,i.result).subscribe({next:s=>{s.status?(alert("File uploaded: "+s.newName),this.fileEmitter.emit(`$$$[Download](${s.newName})`)):alert("Could not upload file!")},error:s=>{alert("Error uploading file:"+s.message)}})}},e.click()}}return t.\u0275fac=function(e){return new(e||t)(w(Te))},t.\u0275cmp=se({type:t,selectors:[["app-add-file"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},outputs:{fileEmitter:"fileEmitter"},decls:8,vars:3,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],["class","buttonContainer",4,"ngIf"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"],["name","SelectFile",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3),h(),p(4,"button",2),_("click",function(){return r.close()}),f(5,"X"),h(),T(6,O3,5,0,"div",3),T(7,T3,5,2,"div",3),h()),2&e&&(v(3),ve(r.selectFile?"Select File":"Add File"),v(3),C("ngIf",!r.selectFile),v(1),C("ngIf",r.selectFile))},dependencies:[En,Re,ua,da,So,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function A3(t,n){if(1&t){const e=Z();p(0,"app-add-image",5),_("imageEmitter",function(o){return R(e),F(D().addImage(o))}),h()}}function N3(t,n){if(1&t){const e=Z();p(0,"app-add-file",6),_("fileEmitter",function(o){return R(e),F(D().addFile(o))}),h()}}function R3(t,n){if(1&t){const e=Z();p(0,"app-translate-spec",7),_("eventEmitter",function(o){return R(e),F(D().translateSpec(o))}),h()}}let F3=(()=>{class t{constructor(e,r){this.apiService=e,this.router=r,this.addImageOpened=!1,this.addFileOpened=!1,this.translateSpecOpen=!1,this.eventEmitter=new le}emit(e){this.eventEmitter.emit(e)}addImage(e){""!==e&&this.emit(e),this.addImageOpened=!1}addFile(e){""!==e&&this.emit(e),this.addFileOpened=!1}openAddImage(){this.addImageOpened=!0}openAddFile(){this.addFileOpened=!0}openTranslateSpec(){this.translateSpecOpen=!0}closeTranslateSpec(){this.translateSpecOpen=!1}closeAddImage(){this.addImageOpened=!1}translateSpec(e){"close"!==e&&this.emit("translate,"+e),this.closeTranslateSpec()}help(){this.router.navigate(["/markdown"])}}return t.\u0275fac=function(e){return new(e||t)(w(Te),w(Be))},t.\u0275cmp=se({type:t,selectors:[["app-markdown-editor"]],outputs:{eventEmitter:"eventEmitter"},decls:20,vars:5,consts:[[1,"editor"],[3,"click"],[3,"imageEmitter",4,"ngIf"],[3,"fileEmitter",4,"ngIf"],[3,"eventEmitter",4,"ngIf"],[3,"imageEmitter"],[3,"fileEmitter"],[3,"eventEmitter"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"button",1),_("click",function(){return r.emit("bold")}),p(2,"b"),f(3,"Bold"),h()(),p(4,"button",1),_("click",function(){return r.emit("italic")}),p(5,"i"),f(6,"Italic"),h()(),p(7,"button",1),_("click",function(){return r.emit("code")}),f(8,"Code"),h(),p(9,"button",1),_("click",function(){return r.openAddImage()}),f(10,"Image"),h(),p(11,"button",1),_("click",function(){return r.openAddFile()}),f(12,"File"),h(),p(13,"button",1),_("click",function(){return r.openTranslateSpec()}),f(14,"Translate"),h(),p(15,"button",1),_("click",function(){return r.help()}),f(16,"Help"),h()(),T(17,A3,1,0,"app-add-image",2),T(18,N3,1,0,"app-add-file",3),T(19,R3,1,0,"app-translate-spec",4)),2&e&&(v(13),kn("width",100,"px"),v(4),C("ngIf",r.addImageOpened),v(1),C("ngIf",r.addFileOpened),v(1),C("ngIf",r.translateSpecOpen))},dependencies:[Re,S3,P3,k3],styles:[".editor[_ngcontent-%COMP%]{width:100%;background:var(--header-color);height:50px;display:flex;align-items:center;border-radius:5px;margin-bottom:20px;box-shadow:0 0 10px #0003}.editor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:70px;font-size:20px;height:30px;background:var(--primary-color);border-radius:5px;border:none;outline:none;cursor:pointer;margin:0 10px;color:var(--inverted-text-color);box-shadow:0 0 5px #00000080}.editor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px #000c;scale:1.05}"]}),t})(),L3=(()=>{class t{constructor(e,r){this.localStorageService=e,this.apiService=r,this.type="",this.changeEmitter=new le,this.data="",this.dataBefore=void 0,this.focus=!1,this.slectionContent="",this.selectionStart=-1,this.selectionEnd=-1,this.getData()}handleKeydown(e){if("Tab"==e.key){e.preventDefault();var r=e.target.selectionStart,o=e.target.selectionEnd;e.target.value=e.target.value.substring(0,r)+"\t"+e.target.value.substring(o),e.target.selectionStart=e.target.selectionEnd=r+1,this.data=e.target.value,this.setData()}}ngOnInit(){this.getData()}onFocus(){this.focus=!0}onFocusOut(){this.focus=!1}selectionchange(e){this.selectionStart=e.target.selectionStart,this.selectionEnd=e.target.selectionEnd,this.slectionContent=e.target.value.substr(this.selectionStart,this.selectionEnd-this.selectionStart)}onEditorInput(e){let r=this.focus;this.focus=!0,"bold"===e?this.bold():"italic"===e?this.italic():"code"===e?this.code():e.startsWith("![")||e.startsWith("?[")||e.startsWith("$$$[")?this.addImage(e):e.startsWith("translate")&&this.translate(e.split(",")[1],e.includes("excludeCodeBlocks"),e.includes("translatePage")),this.focus=r}translate(e="en",r,o){var i=this;return Li(function*(){o?(i.page.Content=yield i.translateText(i.page.Content,e,r),i.page.Hint=yield i.translateText(i.page.Hint,e,r),i.page.Result=yield i.translateText(i.page.Result,e,r),i.changeEmitter.emit()):(i.data=yield i.translateText(i.data,e,r),i.setData())})()}translateText(e,r="en",o){var i=this;return Li(function*(){let s=e.split("\n"),a="",l=!1;for(let c=0;cg.text))+"\n"}return a})()}copyLineUp(){if(!this.focus)return;let e=this.data.split("\n"),r=0,o=[],i=-1;for(let s=0;sthis.selectionStart?(o.push(e[s]),i=s):o.length>0&&o.push(e[s]),r>this.selectionEnd){e.splice(i-1,0,o.join("\n"));break}this.data=e.join("\n"),this.setData()}copyLineDown(){if(!this.focus)return;let e=this.data.split("\n"),r=0,o=[],i=-1;for(let s=0;sthis.selectionStart?(o.push(e[s]),i=s):o.length>0&&o.push(e[s]),r>this.selectionEnd){e.splice(s+1,0,o.join("\n"));break}this.data=e.join("\n"),this.setData()}addImage(e){this.data+="\n"+e,this.setData()}bold(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"**"+this.slectionContent+"**"+this.data.substr(this.selectionEnd),this.setData())}italic(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"_"+this.slectionContent+"_"+this.data.substr(this.selectionEnd),this.setData())}code(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"`"+this.slectionContent+"`"+this.data.substr(this.selectionEnd),this.setData())}setToDatBefore(){!this.focus||!this.dataBefore||(this.data=this.dataBefore,this.dataBefore=void 0,this.setData())}getData(){"content"===this.type&&(this.data=this.page.Content),"hint"===this.type&&(this.data=this.page.Hint),"result"===this.type&&(this.data=this.page.Result)}setData(){this.dataBefore=this.data,"content"===this.type&&(this.page.Content=this.data),"hint"===this.type&&(this.page.Hint=this.data),"result"===this.type&&(this.page.Result=this.data),this.changeEmitter.emit()}autoComplete(){let e=this.data[this.data.length-1];"["===e&&(this.data+="]"),"("===e&&(this.data+=")"),'"'===e&&(this.data+='"'),"'"===e&&(this.data+="'"),"{"===e&&(this.data+="}"),"_"===e&&(this.data+="_"),"*"===e&&(this.data+="*"),"`"===e&&(this.data+="`")}getFontSize(){return this.localStorageService.getFontSize()}getHeight(){let e=this.data.split("\n").length*this.getFontSize()*2;return e<50?50:e}}return t.\u0275fac=function(e){return new(e||t)(w(sn),w(Te))},t.\u0275cmp=se({type:t,selectors:[["app-edit-content"]],hostBindings:function(e,r){1&e&&_("keydown.shift.alt.arrowup",function(i){return r.copyLineUp(i)},0,Ae)("keydown.shift.alt.arrowdown",function(i){return r.copyLineDown(i)},!1,Ae)("keydown.control.alt.b",function(i){return r.bold(i)},!1,Ae)("keydown.control.alt.i",function(i){return r.italic(i)},!1,Ae)("keydown.control.alt.c",function(i){return r.code(i)},!1,Ae)("keydown.control.z",function(i){return r.setToDatBefore(i)},!1,Ae)},inputs:{type:"type",page:"page"},outputs:{changeEmitter:"changeEmitter"},decls:4,vars:5,consts:[[1,"contentBox"],[3,"eventEmitter"],["spellcheck","false",3,"ngModel","keydown","ngModelChange","selectionchange","focusout","focus"],["editor",""]],template:function(e,r){1&e&&(p(0,"div",0)(1,"app-markdown-editor",1),_("eventEmitter",function(i){return r.onEditorInput(i)}),h(),p(2,"textarea",2,3),_("keydown",function(i){return r.handleKeydown(i)})("ngModelChange",function(i){return r.data=i})("ngModelChange",function(){return r.setData()})("selectionchange",function(i){return r.selectionchange(i)})("focusout",function(){return r.onFocusOut()})("focus",function(){return r.onFocus()}),h()()),2&e&&(v(2),kn("font-size",r.getFontSize()+"px")("height",r.getHeight()+"px"),C("ngModel",r.data))},dependencies:[At,xt,Mt,F3],styles:[".contentBox[_ngcontent-%COMP%]{width:80%;margin:20px auto;border:1px solid #ccc;border-radius:10px;box-shadow:2px 2px 2px #0000001a;padding:20px;font-size:20px}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;border:none;border-radius:10px;resize:vertical;color:var(--text-color);background-color:var(--bg-color)}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:1px solid #ccc}"]}),t})();function B3(t,n){if(1&t){const e=Z();p(0,"div")(1,"h1",2),f(2,"hint"),h(),p(3,"app-edit-content",3),_("changeEmitter",function(){return R(e),F(D(2).onChange())}),h()()}if(2&t){const e=D(2);v(3),C("page",e.page)}}function V3(t,n){if(1&t){const e=Z();p(0,"div")(1,"h1",2),f(2,"Result"),h(),p(3,"app-edit-content",4),_("changeEmitter",function(){return R(e),F(D(2).onChange())}),h()()}if(2&t){const e=D(2);v(3),C("page",e.page)}}function H3(t,n){if(1&t){const e=Z();p(0,"div")(1,"app-edit-content",1),_("changeEmitter",function(){return R(e),F(D().onChange())}),h(),T(2,B3,4,1,"div",0),T(3,V3,4,1,"div",0),h()}if(2&t){const e=D();v(1),C("page",e.page),v(1),C("ngIf",e.showhint),v(1),C("ngIf",e.showResult)}}let $3=(()=>{class t{constructor(){this.show=!1,this.showhint=!1,this.showResult=!1,this.changeEmitter=new le}onChange(){this.changeEmitter.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["app-edit-page"]],inputs:{page:"page",show:"show",showhint:"showhint",showResult:"showResult"},outputs:{changeEmitter:"changeEmitter"},decls:1,vars:1,consts:[[4,"ngIf"],["type","content",3,"page","changeEmitter"],[1,"heading"],["type","hint",3,"page","changeEmitter"],["type","result",3,"page","changeEmitter"]],template:function(e,r){1&e&&T(0,H3,4,3,"div",0),2&e&&C("ngIf",r.show)},dependencies:[Re,L3],styles:[".heading[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem;text-align:center;text-transform:uppercase;letter-spacing:.1rem;line-height:1.2;padding:1rem 0;border-radius:.5rem;width:20%;margin:0 auto;color:var(--text-color)}"]}),t})();function U3(t,n){if(1&t&&(p(0,"p",13),f(1),h()),2&t){const e=D();v(1),ve(e.wrongText)}}let j3=(()=>{class t{constructor(e){this.apiService=e,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1,this.updateChapter=void 0,this.isWrong=!1,this.wrongText="",this.closeEmitter=new le}submit(){var e=this;return Li(function*(){void 0!==e.updateChapter&&(e.updateChapter.Password=e.password,e.updateChapter.Language=e.language,e.updateChapter.Description=e.description,e.updateChapter.IsPrivate=e.isPrivate,e.apiService.updateChapter(e.updateChapter).subscribe({next:r=>{r.status?(e.closeEmitter.emit(),e.name="",e.language="english",e.password="",e.description="",e.updateChapter=void 0,e.isPrivate=!1):(e.isWrong=!0,e.wrongText="error")},error:r=>{e.isWrong=!0,e.wrongText=r.message}}))})()}close(){this.closeEmitter.emit(),this.isWrong=!1,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Te))},t.\u0275cmp=se({type:t,selectors:[["app-edit-chapter-meta-data"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},inputs:{name:"name",language:"language",password:"password",description:"description",isPrivate:"isPrivate",updateChapter:"updateChapter"},outputs:{closeEmitter:"closeEmitter"},decls:21,vars:6,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],[2,"top","60px"],["type","text","name","language","placeholder","Language",1,"userNameInput",2,"top","110px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","130px"],["type","text","name","password","placeholder","Password",1,"userNameInput",2,"top","180px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","200px"],["type","checkbox","name","private",1,"userNameInput",2,"top","250px","cursor","pointer",3,"ngModel","ngModelChange"],[2,"top","270px"],["name","description","placeholder","Description",2,"top","390px","resize","none",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3),h(),T(4,U3,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"p",4),f(8,"Language"),h(),p(9,"input",5),_("ngModelChange",function(i){return r.language=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"p",6),f(11,"Password"),h(),p(12,"input",7),_("ngModelChange",function(i){return r.password=i})("keydown.enter",function(){return r.submit()}),h(),p(13,"p",8),f(14,"Private"),h(),p(15,"input",9),_("ngModelChange",function(i){return r.isPrivate=i}),h(),p(16,"p",10),f(17,"Description"),h(),p(18,"textarea",11),_("ngModelChange",function(i){return r.description=i}),h(),p(19,"button",12),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(20," Save "),h()()),2&e&&(v(3),ve(null==r.updateChapter?"":r.updateChapter.Title),v(1),C("ngIf",r.isWrong),v(5),C("ngModel",r.language),v(3),C("ngModel",r.password),v(3),C("ngModel",r.isPrivate),v(3),C("ngModel",r.description))},dependencies:[Re,At,Ni,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:550px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);color:var(--inverted-text-color);border-radius:5px;width:40%;height:40px;font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;height:150px;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:530px}"]}),t})();function z3(t,n){if(1&t){const e=Z();p(0,"button",15),_("click",function(){return R(e),F(D(2).goBack())}),f(1,"Back"),h()}}function G3(t,n){if(1&t){const e=Z();p(0,"div",16),_("click",function(){return R(e),F(D(2).setTOC(!0))}),K(1,"div",17)(2,"div",17)(3,"div",17),h()}}function W3(t,n){if(1&t){const e=Z();p(0,"input",22),_("ngModelChange",function(o){return R(e),F(D(3).pageInput=o)})("ngModelChange",function(){return R(e),F(D(3).onPageInput())}),h()}if(2&t){const e=D(3);C("ngModel",e.pageInput)("min",1)("max",e.chapter.Pages.length)}}function q3(t,n){if(1&t&&(p(0,"i"),f(1),h()),2&t){const e=D(3);v(1),ve("/ "+e.chapter.Pages.length)}}function Y3(t,n){if(1&t){const e=Z();p(0,"app-edit-page",23),_("changeEmitter",function(){return R(e),F(D(3).onChange())}),h()}if(2&t){const e=n.$implicit,r=n.index,o=D(3);C("page",e)("show",r==o.currentPage)("showhint",!0)("showResult",!0)}}function Z3(t,n){if(1&t){const e=Z();p(0,"button",11),_("click",function(){return R(e),F(D(3).setSureDelete(!0))}),f(1," Remove Page "),h()}}function X3(t,n){if(1&t){const e=Z();p(0,"div")(1,"div",18)(2,"h1"),f(3),h(),p(4,"p")(5,"i"),f(6),h(),T(7,W3,1,3,"input",19),T(8,q3,2,1,"i",6),h()(),T(9,Y3,1,4,"app-edit-page",20),p(10,"app-page-nav-bar",21),_("showNextEmitter",function(){return R(e),F(D(2).showNextPage())})("showPrevEmitter",function(){return R(e),F(D(2).showPrevPage())}),h(),p(11,"div",9),T(12,Z3,2,0,"button",10),p(13,"button",11),_("click",function(){return R(e),F(D(2).addPage())}),f(14,"Add Page"),h()(),p(15,"div",9)(16,"button",11),_("click",function(){return R(e),F(D(2).toggleEditMetaData())}),f(17,"Edit meta data"),h(),p(18,"button",11),_("click",function(){return R(e),F(D(2).toggleAutoSave())}),f(19),h()()()}if(2&t){const e=D(2);v(3),ve(e.chapter.Title+" EDIT"),v(3),ve(e.chapter.Pages.length>0?"Page ":"No Pages"),v(1),C("ngIf",e.chapter.Pages.length>0),v(1),C("ngIf",e.chapter.Pages.length>0),v(1),C("ngForOf",e.chapter.Pages),v(1),C("showPrevButton",0!=e.currentPage)("showNextButton",e.currentPage!=e.chapter.Pages.length-1)("showResultButton",!1)("showhintButton",!1),v(2),C("ngIf",e.chapter.Pages.length>0),v(7),it(" ","Autosave "+(e.getAutoSave()?"ON":"OFF")," ")}}function K3(t,n){1&t&&(p(0,"h1",24),f(1,"PREVIEW"),h())}function Q3(t,n){if(1&t&&K(0,"app-chapter",25),2&t){const e=D(2);C("chapter",e.chapter)("currentPage",e.currentPage)}}function J3(t,n){if(1&t){const e=Z();p(0,"button",11),_("click",function(){return R(e),F(D(2).togglePreview())}),f(1),h()}if(2&t){const e=D(2);v(1),it(" ",e.preview?"Edit":"Preview"," ")}}function eH(t,n){if(1&t){const e=Z();p(0,"app-table-of-content",26),_("event",function(o){return R(e),F(D(2).onTOCInput(o))}),h()}2&t&&C("chapter",D(2).chapter)}function tH(t,n){if(1&t){const e=Z();p(0,"app-edit-chapter-meta-data",27),_("closeEmitter",function(){return R(e),F(D(2).toggleEditMetaData())}),h()}if(2&t){const e=D(2);C("updateChapter",e.chapter)("name",e.chapter.Title)("description",e.chapter.Description)("language",e.chapter.Language)("password",e.chapterPassword)("isPrivate",e.chapter.IsPrivate)}}function nH(t,n){if(1&t){const e=Z();p(0,"app-are-you-sure",28),_("sureEmitter",function(o){return R(e),F(D(2).deletePage(o))}),h()}}function rH(t,n){if(1&t){const e=Z();p(0,"div",2)(1,"div",3),T(2,z3,2,0,"button",4),T(3,G3,4,0,"div",5),h(),T(4,X3,20,11,"div",6),T(5,K3,2,0,"h1",7),T(6,Q3,1,2,"app-chapter",8),p(7,"div",9),T(8,J3,2,1,"button",10),p(9,"button",11),_("click",function(){return R(e),F(D().save())}),f(10),h()(),T(11,eH,1,1,"app-table-of-content",12),T(12,tH,1,6,"app-edit-chapter-meta-data",13),T(13,nH,1,0,"app-are-you-sure",14),h()}if(2&t){const e=D();v(2),C("ngIf",!e.preview),v(1),C("ngIf",!e.preview),v(1),C("ngIf",!e.preview),v(1),C("ngIf",e.preview),v(1),C("ngIf",e.preview),v(2),C("ngIf",e.chapter.Pages.length>0),v(2),ve((e.changes?"*":"")+"Save"),v(1),C("ngIf",e.showTOC),v(1),C("ngIf",e.editMetaData),v(1),C("ngIf",e.sureDelete)}}let oH=(()=>{class t{constructor(e,r,o,i,s){this.apiService=e,this.router=r,this.route=o,this.chapterManager=i,this.localStorageService=s,this.currentPage=0,this.preview=!1,this.changes=!1,this.sureDelete=!1,this.editMetaData=!1,this.contentVisible=!0,this.chapterName="",this.pageInput=1,this.showTOC=!1,this.chapterPassword=""}ngOnInit(){let e=this.route.snapshot.paramMap.get("chapterName");null!=e?(this.chapterName=e,this.chapterManager.init().then(()=>{this.chapter=this.chapterManager.getChapterByName(this.chapterName,!0),2==Q.userLevel||1==Q.userLevel&&this.chapter.Author==Q.userName?this.contentVisible=!0:this.router.navigate(["/login"]);let r=this.localStorageService.getPageForChapter(this.chapterName);r<0&&(r=0),r>this.chapter.Pages.length-1&&(r=this.chapter.Pages.length-1),this.currentPage=r,this.pageInput=this.currentPage+1})):this.router.navigate(["/"])}onPageInput(){this.pageInput<1?this.pageInput=1:this.pageInput>this.chapter.Pages.length?this.pageInput=this.chapter.Pages.length:this.currentPage=this.pageInput-1}setTOC(e){this.showTOC=e}onTOCInput(e){-1!=e?(this.currentPage=e,this.pageInput=this.currentPage+1):this.showTOC=!1}showNextPage(){this.currentPage!=this.chapter.Pages.length-1&&(this.currentPage++,this.pageInput=this.currentPage+1,window.scrollTo({top:0}))}showPrevPage(){0!=this.currentPage&&(this.currentPage--,this.pageInput=this.currentPage+1,window.scrollTo({top:0}))}addPage(){this.chapter.Pages.push(new hV("","","")),this.currentPage=this.chapter.Pages.length-1,this.pageInput=this.currentPage+1,window.scrollTo({top:0}),this.changes=!0}setSureDelete(e){this.sureDelete=e}deletePage(e){e&&(this.chapter.Pages.splice(this.currentPage,1),this.currentPage=this.currentPage-1,this.currentPage<0&&(this.currentPage=0),this.pageInput=this.currentPage+1,window.scrollTo({top:0}),this.changes=!0),this.sureDelete=!1}save(e=!0){this.apiService.updateChapter(this.chapter).subscribe({next:r=>{r.status?(e&&alert("Chapter saved!"),this.changes=!1):alert("Error saving chapter!")},error:r=>{alert("Error saving chapter: "+r.message)}})}onChange(){this.changes=!0}togglePreview(){this.preview=!this.preview,window.scrollTo({top:0})}toggleAutoSave(){t.autoSave=!t.autoSave,this.setAutoSave()}toggleEditMetaData(){this.editMetaData=!this.editMetaData,this.editMetaData&&(console.log(this.chapterName),this.apiService.getChapterPassword(this.chapter.Title,Q.userName,Q.password).subscribe({next:e=>{this.chapterPassword=e.password},error:e=>{alert("Error getting chapter password: "+e.message),this.chapterPassword=this.chapter.Password}}))}getAutoSave(){return t.autoSave}setAutoSave(){t.autoSave?t.interval=setInterval(()=>{this.save(!1)},1e4):clearInterval(t.interval)}goBack(){this.changes&&this.save(!1),clearInterval(t.interval),this.router.navigate(["/"])}}return t.autoSave=!1,t.\u0275fac=function(e){return new(e||t)(w(Te),w(Be),w(lr),w(Oo),w(sn))},t.\u0275cmp=se({type:t,selectors:[["app-edit-chapter"]],hostBindings:function(e,r){1&e&&_("keydown.control.alt.s",function(i){return r.save(i)},0,Ae)("keydown.control.alt.p",function(i){return r.togglePreview(i)},!1,Ae)},inputs:{chapter:"chapter"},decls:2,vars:2,consts:[["class","content",4,"ngIf"],[1,"sticky",3,"chapter","pageChange"],[1,"content"],[1,"header"],["class","backButton",3,"click",4,"ngIf"],["class","tocButton",3,"click",4,"ngIf"],[4,"ngIf"],["class","previewHeading",4,"ngIf"],[3,"chapter","currentPage",4,"ngIf"],[1,"editButtons"],[3,"click",4,"ngIf"],[3,"click"],[3,"chapter","event",4,"ngIf"],[3,"updateChapter","name","description","language","password","isPrivate","closeEmitter",4,"ngIf"],[3,"sureEmitter",4,"ngIf"],[1,"backButton",3,"click"],[1,"tocButton",3,"click"],[1,"bar"],[1,"heading"],["class","pageInput","type","number",3,"ngModel","min","max","ngModelChange",4,"ngIf"],[3,"page","show","showhint","showResult","changeEmitter",4,"ngFor","ngForOf"],[3,"showPrevButton","showNextButton","showResultButton","showhintButton","showNextEmitter","showPrevEmitter"],["type","number",1,"pageInput",3,"ngModel","min","max","ngModelChange"],[3,"page","show","showhint","showResult","changeEmitter"],[1,"previewHeading"],[3,"chapter","currentPage"],[3,"chapter","event"],[3,"updateChapter","name","description","language","password","isPrivate","closeEmitter"],[3,"sureEmitter"]],template:function(e,r){1&e&&(T(0,rH,14,10,"div",0),p(1,"app-header",1),_("pageChange",function(i){return r.onTOCInput(i-1)}),h()),2&e&&(C("ngIf",r.contentVisible),v(1),C("chapter",r.chapter))},dependencies:[En,Re,At,Bc,xt,Hc,Vc,Mt,Tr,qM,ZM,$3,GM,j3,YM],styles:[".heading[_ngcontent-%COMP%]{text-align:center;color:var(--text-color)}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]{background-color:#7a7a7a44;color:var(--text-color);border-radius:10%;border:none;width:30px;font-size:15px;text-align:center;transition:.2s;box-shadow:none;margin:0 0 0 3px}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]:focus{outline:none;width:50px}.heading[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.content[_ngcontent-%COMP%]{margin-top:100px}.editButtons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:20px}.editButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px;cursor:pointer;height:50px;width:300px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.editButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.05)}.header[_ngcontent-%COMP%]{width:100%;margin-top:20px;display:flex}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.header[_ngcontent-%COMP%] .backButton[_ngcontent-%COMP%]{margin-left:20px;margin-right:auto}.tocButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px;cursor:pointer}.tocButton[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:40px;height:4px;background-color:var(--text-color);margin:6px 0;transition:.4s;border-radius:5px}.previewHeading[_ngcontent-%COMP%]{width:100%;text-align:center;color:var(--text-color)}"]}),t})(),iH=(()=>{class t{constructor(e){this.router=e,this.selected="storage",this.selectedChange=new le}setSelected(e){this.selected=e,this.router.navigate(["/settings",e]),this.selectedChange.emit(e)}getUserLevel(){return Q.userLevel}}return t.\u0275fac=function(e){return new(e||t)(w(Be))},t.\u0275cmp=se({type:t,selectors:[["app-settings-header"]],inputs:{selected:"selected"},outputs:{selectedChange:"selectedChange"},decls:9,vars:8,consts:[[1,"header"],[3,"click"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"button",1),_("click",function(){return r.setSelected("storage")}),f(2," Storage "),h(),p(3,"button",1),_("click",function(){return r.setSelected("server")}),f(4," Server "),h(),p(5,"button",1),_("click",function(){return r.setSelected("user")}),f(6," User "),h(),p(7,"button",1),_("click",function(){return r.setSelected("about")}),f(8," About "),h()()),2&e&&(v(1),or("storage"==r.selected?"selected":""),v(2),or("server"==r.selected?"selected":""),v(2),or("user"==r.selected?"selected":""),v(2),or("about"==r.selected?"selected":""))},styles:[".header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center;transition:.3s}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:150px;margin-left:20px;font-size:20px;padding:10px;cursor:pointer;border:none;background:none;color:var(--text-color);border-radius:10px}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);box-shadow:0 0 10px 0 var(--secondary-color)}.header[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{border:2px solid var(--secondary-color);box-shadow:0 0 10px 0 var(--secondary-color)}@media screen and (max-width: 600px){.header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center;transition:.3s}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100px;margin-left:10px;font-size:15px;padding:5px}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:none;box-shadow:0 0 0 0 var(--secondary-color)}}"]}),t})();function sH(t,n){if(1&t&&(p(0,"option",7),f(1),h()),2&t){const e=n.$implicit;C("value",e),v(1),it(" ",e," ")}}let aH=(()=>{class t{constructor(e){this.chaptermanagerService=e,this.chapterEmitter=new le,this.selectedchapter="",this.chapterNames=[]}ngOnInit(){const e=this.chaptermanagerService.allChapters;for(let r of e){if(0==Q.userLevel)return;(r.Author==Q.userName||2==Q.userLevel)&&this.chapterNames.push(r.Title)}}close(){this.chapterEmitter.emit("")}selectTheChapter(){this.chapterEmitter.emit(this.selectedchapter)}}return t.\u0275fac=function(e){return new(e||t)(w(Oo))},t.\u0275cmp=se({type:t,selectors:[["app-select-chapter"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},outputs:{chapterEmitter:"chapterEmitter"},decls:11,vars:2,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"buttonContainer"],["name","SelectChapter",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Select chapter"),h(),p(4,"button",2),_("click",function(){return r.close()}),f(5,"X"),h(),p(6,"div",3)(7,"select",4),_("ngModelChange",function(i){return r.selectedchapter=i}),T(8,sH,2,2,"option",5),h(),p(9,"button",6),_("click",function(){return r.selectTheChapter()}),f(10," Ok "),h()()()),2&e&&(v(7),C("ngModel",r.selectedchapter),v(1),C("ngForOf",r.chapterNames))},dependencies:[En,ua,da,So,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function lH(t,n){if(1&t){const e=Z();p(0,"div",2)(1,"p",3),f(2,"Export chapter"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().showSelectChapter=!0)}),f(4,"Export"),h()()}}function cH(t,n){if(1&t){const e=Z();p(0,"div",2)(1,"p",3),f(2,"Import chapter"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().importChapter())}),f(4,"Import"),h()()}}function uH(t,n){if(1&t){const e=Z();p(0,"app-select-chapter",7),_("chapterEmitter",function(o){return R(e),F(D().exportChapter(o))}),h()}}let dH=(()=>{class t{constructor(e,r,o){this.localStorageService=e,this.chaptermanagerService=r,this.irisinterfaceService=o,this.showSelectChapter=!1}clearStorage(){this.localStorageService.clearAll(),alert("Storage cleared!")}getRememberPage(){return this.localStorageService.rememberPage}toggleRememberPage(){this.localStorageService.setRememberPage(!this.localStorageService.rememberPage)}exportChapter(e){if(this.showSelectChapter=!1,""==e)return;const r=this.chaptermanagerService.getChapterByName(e,!1);console.log(r);const o="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(r)),i=document.createElement("a");i.setAttribute("href",o),i.setAttribute("download",r.Title.replace(/ /g,"-")+".woop"),document.body.appendChild(i),i.click(),i.remove()}importChapter(){const e=document.createElement("input");e.type="file",e.accept=".woop",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsText(o,"UTF-8"),i.onload=s=>{let l=JSON.parse(s.target.result);l.Author=Q.userName,this.irisinterfaceService.importChapter(Q.userName,Q.password,l).subscribe({next:c=>{c.status?(alert("Chapter imported!"),this.chaptermanagerService.chapters.push(l)):alert("Chapter import failed!")},error:c=>{alert("Chapter import failed:"+c.message)}})}},e.click()}getUserLevel(){return Q.userLevel}}return t.\u0275fac=function(e){return new(e||t)(w(sn),w(Oo),w(Te))},t.\u0275cmp=se({type:t,selectors:[["app-storage-settings"]],decls:14,vars:5,consts:[[1,"container"],["class","row",4,"ngIf"],[1,"row"],[1,"label"],[1,"action",3,"click"],[1,"red","action",3,"click"],[3,"chapterEmitter",4,"ngIf"],[3,"chapterEmitter"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,lH,5,0,"div",1),T(2,cH,5,0,"div",1),p(3,"div",2)(4,"p",3),f(5),h(),p(6,"button",4),_("click",function(){return r.toggleRememberPage()}),f(7),h()(),p(8,"div",2)(9,"p",3),f(10,"Clear Local Storage"),h(),p(11,"button",5),_("click",function(){return r.clearStorage()}),f(12,"Clear"),h()()(),T(13,uH,1,0,"app-select-chapter",6)),2&e&&(v(1),C("ngIf",r.getUserLevel()>0),v(1),C("ngIf",r.getUserLevel()>0),v(3),it(" ","Remember Page: "+(r.getRememberPage()?"ON":"OFF")," "),v(2),it(" ",r.getRememberPage()?"Turn OFF":"Turn ON"," "),v(6),C("ngIf",r.showSelectChapter))},dependencies:[Re,aH],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function pH(t,n){if(1&t&&(p(0,"option",12),f(1),h()),2&t){const e=n.$implicit;C("value",e.name),v(1),it(" ",e.name," ")}}function hH(t,n){if(1&t){const e=Z();p(0,"button",13),_("click",function(){return R(e),F(D().removeConnection())}),f(1," Remove "),h()}}let fH=(()=>{class t{constructor(e,r){this.localStorageService=e,this.router=r,this.connection="",this.name="",this.host="",this.port=0,this.host=e.getServerHost(),this.port=e.getServerPort()}connect(){this.localStorageService.setServerHost(this.host),this.localStorageService.setServerPort(this.port),this.router.navigate(["/"])}removeConnection(){this.localStorageService.removeServerConnection(this.connection),this.connection="",this.openConnection()}saveConnection(){""!==this.name?(this.localStorageService.addServerConnection(this.name,this.host,this.port),alert("Connection saved!")):alert("Name is empty!")}openConnection(){if(""===this.connection)return this.name="",this.host=this.localStorageService.getServerHost(),void(this.port=this.localStorageService.getServerPort());const e=this.localStorageService.getConnection(this.connection);e&&(this.name=e.name,this.host=e.host,this.port=e.port)}getConnections(){return this.localStorageService.getAllServerConnections()}isCurrentConnection(){return this.localStorageService.getServerHost()===this.host&&this.localStorageService.getServerPort()===this.port}getCurrentConnection(){return Te.host+":"+Te.port}}return t.\u0275fac=function(e){return new(e||t)(w(sn),w(Be))},t.\u0275cmp=se({type:t,selectors:[["app-server-settings"]],decls:32,vars:9,consts:[[1,"container"],[1,"row"],[1,"label"],["name","Level",2,"width","110px",3,"ngModel","ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","text","placeholder","Name",1,"action",3,"ngModel","ngModelChange"],["type","text","placeholder","Host",1,"action",3,"ngModel","ngModelChange"],["type","text","placeholder","Port",1,"action",3,"ngModel","ngModelChange"],["class","action red",3,"click",4,"ngIf"],[1,"action",3,"click"],[1,"action","green",3,"click"],[3,"value"],[1,"action","red",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"div",1)(2,"p",2),f(3," Current connection: "),p(4,"i"),f(5),h()()(),p(6,"div",1)(7,"p",2),f(8,"Select Connection"),h(),p(9,"select",3),_("ngModelChange",function(i){return r.connection=i})("ngModelChange",function(){return r.openConnection()}),p(10,"option",4),f(11,"NEW"),h(),T(12,pH,2,2,"option",5),h()(),p(13,"div",1)(14,"p",2),f(15,"Connection Name"),h(),p(16,"input",6),_("ngModelChange",function(i){return r.name=i}),h()(),p(17,"div",1)(18,"p",2),f(19,"Host"),h(),p(20,"input",7),_("ngModelChange",function(i){return r.host=i}),h()(),p(21,"div",1)(22,"p",2),f(23,"Port"),h(),p(24,"input",8),_("ngModelChange",function(i){return r.port=i}),h()(),p(25,"div",1),K(26,"p",2),T(27,hH,2,0,"button",9),p(28,"button",10),_("click",function(){return r.saveConnection()}),f(29),h(),p(30,"button",11),_("click",function(){return r.connect()}),f(31),h()()()),2&e&&(v(5),ve(r.getCurrentConnection()),v(4),C("ngModel",r.connection),v(3),C("ngForOf",r.getConnections()),v(4),C("ngModel",r.name),v(4),C("ngModel",r.host),v(4),C("ngModel",r.port),v(3),C("ngIf",""!=r.connection),v(2),it(" ",""===r.connection?"Save":"Update"," "),v(2),it(" ","Connect"+(r.isCurrentConnection()?"":"*")," "))},dependencies:[En,Re,ua,da,At,So,xt,Mt],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function gH(t,n){if(1&t){const e=Z();p(0,"div",2)(1,"p",3),f(2,"Log in"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().logIn())}),f(4,"Log in"),h()()}}function mH(t,n){if(1&t){const e=Z();p(0,"div",2)(1,"p",3),f(2," Username: "),p(3,"i"),f(4),h()(),p(5,"button",4),_("click",function(){return R(e),F(D().logOut())}),f(6,"Log out"),h()()}if(2&t){const e=D();v(4),ve(e.getUsername()+(2==e.getUserLevel()?" Admin":""))}}function _H(t,n){if(1&t){const e=Z();p(0,"div",2)(1,"p",3),f(2,"Change Password"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().changePassword())}),f(4,"Change"),h()()}}function vH(t,n){if(1&t){const e=Z();p(0,"div",2)(1,"p",3),f(2,"New User"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().addUser())}),f(4,"Add"),h()()}}function CH(t,n){if(1&t){const e=Z();p(0,"div",2)(1,"p",3),f(2,"Configure Admin Rights"),h(),p(3,"button",4),_("click",function(){return R(e),F(D().makeUserAdmin())}),f(4,"Configure"),h()()}}function yH(t,n){if(1&t){const e=Z();p(0,"div",2)(1,"p",3),f(2,"Delete User"),h(),p(3,"button",5),_("click",function(){return R(e),F(D().deleteUser())}),f(4,"Delete"),h()()}}let wH=(()=>{class t{constructor(e,r){this.router=e,this.localStorageService=r}changePassword(){this.router.navigate(["user/change/password"])}addUser(){this.router.navigate(["user/add"])}deleteUser(){this.router.navigate(["user/delete"])}makeUserAdmin(){this.router.navigate(["user/make/admin"])}logIn(){this.router.navigate(["login"])}logOut(){Q.userLevel=0,Q.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}getUserLevel(){return Q.userLevel}getUsername(){return Q.userName}}return t.\u0275fac=function(e){return new(e||t)(w(Be),w(sn))},t.\u0275cmp=se({type:t,selectors:[["app-user-settings"]],decls:7,vars:6,consts:[[1,"container"],["class","row",4,"ngIf"],[1,"row"],[1,"label"],[1,"action",3,"click"],[1,"action","red",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),T(1,gH,5,0,"div",1),T(2,mH,7,1,"div",1),T(3,_H,5,0,"div",1),T(4,vH,5,0,"div",1),T(5,CH,5,0,"div",1),T(6,yH,5,0,"div",1),h()),2&e&&(v(1),C("ngIf",0==r.getUserLevel()),v(1),C("ngIf",r.getUserLevel()>0),v(1),C("ngIf",r.getUserLevel()>0),v(1),C("ngIf",2==r.getUserLevel()),v(1),C("ngIf",2==r.getUserLevel()),v(1),C("ngIf",2==r.getUserLevel()))},dependencies:[Re],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})(),bH=(()=>{class t{constructor(e,r){this.router=e,this.metaDataService=r}getHelp(){this.router.navigate(["help"])}whatsNew(){this.router.navigate(["info"])}getVersion(){return this.metaDataService.version}goToImpressum(){this.router.navigate(["impressum"])}}return t.\u0275fac=function(e){return new(e||t)(w(Be),w(hf))},t.\u0275cmp=se({type:t,selectors:[["app-about-settings"]],decls:28,vars:1,consts:[[1,"container"],[1,"row"],[1,"label"],[1,"action",3,"click"],["href","mailto:Philipp.Bonin@intersystems.com?subject=WOOP%20Issue",1,"actionA"],["href","https://github.com/phil1436/InterSystemsWOOP","target","_blank",1,"actionA"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"div",1)(2,"p",2),f(3," Version: "),p(4,"i"),f(5),h()(),p(6,"button",3),_("click",function(){return r.whatsNew()}),f(7,"Info"),h()(),p(8,"div",1)(9,"p",2),f(10,"Need Help?"),h(),p(11,"button",3),_("click",function(){return r.getHelp()}),f(12,"Get Help"),h()(),p(13,"div",1)(14,"p",2),f(15,"Report an Issue"),h(),p(16,"a",4),f(17," Report "),h()(),p(18,"div",1)(19,"p",2),f(20,"Impressum"),h(),p(21,"button",3),_("click",function(){return r.goToImpressum()}),f(22,"View"),h()(),p(23,"div",1)(24,"p",2),f(25,"View on GitHub"),h(),p(26,"a",5),f(27," View "),h()()()),2&e&&(v(5),ve(r.getVersion()))},styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function MH(t,n){1&t&&K(0,"app-storage-settings")}function DH(t,n){1&t&&K(0,"app-server-settings")}function EH(t,n){1&t&&K(0,"app-user-settings")}function xH(t,n){1&t&&K(0,"app-about-settings")}function SH(t,n){if(1&t&&(p(0,"div",5),T(1,MH,1,0,"app-storage-settings",6),T(2,DH,1,0,"app-server-settings",6),T(3,EH,1,0,"app-user-settings",6),T(4,xH,1,0,"app-about-settings",6),h()),2&t){const e=D();v(1),C("ngIf","storage"==e.selected.toLowerCase()),v(1),C("ngIf","server"==e.selected.toLowerCase()),v(1),C("ngIf","user"==e.selected.toLowerCase()),v(1),C("ngIf","about"==e.selected.toLowerCase())}}let XM=(()=>{class t{constructor(e,r){this.router=e,this.route=r,this.selected=""}ngOnInit(){let e=this.route.snapshot.paramMap.get("settingsName");this.selected=null!=e?e:""}setSelected(e){this.selected=e}goBack(){this.router.navigate(["/"])}getUserLevel(){return Q.userLevel}}return t.\u0275fac=function(e){return new(e||t)(w(Be),w(lr))},t.\u0275cmp=se({type:t,selectors:[["app-settings-advanced"]],decls:6,vars:3,consts:[[1,"sticky",3,"enableSearchBar"],[1,"settingsHeader"],[1,"backButton",3,"click"],[3,"selected","selectedChange"],["class","settings",4,"ngIf"],[1,"settings"],[4,"ngIf"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"div",1)(2,"button",2),_("click",function(){return r.goBack()}),f(3,"Back"),h(),p(4,"app-settings-header",3),_("selectedChange",function(i){return r.setSelected(i)}),h()(),T(5,SH,5,4,"div",4)),2&e&&(C("enableSearchBar",!1),v(4),C("selected",r.selected),v(1),C("ngIf",""!=r.selected))},dependencies:[Re,Tr,iH,dH,fH,wH,bH],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.settingsHeader[_ngcontent-%COMP%]{margin-top:100px}.settings[_ngcontent-%COMP%]{width:90%;margin:30px auto 20px;padding:20px;border-radius:10px;box-shadow:0 0 10px #0003}.backButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}@media screen and (max-width: 800px){.backButton[_ngcontent-%COMP%]{display:none}}"]}),t})(),PH=(()=>{class t{constructor(e){this.router=e}goToServerSettings(){this.router.navigate(["/settings/server"])}}return t.\u0275fac=function(e){return new(e||t)(w(Be))},t.\u0275cmp=se({type:t,selectors:[["app-error-page"]],decls:9,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"container"],["src","https://media.makeameme.org/created/what-has-happened.jpg"],[3,"click"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"div",1)(2,"h1"),f(3,"(W)OOPs..."),h(),K(4,"img",2),p(5,"p"),f(6,"Looks like the server could not be reached!"),h(),p(7,"button",3),_("click",function(){return r.goToServerSettings()}),f(8,"Go to Server Settings"),h()()),2&e&&C("enableSearchBar",!1)},dependencies:[Tr],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;color:var(--text-color);margin-top:50px;margin-bottom:50px}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:4rem;font-weight:700;margin-bottom:20px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:20px;padding:10px 20px;border-radius:10px;border:none;background-color:var(--primary-color);color:var(--inverted-text-color);cursor:pointer;transition:all .3s ease-in-out;font-size:20px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1.1}"]}),t})(),OH=(()=>{class t{constructor(e){this.router=e}goBack(){this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(Be))},t.\u0275cmp=se({type:t,selectors:[["app-markdown-cheat-sheet"]],decls:148,vars:2,consts:[[1,"sticky",3,"enableSearchBar"],[1,"container"],[1,"backButton",3,"click"],["id","basic-syntax"],["href","https://www.markdownguide.org/basic-syntax/#headings","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#bold","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#italic","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#blockquotes-1","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#ordered-lists","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#unordered-lists","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#code","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#horizontal-rules","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#links","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#images-1","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#tables","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#fenced-code-blocks","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#strikethrough","target","_blank"],["href","https://www.markdownguide.org/assets/markdown-cheat-sheet.md","target","_blank","download","markdown-cheat-sheet.md"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"div",1)(2,"button",2),_("click",function(){return r.goBack()}),f(3,"Back"),h(),p(4,"h1",3),f(5,"Markdown Syntax"),h(),p(6,"table")(7,"tr")(8,"th"),f(9,"Element"),h(),p(10,"th"),f(11,"Markdown Syntax"),h()(),p(12,"tr")(13,"td")(14,"a",4),f(15," Heading "),h()(),p(16,"td")(17,"code"),f(18,"# H1"),K(19,"br"),f(20," ## H2"),K(21,"br"),f(22," ### H3 "),h()()(),p(23,"tr")(24,"td")(25,"a",5),f(26," Bold "),h()(),p(27,"td")(28,"code"),f(29,"**bold text**"),h()()(),p(30,"tr")(31,"td")(32,"a",6),f(33," Italic "),h()(),p(34,"td")(35,"code"),f(36,"*italicized text*"),h()()(),p(37,"tr")(38,"td")(39,"a",7),f(40," Blockquote "),h()(),p(41,"td")(42,"code"),f(43,"> blockquote"),h()()(),p(44,"tr")(45,"td")(46,"a",8),f(47,"Ordered List"),h()(),p(48,"td")(49,"code"),f(50," 1. First item"),K(51,"br"),f(52," 2. Second item"),K(53,"br"),f(54," 3. Third item"),K(55,"br"),h()()(),p(56,"tr")(57,"td")(58,"a",9),f(59,"Unordered List"),h()(),p(60,"td")(61,"code"),f(62," - First item"),K(63,"br"),f(64," - Second item"),K(65,"br"),f(66," - Third item"),K(67,"br"),h()()(),p(68,"tr")(69,"td")(70,"a",10),f(71,"Code"),h()(),p(72,"td")(73,"code"),f(74,"`code`"),h()()(),p(75,"tr")(76,"td")(77,"a",11),f(78,"Horizontal Rule"),h()(),p(79,"td")(80,"code"),f(81,"---"),h()()(),p(82,"tr")(83,"td")(84,"a",12),f(85,"Link"),h()(),p(86,"td")(87,"code"),f(88,"[title](https://www.example.com)"),h()()(),p(89,"tr")(90,"td")(91,"a",13),f(92,"Image"),h()(),p(93,"td")(94,"code"),f(95,"![alt text](image.jpg)"),h()()(),p(96,"tr")(97,"td"),f(98,"Image with CSS"),h(),p(99,"td")(100,"code"),f(101),h()()(),p(102,"tr")(103,"td")(104,"a",14),f(105,"Table"),h()(),p(106,"td")(107,"code"),f(108," | Syntax | Description |"),K(109,"br"),f(110," | ----------- | ----------- |"),K(111,"br"),f(112," | Header | Title |"),K(113,"br"),f(114," | Paragraph | Text | "),h()()(),p(115,"tr")(116,"td")(117,"a",15),f(118,"Fenced Code Block"),h()(),p(119,"td")(120,"code"),f(121," ```language"),K(122,"br"),f(123,' this = codeblock["fenced"]'),K(124,"br"),f(125," ``` "),h()()(),p(126,"tr")(127,"td"),f(128,"Code Window"),h(),p(129,"td")(130,"code"),f(131," ~~~language"),K(132,"br"),f(133,' this = codeblock["fenced"]'),K(134,"br"),f(135," ~~~ "),h()()(),p(136,"tr")(137,"td")(138,"a",16),f(139,"Strikethrough"),h()(),p(140,"td")(141,"code"),f(142,"~~The world is flat.~~"),h()()()(),p(143,"p"),f(144," You can "),p(145,"a",17),f(146,"download this cheat sheet as a Markdown file"),h(),f(147," for use in your Markdown application. "),h()()),2&e&&(C("enableSearchBar",!1),v(101),ve("![alt text](image.jpg){width: 100px; height:100px}"))},dependencies:[Tr],styles:[".container[_ngcontent-%COMP%]{padding-top:100px;padding-left:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color);text-decoration:none}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:90%;border:1px solid var(--text-color);box-shadow:0 0 20px #00000026}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;padding:16px}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:var(--header-color)}.backButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})();function IH(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();v(1),ve(e.wrongMessage)}}let TH=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){return this.enteredPassword!==this.enteredConfirmPassword?(this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.entereduserName.length<1?(this.wrongMessage="Username cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.enteredPassword.length<1?(this.wrongMessage="Password cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):void this.apiService.addUser(Q.userName,Q.password,this.entereduserName,this.enteredPassword).subscribe({next:e=>{e.status?(alert("User added successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Te),w(qr))},t.\u0275cmp=se({type:t,selectors:[["app-add-user"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","text","name","password","placeholder","Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","text","name","confirmPassword","placeholder","Confirm Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Add User"),h(),T(4,IH,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),_("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Submit "),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("ngModel",r.entereduserName),v(1),C("ngModel",r.enteredPassword),v(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Re,At,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function kH(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();v(1),ve(e.wrongMessage)}}let AH=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.oldPassword="",this.isWrong=!1,this.wrongMessage=""}submit(){return this.enteredPassword!==this.enteredConfirmPassword?(this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.enteredPassword.length<1?(this.wrongMessage="Password cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):void this.apiService.changePassword(Q.userName,this.oldPassword,this.enteredPassword).subscribe({next:e=>{e.status?(alert("Password changed successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.oldPassword="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Te),w(qr))},t.\u0275cmp=se({type:t,selectors:[["app-change-password"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","password","name","oldPassword","placeholder","Old Password",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","New Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm New Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Change Password"),h(),T(4,kH,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.oldPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),_("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Submit "),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("ngModel",r.oldPassword),v(1),C("ngModel",r.enteredPassword),v(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Re,At,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function NH(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();v(1),ve(e.wrongMessage)}}let RH=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){if(this.enteredPassword!==this.enteredConfirmPassword)return this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="");this.apiService.deleteUser(Q.userName,this.enteredPassword,this.entereduserName).subscribe({next:e=>{e.status?(alert("User deleted successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Te),w(qr))},t.\u0275cmp=se({type:t,selectors:[["app-delete-user"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username to delete",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","Your Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm Your Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Delete User"),h(),T(4,NH,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),_("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Delete "),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("ngModel",r.entereduserName),v(1),C("ngModel",r.enteredPassword),v(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Re,At,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:red;border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})(),FH=(()=>{class t{goBack(){window.history.back()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["app-get-help"]],decls:188,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"],["href","","target","_blank"],[2,"font-size","10px"],["href","https://github.com/phil1436","target","_blank"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"button",1),_("click",function(){return r.goBack()}),f(2,"Back"),h(),p(3,"div",2)(4,"h1"),f(5,"InterSystems Workshop Organizer and Optimizer Program "),p(6,"i"),f(7,"HELP"),h()(),p(8,"p"),f(9," This program is designed to help you organize and optimize your InterSystems workshop. It will help you to determine the best order to present the material. "),h(),p(10,"h2"),f(11,"Connect to an instance"),h(),p(12,"p"),f(13," Click on the "),p(14,"b"),f(15,"Settings Icon"),h(),f(16," in the top right corner of the screen. Select "),p(17,"i"),f(18,"Advanced"),h(),f(19," and go to the "),p(20,"i"),f(21,"Server"),h(),f(22," tab. Type in the host adress and port number of the instance you want to connect to and click "),p(23,"b"),f(24,"Connect"),h(),f(25,". You can store the connection information by giving the connection a name and click on "),p(26,"b"),f(27,"Save"),h(),f(28,".You can then select the connection from the "),p(29,"i"),f(30,"Connection"),h(),f(31," dropdown menu. "),h(),p(32,"h2"),f(33,"Navigation"),h(),p(34,"ul")(35,"li"),f(36," You can always click on the logo in the top left corner to go back to the home screen. "),h(),p(37,"li"),f(38," You can click on "),p(39,"i"),f(40,"Log in"),h(),f(41," in the top right corner to log in to account or when you are already logged in, you can click on your name to log out of your account. "),h(),p(42,"li"),f(43," You can click on the "),p(44,"b"),f(45,"Settings Icon"),h(),f(46," in the top right corner of the screen to open the shortcut settings. From there you can select "),p(47,"i"),f(48,"Advanced"),h(),f(49," to open the advanced settings. "),h()(),p(50,"h2"),f(51,"Create a new Chapter"),h(),p(52,"p")(53,"i"),f(54," You have to be logged in to create a new chapter! "),h()(),p(55,"ol")(56,"li"),f(57,"Go to the home screen."),h(),p(58,"li"),f(59,"Click on the "),p(60,"b"),f(61,"+"),h(),f(62," icon."),h(),p(63,"li"),f(64," Fill in the following information: "),p(65,"ul")(66,"li")(67,"b"),f(68,"Name"),h(),f(69," - The name of the chapter. This will be displayed in the chapter list. "),h(),p(70,"li")(71,"b"),f(72,"Language"),h(),f(73," - The language of the chapter."),h(),p(74,"li")(75,"b"),f(76,"Password"),h(),f(77," - You can set a password for the chapter. If you leave this field empty, the chapter will be public. "),h(),p(78,"li")(79,"b"),f(80,"Private"),h(),f(81," - If enabeled the chapter will be private and only accessible by you and the admins. "),h(),p(82,"li")(83,"b"),f(84,"Description"),h(),f(85," - Add a description to the chapter. This will be displayed in the chapter list. "),h()()(),p(86,"li"),f(87,"Click on "),p(88,"b"),f(89,"Create"),h(),f(90," to save the chapter."),h()(),p(91,"h2"),f(92,"Edit a chapter"),h(),p(93,"p")(94,"i"),f(95," You have to be logged in to edit a chapter! "),h()(),p(96,"p"),f(97," You can edit a chapter by clicking on the "),p(98,"b"),f(99,"Edit"),h(),f(100," icon in the chapter list. Write the content of your chapters in markdown. You can find a markdown cheat sheet by clicking on the "),p(101,"b"),f(102,"Help"),h(),f(103," button in the editor. "),h(),p(104,"p"),f(105," You can add a hint and a result on each page of your chapter. If you leave the hint or result empty, they will not be displayed. "),h(),p(106,"p"),f(107," You can add and remove a page by clicking on "),p(108,"b"),f(109,"Add Page"),h(),f(110," and "),p(111,"b"),f(112,"Remove Page"),h(),f(113,". To show a Preview of your chapter, click on "),p(114,"b"),f(115,"Preview"),h(),f(116,". To save your changes, click on "),p(117,"b"),f(118,"Save"),h(),f(119,". You can see if there are unsaved changes by looking at the "),p(120,"b"),f(121,"Save"),h(),f(122," button. If there "),p(123,"b"),f(124,"*Save"),h(),f(125," is displayed, there are unsaved changes. You can turn on autosave by clicking on "),p(126,"b"),f(127,"Autosave"),h(),f(128,". If autosave is turned on, your changes will be saved every 10 seconds. You can edit the metadata of your chapter by clicking on "),p(129,"b"),f(130,"Edit meta data"),h(),f(131,". "),h(),p(132,"h2"),f(133,"Create your own instance"),h(),p(134,"p"),f(135," Before you can create your own instance, you need to have a InterSystems IRIS Dataplatform instance running. "),h(),p(136,"ol")(137,"li"),f(138," Download the "),p(139,"a",3),f(140,"InterSystems Workshop Organizer and Optimizer Program"),h(),f(141," from Github. "),h(),p(142,"li"),f(143," In the Management Portal, go to "),p(144,"i"),f(145,"System Explorer"),h(),f(146," and select "),p(147,"i"),f(148,"Classes"),h(),f(149,". Click on "),p(150,"b"),f(151,"Import"),h(),f(152," and select the "),p(153,"i"),f(154,"cls"),h(),f(155," folder from the downloaded program. "),h(),p(156,"li"),f(157," Open an InterSystems IRIS terminal and go to the namespace where you just imported the classes. "),h(),p(158,"li"),f(159," Run the following command: "),p(160,"code"),f(161,"Do ##class(WOOP.Installer).SetUp()"),h()(),p(162,"li"),f(163,"Follow the instructions on the screen."),h(),p(164,"li"),f(165," After successful installation, you can access connect to the instance by clicking on the "),p(166,"b"),f(167,"Settings Icon"),h(),f(168," in the top right corner of the screen. Select "),p(169,"i"),f(170,"Advanced"),h(),f(171," and go to the "),p(172,"i"),f(173,"Server"),h(),f(174," tab. Type in the host adress and port number of the instance you want to connect to and click "),p(175,"b"),f(176,"Connect"),h(),f(177,". "),h()(),p(178,"div",4),K(179,"br")(180,"br"),p(181,"p"),f(182," by "),p(183,"a",5),f(184," Philipp B. "),h()(),p(185,"p")(186,"i"),f(187," This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility. "),h()()()()),2&e&&C("enableSearchBar",!1)},dependencies:[Tr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})();function LH(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();v(1),ve(e.wrongMessage)}}function VH(t,n){if(1&t&&(p(0,"p"),f(1),h()),2&t){const e=n.$implicit;v(1),ve("- "+e)}}const HH=[{path:"",component:qV},{path:"login",component:jM},{path:"user/add",component:TH},{path:"user/delete",component:RH},{path:"user/make/admin",component:(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){if(this.enteredPassword!==this.enteredConfirmPassword)return this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="");this.apiService.makeUserAdmin(Q.userName,this.enteredPassword,this.entereduserName).subscribe({next:e=>{e.status?(alert("User made admin successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Te),w(qr))},t.\u0275cmp=se({type:t,selectors:[["app-make-admin"]],hostBindings:function(e,r){1&e&&_("keydown.escape",function(i){return r.close(i)},0,Ae)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username to make admin",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","Your Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm Your Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),_("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Make User Admin"),h(),T(4,LH,2,1,"p",2),p(5,"button",3),_("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),_("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),_("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),_("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),_("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Make Admin "),h()()),2&e&&(v(4),C("ngIf",r.isWrong),v(3),C("ngModel",r.entereduserName),v(1),C("ngModel",r.enteredPassword),v(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Re,At,xt,Mt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:red;border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})()},{path:"user/change/password",component:AH},{path:"login",component:jM},{path:"error",component:PH},{path:"chapter/:chapterName",component:ZM},{path:"chapter/:chapterName/edit",component:oH},{path:"settings",component:XM},{path:"settings/:settingsName",component:XM},{path:"markdown",component:OH},{path:"help",component:FH},{path:"info",component:(()=>{class t{constructor(e){this.metaDataService=e}goBack(){window.history.back()}getVersion(){return this.metaDataService.version}getRealeseDate(){return this.metaDataService.date}getReleaseNotes(){return this.metaDataService.notes}}return t.\u0275fac=function(e){return new(e||t)(w(hf))},t.\u0275cmp=se({type:t,selectors:[["app-whats-new"]],decls:31,vars:4,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"],[4,"ngFor","ngForOf"],[2,"font-size","10px"],["href","https://github.com/phil1436","target","_blank"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"button",1),_("click",function(){return r.goBack()}),f(2,"Back"),h(),p(3,"div",2)(4,"h1"),f(5," InterSystems Workshop Organizer and Optimizer Program "),p(6,"i"),f(7,"INFO"),h()(),p(8,"h2"),f(9,"Current version"),h(),p(10,"p"),f(11," Version: "),p(12,"i"),f(13),h()(),p(14,"p"),f(15," Release date: "),p(16,"i"),f(17),h()(),p(18,"h2"),f(19,"Release notes"),h(),T(20,VH,2,1,"p",3),p(21,"div",4),K(22,"br")(23,"br"),p(24,"p"),f(25," by "),p(26,"a",5),f(27," Philipp B. "),h()(),p(28,"p")(29,"i"),f(30," This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility. "),h()()()()),2&e&&(C("enableSearchBar",!1),v(13),ve(r.getVersion()),v(4),ve(r.getRealeseDate()),v(3),C("ngForOf",r.getReleaseNotes()))},dependencies:[En,Tr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})()},{path:"impressum",component:(()=>{class t{goBack(){window.history.back()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=se({type:t,selectors:[["app-impressum"]],decls:20,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"button",1),_("click",function(){return r.goBack()}),f(2,"Back"),h(),p(3,"div",2)(4,"h1"),f(5," InterSystems Workshop Organizer and Optimizer Program "),p(6,"i"),f(7,"Impressum"),h()(),p(8,"h2"),f(9,"License"),h(),p(10,"p"),f(11,"MIT License"),h(),p(12,"p"),f(13,"Copyright (c) 2023 Philipp B."),h(),p(14,"p"),f(15,' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: '),h(),p(16,"p"),f(17," The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. "),h(),p(18,"p"),f(19,' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. '),h()()),2&e&&C("enableSearchBar",!1)},dependencies:[Tr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})()},{path:"connect/:host/:port",component:(()=>{class t{constructor(e,r,o){this.router=e,this.route=r,this.localStorageService=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("host");if(null==e)return void this.router.navigate(["/"]);let r=this.route.snapshot.paramMap.get("port");if(null==r||isNaN(Number(r)))return void this.router.navigate(["/"]);let o=Number(r);this.localStorageService.setServerHost(e),this.localStorageService.setServerPort(o),Te.host=e,Te.port=o,this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(Be),w(lr),w(sn))},t.\u0275cmp=se({type:t,selectors:[["app-connect-via-url"]],decls:2,vars:0,template:function(e,r){1&e&&(p(0,"p"),f(1,"Connecting via url..."),h())}}),t})()}];let $H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({imports:[Kl,ub.forRoot(HH),ub]}),t})();N(852),N(568),N(428),N(984),N(544),N(668),N(841),N(890);let UH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pn({type:t}),t.\u0275inj=Zt({imports:[Kl]}),t})(),jH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pn({type:t,bootstrap:[ZL]}),t.\u0275inj=Zt({providers:[{provide:Wr,useClass:dw}],imports:[fR,K2,gB.forRoot(),pV,$H,UH]}),t})();pR().bootstrapModule(jH).catch(t=>console.error(t))},890:()=>{!function(Se){var St="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",N={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},G={bash:N,environment:{pattern:RegExp("\\$"+St),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+St),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Se.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+St),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:G},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:N}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:G},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:G.entity}}],environment:{pattern:RegExp("\\$?"+St),alias:"constant"},variable:G.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},N.inside=Se.languages.bash;for(var We=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Dt=G.variable[1].inside,ct=0;ct{var Se,St,N,G;Se=Prism,St=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,N=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,G={pattern:RegExp(/(^|[^\w.])/.source+N+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},Se.languages.java=Se.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[G,{pattern:RegExp(/(^|[^\w.])/.source+N+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:G.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+N+/[A-Z]\w*\b/.source),lookbehind:!0,inside:G.inside}],keyword:St,function:[Se.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),Se.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),Se.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":G,keyword:St,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+N+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:G.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+N+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:G.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return St.source})),lookbehind:!0,inside:{punctuation:/\./}}})},852:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},984:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},568:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},544:()=>{Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss},841:()=>{Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},668:()=>{!function(Se){Se.languages.typescript=Se.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Se.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Se.languages.typescript.parameter,delete Se.languages.typescript["literal-property"];var St=Se.languages.extend("typescript",{});delete St["class-name"],Se.languages.typescript["class-name"].inside=St,Se.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:St}}}}),Se.languages.ts=Se.languages.typescript}(Prism)},83:Se=>{var N=function(G){var We=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Dt=0,ct={},U={manual:G.Prism&&G.Prism.manual,disableWorkerMessageHandler:G.Prism&&G.Prism.disableWorkerMessageHandler,util:{encode:function P(S){return S instanceof Pt?new Pt(S.type,P(S.content),S.alias):Array.isArray(S)?S.map(P):S.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(B){var P=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(B.stack)||[])[1];if(P){var S=document.getElementsByTagName("script");for(var A in S)if(S[A].src==P)return S[A]}return null}},isActive:function(P,S,A){for(var B="no-"+S;P;){var L=P.classList;if(L.contains(S))return!0;if(L.contains(B))return!1;P=P.parentElement}return!!A}},languages:{plain:ct,plaintext:ct,text:ct,txt:ct,extend:function(P,S){var A=U.util.clone(U.languages[P]);for(var B in S)A[B]=S[B];return A},insertBefore:function(P,S,A,B){var L=(B=B||U.languages)[P],J={};for(var Ce in L)if(L.hasOwnProperty(Ce)){if(Ce==S)for(var X in A)A.hasOwnProperty(X)&&(J[X]=A[X]);A.hasOwnProperty(Ce)||(J[Ce]=L[Ce])}var Le=B[P];return B[P]=J,U.languages.DFS(U.languages,function(ot,Un){Un===Le&&ot!=P&&(this[ot]=J)}),J},DFS:function P(S,A,B,L){L=L||{};var J=U.util.objId;for(var Ce in S)if(S.hasOwnProperty(Ce)){A.call(S,Ce,S[Ce],B||Ce);var X=S[Ce],Le=U.util.type(X);"Object"!==Le||L[J(X)]?"Array"===Le&&!L[J(X)]&&(L[J(X)]=!0,P(X,A,Ce,L)):(L[J(X)]=!0,P(X,A,null,L))}}},plugins:{},highlightAll:function(P,S){U.highlightAllUnder(document,P,S)},highlightAllUnder:function(P,S,A){var B={callback:A,container:P,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};U.hooks.run("before-highlightall",B),B.elements=Array.prototype.slice.apply(B.container.querySelectorAll(B.selector)),U.hooks.run("before-all-elements-highlight",B);for(var J,L=0;J=B.elements[L++];)U.highlightElement(J,!0===S,B.callback)},highlightElement:function(P,S,A){var B=U.util.getLanguage(P),L=U.languages[B];U.util.setLanguage(P,B);var J=P.parentElement;J&&"pre"===J.nodeName.toLowerCase()&&U.util.setLanguage(J,B);var X={element:P,language:B,grammar:L,code:P.textContent};function Le(Un){X.highlightedCode=Un,U.hooks.run("before-insert",X),X.element.innerHTML=X.highlightedCode,U.hooks.run("after-highlight",X),U.hooks.run("complete",X),A&&A.call(X.element)}if(U.hooks.run("before-sanity-check",X),(J=X.element.parentElement)&&"pre"===J.nodeName.toLowerCase()&&!J.hasAttribute("tabindex")&&J.setAttribute("tabindex","0"),!X.code)return U.hooks.run("complete",X),void(A&&A.call(X.element));if(U.hooks.run("before-highlight",X),X.grammar)if(S&&G.Worker){var ot=new Worker(U.filename);ot.onmessage=function(Un){Le(Un.data)},ot.postMessage(JSON.stringify({language:X.language,code:X.code,immediateClose:!0}))}else Le(U.highlight(X.code,X.grammar,X.language));else Le(U.util.encode(X.code))},highlight:function(P,S,A){var B={code:P,grammar:S,language:A};if(U.hooks.run("before-tokenize",B),!B.grammar)throw new Error('The language "'+B.language+'" has no grammar.');return B.tokens=U.tokenize(B.code,B.grammar),U.hooks.run("after-tokenize",B),Pt.stringify(U.util.encode(B.tokens),B.language)},tokenize:function(P,S){var A=S.rest;if(A){for(var B in A)S[B]=A[B];delete S.rest}var L=new an;return Sn(L,L.head,P),oo(P,L,S,L.head,0),function Ar(P){for(var S=[],A=P.head.next;A!==P.tail;)S.push(A.value),A=A.next;return S}(L)},hooks:{all:{},add:function(P,S){var A=U.hooks.all;A[P]=A[P]||[],A[P].push(S)},run:function(P,S){var A=U.hooks.all[P];if(A&&A.length)for(var L,B=0;L=A[B++];)L(S)}},Token:Pt};function Pt(P,S,A,B){this.type=P,this.content=S,this.alias=A,this.length=0|(B||"").length}function kr(P,S,A,B){P.lastIndex=S;var L=P.exec(A);if(L&&B&&L[1]){var J=L[1].length;L.index+=J,L[0]=L[0].slice(J)}return L}function oo(P,S,A,B,L,J){for(var Ce in A)if(A.hasOwnProperty(Ce)&&A[Ce]){var X=A[Ce];X=Array.isArray(X)?X:[X];for(var Le=0;Le=J.reach);Ee+=mt.value.length,mt=mt.next){var pr=mt.value;if(S.length>P.length)return;if(!(pr instanceof Pt)){var ln,ko=1;if(ha){if(!(ln=kr(fa,Ee,P,To))||ln.index>=P.length)break;var io=ln.index,Uc=ln.index+ln[0].length,tt=Ee;for(tt+=mt.value.length;io>=tt;)tt+=(mt=mt.next).value.length;if(Ee=tt-=mt.value.length,mt.value instanceof Pt)continue;for(var Nr=mt;Nr!==S.tail&&(ttJ.reach&&(J.reach=ye);var Rr=mt.prev;if(Xe&&(Rr=Sn(S,Rr,Xe),Ee+=Xe.length),Io(S,Rr,ko),mt=Sn(S,Rr,new Pt(Ce,Un?U.tokenize(Ze,Un):Ze,Vi,Ze)),ga&&Sn(S,mt,ga),ko>1){var so={cause:Ce+","+Le,reach:ye};oo(P,S,A,mt.prev,Ee,so),J&&so.reach>J.reach&&(J.reach=so.reach)}}}}}}function an(){var P={value:null,prev:null,next:null},S={value:null,prev:P,next:null};P.next=S,this.head=P,this.tail=S,this.length=0}function Sn(P,S,A){var B=S.next,L={value:A,prev:S,next:B};return S.next=L,B.prev=L,P.length++,L}function Io(P,S,A){for(var B=S.next,L=0;L"+L.content+""},!G.document)return G.addEventListener&&(U.disableWorkerMessageHandler||G.addEventListener("message",function(P){var S=JSON.parse(P.data),A=S.language,L=S.immediateClose;G.postMessage(U.highlight(S.code,U.languages[A],A)),L&&G.close()},!1)),U;var ut=U.util.currentScript();function Ve(){U.manual||U.highlightAll()}if(ut&&(U.filename=ut.src,ut.hasAttribute("data-manual")&&(U.manual=!0)),!U.manual){var dt=document.readyState;"loading"===dt||"interactive"===dt&&ut&&ut.defer?document.addEventListener("DOMContentLoaded",Ve):window.requestAnimationFrame?window.requestAnimationFrame(Ve):window.setTimeout(Ve,16)}return U}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});Se.exports&&(Se.exports=N),typeof global<"u"&&(global.Prism=N),N.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},N.languages.markup.tag.inside["attr-value"].inside.entity=N.languages.markup.entity,N.languages.markup.doctype.inside["internal-subset"].inside=N.languages.markup,N.hooks.add("wrap",function(G){"entity"===G.type&&(G.attributes.title=G.content.replace(/&/,"&"))}),Object.defineProperty(N.languages.markup.tag,"addInlined",{value:function(We,Dt){var ct={};ct["language-"+Dt]={pattern:/(^$)/i,lookbehind:!0,inside:N.languages[Dt]},ct.cdata=/^$/i;var U={"included-cdata":{pattern://i,inside:ct}};U["language-"+Dt]={pattern:/[\s\S]+/,inside:N.languages[Dt]};var Pt={};Pt[We]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return We}),"i"),lookbehind:!0,greedy:!0,inside:U},N.languages.insertBefore("markup","cdata",Pt)}}),Object.defineProperty(N.languages.markup.tag,"addAttribute",{value:function(G,We){N.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+G+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[We,"language-"+We],inside:N.languages[We]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),N.languages.html=N.languages.markup,N.languages.mathml=N.languages.markup,N.languages.svg=N.languages.markup,N.languages.xml=N.languages.extend("markup",{}),N.languages.ssml=N.languages.xml,N.languages.atom=N.languages.xml,N.languages.rss=N.languages.xml,function(G){var We=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;G.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+We.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+We.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+We.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+We.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:We,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},G.languages.css.atrule.inside.rest=G.languages.css;var Dt=G.languages.markup;Dt&&(Dt.tag.addInlined("style","css"),Dt.tag.addAttribute("style","css"))}(N),N.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},N.languages.javascript=N.languages.extend("clike",{"class-name":[N.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),N.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,N.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:N.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:N.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:N.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:N.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:N.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),N.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:N.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),N.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),N.languages.markup&&(N.languages.markup.tag.addInlined("script","javascript"),N.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),N.languages.js=N.languages.javascript,function(){if(!(typeof N>"u"||typeof document>"u")){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var ct={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},U="data-src-status",Pt="loading",an="pre[data-src]:not(["+U+'="loaded"]):not(['+U+'="'+Pt+'"])';N.hooks.add("before-highlightall",function(ut){ut.selector+=", "+an}),N.hooks.add("before-sanity-check",function(ut){var Ve=ut.element;if(Ve.matches(an)){ut.code="",Ve.setAttribute(U,Pt);var dt=Ve.appendChild(document.createElement("CODE"));dt.textContent="Loading\u2026";var P=Ve.getAttribute("data-src"),S=ut.language;if("none"===S){var A=(/\.(\w+)$/.exec(P)||[,"none"])[1];S=ct[A]||A}N.util.setLanguage(dt,S),N.util.setLanguage(Ve,S);var B=N.plugins.autoloader;B&&B.loadLanguages(S),function Sn(ut,Ve,dt){var P=new XMLHttpRequest;P.open("GET",ut,!0),P.onreadystatechange=function(){4==P.readyState&&(P.status<400&&P.responseText?Ve(P.responseText):dt(P.status>=400?function(ut,Ve){return"\u2716 Error "+ut+" while fetching file: "+Ve}(P.status,P.statusText):"\u2716 Error: File does not exist or is empty"))},P.send(null)}(P,function(L){Ve.setAttribute(U,"loaded");var J=function Io(ut){var Ve=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(ut||"");if(Ve){var dt=Number(Ve[1]),S=Ve[3];return Ve[2]?S?[dt,Number(S)]:[dt,void 0]:[dt,dt]}}(Ve.getAttribute("data-range"));if(J){var Ce=L.split(/\r\n?|\n/g),X=J[0],Le=null==J[1]?Ce.length:J[1];X<0&&(X+=Ce.length),X=Math.max(0,Math.min(X-1,Ce.length)),Le<0&&(Le+=Ce.length),Le=Math.max(0,Math.min(Le,Ce.length)),L=Ce.slice(X,Le).join("\n"),Ve.hasAttribute("data-start")||Ve.setAttribute("data-start",String(X+1))}dt.textContent=L,N.highlightElement(dt)},function(L){Ve.setAttribute(U,"failed"),dt.textContent=L})}}),N.plugins.fileHighlight={highlight:function(Ve){for(var S,dt=(Ve||document).querySelectorAll(an),P=0;S=dt[P++];)N.highlightElement(S)}};var Ar=!1;N.fileHighlight=function(){Ar||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),Ar=!0),N.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}},Se=>{Se(Se.s=133)}]); \ No newline at end of file diff --git a/styles.36de1f4030f5bff4.css b/styles.ed43cf08bbbdda5b.css similarity index 61% rename from styles.36de1f4030f5bff4.css rename to styles.ed43cf08bbbdda5b.css index 63a6bbf..7bc32b3 100644 --- a/styles.36de1f4030f5bff4.css +++ b/styles.ed43cf08bbbdda5b.css @@ -1 +1 @@ -code[class*=language-],pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:#999}.token.punctuation{color:#ccc}.token.tag,.token.attr-name,.token.namespace,.token.deleted{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.number,.token.function{color:#f08d49}.token.property,.token.class-name,.token.constant,.token.symbol{color:#f8c555}.token.selector,.token.important,.token.atrule,.token.keyword,.token.builtin{color:#cc99cd}.token.string,.token.char,.token.attr-value,.token.regex,.token.variable{color:#7ec699}.token.operator,.token.entity,.token.url{color:#67cdcc}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}.sticky{position:fixed;top:0;width:100%}body{margin:0;background-color:var(--bg-color);font-family:Trebuchet MS,Lucida Sans Unicode,Lucida Grande,Lucida Sans,Arial,sans-serif}a{color:var(--primary-color);text-decoration:none}a:hover{text-decoration:underline}[data-theme=light]{--text-color: black;--inverted-text-color: white;--bg-color: #ffffff;--header-color: #f5f5f5;--primary-color: #2e3399;--secondary-color: #00b6b0;--search-bar-bg: #d3d3d3}[data-theme=dark]{--text-color: white;--inverted-text-color: black;--bg-color: #1a1a2b;--header-color: #11111d;--primary-color: #00b6b0;--secondary-color: #2e3399;--search-bar-bg: #19192b}[data-theme=funky]{--text-color: red;--inverted-text-color: blue;--bg-color: #f3ba00;--header-color: #947100;--primary-color: #e60efa;--secondary-color: #34f504;--search-bar-bg: #04c5f5} +code[class*=language-],pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.block-comment,.token.prolog,.token.doctype,.token.cdata{color:#999}.token.punctuation{color:#ccc}.token.tag,.token.attr-name,.token.namespace,.token.deleted{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.number,.token.function{color:#f08d49}.token.property,.token.class-name,.token.constant,.token.symbol{color:#f8c555}.token.selector,.token.important,.token.atrule,.token.keyword,.token.builtin{color:#cc99cd}.token.string,.token.char,.token.attr-value,.token.regex,.token.variable{color:#7ec699}.token.operator,.token.entity,.token.url{color:#67cdcc}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}.sticky{position:fixed;top:0;width:100%}body{margin:0;background-color:var(--bg-color);font-family:Trebuchet MS,Lucida Sans Unicode,Lucida Grande,Lucida Sans,Arial,sans-serif}a{color:var(--primary-color);text-decoration:none}a:hover{text-decoration:underline}[data-theme=light]{--text-color: black;--inverted-text-color: white;--bg-color: #ffffff;--header-color: #f5f5f5;--primary-color: #2e3399;--secondary-color: #00b6b0;--search-bar-bg: #d3d3d3}[data-theme=dark]{--text-color: white;--inverted-text-color: black;--bg-color: #1a1a2b;--header-color: #11111d;--primary-color: #00b6b0;--secondary-color: #2e3399;--search-bar-bg: #19192b}[data-theme=ocean]{--text-color: #ecf0f1;--inverted-text-color: #2c3e50;--bg-color: #3498db;--header-color: #2980b9;--primary-color: #2ecc71;--secondary-color: #e74c3c;--search-bar-bg: #2980b9}[data-theme=sunset]{--text-color: #333;--inverted-text-color: #f39c12;--bg-color: #f1c40f;--header-color: #d35400;--primary-color: #e74c3c;--secondary-color: #3498db;--search-bar-bg: #f39c12}[data-theme=ruby]{--text-color: #333;--inverted-text-color: #e74c3c;--bg-color: #c0392b;--header-color: #922b21;--primary-color: #3498db;--secondary-color: #ecf0f1;--search-bar-bg: #b03a2e}[data-theme=coral]{--text-color: #fff;--inverted-text-color: #e74c3c;--bg-color: #e67e22;--header-color: #d35400;--primary-color: #3498db;--secondary-color: #2ecc71;--search-bar-bg: #f39c12}[data-theme=lavender]{--text-color: #2c3e50;--inverted-text-color: #ecf0f1;--bg-color: #9b59b6;--header-color: #8e44ad;--primary-color: #3498db;--secondary-color: #1abc9c;--search-bar-bg: #34495e}[data-theme=funky]{--text-color: red;--inverted-text-color: blue;--bg-color: #f3ba00;--header-color: #947100;--primary-color: #e60efa;--secondary-color: #34f504;--search-bar-bg: #04c5f5}