-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.a9aabf4c61df57c6.js
1 lines (1 loc) · 262 KB
/
main.a9aabf4c61df57c6.js
1
(self.webpackChunktimkister=self.webpackChunktimkister||[]).push([[179],{760:(D,k,B)=>{"use strict";function E(e){return"function"==typeof e}function $(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const A=$(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function X(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class M{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(E(r))try{r()}catch(o){n=o instanceof A?o.errors:[o]}const{_teardowns:i}=this;if(i){this._teardowns=null;for(const o of i)try{Ie(o)}catch(s){n=null!=n?n:[],s instanceof A?n=[...n,...s.errors]:n.push(s)}}if(n)throw new A(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Ie(n);else{if(n instanceof M){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&X(t,n)}remove(n){const{_teardowns:t}=this;t&&X(t,n),n instanceof M&&n._removeParent(this)}}M.EMPTY=(()=>{const e=new M;return e.closed=!0,e})();const G=M.EMPTY;function p(e){return e instanceof M||e&&"closed"in e&&E(e.remove)&&E(e.add)&&E(e.unsubscribe)}function Ie(e){E(e)?e():e.unsubscribe()}const Ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},vt={setTimeout(...e){const{delegate:n}=vt;return((null==n?void 0:n.setTimeout)||setTimeout)(...e)},clearTimeout(e){const{delegate:n}=vt;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function j(e){vt.setTimeout(()=>{const{onUnhandledError:n}=Ae;if(!n)throw e;n(e)})}function Ue(){}const q=$e("C",void 0,void 0);function $e(e,n,t){return{kind:e,value:n,error:t}}let Fe=null;function Xe(e){if(Ae.useDeprecatedSynchronousErrorHandling){const n=!Fe;if(n&&(Fe={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Fe;if(Fe=null,t)throw r}}else e()}class Mn extends M{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,p(n)&&n.add(this)):this.destination=ta}static create(n,t,r){return new Ge(n,t,r)}next(n){this.isStopped?No($e("N",n,void 0),this):this._next(n)}error(n){this.isStopped?No($e("E",void 0,n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?No(q,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()}}}class Ge extends Mn{constructor(n,t,r){let i;if(super(),E(n))i=n;else if(n){let o;({next:i,error:t,complete:r}=n),this&&Ae.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe()):o=n,i=null==i?void 0:i.bind(o),t=null==t?void 0:t.bind(o),r=null==r?void 0:r.bind(o)}this.destination={next:i?So(i):Ue,error:So(null!=t?t:zn),complete:r?So(r):Ue}}}function So(e,n){return(...t)=>{try{e(...t)}catch(r){Ae.useDeprecatedSynchronousErrorHandling?function(e){Ae.useDeprecatedSynchronousErrorHandling&&Fe&&(Fe.errorThrown=!0,Fe.error=e)}(r):j(r)}}}function zn(e){throw e}function No(e,n){const{onStoppedNotification:t}=Ae;t&&vt.setTimeout(()=>t(e,n))}const ta={closed:!0,next:Ue,error:zn,complete:Ue},Or="function"==typeof Symbol&&Symbol.observable||"@@observable";function rn(e){return e}let Se=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,i){const o=function(e){return e&&e instanceof Mn||function(e){return e&&E(e.next)&&E(e.error)&&E(e.complete)}(e)&&p(e)}(t)?t:new Ge(t,r,i);return Xe(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Mo(r))((i,o)=>{let s;s=this.subscribe(a=>{try{t(a)}catch(l){o(l),null==s||s.unsubscribe()}},o,i)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Or](){return this}pipe(...t){return function(e){return 0===e.length?rn:1===e.length?e[0]:function(t){return e.reduce((r,i)=>i(r),t)}}(t)(this)}toPromise(t){return new(t=Mo(t))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=n=>new e(n),e})();function Mo(e){var n;return null!==(n=null!=e?e:Ae.Promise)&&void 0!==n?n:Promise}const Io=$(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Pe=(()=>{class e extends Se{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Zr(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new Io}next(t){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){const r=this.observers.slice();for(const i of r)i.next(t)}})}error(t){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Xe(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:i,observers:o}=this;return r||i?G:(o.push(t),new M(()=>X(o,t)))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:i,isStopped:o}=this;r?t.error(i):o&&t.complete()}asObservable(){const t=new Se;return t.source=this,t}}return e.create=(n,t)=>new Zr(n,t),e})();class Zr extends Pe{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:G}}function na(e){return E(null==e?void 0:e.lift)}function Je(e){return n=>{if(na(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}class Re extends Mn{constructor(n,t,r,i,o){super(n),this.onFinalize=o,this._next=t?function(s){try{t(s)}catch(a){n.error(a)}}:super._next,this._error=i?function(s){try{i(s)}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}function de(e,n){return Je((t,r)=>{let i=0;t.subscribe(new Re(r,o=>{r.next(e.call(n,o,i++))}))})}function At(e){return this instanceof At?(this.v=e,this):new At(e)}function fc(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=t.apply(e,n||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(h){return new Promise(function(m,_){o.push([f,h,m,_])>1||a(f,h)})})}function a(f,h){try{!function(f){f.value instanceof At?Promise.resolve(f.value.v).then(c,u):d(o[0][2],f)}(r[f](h))}catch(m){d(o[0][3],m)}}function c(f){a("next",f)}function u(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function SD(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}const hc=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ih(e){return E(null==e?void 0:e.then)}function Ah(e){return E(e[Or])}function xh(e){return Symbol.asyncIterator&&E(null==e?void 0:e[Symbol.asyncIterator])}function Rh(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Oh="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function kh(e){return E(null==e?void 0:e[Oh])}function Fh(e){return fc(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:i}=yield At(t.read());if(i)return yield At(void 0);yield yield At(r)}}finally{t.releaseLock()}})}function Ph(e){return E(null==e?void 0:e.getReader)}function Ot(e){if(e instanceof Se)return e;if(null!=e){if(Ah(e))return function(e){return new Se(n=>{const t=e[Or]();if(E(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(hc(e))return function(e){return new Se(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(Ih(e))return function(e){return new Se(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,j)})}(e);if(xh(e))return Vh(e);if(kh(e))return function(e){return new Se(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Ph(e))return function(e){return Vh(Fh(e))}(e)}throw Rh(e)}function Vh(e){return new Se(n=>{(function(e,n){var t,r,i,o;return function(e,n,t,r){return new(t||(t=Promise))(function(o,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?o(u.value):function(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=SD(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function pr(e,n,t,r=0,i=!1){const o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function st(e,n,t=1/0){return E(n)?st((r,i)=>de((o,s)=>n(r,o,i,s))(Ot(e(r,i))),t):("number"==typeof n&&(t=n),Je((r,i)=>function(e,n,t,r,i,o,s,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&n.complete()},h=_=>c<r?m(_):l.push(_),m=_=>{c++;let C=!1;Ot(t(_,u++)).subscribe(new Re(n,T=>{n.next(T)},()=>{C=!0},void 0,()=>{if(C)try{for(c--;l.length&&c<r;){const T=l.shift();m(T)}f()}catch(T){n.error(T)}}))};return e.subscribe(new Re(n,h,()=>{d=!0,f()})),()=>{}}(r,i,e,t)))}function xo(e=1/0){return st(rn,e)}const In=new Se(e=>e.complete());function Lh(e){return e&&E(e.schedule)}function pc(e){return e[e.length-1]}function ra(e){return E(pc(e))?e.pop():void 0}function Ro(e){return Lh(pc(e))?e.pop():void 0}function Hh(e,n=0){return Je((t,r)=>{t.subscribe(new Re(r,i=>pr(r,e,()=>r.next(i),n),()=>pr(r,e,()=>r.complete(),n),i=>pr(r,e,()=>r.error(i),n)))})}function Bh(e,n=0){return Je((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function jh(e,n){if(!e)throw new Error("Iterable cannot be null");return new Se(t=>{pr(t,n,()=>{const r=e[Symbol.asyncIterator]();pr(t,n,()=>{r.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function pt(e,n){return n?function(e,n){if(null!=e){if(Ah(e))return function(e,n){return Ot(e).pipe(Bh(n),Hh(n))}(e,n);if(hc(e))return function(e,n){return new Se(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Ih(e))return function(e,n){return Ot(e).pipe(Bh(n),Hh(n))}(e,n);if(xh(e))return jh(e,n);if(kh(e))return function(e,n){return new Se(t=>{let r;return pr(t,n,()=>{r=e[Oh](),pr(t,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void t.error(s)}o?t.complete():t.next(i)},0,!0)}),()=>E(null==r?void 0:r.return)&&r.return()})}(e,n);if(Ph(e))return function(e,n){return jh(Fh(e),n)}(e,n)}throw Rh(e)}(e,n):Ot(e)}function jt(e){return e<=0?()=>In:Je((n,t)=>{let r=0;n.subscribe(new Re(t,i=>{++r<=e&&(t.next(i),e<=r&&t.complete())}))})}function gc(e,n,...t){return!0===n?(e(),null):!1===n?null:n(...t).pipe(jt(1)).subscribe(()=>e())}function Ve(e){for(let n in e)if(e[n]===Ve)return n;throw Error("Could not find renamed property on target object.")}function De(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(De).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function _c(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const zD=Ve({__forward_ref__:Ve});function Ee(e){return e.__forward_ref__=Ee,e.toString=function(){return De(this())},e}function ae(e){return function(e){return"function"==typeof e&&e.hasOwnProperty(zD)&&e.__forward_ref__===Ee}(e)?e():e}class on extends Error{constructor(n,t){super(function(e,n){return`${e?`NG0${e}: `:""}${n}`}(n,t)),this.code=n}}function ne(e){return"string"==typeof e?e:null==e?"":String(e)}function Ut(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ne(e)}function ia(e,n){const t=n?` in ${n}`:"";throw new on("201",`No provider for ${Ut(e)} found${t}`)}function an(e,n){null==e&&function(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function ee(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ne(e){return{providers:e.providers||[],imports:e.imports||[]}}function vc(e){return $h(e,oa)||$h(e,Wh)}function $h(e,n){return e.hasOwnProperty(n)?e[n]:null}function Gh(e){return e&&(e.hasOwnProperty(bc)||e.hasOwnProperty(QD))?e[bc]:null}const oa=Ve({\u0275prov:Ve}),bc=Ve({\u0275inj:Ve}),Wh=Ve({ngInjectableDef:Ve}),QD=Ve({ngInjectorDef:Ve});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 Dc;function kr(e){const n=Dc;return Dc=e,n}function zh(e,n,t){const r=vc(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&oe.Optional?null:void 0!==n?n:void ia(De(e),"Injector")}function Fr(e){return{toString:e}.toString()}var An=(()=>((An=An||{})[An.OnPush=0]="OnPush",An[An.Default=1]="Default",An))(),Jn=(()=>{return(e=Jn||(Jn={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Jn;var e})();const tC="undefined"!=typeof globalThis&&globalThis,nC="undefined"!=typeof window&&window,rC="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Oe=tC||"undefined"!=typeof global&&global||nC||rC,Ei={},Le=[],sa=Ve({\u0275cmp:Ve}),Cc=Ve({\u0275dir:Ve}),wc=Ve({\u0275pipe:Ve}),qh=Ve({\u0275mod:Ve}),mr=Ve({\u0275fac:Ve}),Oo=Ve({__NG_ELEMENT_ID__:Ve});let iC=0;function mn(e){return Fr(()=>{const t={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===An.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Jn.Emulated,id:"c",styles:e.styles||Le,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,o=e.features,s=e.pipes;return r.id+=iC++,r.inputs=Xh(e.inputs,t),r.outputs=Xh(e.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Kh):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Jh):null,r})}function Kh(e){return kt(e)||function(e){return e[Cc]||null}(e)}function Jh(e){return function(e){return e[wc]||null}(e)}const Yh={};function xe(e){return Fr(()=>{const n={type:e.type,bootstrap:e.bootstrap||Le,declarations:e.declarations||Le,imports:e.imports||Le,exports:e.exports||Le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Yh[e.id]=e.type),n})}function Xh(e,n){if(null==e)return Ei;const t={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),t[i]=r,n&&(n[i]=o)}return t}const O=mn;function kt(e){return e[sa]||null}function _n(e,n){const t=e[qh]||null;if(!t&&!0===n)throw new Error(`Type ${De(e)} does not have '\u0275mod' property.`);return t}function Yn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Rn(e){return Array.isArray(e)&&!0===e[1]}function Sc(e){return 0!=(8&e.flags)}function ua(e){return 2==(2&e.flags)}function da(e){return 1==(1&e.flags)}function On(e){return null!==e.template}function uC(e){return 0!=(512&e[2])}function ri(e,n){return e.hasOwnProperty(mr)?e[mr]:null}class hC{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Qh(e){return e.type.prototype.ngOnChanges&&(e.setInput=gC),pC}function pC(){const e=tp(this),n=null==e?void 0:e.current;if(n){const t=e.previous;if(t===Ei)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function gC(e,n,t,r){const i=tp(e)||function(e,n){return e[ep]=n}(e,{previous:Ei,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[t],l=s[a];o[a]=new hC(l&&l.currentValue,n,s===Ei),e[r]=n}const ep="__ngSimpleChanges__";function tp(e){return e[ep]||null}let Ic;function at(e){return!!e.listen}const ip={createRenderer:(e,n)=>void 0!==Ic?Ic:"undefined"!=typeof document?document:void 0};function gt(e){for(;Array.isArray(e);)e=e[0];return e}function bn(e,n){return gt(n[e.index])}function xc(e,n){return e.data[n]}function cn(e,n){const t=n[e];return Yn(t)?t:t[0]}function op(e){return 4==(4&e[2])}function Rc(e){return 128==(128&e[2])}function Vr(e,n){return null==n?null:e[n]}function sp(e){e[18]=0}function Oc(e,n){e[5]+=n;let t=e,r=e[3];for(;null!==r&&(1===n&&1===t[5]||-1===n&&0===t[5]);)r[5]+=n,t=r,r=r[3]}const te={lFrame:pp(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ap(){return te.bindingsEnabled}function S(){return te.lFrame.lView}function Ce(){return te.lFrame.tView}function bt(){let e=lp();for(;null!==e&&64===e.type;)e=e.parent;return e}function lp(){return te.lFrame.currentTNode}function Xn(e,n){const t=te.lFrame;t.currentTNode=e,t.isParent=n}function kc(){return te.lFrame.isParent}function Fc(){te.lFrame.isParent=!1}function ha(){return te.isInCheckNoChangesMode}function pa(e){te.isInCheckNoChangesMode=e}function vr(e){const n=te.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function AC(e,n){const t=te.lFrame;t.bindingIndex=t.bindingRootIndex=e,Pc(n)}function Pc(e){te.lFrame.currentDirectiveIndex=e}function dp(){return te.lFrame.currentQueryIndex}function Lc(e){te.lFrame.currentQueryIndex=e}function RC(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function fp(e,n,t){if(t&oe.SkipSelf){let i=n,o=e;for(;!(i=i.parent,null!==i||t&oe.Host||(i=RC(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;n=i,e=o}const r=te.lFrame=hp();return r.currentTNode=n,r.lView=e,!0}function ga(e){const n=hp(),t=e[1];te.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function hp(){const e=te.lFrame,n=null===e?null:e.child;return null===n?pp(e):n}function pp(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function gp(){const e=te.lFrame;return te.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const mp=gp;function ma(){const e=gp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Gt(){return te.lFrame.selectedIndex}function Lr(e){te.lFrame.selectedIndex=e}function _a(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t<r;t++){const o=e.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(e.contentHooks||(e.contentHooks=[])).push(-t,s),a&&((e.contentHooks||(e.contentHooks=[])).push(t,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(t,a)),l&&(e.viewHooks||(e.viewHooks=[])).push(-t,l),c&&((e.viewHooks||(e.viewHooks=[])).push(t,c),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(t,c)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(t,u)}}function ya(e,n,t){_p(e,n,3,t)}function va(e,n,t,r){(3&e[2])===t&&_p(e,n,t,r)}function Hc(e,n){let t=e[2];(3&t)===n&&(t&=2047,t+=1,e[2]=t)}function _p(e,n,t,r){const o=null!=r?r:-1,s=n.length-1;let a=0;for(let l=void 0!==r?65535&e[18]:0;l<s;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=r&&a>=r)break}else n[l]<0&&(e[18]+=65536),(a<o||-1==o)&&(jC(e,t,n,l),e[18]=(4294901760&e[18])+l+2),l++}function jC(e,n,t,r){const i=t[r]<0,o=t[r+1],a=e[i?-t[r]:t[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===n){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Lo{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function ba(e,n,t){const r=at(e);let i=0;for(;i<t.length;){const o=t[i];if("number"==typeof o){if(0!==o)break;i++;const s=t[i++],a=t[i++],l=t[i++];r?e.setAttribute(n,a,l,s):n.setAttributeNS(s,a,l)}else{const s=o,a=t[++i];jc(s)?r&&e.setProperty(n,s,a):r?e.setAttribute(n,s,a):n.setAttribute(s,a),i++}}return i}function yp(e){return 3===e||4===e||6===e}function jc(e){return 64===e.charCodeAt(0)}function Da(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let r=0;r<n.length;r++){const i=n[r];"number"==typeof i?t=i:0===t||vp(e,t,i,null,-1===t||2===t?n[++r]:null)}}return e}function vp(e,n,t,r,i){let o=0,s=e.length;if(-1===n)s=-1;else for(;o<e.length;){const a=e[o++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=o-1;break}}}for(;o<e.length;){const a=e[o];if("number"==typeof a)break;if(a===t){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,n),o=s+1),e.splice(o++,0,t),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function bp(e){return-1!==e}function xi(e){return 32767&e}function Ri(e,n){let t=function(e){return e>>16}(e),r=n;for(;t>0;)r=r[15],t--;return r}let Uc=!0;function Ca(e){const n=Uc;return Uc=e,n}let qC=0;function Bo(e,n){const t=Gc(e,n);if(-1!==t)return t;const r=n[1];r.firstCreatePass&&(e.injectorIndex=n.length,$c(r.data,e),$c(n,null),$c(r.blueprint,null));const i=wa(e,n),o=e.injectorIndex;if(bp(i)){const s=xi(i),a=Ri(i,n),l=a[1].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=i,o}function $c(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Gc(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function wa(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,i=n;for(;null!==i;){const o=i[1],s=o.type;if(r=2===s?o.declTNode:1===s?i[6]:null,null===r)return-1;if(t++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Ea(e,n,t){!function(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Oo)&&(r=t[Oo]),null==r&&(r=t[Oo]=qC++);const i=255&r;n.data[e+(i>>5)]|=1<<i}(e,n,t)}function wp(e,n,t){if(t&oe.Optional)return e;ia(n,"NodeInjector")}function Ep(e,n,t,r){if(t&oe.Optional&&void 0===r&&(r=null),0==(t&(oe.Self|oe.Host))){const i=e[9],o=kr(void 0);try{return i?i.get(n,r,t&oe.Optional):zh(n,r,t&oe.Optional)}finally{kr(o)}}return wp(r,n,t)}function Tp(e,n,t,r=oe.Default,i){if(null!==e){const o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(Oo)?e[Oo]:void 0;return"number"==typeof n?n>=0?255&n:YC:n}(t);if("function"==typeof o){if(!fp(n,e,r))return r&oe.Host?wp(i,t,r):Ep(n,t,r,i);try{const s=o(r);if(null!=s||r&oe.Optional)return s;ia(t)}finally{mp()}}else if("number"==typeof o){let s=null,a=Gc(e,n),l=-1,c=r&oe.Host?n[16][6]:null;for((-1===a||r&oe.SkipSelf)&&(l=-1===a?wa(e,n):n[a+8],-1!==l&&Mp(r,!1)?(s=n[1],a=xi(l),n=Ri(l,n)):a=-1);-1!==a;){const u=n[1];if(Np(o,a,u.data)){const d=XC(a,n,t,s,r,c);if(d!==Sp)return d}l=n[a+8],-1!==l&&Mp(r,n[1].data[a+8]===c)&&Np(o,a,n)?(s=u,a=xi(l),n=Ri(l,n)):a=-1}}}return Ep(n,t,r,i)}const Sp={};function YC(){return new Oi(bt(),S())}function XC(e,n,t,r,i,o){const s=n[1],a=s.data[e+8],u=Ta(a,s,t,null==r?ua(a)&&Uc:r!=s&&0!=(3&a.type),i&oe.Host&&o===a);return null!==u?jo(n,s,u,a):Sp}function Ta(e,n,t,r,i){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,u=o>>20,f=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h<f;h++){const m=s[h];if(h<l&&t===m||h>=l&&m.type===t)return h}if(i){const h=s[l];if(h&&On(h)&&h.type===t)return l}return null}function jo(e,n,t,r){let i=e[t];const o=n.data;if(function(e){return e instanceof Lo}(i)){const s=i;s.resolving&&function(e,n){throw new on("200",`Circular dependency in DI detected for ${e}`)}(Ut(o[t]));const a=Ca(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?kr(s.injectImpl):null;fp(e,r,oe.Default);try{i=e[t]=s.factory(void 0,o,e,r),n.firstCreatePass&&t>=r.directiveStart&&function(e,n,t){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){const s=Qh(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}i&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,i),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,o))}(t,o[t],n)}finally{null!==l&&kr(l),Ca(a),s.resolving=!1,mp()}}return i}function Np(e,n,t){return!!(t[n+(e>>5)]&1<<e)}function Mp(e,n){return!(e&oe.Self||e&oe.Host&&n)}class Oi{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return Tp(this._tNode,this._lView,n,r,t)}}const Fi="__parameters__";function Vi(e,n,t){return Fr(()=>{const r=function(e){return function(...t){if(e){const r=e(...t);for(const i in r)this[i]=r[i]}}}(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;const s=new i(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Fi)?l[Fi]:Object.defineProperty(l,Fi,{value:[]})[Fi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class se{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=ee({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ew=new se("AnalyzeForEntryComponents");function Dn(e,n){void 0===n&&(n=e);for(let t=0;t<e.length;t++){let r=e[t];Array.isArray(r)?(n===e&&(n=e.slice(0,t)),Dn(r,n)):n!==e&&n.push(r)}return n}function Zn(e,n){e.forEach(t=>Array.isArray(t)?Zn(t,n):n(t))}function Ap(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Sa(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Go(e,n){const t=[];for(let r=0;r<e;r++)t.push(n);return t}function dn(e,n,t){let r=Li(e,n);return r>=0?e[1|r]=t:(r=~r,function(e,n,t,r){let i=e.length;if(i==n)e.push(t,r);else if(1===i)e.push(r,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>n;)e[i]=e[i-2],i--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Kc(e,n){const t=Li(e,n);if(t>=0)return e[1|t]}function Li(e,n){return function(e,n,t){let r=0,i=e.length>>t;for(;i!==r;){const o=r+(i-r>>1),s=e[o<<t];if(n===s)return o<<t;s>n?i=o:r=o+1}return~(i<<t)}(e,n,1)}const Wo={},Yc="__NG_DI_FLAG__",Ma="ngTempTokenPath",uw=/\n/gm,Fp="__source",fw=Ve({provide:String,useValue:Ve});let zo;function Pp(e){const n=zo;return zo=e,n}function hw(e,n=oe.Default){if(void 0===zo)throw new Error("inject() must be called from an injection context");return null===zo?zh(e,void 0,n):zo.get(e,n&oe.Optional?null:void 0,n)}function H(e,n=oe.Default){return(Dc||hw)(ae(e),n)}function Xc(e){const n=[];for(let t=0;t<e.length;t++){const r=ae(e[t]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let i,o=oe.Default;for(let s=0;s<r.length;s++){const a=r[s],l=pw(a);"number"==typeof l?-1===l?i=a.token:o|=l:i=a}n.push(H(i,o))}else n.push(H(r))}return n}function qo(e,n){return e[Yc]=n,e.prototype[Yc]=n,e}function pw(e){return e[Yc]}const Ko=qo(Vi("Inject",e=>({token:e})),-1),Qn=qo(Vi("Optional"),8),Hi=qo(Vi("SkipSelf"),4);function Br(e){return e instanceof class{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?e.changingThisBreaksApplicationSecurity:e}const tg="__ngContext__";function Vt(e,n){e[tg]=n}function au(e){const n=function(e){return e[tg]||null}(e);return n?Array.isArray(n)?n:n.lView:null}function cu(e){return e.ngOriginalError}function aE(e,...n){e.error(...n)}class Ui{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n),r=(e=n)&&e.ngErrorLogger||aE;var e;r(this._console,"ERROR",n),t&&r(this._console,"ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&cu(n);for(;t&&cu(t);)t=cu(t);return t||null}}const sg=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Oe))();function tr(e){return e instanceof Function?e():e}var fn=(()=>((fn=fn||{})[fn.Important=1]="Important",fn[fn.DashCase=2]="DashCase",fn))();function du(e,n){return undefined(e,n)}function es(e){const n=e[3];return Rn(n)?n[3]:n}function fu(e){return dg(e[13])}function hu(e){return dg(e[4])}function dg(e){for(;null!==e&&!Rn(e);)e=e[4];return e}function Gi(e,n,t,r,i){if(null!=r){let o,s=!1;Rn(r)?o=r:Yn(r)&&(s=!0,r=r[0]);const a=gt(r);0===e&&null!==t?null==i?_g(n,t,a):oi(n,t,a,i||null,!0):1===e&&null!==t?oi(n,t,a,i||null,!0):2===e?function(e,n,t){const r=ka(e,n);r&&function(e,n,t,r){at(e)?e.removeChild(n,t,r):n.removeChild(t)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function(e,n,t,r,i){const o=t[7];o!==gt(t)&&Gi(n,e,r,o,i);for(let a=10;a<t.length;a++){const l=t[a];ts(l[1],l,e,n,r,o)}}(n,e,o,t,i)}}function gu(e,n,t){return at(e)?e.createElement(n,t):null===t?e.createElement(n):e.createElementNS(t,n)}function hg(e,n){const t=e[9],r=t.indexOf(n),i=n[3];1024&n[2]&&(n[2]&=-1025,Oc(i,-1)),t.splice(r,1)}function mu(e,n){if(e.length<=10)return;const t=10+n,r=e[t];if(r){const i=r[17];null!==i&&i!==e&&hg(i,r),n>0&&(e[t-1][4]=r[4]);const o=Sa(e,10+n);!function(e,n){ts(e,n,n[11],2,null,null),n[0]=null,n[6]=null}(r[1],r);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function pg(e,n){if(!(256&n[2])){const t=n[11];at(t)&&t.destroyNode&&ts(e,n,t,3,null,null),function(e){let n=e[13];if(!n)return _u(e[1],e);for(;n;){let t=null;if(Yn(n))t=n[13];else{const r=n[10];r&&(t=r)}if(!t){for(;n&&!n[4]&&n!==e;)Yn(n)&&_u(n[1],n),n=n[3];null===n&&(n=e),Yn(n)&&_u(n[1],n),t=n&&n[4]}n=t}}(n)}}function _u(e,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r<t.length;r+=2){const i=n[t[r]];if(!(i instanceof Lo)){const o=t[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=i[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(i)}finally{}}}}(e,n),function(e,n){const t=e.cleanup,r=n[7];let i=-1;if(null!==t)for(let o=0;o<t.length-1;o+=2)if("string"==typeof t[o]){const s=t[o+1],a="function"==typeof s?s(n):gt(n[s]),l=r[i=t[o+2]],c=t[o+3];"boolean"==typeof c?a.removeEventListener(t[o],l,c):c>=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{const s=r[i=t[o+1]];t[o].call(s)}if(null!==r){for(let o=i+1;o<r.length;o++)r[o]();n[7]=null}}(e,n),1===n[1].type&&at(n[11])&&n[11].destroy();const t=n[17];if(null!==t&&Rn(n[3])){t!==n[3]&&hg(t,n);const r=n[19];null!==r&&r.detachView(e)}}}function gg(e,n,t){return function(e,n,t){let r=n;for(;null!==r&&40&r.type;)r=(n=r).parent;if(null===r)return t[0];if(2&r.flags){const i=e.data[r.directiveStart].encapsulation;if(i===Jn.None||i===Jn.Emulated)return null}return bn(r,t)}(e,n.parent,t)}function oi(e,n,t,r,i){at(e)?e.insertBefore(n,t,r,i):n.insertBefore(t,r,i)}function _g(e,n,t){at(e)?e.appendChild(n,t):n.appendChild(t)}function yg(e,n,t,r,i){null!==r?oi(e,n,t,r,i):_g(e,n,t)}function ka(e,n){return at(e)?e.parentNode(n):n.parentNode}function vg(e,n,t){return Dg(e,n,t)}let Dg=function(e,n,t){return 40&e.type?bn(e,t):null};function Fa(e,n,t,r){const i=gg(e,r,n),o=n[11],a=vg(r.parent||n[6],r,n);if(null!=i)if(Array.isArray(t))for(let l=0;l<t.length;l++)yg(o,i,t[l],a,!1);else yg(o,i,t,a,!1)}function Pa(e,n){if(null!==n){const t=n.type;if(3&t)return bn(n,e);if(4&t)return vu(-1,e[n.index]);if(8&t){const r=n.child;if(null!==r)return Pa(e,r);{const i=e[n.index];return Rn(i)?vu(-1,i):gt(i)}}if(32&t)return du(n,e)()||gt(e[n.index]);{const r=wg(e,n);return null!==r?Array.isArray(r)?r[0]:Pa(es(e[16]),r):Pa(e,n.next)}}return null}function wg(e,n){return null!==n?e[16][6].projection[n.projection]:null}function vu(e,n){const t=10+e+1;if(t<n.length){const r=n[t],i=r[1].firstChild;if(null!==i)return Pa(r,i)}return n[7]}function bu(e,n,t,r,i,o,s){for(;null!=t;){const a=r[t.index],l=t.type;if(s&&0===n&&(a&&Vt(gt(a),r),t.flags|=4),64!=(64&t.flags))if(8&l)bu(e,n,t.child,r,i,o,!1),Gi(n,e,i,a,o);else if(32&l){const c=du(t,r);let u;for(;u=c();)Gi(n,e,i,u,o);Gi(n,e,i,a,o)}else 16&l?Tg(e,n,r,t,i,o):Gi(n,e,i,a,o);t=s?t.projectionNext:t.next}}function ts(e,n,t,r,i,o){bu(t,r,e.firstChild,n,i,o,!1)}function Tg(e,n,t,r,i,o){const s=t[16],l=s[6].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Gi(n,e,i,l[c],o);else bu(e,n,l,s[3],i,o,!0)}function Sg(e,n,t){at(e)?e.setAttribute(n,"style",t):n.style.cssText=t}function Du(e,n,t){at(e)?""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t):n.className=t}function Ng(e,n,t){let r=e.length;for(;;){const i=e.indexOf(n,t);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=n.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}t=i+1}}const Mg="ng-template";function FE(e,n,t){let r=0;for(;r<e.length;){let i=e[r++];if(t&&"class"===i){if(i=e[r],-1!==Ng(i.toLowerCase(),n,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===n)return!0;return!1}}return!1}function Ig(e){return 4===e.type&&e.value!==Mg}function PE(e,n,t){return n===(4!==e.type||t?e.value:Mg)}function VE(e,n,t){let r=4;const i=e.attrs||[],o=function(e){for(let n=0;n<e.length;n++)if(yp(e[n]))return n;return e.length}(i);let s=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!PE(e,l,t)||""===l&&1===n.length){if(kn(r))return!1;s=!0}}else{const c=8&r?l:n[++a];if(8&r&&null!==e.attrs){if(!FE(e.attrs,c,t)){if(kn(r))return!1;s=!0}continue}const d=LE(8&r?"class":l,i,Ig(e),t);if(-1===d){if(kn(r))return!1;s=!0;continue}if(""!==c){let f;f=d>o?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Ng(h,c,0)||2&r&&c!==f){if(kn(r))return!1;s=!0}}}}else{if(!s&&!kn(r)&&!kn(l))return!1;if(s&&kn(l))continue;s=!1,r=l|1&r}}return kn(r)||s}function kn(e){return 0==(1&e)}function LE(e,n,t,r){if(null===n)return-1;let i=0;if(r||!t){let o=!1;for(;i<n.length;){const s=n[i];if(s===e)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=n[++i];for(;"string"==typeof a;)a=n[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const r=e[t];if("number"==typeof r)return-1;if(r===n)return t;t++}return-1}(n,e)}function Ag(e,n,t=!1){for(let r=0;r<n.length;r++)if(VE(e,n[r],t))return!0;return!1}function UE(e,n){e:for(let t=0;t<n.length;t++){const r=n[t];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function xg(e,n){return e?":not("+n.trim()+")":n}function $E(e){let n=e[0],t=1,r=2,i="",o=!1;for(;t<e.length;){let s=e[t];if("string"==typeof s)if(2&r){const a=e[++t];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!kn(s)&&(n+=xg(o,i),i=""),r=s,o=o||!kn(r);t++}return""!==i&&(n+=xg(o,i)),n}const re={};function Va(e,n){return e<<17|n<<2}function Fn(e){return e>>17&32767}function Cu(e){return 2|e}function br(e){return(131068&e)>>2}function wu(e,n){return-131069&e|n<<2}function Eu(e){return 1|e}function $g(e,n){const t=e.contentQueries;if(null!==t)for(let r=0;r<t.length;r+=2){const i=t[r],o=t[r+1];if(-1!==o){const s=e.data[o];Lc(i),s.contentQueries(2,n[o],o)}}}function ns(e,n,t,r,i,o,s,a,l,c){const u=n.blueprint.slice();return u[0]=i,u[2]=140|r,sp(u),u[3]=u[15]=e,u[8]=t,u[10]=s||e&&e[10],u[11]=a||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=o,u[16]=2==n.type?e[16]:u,u}function Wi(e,n,t,r,i){let o=e.data[n];if(null===o)o=function(e,n,t,r,i){const o=lp(),s=kc(),l=e.data[n]=function(e,n,t,r,i,o){return{type:t,index:r,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next: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?o:o&&o.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(e,n,t,r,i),te.lFrame.inI18n&&(o.flags|=64);else if(64&o.type){o.type=t,o.value=r,o.attrs=i;const s=function(){const e=te.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Xn(o,!0),o}function zi(e,n,t,r){if(0===t)return-1;const i=n.length;for(let o=0;o<t;o++)n.push(r),e.blueprint.push(r),e.data.push(null);return i}function rs(e,n,t){ga(n);try{const r=e.viewQuery;null!==r&&Uu(1,r,t);const i=e.template;null!==i&&Gg(e,n,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&$g(e,n),e.staticViewQueries&&Uu(2,e.viewQuery,t);const o=e.components;null!==o&&function(e,n){for(let t=0;t<n.length;t++)TT(e,n[t])}(n,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[2]&=-5,ma()}}function qi(e,n,t,r){const i=n[2];if(256==(256&i))return;ga(n);const o=ha();try{sp(n),function(e){te.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&Gg(e,n,t,2,r);const s=3==(3&i);if(!o)if(s){const c=e.preOrderCheckHooks;null!==c&&ya(n,c,null)}else{const c=e.preOrderHooks;null!==c&&va(n,c,0,null),Hc(n,0)}if(function(e){for(let n=fu(e);null!==n;n=hu(n)){if(!n[2])continue;const t=n[9];for(let r=0;r<t.length;r++){const i=t[r],o=i[3];0==(1024&i[2])&&Oc(o,1),i[2]|=1024}}}(n),function(e){for(let n=fu(e);null!==n;n=hu(n))for(let t=10;t<n.length;t++){const r=n[t],i=r[1];Rc(r)&&qi(i,r,i.template,r[8])}}(n),null!==e.contentQueries&&$g(e,n),!o)if(s){const c=e.contentCheckHooks;null!==c&&ya(n,c)}else{const c=e.contentHooks;null!==c&&va(n,c,1),Hc(n,1)}!function(e,n){const t=e.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const i=t[r];if(i<0)Lr(~i);else{const o=i,s=t[++r],a=t[++r];AC(s,o),a(2,n[o])}}}finally{Lr(-1)}}(e,n);const a=e.components;null!==a&&function(e,n){for(let t=0;t<n.length;t++)ET(e,n[t])}(n,a);const l=e.viewQuery;if(null!==l&&Uu(2,l,r),!o)if(s){const c=e.viewCheckHooks;null!==c&&ya(n,c)}else{const c=e.viewHooks;null!==c&&va(n,c,2),Hc(n,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(n[2]&=-73),1024&n[2]&&(n[2]&=-1025,Oc(n[3],-1))}finally{ma()}}function oT(e,n,t,r){const i=n[10],o=!ha(),s=op(n);try{o&&!s&&i.begin&&i.begin(),s&&rs(e,n,r),qi(e,n,t,r)}finally{o&&!s&&i.end&&i.end()}}function Gg(e,n,t,r,i){const o=Gt(),s=2&r;try{Lr(-1),s&&n.length>20&&function(e,n,t,r){if(!r)if(3==(3&n[2])){const o=e.preOrderCheckHooks;null!==o&&ya(n,o,t)}else{const o=e.preOrderHooks;null!==o&&va(n,o,0,t)}Lr(t)}(e,n,20,ha()),t(r,i)}finally{Lr(o)}}function zg(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=Ba(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):n}function Ba(e,n,t,r,i,o,s,a,l,c){const u=20+r,d=u+i,f=function(e,n){const t=[];for(let r=0;r<n;r++)t.push(r<e?null:re);return t}(u,d),h="function"==typeof c?c():c;return f[1]={type:e,blueprint:f,template:t,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function Jg(e,n,t,r){const i=om(n);null===t?i.push(r):(i.push(t),e.firstCreatePass&&sm(e).push(r,i.length-1))}function Yg(e,n,t){for(let r in e)if(e.hasOwnProperty(r)){const i=e[r];(t=null===t?{}:t).hasOwnProperty(r)?t[r].push(n,i):t[r]=[n,i]}return t}function Zg(e,n,t,r,i,o){const s=o.hostBindings;if(s){let a=e.hostBindingOpCodes;null===a&&(a=e.hostBindingOpCodes=[]);const l=~n.index;(function(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(r,i,s)}}function Qg(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function em(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function yT(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;On(n)&&(t[""]=e)}}function tm(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}function nm(e,n,t,r,i){e.data[r]=i;const o=i.factory||(i.factory=ri(i.type)),s=new Lo(o,On(i),null);e.blueprint[r]=s,t[r]=s,Zg(e,n,0,r,zi(e,t,i.hostVars,re),i)}function vT(e,n,t){const r=bn(n,e),i=zg(t),o=e[10],s=ja(e,ns(e,i,null,t.onPush?64:16,r,n,o,o.createRenderer(r,t),null,null));e[n.index]=s}function nr(e,n,t,r,i,o){const s=bn(e,n);!function(e,n,t,r,i,o,s){if(null==o)at(e)?e.removeAttribute(n,i,t):n.removeAttribute(i);else{const a=null==s?ne(o):s(o,r||"",i);at(e)?e.setAttribute(n,i,a,t):t?n.setAttributeNS(t,i,a):n.setAttribute(i,a)}}(n[11],s,o,e.value,t,r,i)}function bT(e,n,t,r,i,o){const s=o[n];if(null!==s){const a=r.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?r.setInput(t,d,c,u):t[u]=d}}}function DT(e,n){let t=null,r=0;for(;r<n.length;){const i=n[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===t&&(t=[]),t.push(i,e[i],n[r+1])),r+=2}else r+=2;else r+=4}return t}function ET(e,n){const t=cn(n,e);if(Rc(t)){const r=t[1];80&t[2]?qi(r,t,r.template,t[8]):t[5]>0&&Lu(t)}}function Lu(e){for(let r=fu(e);null!==r;r=hu(r))for(let i=10;i<r.length;i++){const o=r[i];if(1024&o[2]){const s=o[1];qi(s,o,s.template,o[8])}else o[5]>0&&Lu(o)}const t=e[1].components;if(null!==t)for(let r=0;r<t.length;r++){const i=cn(t[r],e);Rc(i)&&i[5]>0&&Lu(i)}}function TT(e,n){const t=cn(n,e),r=t[1];(function(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])})(r,t),rs(r,t,t[8])}function ja(e,n){return e[13]?e[14][4]=n:e[13]=n,e[14]=n,n}function Hu(e){for(;e;){e[2]|=64;const n=es(e);if(uC(e)&&!n)return e;e=n}return null}function ju(e,n,t){const r=n[10];r.begin&&r.begin();try{qi(e,n,e.template,t)}catch(i){throw lm(n,i),i}finally{r.end&&r.end()}}function im(e){!function(e){for(let n=0;n<e.components.length;n++){const t=e.components[n],r=au(t),i=r[1];oT(i,r,i.template,t)}}(e[8])}function Uu(e,n,t){Lc(0),n(e,t)}const AT=(()=>Promise.resolve(null))();function om(e){return e[7]||(e[7]=[])}function sm(e){return e.cleanup||(e.cleanup=[])}function lm(e,n){const t=e[9],r=t?t.get(Ui,null):null;r&&r.handleError(n)}function Ua(e,n,t){let r=t?e.styles:null,i=t?e.classes:null,o=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?o=a:1==o?i=_c(i,a):2==o&&(r=_c(r,a+": "+n[++s]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=i:e.classesWithoutHost=i}const $u=new se("INJECTOR",-1);class um{get(n,t=Wo){if(t===Wo){const r=new Error(`NullInjectorError: No provider for ${De(n)}!`);throw r.name="NullInjectorError",r}return t}}const Gu=new se("Set Injector scope."),is={},OT={};let Wu;function dm(){return void 0===Wu&&(Wu=new um),Wu}function fm(e,n=null,t=null,r){const i=hm(e,n,t,r);return i._resolveInjectorDefTypes(),i}function hm(e,n=null,t=null,r){return new kT(e,t,n||dm(),r)}class kT{constructor(n,t,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];t&&Zn(t,a=>this.processProvider(a,n,t)),Zn([n],a=>this.processInjectorType(a,[],o)),this.records.set($u,Ki(void 0,this));const s=this.records.get(Gu);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof n?null:De(n))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(n=>n.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(n,t=Wo,r=oe.Default){this.assertNotDestroyed();const i=Pp(this),o=kr(void 0);try{if(!(r&oe.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=("function"==typeof(e=n)||"object"==typeof e&&e instanceof se)&&vc(n);a=l&&this.injectableDefInScope(l)?Ki(zu(n),is):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&oe.Self?dm():this.parent).get(n,t=r&oe.Optional&&t===Wo?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Ma]=s[Ma]||[]).unshift(De(n)),i)throw s;return function(e,n,t,r){const i=e[Ma];throw n[Fp]&&i.unshift(n[Fp]),e.message=function(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=De(n);if(Array.isArray(n))i=n.map(De).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):De(a)))}i=`{${o.join(", ")}}`}return`${t}${r?"("+r+")":""}[${i}]: ${e.replace(uw,"\n ")}`}("\n"+e.message,i,t,r),e.ngTokenPath=i,e[Ma]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{kr(o),Pp(i)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(n=>this.get(n))}toString(){const n=[];return this.records.forEach((r,i)=>n.push(De(i))),`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(n,t,r){if(!(n=ae(n)))return!1;let i=Gh(n);const o=null==i&&n.ngModule||void 0,s=void 0===o?n:o,a=-1!==r.indexOf(s);if(void 0!==o&&(i=Gh(o)),null==i)return!1;if(null!=i.imports&&!a){let u;r.push(s);try{Zn(i.imports,d=>{this.processInjectorType(d,t,r)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:f,providers:h}=u[d];Zn(h,m=>this.processProvider(m,f,h||Le))}}this.injectorDefTypes.add(s);const l=ri(s)||(()=>new s);this.records.set(s,Ki(l,is));const c=i.providers;if(null!=c&&!a){const u=n;Zn(c,d=>this.processProvider(d,u,c))}return void 0!==o&&void 0!==n.providers}processProvider(n,t,r){let i=Ji(n=ae(n))?n:ae(n&&n.provide);const o=(e=n,gm(e)?Ki(void 0,e.useValue):Ki(function(e,n,t){let r;if(Ji(e)){const i=ae(e);return ri(i)||zu(i)}if(gm(e))r=()=>ae(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Xc(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>H(ae(e.useExisting));else{const i=ae(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return ri(i)||zu(i);r=()=>new i(...Xc(e.deps))}return r}(e),is));var e;if(Ji(n)||!0!==n.multi)this.records.get(i);else{let s=this.records.get(i);s||(s=Ki(void 0,is,!0),s.factory=()=>Xc(s.multi),this.records.set(i,s)),i=n,s.multi.push(n)}this.records.set(i,o)}hydrate(n,t){return t.value===is&&(t.value=OT,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(e=t.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(t.value),t.value;var e}injectableDefInScope(n){if(!n.providedIn)return!1;const t=ae(n.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function zu(e){const n=vc(e),t=null!==n?n.factory:ri(e);if(null!==t)return t;if(e instanceof se)throw new Error(`Token ${De(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const n=e.length;if(n>0){const r=Go(n,"?");throw new Error(`Can't resolve all parameters for ${De(e)}: (${r.join(", ")}).`)}const t=function(e){const n=e&&(e[oa]||e[Wh]);if(n){const t=function(e){if(e.hasOwnProperty("name"))return e.name;const n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),n}return null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new Error("unreachable")}function Ki(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function gm(e){return null!==e&&"object"==typeof e&&fw in e}function Ji(e){return"function"==typeof e}let Ct=(()=>{class e{static create(t,r){var i;if(Array.isArray(t))return fm({name:""},r,t,"");{const o=null!==(i=t.name)&&void 0!==i?i:"";return fm({name:o},t.parent,t.providers,o)}}}return e.THROW_IF_NOT_FOUND=Wo,e.NULL=new um,e.\u0275prov=ee({token:e,providedIn:"any",factory:()=>H($u)}),e.__NG_ELEMENT_ID__=-1,e})();function YT(e,n){_a(au(e)[1],bt())}let $a=null;function Yi(){if(!$a){const e=Oe.Symbol;if(e&&e.iterator)$a=e.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<n.length;++t){const r=n[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&($a=r)}}}return $a}function os(e){return!!Yu(e)&&(Array.isArray(e)||!(e instanceof Map)&&Yi()in e)}function Yu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Lt(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function ke(e,n,t,r){const i=S();return Lt(i,te.lFrame.bindingIndex++,n)&&(Ce(),nr(function(){const e=te.lFrame;return xc(e.tView,e.selectedIndex)}(),i,e,n,t,r)),ke}function y(e,n=oe.Default){const t=S();return null===t?H(e,n):Tp(bt(),t,ae(e),n)}function td(){throw new Error("invalid")}function nd(e,n,t,r,i){const s=i?"class":"style";!function(e,n,t,r,i){for(let o=0;o<t.length;){const s=t[o++],a=t[o++],l=n[s],c=e.data[s];null!==c.setInput?c.setInput(l,i,r,a):l[a]=i}}(e,t,n.inputs[s],s,r)}function Z(e,n,t,r){const i=S(),o=Ce(),s=20+e,a=i[11],l=i[s]=gu(a,n,te.lFrame.currentNamespace),c=o.firstCreatePass?function(e,n,t,r,i,o,s){const a=n.consts,c=Wi(n,e,2,i,Vr(a,o));return function(e,n,t,r){let i=!1;if(ap()){const o=function(e,n,t){const r=e.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];Ag(t,s.selectors,!1)&&(i||(i=[]),Ea(Bo(t,n),e,s.type),On(s)?(em(e,t),i.unshift(s)):i.push(s))}return i}(e,n,t),s=null===r?null:{"":-1};if(null!==o){i=!0,tm(t,e.data.length,o.length);for(let u=0;u<o.length;u++){const d=o[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=zi(e,n,o.length,null);for(let u=0;u<o.length;u++){const d=o[u];t.mergedAttrs=Da(t.mergedAttrs,d.hostAttrs),nm(e,t,n,c,d),yT(c,d,s),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function(e,n){const r=n.directiveEnd,i=e.data,o=n.attrs,s=[];let a=null,l=null;for(let c=n.directiveStart;c<r;c++){const u=i[c],d=u.inputs,f=null===o||Ig(n)?null:DT(d,o);s.push(f),a=Yg(d,c,a),l=Yg(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=s,n.inputs=a,n.outputs=l}(e,t)}s&&function(e,n,t){if(n){const r=e.localNames=[];for(let i=0;i<n.length;i+=2){const o=t[n[i+1]];if(null==o)throw new on("301",`Export of name '${n[i+1]}' not found!`);r.push(n[i],o)}}}(t,r,s)}t.mergedAttrs=Da(t.mergedAttrs,t.attrs)}(n,t,c,Vr(a,s)),null!==c.attrs&&Ua(c,c.attrs,!1),null!==c.mergedAttrs&&Ua(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,i,0,n,t,r):o.data[s];Xn(c,!0);const u=c.mergedAttrs;null!==u&&ba(a,l,u);const d=c.classes;null!==d&&Du(a,l,d);const f=c.styles;null!==f&&Sg(a,l,f),64!=(64&c.flags)&&Fa(o,i,l,c),0===te.lFrame.elementDepthCount&&Vt(l,i),te.lFrame.elementDepthCount++,da(c)&&(function(e,n,t){!ap()||(function(e,n,t,r){const i=t.directiveStart,o=t.directiveEnd;e.firstCreatePass||Bo(t,n),Vt(r,n);const s=t.initialInputs;for(let a=i;a<o;a++){const l=e.data[a],c=On(l);c&&vT(n,t,l);const u=jo(n,e,a,t);Vt(u,n),null!==s&&bT(0,a-i,u,l,0,s),c&&(cn(t.index,n)[8]=u)}}(e,n,t,bn(t,n)),128==(128&t.flags)&&function(e,n,t){const r=t.directiveStart,i=t.directiveEnd,s=t.index,a=te.lFrame.currentDirectiveIndex;try{Lr(s);for(let l=r;l<i;l++){const c=e.data[l],u=n[l];Pc(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Qg(c,u)}}finally{Lr(-1),Pc(a)}}(e,n,t))}(o,i,c),function(e,n,t){if(Sc(n)){const i=n.directiveEnd;for(let o=n.directiveStart;o<i;o++){const s=e.data[o];s.contentQueries&&s.contentQueries(1,t[o],o)}}}(o,c,i)),null!==r&&function(e,n,t=bn){const r=n.localNames;if(null!==r){let i=n.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?t(n,e):e[s];e[i++]=a}}}(i,c)}function Q(){let e=bt();kc()?Fc():(e=e.parent,Xn(e,!1));const n=e;te.lFrame.elementDepthCount--;const t=Ce();t.firstCreatePass&&(_a(t,e),Sc(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(n)&&nd(t,n,S(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(n)&&nd(t,n,S(),n.stylesWithoutHost,!1)}function Vn(e,n,t,r){Z(e,n,t,r),Q()}function as(e){return!!e&&"function"==typeof e.then}const rd=function(e){return!!e&&"function"==typeof e.subscribe};function Me(e,n,t,r){const i=S(),o=Ce(),s=bt();return function(e,n,t,r,i,o,s,a){const l=da(r),u=e.firstCreatePass&&sm(e),d=n[8],f=om(n);let h=!0;if(3&r.type||a){const C=bn(r,n),T=a?a(C):C,b=f.length,P=a?z=>a(gt(z[r.index])):r.index;if(at(t)){let z=null;if(!a&&l&&(z=function(e,n,t,r){const i=e.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const s=i[o];if(s===t&&i[o+1]===r){const a=n[7],l=i[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,i,r.index)),null!==z)(z.__ngLastListenerFn__||z).__ngNextListenerFn__=o,z.__ngLastListenerFn__=o,h=!1;else{o=id(r,n,d,o,!1);const he=t.listen(T,i,o);f.push(o,he),u&&u.push(i,P,b,b+1)}}else o=id(r,n,d,o,!0),T.addEventListener(i,o,s),f.push(o),u&&u.push(i,P,b,s)}else o=id(r,n,d,o,!1);const m=r.outputs;let _;if(h&&null!==m&&(_=m[i])){const C=_.length;if(C)for(let T=0;T<C;T+=2){const Bt=n[_[T]][_[T+1]].subscribe(o),hr=f.length;f.push(o,Bt),u&&u.push(i,r.index,hr,-(hr+1))}}}(o,i,i[11],s,e,n,!!t,r),Me}function Zm(e,n,t,r){try{return!1!==t(r)}catch(i){return lm(e,i),!1}}function id(e,n,t,r,i){return function o(s){if(s===Function)return r;const a=2&e.flags?cn(e.index,n):n;0==(32&n[2])&&Hu(a);let l=Zm(n,0,r,s),c=o.__ngNextListenerFn__;for(;c;)l=Zm(n,0,c,s)&&l,c=c.__ngNextListenerFn__;return i&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function RS(e,n){let t=null;const r=function(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(0==(1&t))return n[t+1]}return null}(e);for(let i=0;i<n.length;i++){const o=n[i];if("*"!==o){if(null===r?Ag(e,o,!0):UE(r,o))return i}else t=i}return t}function c_(e,n,t,r,i){const o=e[t+1],s=null===n;let a=r?Fn(o):br(o),l=!1;for(;0!==a&&(!1===l||s);){const u=e[a+1];FS(e[a],n)&&(l=!0,e[a+1]=r?Eu(u):Cu(u)),a=r?Fn(u):br(u)}l&&(e[t+1]=r?Cu(o):Eu(o))}function FS(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Li(e,n)>=0}const wt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function u_(e){return e.substring(wt.key,wt.keyEnd)}function d_(e,n){const t=wt.textEnd;return t===n?-1:(n=wt.keyEnd=function(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,wt.key=n,t),ao(e,n,t))}function ao(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function tt(e,n){return function(e,n,t,r){const i=S(),o=Ce(),s=vr(2);o.firstUpdatePass&&__(o,e,s,r),n!==re&&Lt(i,s,n)&&v_(o,o.data[Gt()],i,i[11],e,i[s+1]=function(e,n){return null==e||("string"==typeof n?e+=n:"object"==typeof e&&(e=De(Br(e)))),e}(n,t),r,s)}(e,n,null,!0),tt}function ai(e){!function(e,n,t,r){const i=Ce(),o=vr(2);i.firstUpdatePass&&__(i,null,o,r);const s=S();if(t!==re&&Lt(s,o,t)){const a=i.data[Gt()];if(D_(a,r)&&!m_(i,o)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=_c(l,t||"")),nd(i,a,s,t,r)}else!function(e,n,t,r,i,o,s,a){i===re&&(i=Le);let l=0,c=0,u=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const f=l<i.length?i[l+1]:void 0,h=c<o.length?o[c+1]:void 0;let _,m=null;u===d?(l+=2,c+=2,f!==h&&(m=d,_=h)):null===d||null!==u&&u<d?(l+=2,m=u):(c+=2,m=d,_=h),null!==m&&v_(e,n,t,r,m,_,s,a),u=l<i.length?i[l]:null,d=c<o.length?o[c]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function(e,n,t){if(null==t||""===t)return Le;const r=[],i=Br(t);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else"string"==typeof i&&n(r,i);return r}(e,n,t),r,o)}}(dn,or,e,!0)}function or(e,n){for(let t=function(e){return function(e){wt.key=0,wt.keyEnd=0,wt.value=0,wt.valueEnd=0,wt.textEnd=e.length}(e),d_(e,ao(e,0,wt.textEnd))}(n);t>=0;t=d_(n,t))dn(e,u_(n),!0)}function m_(e,n){return n>=e.expandoStartIndex}function __(e,n,t,r){const i=e.data;if(null===i[t+1]){const o=i[Gt()],s=m_(e,t);D_(o,r)&&null===n&&!s&&(n=!1),n=function(e,n,t,r){const i=function(e){const n=te.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=r?n.residualClasses:n.residualStyles;if(null===i)0===(r?n.classBindings:n.styleBindings)&&(t=ls(t=ad(null,e,n,t,r),n.attrs,r),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==i)if(t=ad(i,e,n,t,r),null===o){let l=function(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==br(r))return e[Fn(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=ad(null,e,n,l[1],r),l=ls(l,n.attrs,r),function(e,n,t,r){e[Fn(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else o=function(e,n,t){let r;const i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<i;o++)r=ls(r,e[o].hostAttrs,t);return ls(r,n.attrs,t)}(e,n,r)}return void 0!==o&&(r?n.residualClasses=o:n.residualStyles=o),t}(i,o,n,r),function(e,n,t,r,i,o){let s=o?n.classBindings:n.styleBindings,a=Fn(s),l=br(s);e[r]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||Li(d,u)>0)&&(c=!0)}else u=t;if(i)if(0!==l){const f=Fn(e[a+1]);e[r+1]=Va(f,a),0!==f&&(e[f+1]=wu(e[f+1],r)),e[a+1]=function(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=Va(a,0),0!==a&&(e[a+1]=wu(e[a+1],r)),a=r;else e[r+1]=Va(l,0),0===a?a=r:e[l+1]=wu(e[l+1],r),l=r;c&&(e[r+1]=Cu(e[r+1])),c_(e,u,r,!0),c_(e,u,r,!1),function(e,n,t,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Li(o,n)>=0&&(t[r+1]=Eu(t[r+1]))}(n,u,e,r,o),s=Va(a,l),o?n.classBindings=s:n.styleBindings=s}(i,o,n,t,s,r)}}function ad(e,n,t,r,i){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<s&&(o=n[a],r=ls(r,o.hostAttrs,i),o!==e);)a++;return null!==e&&(t.directiveStylingLast=a),r}function ls(e,n,t){const r=t?1:2;let i=-1;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?i=s:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),dn(e,s,!!t||n[++o]))}return void 0===e?null:e}function v_(e,n,t,r,i,o,s,a){if(!(3&n.type))return;const l=e.data,c=l[a+1];qa(function(e){return 1==(1&e)}(c)?b_(l,n,t,i,br(c),s):void 0)||(qa(o)||function(e){return 2==(2&e)}(c)&&(o=b_(l,null,t,i,a,s)),function(e,n,t,r,i){const o=at(e);if(n)i?o?e.addClass(t,r):t.classList.add(r):o?e.removeClass(t,r):t.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:fn.DashCase;if(null==i)o?e.removeStyle(t,r,s):t.style.removeProperty(r);else{const a="string"==typeof i&&i.endsWith("!important");a&&(i=i.slice(0,-10),s|=fn.Important),o?e.setStyle(t,r,i,s):t.style.setProperty(r,i,a?"important":"")}}}(r,s,function(e,n){return gt(n[e])}(Gt(),t),i,o))}function b_(e,n,t,r,i,o){const s=null===n;let a;for(;i>0;){const l=e[i],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=t[i+1];f===re&&(f=d?Le:void 0);let h=d?Kc(f,r):u===r?f:void 0;if(c&&!qa(h)&&(h=Kc(l,r)),qa(h)&&(a=h,s))return a;const m=e[i+1];i=s?Fn(m):br(m)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=Kc(l,r))}return a}function qa(e){return void 0!==e}function D_(e,n){return 0!=(e.flags&(n?16:32))}function sr(e,n=""){const t=S(),r=Ce(),i=e+20,o=r.firstCreatePass?Wi(r,i,1,n,null):r.data[i],s=t[i]=function(e,n){return at(e)?e.createText(n):e.createTextNode(n)}(t[11],n);Fa(r,t,s,o),Xn(o,!1)}const ci=void 0;var gN=["en",[["a","p"],["AM","PM"],ci],[["AM","PM"],ci,ci],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ci,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ci,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ci,"{1} 'at' {0}",ci],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let lo={};function U_(e){return e in lo||(lo[e]=Oe.ng&&Oe.ng.common&&Oe.ng.common.locales&&Oe.ng.common.locales[e]),lo[e]}var V=(()=>((V=V||{})[V.LocaleId=0]="LocaleId",V[V.DayPeriodsFormat=1]="DayPeriodsFormat",V[V.DayPeriodsStandalone=2]="DayPeriodsStandalone",V[V.DaysFormat=3]="DaysFormat",V[V.DaysStandalone=4]="DaysStandalone",V[V.MonthsFormat=5]="MonthsFormat",V[V.MonthsStandalone=6]="MonthsStandalone",V[V.Eras=7]="Eras",V[V.FirstDayOfWeek=8]="FirstDayOfWeek",V[V.WeekendRange=9]="WeekendRange",V[V.DateFormat=10]="DateFormat",V[V.TimeFormat=11]="TimeFormat",V[V.DateTimeFormat=12]="DateTimeFormat",V[V.NumberSymbols=13]="NumberSymbols",V[V.NumberFormats=14]="NumberFormats",V[V.CurrencyCode=15]="CurrencyCode",V[V.CurrencySymbol=16]="CurrencySymbol",V[V.CurrencyName=17]="CurrencyName",V[V.Currencies=18]="Currencies",V[V.Directionality=19]="Directionality",V[V.PluralCase=20]="PluralCase",V[V.ExtraData=21]="ExtraData",V))();const Ka="en-US";let $_=Ka;class g0{}class gM{resolveComponentFactory(n){throw function(e){const n=Error(`No component factory found for ${De(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let ui=(()=>{class e{}return e.NULL=new gM,e})();function mM(){return uo(bt(),S())}function uo(e,n){return new ze(bn(e,n))}let ze=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=mM,e})();function _M(e){return e instanceof ze?e.nativeElement:e}class gd{}let bM=(()=>{class e{}return e.\u0275prov=ee({token:e,providedIn:"root",factory:()=>null}),e})();class ps{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const DM=new ps("13.1.1"),md={};function Qa(e,n,t,r,i=!1){for(;null!==t;){const o=n[t.index];if(null!==o&&r.push(gt(o)),Rn(o))for(let a=10;a<o.length;a++){const l=o[a],c=l[1].firstChild;null!==c&&Qa(l[1],l,c,r)}const s=t.type;if(8&s)Qa(e,n,t.child,r);else if(32&s){const a=du(t,n);let l;for(;l=a();)r.push(l)}else if(16&s){const a=wg(n,t);if(Array.isArray(a))r.push(...a);else{const l=es(n[16]);Qa(l[1],l,a,r,!0)}}t=i?t.projectionNext:t.next}return r}class gs{constructor(n,t){this._lView=n,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,t=n[1];return Qa(t,n,t.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Rn(n)){const t=n[8],r=t?t.indexOf(this):-1;r>-1&&(mu(n,r),Sa(t,r))}this._attachedToViewContainer=!1}pg(this._lView[1],this._lView)}onDestroy(n){Jg(this._lView[1],this._lView,null,n)}markForCheck(){Hu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ju(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,n,t){pa(!0);try{ju(e,n,t)}finally{pa(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var n;this._appRef=null,ts(this._lView[1],n=this._lView,n[11],2,null,null)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=n}}class CM extends gs{constructor(n){super(n),this._view=n}detectChanges(){im(this._view)}checkNoChanges(){!function(e){pa(!0);try{im(e)}finally{pa(!1)}}(this._view)}get context(){return null}}class _0 extends ui{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=kt(n);return new _d(t,this.ngModule)}}function y0(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}const EM=new se("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>sg});class _d extends g0{constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=n.selectors.map($E).join(","),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return y0(this.componentDef.inputs)}get outputs(){return y0(this.componentDef.outputs)}create(n,t,r,i){const o=(i=i||this.ngModule)?function(e,n){return{get:(t,r,i)=>{const o=e.get(t,md,i);return o!==md||r===md?o:n.get(t,r,i)}}}(n,i.injector):n,s=o.get(gd,ip),a=o.get(bM,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=r?function(e,n,t){if(at(e))return e.selectRootElement(n,t===Jn.ShadowDom);let r="string"==typeof n?e.querySelector(n):n;return r.textContent="",r}(l,r,this.componentDef.encapsulation):gu(s.createRenderer(null,this.componentDef),c,function(e){const n=e.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,f=function(e,n){return{components:[],scheduler:e||sg,clean:AT,playerHandler:n||null,flags:0}}(),h=Ba(0,null,null,1,0,null,null,null,null,null),m=ns(null,h,f,d,null,null,s,l,a,o);let _,C;ga(m);try{const T=function(e,n,t,r,i,o){const s=t[1];t[20]=e;const l=Wi(s,20,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(Ua(l,c,!0),null!==e&&(ba(i,e,c),null!==l.classes&&Du(i,e,l.classes),null!==l.styles&&Sg(i,e,l.styles)));const u=r.createRenderer(e,n),d=ns(t,zg(n),null,n.onPush?64:16,t[20],l,r,u,o||null,null);return s.firstCreatePass&&(Ea(Bo(l,t),s,n.type),em(s,l),tm(l,t.length,1)),ja(t,d),t[20]=d}(u,this.componentDef,m,s,l);if(u)if(r)ba(l,u,["ng-version",DM.full]);else{const{attrs:b,classes:P}=function(e){const n=[],t=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&n.push(o,e[++r]):8===i&&t.push(o);else{if(!kn(i))break;i=o}r++}return{attrs:n,classes:t}}(this.componentDef.selectors[0]);b&&ba(l,u,b),P&&P.length>0&&Du(l,u,P.join(" "))}if(C=xc(h,20),void 0!==t){const b=C.projection=[];for(let P=0;P<this.ngContentSelectors.length;P++){const z=t[P];b.push(null!=z?Array.from(z):null)}}_=function(e,n,t,r,i){const o=t[1],s=function(e,n,t){const r=bt();e.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),nm(e,r,n,zi(e,n,1,null),t));const i=jo(n,e,r.directiveStart,r);Vt(i,n);const o=bn(r,n);return o&&Vt(o,n),i}(o,t,n);if(r.components.push(s),e[8]=s,i&&i.forEach(l=>l(s,n)),n.contentQueries){const l=bt();n.contentQueries(1,s,l.directiveStart)}const a=bt();return!o.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(Lr(a.index),Zg(t[1],a,0,a.directiveStart,a.directiveEnd,n),Qg(n,s)),s}(T,this.componentDef,m,f,[YT]),rs(h,m,null)}finally{ma()}return new NM(this.componentType,_,uo(C,m),m,C)}}class NM extends class{}{constructor(n,t,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=t,this.hostView=this.changeDetectorRef=new CM(i),this.componentType=n}get injector(){return new Oi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}class Er{}class v0{}const fo=new Map;class C0 extends Er{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new _0(this);const r=_n(n);this._bootstrapComponents=tr(r.bootstrap),this._r3Injector=hm(n,t,[{provide:Er,useValue:this},{provide:ui,useValue:this.componentFactoryResolver}],De(n)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(n)}get(n,t=Ct.THROW_IF_NOT_FOUND,r=oe.Default){return n===Ct||n===Er||n===$u?this:this._r3Injector.get(n,t,r)}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class yd extends v0{constructor(n){super(),this.moduleType=n,null!==_n(n)&&function(e){const n=new Set;!function t(r){const i=_n(r,!0),o=i.id;null!==o&&(function(e,n,t){if(n&&n!==t)throw new Error(`Duplicate module registered for ${e} - ${De(n)} vs ${De(n.name)}`)}(o,fo.get(o),r),fo.set(o,r));const s=tr(i.imports);for(const a of s)n.has(a)||(n.add(a),t(a))}(e)}(n)}create(n){return new C0(this.moduleType,n)}}function bd(e){return n=>{setTimeout(e,void 0,n)}}const fe=class extends Pe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){var i,o,s;let a=n,l=t||(()=>null),c=r;if(n&&"object"==typeof n){const d=n;a=null===(i=d.next)||void 0===i?void 0:i.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=bd(l),a&&(a=bd(a)),c&&(c=bd(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof M&&n.add(u),u}};function WM(){return this._results[Yi()]()}class Dd{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Yi(),r=Dd.prototype;r[t]||(r[t]=WM)}get changes(){return this._changes||(this._changes=new fe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const r=this;r.dirty=!1;const i=Dn(n);(this._changesDetected=!function(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=n[r];if(t&&(i=t(i),o=t(o)),o!==i)return!1}return!0}(r._results,i,t))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let ut=(()=>{class e{}return e.__NG_ELEMENT_ID__=KM,e})();const zM=ut,qM=class extends zM{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(n){const t=this._declarationTContainer.tViews,r=ns(this._declarationLView,t,n,16,null,t.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(t)),rs(t,r,n),new gs(r)}};function KM(){return tl(bt(),S())}function tl(e,n){return 4&e.type?new qM(n,e,uo(e,n)):null}let jn=(()=>{class e{}return e.__NG_ELEMENT_ID__=JM,e})();function JM(){return A0(bt(),S())}const YM=jn,M0=class extends YM{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return uo(this._hostTNode,this._hostLView)}get injector(){return new Oi(this._hostTNode,this._hostLView)}get parentInjector(){const n=wa(this._hostTNode,this._hostLView);if(bp(n)){const t=Ri(n,this._hostLView),r=xi(n);return new Oi(t[1].data[r+8],t)}return new Oi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=I0(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,r){const i=n.createEmbeddedView(t||{});return this.insert(i,r),i}createComponent(n,t,r,i,o){const s=n&&!("function"==typeof n);let a;if(s)a=t;else{const d=t||{};a=d.index,r=d.injector,i=d.projectableNodes,o=d.ngModuleRef}const l=s?n:new _d(kt(n)),c=r||this.parentInjector;if(!o&&null==l.ngModule&&c){const d=c.get(Er,null);d&&(o=d)}const u=l.create(c,i,void 0,o);return this.insert(u.hostView,a),u}insert(n,t){const r=n._lView,i=r[1];if(Rn(r[3])){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=r[3],f=new M0(d,d[6],d[3]);f.detach(f.indexOf(n))}}const o=this._adjustIndex(t),s=this._lContainer;!function(e,n,t,r){const i=10+r,o=t.length;r>0&&(t[i-1][4]=n),r<o-10?(n[4]=t[i],Ap(t,10+r,n)):(t.push(n),n[4]=null),n[3]=t;const s=n[17];null!==s&&t!==s&&function(e,n){const t=e[9];n[16]!==n[3][3][16]&&(e[2]=!0),null===t?e[9]=[n]:t.push(n)}(s,n);const a=n[19];null!==a&&a.insertView(e),n[2]|=128}(i,r,s,o);const a=vu(o,s),l=r[11],c=ka(l,s[7]);return null!==c&&function(e,n,t,r,i,o){r[0]=i,r[6]=n,ts(e,r,t,1,i,o)}(i,s[6],l,r,c,a),n.attachToViewContainerRef(),Ap(Cd(s),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=I0(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=mu(this._lContainer,t);r&&(Sa(Cd(this._lContainer),t),pg(r[1],r))}detach(n){const t=this._adjustIndex(n,-1),r=mu(this._lContainer,t);return r&&null!=Sa(Cd(this._lContainer),t)?new gs(r):null}_adjustIndex(n,t=0){return null==n?this.length+t:n}};function I0(e){return e[8]}function Cd(e){return e[8]||(e[8]=[])}function A0(e,n){let t;const r=n[e.index];if(Rn(r))t=r;else{let i;if(8&e.type)i=gt(r);else{const o=n[11];i=o.createComment("");const s=bn(e,n);oi(o,ka(o,s),i,function(e,n){return at(e)?e.nextSibling(n):n.nextSibling}(o,s),!1)}n[e.index]=t=function(e,n,t,r){return new Array(e,!0,!1,n,null,0,r,t,null,null)}(r,n,i,e),ja(n,t)}return new M0(t,e,n)}class wd{constructor(n){this.queryList=n,this.matches=null}clone(){return new wd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ed{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,i=[];for(let o=0;o<r;o++){const s=t.getByIndex(o);i.push(this.queries[s.indexInDeclarationView].clone())}return new Ed(i)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let t=0;t<this.queries.length;t++)null!==F0(n,t).matches&&this.queries[t].setDirty()}}class x0{constructor(n,t,r=null){this.predicate=n,this.flags=t,this.read=r}}class Td{constructor(n=[]){this.queries=n}elementStart(n,t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(n,t)}elementEnd(n){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(n)}embeddedTView(n){let t=null;for(let r=0;r<this.length;r++){const i=null!==t?t.length:0,o=this.getByIndex(r).embeddedTView(n,i);o&&(o.indexInDeclarationView=r,null!==t?t.push(o):t=[o])}return null!==t?new Td(t):null}template(n,t){for(let r=0;r<this.queries.length;r++)this.queries[r].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Sd{constructor(n,t=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new Sd(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let r=n.parent;for(;null!==r&&8&r.type&&r.index!==t;)r=r.parent;return t===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(n,t){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(n,t,QM(t,o)),this.matchTNodeWithReadOption(n,t,Ta(t,n,o,!1,!1))}else r===ut?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,Ta(t,n,r,!1,!1))}matchTNodeWithReadOption(n,t,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===ze||i===jn||i===ut&&4&t.type)this.addMatch(t.index,-2);else{const o=Ta(t,n,i,!1,!1);null!==o&&this.addMatch(t.index,o)}else this.addMatch(t.index,r)}}addMatch(n,t){null===this.matches?this.matches=[n,t]:this.matches.push(n,t)}}function QM(e,n){const t=e.localNames;if(null!==t)for(let r=0;r<t.length;r+=2)if(t[r]===n)return t[r+1];return null}function tI(e,n,t,r){return-1===t?function(e,n){return 11&e.type?uo(e,n):4&e.type?tl(e,n):null}(n,e):-2===t?function(e,n,t){return t===ze?uo(n,e):t===ut?tl(n,e):t===jn?A0(n,e):void 0}(e,n,r):jo(e,e[1],t,n)}function R0(e,n,t,r){const i=n[19].queries[r];if(null===i.matches){const o=e.data,s=t.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:tI(n,o[c],s[l+1],t.metadata.read))}i.matches=a}return i.matches}function Nd(e,n,t,r){const i=e.queries.getByIndex(t),o=i.matches;if(null!==o){const s=R0(e,n,i,t);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)r.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let d=10;d<u.length;d++){const f=u[d];f[17]===f[3]&&Nd(f[1],f,c,r)}if(null!==u[9]){const d=u[9];for(let f=0;f<d.length;f++){const h=d[f];Nd(h[1],h,c,r)}}}}}return r}function nt(e){const n=S(),t=Ce(),r=dp();Lc(r+1);const i=F0(t,r);if(e.dirty&&op(n)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const o=i.crossesNgTemplate?Nd(t,n,r,[]):R0(t,n,i,r);e.reset(o,_M),e.notifyOnChanges()}return!0}return!1}function Md(e,n,t){const r=Ce();r.firstCreatePass&&(function(e,n,t){null===e.queries&&(e.queries=new Td),e.queries.track(new Sd(n,t))}(r,new x0(e,n,t),-1),2==(2&n)&&(r.staticViewQueries=!0)),function(e,n,t){const r=new Dd(4==(4&t));Jg(e,n,r,r.destroy),null===n[19]&&(n[19]=new Ed),n[19].queries.push(new wd(r))}(r,S(),n)}function F0(e,n){return e.queries.getByIndex(n)}function il(...e){}const bs=new se("Application Initializer");let po=(()=>{class e{constructor(t){this.appInits=t,this.resolve=il,this.reject=il,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(as(o))t.push(o);else if(rd(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{r()}).catch(i=>{this.reject(i)}),0===t.length&&r(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(H(bs,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Ds=new se("AppId"),CI={provide:Ds,useFactory:function(){return`${kd()}${kd()}${kd()}`},deps:[]};function kd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Z0=new se("Platform Initializer"),ol=new se("Platform ID"),Q0=new se("appBootstrapListener");let ey=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Gr=new se("LocaleId"),ty=new se("DefaultCurrencyCode");class wI{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let sl=(()=>{class e{compileModuleSync(t){return new yd(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),o=tr(_n(t).declarations).reduce((s,a)=>{const l=kt(a);return l&&s.push(new _d(l)),s},[]);return new wI(r,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const TI=(()=>Promise.resolve(0))();function Fd(e){"undefined"==typeof Zone?TI.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class qe{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new fe(!1),this.onMicrotaskEmpty=new fe(!1),this.onStable=new fe(!1),this.onError=new fe(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&t,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let e=Oe.requestAnimationFrame,n=Oe.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function(e){const n=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Oe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Vd(e),e.isCheckStableRunning=!0,Pd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Vd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,i,o,s,a)=>{try{return ny(e),t.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),ry(e)}},onInvoke:(t,r,i,o,s,a,l)=>{try{return ny(e),t.invoke(i,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),ry(e)}},onHasTask:(t,r,i,o)=>{t.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Vd(e),Pd(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,r,i,o)=>(t.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!qe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(qe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,NI,il,il);try{return o.runTask(s,t,r)}finally{o.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const NI={};function Pd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Vd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function ny(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ry(e){e._nesting--,Pd(e)}class AI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new fe,this.onMicrotaskEmpty=new fe,this.onStable=new fe,this.onError=new fe}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,i){return n.apply(t,r)}}let Ld=(()=>{class e{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{qe.assertNotInAngularZone(),Fd(()=>{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())Fd(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:i})}whenStable(t,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,r,i){return[]}}return e.\u0275fac=function(t){return new(t||e)(H(qe))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),iy=(()=>{class e{constructor(){this._applications=new Map,Hd.addToWindow(this)}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Hd.findTestabilityInTree(this,t,r)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class xI{addToWindow(n){}findTestabilityInTree(n,t,r){return null}}let Un,Hd=new xI;const oy=new se("AllowMultipleToken");class sy{constructor(n,t){this.name=n,this.token=t}}function ay(e,n,t=[]){const r=`Platform: ${n}`,i=new se(r);return(o=[])=>{let s=ly();if(!s||s.injector.get(oy,!1))if(e)e(t.concat(o).concat({provide:i,useValue:!0}));else{const a=t.concat(o).concat({provide:i,useValue:!0},{provide:Gu,useValue:"platform"});!function(e){if(Un&&!Un.destroyed&&!Un.injector.get(oy,!1))throw new on("400","");Un=e.get(cy);const n=e.get(Z0,null);n&&n.forEach(t=>t())}(Ct.create({providers:a,name:r}))}return function(e){const n=ly();if(!n)throw new on("401","");return n}()}}function ly(){return Un&&!Un.destroyed?Un:null}let cy=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const a=function(e,n){let t;return t="noop"===e?new AI:("zone.js"===e?void 0:e)||new qe({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==n?void 0:n.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==n?void 0:n.ngZoneRunCoalescing)}),t}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:qe,useValue:a}];return a.run(()=>{const c=Ct.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(Ui,null);if(!d)throw new on("402","");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});u.onDestroy(()=>{Bd(this._modules,u),f.unsubscribe()})}),function(e,n,t){try{const r=t();return as(r)?r.catch(i=>{throw n.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(d,a,()=>{const f=u.injector.get(po);return f.runInitializers(),f.donePromise.then(()=>(function(e){an(e,"Expected localeId to be defined"),"string"==typeof e&&($_=e.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Gr,Ka)||Ka),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,r=[]){const i=uy({},r);return function(e,n,t){const r=new yd(t);return Promise.resolve(r)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(t){const r=t.injector.get(go);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!t.instance.ngDoBootstrap)throw new on("403","");t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new on("404","");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(H(Ct))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function uy(e,n){return Array.isArray(n)?n.reduce(uy,e):Object.assign(Object.assign({},e),n)}let go=(()=>{class e{constructor(t,r,i,o,s){this._zone=t,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new Se(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new Se(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{qe.assertNotInAngularZone(),Fd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{qe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),d.unsubscribe()}});this.isStable=function(...e){const n=Ro(e),t=function(e,n){return"number"==typeof pc(e)?e.pop():1/0}(e),r=e;return r.length?1===r.length?Ot(r[0]):xo(t)(pt(r,n)):In}(a,l.pipe(function(e={}){const{connector:n=(()=>new Pe),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s=null,a=null,l=null,c=0,u=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=null},h=()=>{f(),s=l=null,u=d=!1},m=()=>{const _=s;h(),null==_||_.unsubscribe()};return Je((_,C)=>{c++,!d&&!u&&f();const T=l=null!=l?l:n();C.add(()=>{c--,0===c&&!d&&!u&&(a=gc(m,i))}),T.subscribe(C),s||(s=new Ge({next:b=>T.next(b),error:b=>{d=!0,f(),a=gc(h,t,b),T.error(b)},complete:()=>{u=!0,f(),a=gc(h,r),T.complete()}}),pt(_).subscribe(s))})(o)}}()))}bootstrap(t,r){if(!this._initStatus.done)throw new on("405","");let i;i=t instanceof g0?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const o=function(e){return e.isBoundToModule}(i)?void 0:this._injector.get(Er),a=i.create(Ct.NULL,[],r||i.selector,o),l=a.location.nativeElement,c=a.injector.get(Ld,null),u=c&&a.injector.get(iy);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Bd(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new on("101","");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Bd(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Q0,[]).concat(this._bootstrapListeners).forEach(i=>i(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(H(qe),H(Ct),H(Ui),H(ui),H(po))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function Bd(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let fy=!0,ar=(()=>{class e{}return e.__NG_ELEMENT_ID__=UI,e})();function UI(e){return function(e,n,t){if(ua(e)&&!t){const r=cn(e.index,n);return new gs(r,r)}return 47&e.type?new gs(n[16],n):null}(bt(),S(),16==(16&e))}class vy{constructor(){}supports(n){return os(n)}create(n){return new JI(n)}}const KI=(e,n)=>n;class JI{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||KI}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,i=0,o=null;for(;t||r;){const s=!r||t&&t.currentIndex<Dy(r,i,o)?t:r,a=Dy(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(t=t._next,null==s.previousIndex)i++;else{o||(o=[]);const c=a-i,u=l-i;if(c!=u){for(let f=0;f<c;f++){const h=f<o.length?o[f]:o[f]=0,m=h+f;u<=m&&m<c&&(o[f]=h+1)}o[s.previousIndex]=u-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)n(t)}forEachMovedItem(n){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)n(t)}forEachIdentityChange(n){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)n(t)}diff(n){if(null==n&&(n=[]),!os(n))throw new Error(`Error trying to diff '${De(n)}'. Only arrays and iterables are allowed`);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let i,o,s,t=this._itHead,r=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)o=n[a],s=this._trackByFn(a,o),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,o,s,a)),Object.is(t.item,o)||this._addIdentityChange(t,o)):(t=this._mismatch(t,o,s,a),r=!0),t=t._next}else i=0,function(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{const t=e[Yi()]();let r;for(;!(r=t.next()).done;)n(r.value)}}(n,a=>{s=this._trackByFn(i,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,i),r=!0),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,i){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,i)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,i)):n=this._addAfter(new YI(t,r),o,i),n}_verifyReinsertion(n,t,r,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const i=n._prevRemoved,o=n._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const i=null===t?this._itHead:t._next;return n._next=i,n._prev=t,null===i?this._itTail=n:i._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new by),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new by),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class YI{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class XI{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class by{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new XI,this.map.set(t,r)),r.add(n)}get(n,t){const i=this.map.get(n);return i?i.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Dy(e,n,t){const r=e.previousIndex;if(null===r)return r;let i=0;return t&&r<t.length&&(i=t[r]),r+n+i}class Cy{constructor(){}supports(n){return n instanceof Map||Yu(n)}create(){return new ZI}}class ZI{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let t;for(t=this._mapHead;null!==t;t=t._next)n(t)}forEachPreviousItem(n){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)n(t)}forEachChangedItem(n){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)n(t)}diff(n){if(n){if(!(n instanceof Map||Yu(n)))throw new Error(`Error trying to diff '${De(n)}'. Only maps and objects are allowed`)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(n,(r,i)=>{if(t&&t.key===i)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(i,r);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const i=this._records.get(n);this._maybeAddToChanges(i,t);const o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}const r=new QI(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}}class QI{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function wy(){return new Cs([new vy])}let Cs=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(null!=r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||wy()),deps:[[e,new Hi,new Qn]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(e){return e.name||typeof e}(t)}'`)}}return e.\u0275prov=ee({token:e,providedIn:"root",factory:wy}),e})();function Ey(){return new mo([new Cy])}let mo=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(r){const i=r.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||Ey()),deps:[[e,new Hi,new Qn]]}}find(t){const r=this.factories.find(i=>i.supports(t));if(r)return r;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return e.\u0275prov=ee({token:e,providedIn:"root",factory:Ey}),e})();const tA=[new Cy],rA=new Cs([new vy]),iA=new mo(tA),oA=ay(null,"core",[{provide:ol,useValue:"unknown"},{provide:cy,deps:[Ct]},{provide:iy,deps:[]},{provide:ey,deps:[]}]),uA=[{provide:go,useClass:go,deps:[qe,Ct,Ui,ui,po]},{provide:EM,deps:[qe],useFactory:function(e){let n=[];return e.onStable.subscribe(()=>{for(;n.length;)n.pop()()}),function(t){n.push(t)}}},{provide:po,useClass:po,deps:[[new Qn,bs]]},{provide:sl,useClass:sl,deps:[]},CI,{provide:Cs,useFactory:function(){return rA},deps:[]},{provide:mo,useFactory:function(){return iA},deps:[]},{provide:Gr,useFactory:function(e){return e||"undefined"!=typeof $localize&&$localize.locale||Ka},deps:[[new Ko(Gr),new Qn,new Hi]]},{provide:ty,useValue:"USD"}];let fA=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(H(go))},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({providers:uA}),e})(),ll=null;function lr(){return ll}const xt=new se("DocumentToken");let fi=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return H(Ty)},providedIn:"platform"}),e})();const _A=new se("Location Initialized");let Ty=(()=>{class e extends fi{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return lr().getBaseHref(this._doc)}onPopState(t){const r=lr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=lr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,r,i){Sy()?this._history.pushState(t,r,i):this.location.hash=i}replaceState(t,r,i){Sy()?this._history.replaceState(t,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(H(xt))},e.\u0275prov=ee({token:e,factory:function(){return new Ty(H(xt))},providedIn:"platform"}),e})();function Sy(){return!!window.history.pushState}function Wd(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function Ny(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Sr(e){return e&&"?"!==e[0]?"?"+e:e}let _o=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:function(){return function(e){const n=H(xt).location;return new My(H(fi),n&&n.origin||"")}()},providedIn:"root"}),e})();const zd=new se("appBaseHref");let My=(()=>{class e extends _o{constructor(t,r){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Wd(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Sr(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){const s=this.prepareExternalUrl(i+Sr(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){const s=this.prepareExternalUrl(i+Sr(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,t)}}return e.\u0275fac=function(t){return new(t||e)(H(fi),H(zd,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),bA=(()=>{class e extends _o{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=Wd(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+Sr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+Sr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var r,i;null===(i=(r=this._platformLocation).historyGo)||void 0===i||i.call(r,t)}}return e.\u0275fac=function(t){return new(t||e)(H(fi),H(zd,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),qd=(()=>{class e{constructor(t,r){this._subject=new fe,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=Ny(Iy(i)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Sr(r))}normalize(t){return e.stripTrailingSlash(function(e,n){return e&&n.startsWith(e)?n.substring(e.length):n}(this._baseHref,Iy(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._platformStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Sr(r)),i)}replaceState(t,r="",i=null){this._platformStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Sr(r)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var r,i;null===(i=(r=this._platformStrategy).historyGo)||void 0===i||i.call(r,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}}return e.normalizeQueryParams=Sr,e.joinWithSlash=Wd,e.stripTrailingSlash=Ny,e.\u0275fac=function(t){return new(t||e)(H(_o),H(fi))},e.\u0275prov=ee({token:e,factory:function(){return new qd(H(_o),H(fi))},providedIn:"root"}),e})();function Iy(e){return e.replace(/\/index.html$/,"")}var _t=(()=>((_t=_t||{})[_t.Zero=0]="Zero",_t[_t.One=1]="One",_t[_t.Two=2]="Two",_t[_t.Few=3]="Few",_t[_t.Many=4]="Many",_t[_t.Other=5]="Other",_t))();const IA=function(e){return function(e){const n=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=U_(n);if(t)return t;const r=n.split("-")[0];if(t=U_(r),t)return t;if("en"===r)return gN;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[V.PluralCase]};class yl{}let ix=(()=>{class e extends yl{constructor(t){super(),this.locale=t}getPluralCategory(t,r){switch(IA(r||this.locale)(t)){case _t.Zero:return"zero";case _t.One:return"one";case _t.Two:return"two";case _t.Few:return"few";case _t.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(H(Gr))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),nn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({providers:[{provide:yl,useClass:ix}]}),e})();let Hx=(()=>{class e{}return e.\u0275prov=ee({token:e,providedIn:"root",factory:()=>new Bx(H(xt),window)}),e})();class Bx{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const o=i.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}attemptFocus(n){return n.focus(),this.document.activeElement===n}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=$y(this.window.history)||$y(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function $y(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class lf extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var e;e=new lf,ll||(ll=e)}onAndCancel(n,t,r){return n.addEventListener(t,r,!1),()=>{n.removeEventListener(t,r,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=(Ms=Ms||document.querySelector("base"),Ms?Ms.getAttribute("href"):null);return null==t?null:function(e){vl=vl||document.createElement("a"),vl.setAttribute("href",e);const n=vl.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Ms=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[i,o]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}(document.cookie,n)}}let vl,Ms=null;const Gy=new se("TRANSITION_ID"),qx=[{provide:bs,useFactory:function(e,n,t){return()=>{t.get(po).donePromise.then(()=>{const r=lr(),i=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[Gy,xt,Ct],multi:!0}];class cf{static init(){var e;e=new cf,Hd=e}addToWindow(n){Oe.getAngularTestability=(r,i=!0)=>{const o=n.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},Oe.getAllAngularTestabilities=()=>n.getAllTestabilities(),Oe.getAllAngularRootElements=()=>n.getAllRootElements(),Oe.frameworkStabilizers||(Oe.frameworkStabilizers=[]),Oe.frameworkStabilizers.push(r=>{const i=Oe.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(l){s=s||l,o--,0==o&&r(s)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,t,r){if(null==t)return null;const i=n.getTestability(t);return null!=i?i:r?lr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null}}let Kx=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const bl=new se("EventManagerPlugins");let Dl=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(i=>i.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,i){return this._findPluginFor(r).addEventListener(t,r,i)}addGlobalEventListener(t,r,i){return this._findPluginFor(r).addGlobalEventListener(t,r,i)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const s=i[o];if(s.supports(t))return this._eventNameToPlugin.set(t,s),s}throw new Error(`No event manager plugin found for event ${t}`)}}return e.\u0275fac=function(t){return new(t||e)(H(bl),H(qe))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Wy{constructor(n){this._doc=n}addGlobalEventListener(n,t,r){const i=lr().getGlobalEventTarget(this._doc,n);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,r)}}let zy=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Is=(()=>{class e extends zy{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,i){t.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,i.push(r.appendChild(s))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(qy),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(t,i,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(qy))}}return e.\u0275fac=function(t){return new(t||e)(H(xt))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function qy(e){lr().remove(e)}const uf={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/"},df=/%COMP%/g;function Cl(e,n,t){for(let r=0;r<n.length;r++){let i=n[r];Array.isArray(i)?Cl(e,i,t):(i=i.replace(df,e),t.push(i))}return t}function Yy(e){return n=>{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let ff=(()=>{class e{constructor(t,r,i){this.eventManager=t,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new hf(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case Jn.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new eR(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(t),i}case 1:case Jn.ShadowDom:return new tR(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const i=Cl(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(H(Dl),H(Is),H(Ds))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class hf{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(uf[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){n.appendChild(t)}insertBefore(n,t,r){n&&n.insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?document.querySelector(n):n;if(!r)throw new Error(`The selector "${n}" did not match any elements`);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,i){if(i){t=i+":"+t;const o=uf[i];o?n.setAttributeNS(o,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const i=uf[r];i?n.removeAttributeNS(i,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,i){i&(fn.DashCase|fn.Important)?n.style.setProperty(t,r,i&fn.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&fn.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,Yy(r)):this.eventManager.addEventListener(n,t,Yy(r))}}class eR extends hf{constructor(n,t,r,i){super(n),this.component=r;const o=Cl(i+"-"+r.id,r.styles,[]);t.addStyles(o),this.contentAttr="_ngcontent-%COMP%".replace(df,i+"-"+r.id),this.hostAttr="_nghost-%COMP%".replace(df,i+"-"+r.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}class tR extends hf{constructor(n,t,r,i){super(n),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Cl(i.id,i.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let nR=(()=>{class e extends Wy{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,i){return t.addEventListener(r,i,!1),()=>this.removeEventListener(t,r,i)}removeEventListener(t,r,i){return t.removeEventListener(r,i)}}return e.\u0275fac=function(t){return new(t||e)(H(xt))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Zy=["alt","control","meta","shift"],iR={"\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"},Qy={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},oR={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let sR=(()=>{class e extends Wy{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>lr().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="";if(Zy.forEach(l=>{const c=r.indexOf(l);c>-1&&(r.splice(c,1),s+=l+".")}),s+=o,0!=r.length||0===o.length)return null;const a={};return a.domEventName=i,a.fullKey=s,a}static getEventFullKey(t){let r="",i=function(e){let n=e.key;if(null==n){if(n=e.keyIdentifier,null==n)return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===e.location&&Qy.hasOwnProperty(n)&&(n=Qy[n]))}return iR[n]||n}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Zy.forEach(o=>{o!=i&&oR[o](t)&&(r+=o+".")}),r+=i,r}static eventCallback(t,r,i){return o=>{e.getEventFullKey(o)===t&&i.runGuarded(()=>r(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(H(xt))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const dR=ay(oA,"browser",[{provide:ol,useValue:"browser"},{provide:Z0,useValue:function(){lf.makeCurrent(),cf.init()},multi:!0},{provide:xt,useFactory:function(){return e=document,Ic=e,document;var e},deps:[]}]),fR=[{provide:Gu,useValue:"root"},{provide:Ui,useFactory:function(){return new Ui},deps:[]},{provide:bl,useClass:nR,multi:!0,deps:[xt,qe,ol]},{provide:bl,useClass:sR,multi:!0,deps:[xt]},{provide:ff,useClass:ff,deps:[Dl,Is,Ds]},{provide:gd,useExisting:ff},{provide:zy,useExisting:Is},{provide:Is,useClass:Is,deps:[xt]},{provide:Ld,useClass:Ld,deps:[qe]},{provide:Dl,useClass:Dl,deps:[bl,qe]},{provide:class{},useClass:Kx,deps:[]}];let hR=(()=>{class e{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:Ds,useValue:t.appId},{provide:Gy,useExisting:Ds},qx]}}}return e.\u0275fac=function(t){return new(t||e)(H(e,12))},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({providers:fR,imports:[nn,fA]}),e})();function Mr(e,n,t,r){return new(t||(t=Promise))(function(o,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?o(u.value):function(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((r=r.apply(e,n||[])).next())})}"undefined"!=typeof window&&window;class hi{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(t=>{let r=n[t];const i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(i,r),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof hi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new hi;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof hi?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const i=("a"===n.op?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}const kR=new se("HTTP_INTERCEPTORS");var FR=B(172),cr=(()=>{return(e=cr||(cr={}))[e.OnAuthError=0]="OnAuthError",e[e.OnAuthLogout=1]="OnAuthLogout",e[e.OnAuthRefreshError=2]="OnAuthRefreshError",e[e.OnAuthRefreshSuccess=3]="OnAuthRefreshSuccess",e[e.OnAuthSuccess=4]="OnAuthSuccess",e[e.OnReady=5]="OnReady",e[e.OnTokenExpired=6]="OnTokenExpired",cr;var e})();const VR=FR;let El=(()=>{class e{constructor(){this._keycloakEvents$=new Pe}bindsKeycloakEvents(){this._instance.onAuthError=t=>{this._keycloakEvents$.next({args:t,type:cr.OnAuthError})},this._instance.onAuthLogout=()=>{this._keycloakEvents$.next({type:cr.OnAuthLogout})},this._instance.onAuthRefreshSuccess=()=>{this._keycloakEvents$.next({type:cr.OnAuthRefreshSuccess})},this._instance.onAuthRefreshError=()=>{this._keycloakEvents$.next({type:cr.OnAuthRefreshError})},this._instance.onAuthSuccess=()=>{this._keycloakEvents$.next({type:cr.OnAuthSuccess})},this._instance.onTokenExpired=()=>{this._keycloakEvents$.next({type:cr.OnTokenExpired})},this._instance.onReady=t=>{this._keycloakEvents$.next({args:t,type:cr.OnReady})}}loadExcludedUrls(t){const r=[];for(const i of t){let o;o="string"==typeof i?{urlPattern:new RegExp(i,"i"),httpMethods:[]}:{urlPattern:new RegExp(i.url,"i"),httpMethods:i.httpMethods},r.push(o)}return r}initServiceValues({enableBearerInterceptor:t=!0,loadUserProfileAtStartUp:r=!1,bearerExcludedUrls:i=[],authorizationHeaderName:o="Authorization",bearerPrefix:s="Bearer",initOptions:a}){this._enableBearerInterceptor=t,this._loadUserProfileAtStartUp=r,this._authorizationHeaderName=o,this._bearerPrefix=s.trim().concat(" "),this._excludedUrls=this.loadExcludedUrls(i),this._silentRefresh=!!a&&"implicit"===a.flow}init(t={}){return Mr(this,void 0,void 0,function*(){this.initServiceValues(t);const{config:r,initOptions:i}=t;this._instance=VR(r),this.bindsKeycloakEvents();const o=yield this._instance.init(i);return o&&this._loadUserProfileAtStartUp&&(yield this.loadUserProfile()),o})}login(t={}){return Mr(this,void 0,void 0,function*(){yield this._instance.login(t),this._loadUserProfileAtStartUp&&(yield this.loadUserProfile())})}logout(t){return Mr(this,void 0,void 0,function*(){const r={redirectUri:t};yield this._instance.logout(r),this._userProfile=void 0})}register(t={action:"register"}){return Mr(this,void 0,void 0,function*(){yield this._instance.register(t)})}isUserInRole(t,r){let i;return i=this._instance.hasResourceRole(t,r),i||(i=this._instance.hasRealmRole(t)),i}getUserRoles(t=!0){let r=[];if(this._instance.resourceAccess)for(const i in this._instance.resourceAccess)this._instance.resourceAccess.hasOwnProperty(i)&&(r=r.concat(this._instance.resourceAccess[i].roles||[]));return t&&this._instance.realmAccess&&r.push(...this._instance.realmAccess.roles||[]),r}isLoggedIn(){return Mr(this,void 0,void 0,function*(){try{return!!this._instance.authenticated&&(yield this.updateToken(20),!0)}catch(t){return!1}})}isTokenExpired(t=0){return this._instance.isTokenExpired(t)}updateToken(t=5){return Mr(this,void 0,void 0,function*(){if(this._silentRefresh){if(this.isTokenExpired())throw new Error("Failed to refresh the token, or the session is expired");return!0}if(!this._instance)throw new Error("Keycloak Angular library is not initialized.");return this._instance.updateToken(t)})}loadUserProfile(t=!1){return Mr(this,void 0,void 0,function*(){if(this._userProfile&&!t)return this._userProfile;if(!this._instance.authenticated)throw new Error("The user profile was not loaded as the user is not logged in.");return this._userProfile=yield this._instance.loadUserProfile()})}getToken(){return Mr(this,void 0,void 0,function*(){return yield this.updateToken(10),this._instance.token})}getUsername(){if(!this._userProfile)throw new Error("User not logged in or user profile was not loaded.");return this._userProfile.username}clearToken(){this._instance.clearToken()}addTokenToHeader(t=new hi){return pt(this.getToken()).pipe(de(r=>r?t.set(this._authorizationHeaderName,this._bearerPrefix+r):t))}getKeycloakInstance(){return this._instance}get excludedUrls(){return this._excludedUrls}get enableBearerInterceptor(){return this._enableBearerInterceptor}get keycloakEvents$(){return this._keycloakEvents$}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),LR=(()=>{class e{constructor(t){this.keycloak=t}isUrlExcluded({method:t,url:r},{urlPattern:i,httpMethods:o}){const s=0===o.length||o.join().indexOf(t.toUpperCase())>-1,a=i.test(r);return s&&a}intercept(t,r){const{enableBearerInterceptor:i,excludedUrls:o}=this.keycloak;return!i||o.findIndex(a=>this.isUrlExcluded(t,a))>-1?r.handle(t):pt(this.keycloak.isLoggedIn()).pipe(st(a=>a?this.handleRequestWithTokenHeader(t,r):r.handle(t)))}handleRequestWithTokenHeader(t,r){return this.keycloak.addTokenToHeader(t.headers).pipe(st(i=>{const o=t.clone({headers:i});return r.handle(o)}))}}return e.\u0275fac=function(t){return new(t||e)(H(El))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),HR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({providers:[El,{provide:kR,useClass:LR,multi:!0}],imports:[[nn]]}),e})(),BR=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[HR]]}),e})();function ie(...e){return pt(e,Ro(e))}class Mt extends Pe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}const{isArray:jR}=Array,{getPrototypeOf:UR,prototype:$R,keys:GR}=Object;const{isArray:zR}=Array;function mf(e){return de(n=>function(e,n){return zR(n)?e(...n):e(n)}(e,n))}function _f(...e){const n=Ro(e),t=ra(e),{args:r,keys:i}=function(e){if(1===e.length){const n=e[0];if(jR(n))return{args:n,keys:null};if(function(e){return e&&"object"==typeof e&&UR(e)===$R}(n)){const t=GR(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}(e);if(0===r.length)return pt([],n);const o=new Se(function(e,n,t=rn){return r=>{mv(n,()=>{const{length:i}=e,o=new Array(i);let s=i,a=i;for(let l=0;l<i;l++)mv(n,()=>{const c=pt(e[l],n);let u=!1;c.subscribe(new Re(r,d=>{o[l]=d,u||(u=!0,a--),a||r.next(t(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,i?s=>function(e,n){return e.reduce((t,r,i)=>(t[r]=n[i],t),{})}(i,s):rn));return t?o.pipe(mf(t)):o}function mv(e,n,t){e?pr(t,e,n):n()}const Tl=$(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function xs(...e){return xo(1)(pt(e,Ro(e)))}function _v(e){return new Se(n=>{Ot(e()).subscribe(n)})}function yv(){return Je((e,n)=>{let t=null;e._refCount++;const r=new Re(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const i=e._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class YR extends Se{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,na(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,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new M;const t=this.getSubject();n.add(this.source.subscribe(new Re(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=M.EMPTY)}return n}refCount(){return yv()(this)}}function Ir(e,n){return Je((t,r)=>{let i=null,o=0,s=!1;const a=()=>s&&!i&&r.complete();t.subscribe(new Re(r,l=>{null==i||i.unsubscribe();let c=0;const u=o++;Ot(e(l,u)).subscribe(i=new Re(r,d=>r.next(n?n(l,d,u,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function XR(e,n,t,r,i){return(o,s)=>{let a=t,l=n,c=0;o.subscribe(new Re(s,u=>{const d=c++;l=a?e(l,u,d):(a=!0,u),r&&s.next(l)},i&&(()=>{a&&s.next(l),s.complete()})))}}function vv(e,n){return Je(XR(e,n,arguments.length>=2,!0))}function pn(e,n){return Je((t,r)=>{let i=0;t.subscribe(new Re(r,o=>e.call(n,o,i++)&&r.next(o)))})}function zr(e){return Je((n,t)=>{let o,r=null,i=!1;r=n.subscribe(new Re(t,void 0,void 0,s=>{o=Ot(e(s,zr(e)(n))),r?(r.unsubscribe(),r=null,o.subscribe(t)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(t))})}function Rs(e,n){return E(n)?st(e,n,1):st(e,1)}function yf(e){return e<=0?()=>In:Je((n,t)=>{let r=[];n.subscribe(new Re(t,i=>{r.push(i),e<r.length&&r.shift()},()=>{for(const i of r)t.next(i);t.complete()},void 0,()=>{r=null}))})}function bv(e=ZR){return Je((n,t)=>{let r=!1;n.subscribe(new Re(t,i=>{r=!0,t.next(i)},()=>r?t.complete():t.error(e())))})}function ZR(){return new Tl}function Dv(e){return Je((n,t)=>{let r=!1;n.subscribe(new Re(t,i=>{r=!0,t.next(i)},()=>{r||t.next(e),t.complete()}))})}function yo(e,n){const t=arguments.length>=2;return r=>r.pipe(e?pn((i,o)=>e(i,o,r)):rn,jt(1),t?Dv(n):bv(()=>new Tl))}function Kt(e,n,t){const r=E(e)||n||t?{next:e,error:n,complete:t}:e;return r?Je((i,o)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;i.subscribe(new Re(o,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),o.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),o.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),o.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)}))}):rn}class Ar{constructor(n,t){this.id=n,this.url=t}}class vf extends Ar{constructor(n,t,r="imperative",i=null){super(n,t),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Os extends Ar{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Cv extends Ar{constructor(n,t,r){super(n,t),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tO extends Ar{constructor(n,t,r){super(n,t),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class nO extends Ar{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rO extends Ar{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class iO extends Ar{constructor(n,t,r,i,o){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class oO extends Ar{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sO extends Ar{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wv{constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ev{constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class aO{constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lO{constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cO{constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uO{constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Tv{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ge="primary";class dO{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function vo(e){return new dO(e)}const Sv="ngNavigationCancelingError";function bf(e){const n=Error("NavigationCancelingError: "+e);return n[Sv]=!0,n}function hO(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.length<e.length))return null;const i={};for(let o=0;o<r.length;o++){const s=r[o],a=e[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function ur(e,n){const t=e?Object.keys(e):void 0,r=n?Object.keys(n):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!Nv(e[i],n[i]))return!1;return!0}function Nv(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;const t=[...e].sort(),r=[...n].sort();return t.every((i,o)=>r[o]===i)}return e===n}function Mv(e){return Array.prototype.concat.apply([],e)}function Iv(e){return e.length>0?e[e.length-1]:null}function Rt(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function dr(e){return rd(e)?e:as(e)?pt(Promise.resolve(e)):ie(e)}const mO={exact:function Rv(e,n,t){if(!gi(e.segments,n.segments)||!Nl(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!Rv(e.children[r],n.children[r],t))return!1;return!0},subset:Ov},Av={exact:function(e,n){return ur(e,n)},subset:function(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Nv(e[t],n[t]))},ignored:()=>!0};function xv(e,n,t){return mO[t.paths](e.root,n.root,t.matrixParams)&&Av[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function Ov(e,n,t){return kv(e,n,n.segments,t)}function kv(e,n,t,r){if(e.segments.length>t.length){const i=e.segments.slice(0,t.length);return!(!gi(i,t)||n.hasChildren()||!Nl(i,t,r))}if(e.segments.length===t.length){if(!gi(e.segments,t)||!Nl(e.segments,t,r))return!1;for(const i in n.children)if(!e.children[i]||!Ov(e.children[i],n.children[i],r))return!1;return!0}{const i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(gi(e.segments,i)&&Nl(e.segments,i,r)&&e.children[ge])&&kv(e.children[ge],n,o,r)}}function Nl(e,n,t){return n.every((r,i)=>Av[t](e[i].parameters,r.parameters))}class pi{constructor(n,t,r){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=vo(this.queryParams)),this._queryParamMap}toString(){return DO.serialize(this)}}class ve{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Rt(t,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ml(this)}}class ks{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=vo(this.parameters)),this._parameterMap}toString(){return Hv(this)}}function gi(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}class Fv{}class Pv{parse(n){const t=new AO(n);return new pi(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Fs(n.root,!0)}`,r=function(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(i=>`${Il(t)}=${Il(i)}`).join("&"):`${Il(t)}=${Il(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);var e;return`${t}${r}${"string"==typeof n.fragment?`#${e=n.fragment,encodeURI(e)}`:""}`}}const DO=new Pv;function Ml(e){return e.segments.map(n=>Hv(n)).join("/")}function Fs(e,n){if(!e.hasChildren())return Ml(e);if(n){const t=e.children[ge]?Fs(e.children[ge],!1):"",r=[];return Rt(e.children,(i,o)=>{o!==ge&&r.push(`${o}:${Fs(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function(e,n){let t=[];return Rt(e.children,(r,i)=>{i===ge&&(t=t.concat(n(r,i)))}),Rt(e.children,(r,i)=>{i!==ge&&(t=t.concat(n(r,i)))}),t}(e,(r,i)=>i===ge?[Fs(e.children[ge],!1)]:[`${i}:${Fs(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[ge]?`${Ml(e)}/${t[0]}`:`${Ml(e)}/(${t.join("//")})`}}function Vv(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Il(e){return Vv(e).replace(/%3B/gi,";")}function Df(e){return Vv(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Al(e){return decodeURIComponent(e)}function Lv(e){return Al(e.replace(/\+/g,"%20"))}function Hv(e){return`${Df(e.path)}${function(e){return Object.keys(e).map(n=>`;${Df(n)}=${Df(e[n])}`).join("")}(e.parameters)}`}const TO=/^[^\/()?;=#]+/;function xl(e){const n=e.match(TO);return n?n[0]:""}const SO=/^[^=?&#]+/,MO=/^[^&#]+/;class AO{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ve([],{}):new ve([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[ge]=new ve(n,t)),r}parseSegment(){const n=xl(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(n),new ks(Al(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=xl(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const i=xl(this.remaining);i&&(r=i,this.capture(r))}n[Al(t)]=Al(r)}parseQueryParam(n){const t=function(e){const n=e.match(SO);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function(e){const n=e.match(MO);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const i=Lv(t),o=Lv(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=xl(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let o;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=ge);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[ge]:new ve([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Error(`Expected "${n}".`)}}class Bv{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Cf(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=Cf(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=wf(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return wf(n,this._root).map(t=>t.value)}}function Cf(e,n){if(e===n.value)return n;for(const t of n.children){const r=Cf(e,t);if(r)return r}return null}function wf(e,n){if(e===n.value)return[n];for(const t of n.children){const r=wf(e,t);if(r.length)return r.unshift(n),r}return[]}class xr{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function bo(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class jv extends Bv{constructor(n,t){super(n),this.snapshot=t,Ef(this,n)}toString(){return this.snapshot.toString()}}function Uv(e,n){const t=function(e,n){const s=new Rl([],{},{},"",{},ge,n,null,e.root,-1,{});return new Gv("",new xr(s,[]))}(e,n),r=new Mt([new ks("",{})]),i=new Mt({}),o=new Mt({}),s=new Mt({}),a=new Mt(""),l=new Do(r,i,s,a,o,ge,n,t.root);return l.snapshot=t.root,new jv(new xr(l,[]),t)}class Do{constructor(n,t,r,i,o,s,a,l){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(de(n=>vo(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(de(n=>vo(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $v(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const i=t[r],o=t[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(e){return e.reduce((n,t)=>({params:Object.assign(Object.assign({},n.params),t.params),data:Object.assign(Object.assign({},n.data),t.data),resolve:Object.assign(Object.assign({},n.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(t.slice(r))}class Rl{constructor(n,t,r,i,o,s,a,l,c,u,d){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=vo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=vo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Gv extends Bv{constructor(n,t){super(t),this.url=n,Ef(this,t)}toString(){return Wv(this._root)}}function Ef(e,n){n.value._routerState=e,n.children.forEach(t=>Ef(e,t))}function Wv(e){const n=e.children.length>0?` { ${e.children.map(Wv).join(", ")} } `:"";return`${e.value}${n}`}function Tf(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,ur(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),ur(n.params,t.params)||e.params.next(t.params),function(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!ur(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.url.next(t.url),ur(n.data,t.data)||e.data.next(t.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Sf(e,n){const t=ur(e.params,n.params)&&function(e,n){return gi(e,n)&&e.every((t,r)=>ur(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Sf(e.parent,n.parent))}function Ps(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const i=function(e,n,t){return n.children.map(r=>{for(const i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Ps(e,r,i);return Ps(e,r)})}(e,n,t);return new xr(r,i)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Ps(e,a)),s}}const r=function(e){return new Do(new Mt(e.url),new Mt(e.params),new Mt(e.queryParams),new Mt(e.fragment),new Mt(e.data),e.outlet,e.component,e)}(n.value),i=n.children.map(o=>Ps(e,o));return new xr(r,i)}}function Ol(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Vs(e){return"object"==typeof e&&null!=e&&e.outlets}function Nf(e,n,t,r,i){let o={};return r&&Rt(r,(s,a)=>{o[a]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new pi(t.root===e?n:zv(t.root,e,n),o,i)}function zv(e,n,t){const r={};return Rt(e.children,(i,o)=>{r[o]=i===n?t:zv(i,n,t)}),new ve(e.segments,r)}class qv{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&Ol(r[0]))throw new Error("Root segment cannot have matrix parameters");const i=r.find(Vs);if(i&&i!==Iv(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Mf{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function Kv(e,n,t){if(e||(e=new ve([],{})),0===e.segments.length&&e.hasChildren())return kl(e,n,t);const r=function(e,n,t){let r=0,i=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=t.length)return o;const s=e.segments[i],a=t[r];if(Vs(a))break;const l=`${a}`,c=r<t.length-1?t[r+1]:null;if(i>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Yv(l,c,s))return o;r+=2}else{if(!Yv(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const o=new ve(e.segments.slice(0,r.pathIndex),{});return o.children[ge]=new ve(e.segments.slice(r.pathIndex),e.children),kl(o,0,i)}return r.match&&0===i.length?new ve(e.segments,{}):r.match&&!e.hasChildren()?If(e,n,t):r.match?kl(e,0,i):If(e,n,t)}function kl(e,n,t){if(0===t.length)return new ve(e.segments,{});{const r=function(e){return Vs(e[0])?e[0].outlets:{[ge]:e}}(t),i={};return Rt(r,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=Kv(e.children[s],n,o))}),Rt(e.children,(o,s)=>{void 0===r[s]&&(i[s]=o)}),new ve(e.segments,i)}}function If(e,n,t){const r=e.segments.slice(0,n);let i=0;for(;i<t.length;){const o=t[i];if(Vs(o)){const l=UO(o.outlets);return new ve(r,l)}if(0===i&&Ol(t[0])){r.push(new ks(e.segments[n].path,Jv(t[0]))),i++;continue}const s=Vs(o)?o.outlets[ge]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&Ol(a)?(r.push(new ks(s,Jv(a))),i+=2):(r.push(new ks(s,{})),i++)}return new ve(r,{})}function UO(e){const n={};return Rt(e,(t,r)=>{"string"==typeof t&&(t=[t]),null!==t&&(n[r]=If(new ve([],{}),0,t))}),n}function Jv(e){const n={};return Rt(e,(t,r)=>n[r]=`${t}`),n}function Yv(e,n,t){return e==t.path&&ur(n,t.parameters)}class GO{constructor(n,t,r,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Tf(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const i=bo(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Rt(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(i===o)if(i.component){const s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=bo(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=bo(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(n,t,r){const i=bo(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new uO(o.value.snapshot))}),n.children.length&&this.forwardEvent(new lO(n.value.snapshot))}activateRoutes(n,t,r){const i=n.value,o=t?t.value:null;if(Tf(i),i===o)if(i.component){const s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){const s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Tf(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=function(e){for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=i,s.resolver=l,s.outlet&&s.outlet.activateWith(i,l),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class Af{constructor(n,t){this.routes=n,this.module=t}}function qr(e){return"function"==typeof e}function mi(e){return e instanceof pi}const Ls=Symbol("INITIAL_VALUE");function Hs(){return Ir(e=>_f(e.map(n=>n.pipe(jt(1),function(...e){const n=Ro(e);return Je((t,r)=>{(n?xs(e,t,n):xs(e,t)).subscribe(r)})}(Ls)))).pipe(vv((n,t)=>{let r=!1;return t.reduce((i,o,s)=>i!==Ls?i:(o===Ls&&(r=!0),r||!1!==o&&s!==t.length-1&&!mi(o)?i:o),n)},Ls),pn(n=>n!==Ls),de(n=>mi(n)?n:!0===n),jt(1)))}class XO{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Bs,this.attachRef=null}}class Bs{constructor(){this.contexts=new Map}onChildOutletCreated(n,t){const r=this.getOrCreateContext(n);r.outlet=t,this.contexts.set(n,r)}onChildOutletDestroyed(n){const t=this.getContext(n);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let t=this.getContext(n);return t||(t=new XO,this.contexts.set(n,t)),t}getContext(n){return this.contexts.get(n)||null}}let xf=(()=>{class e{constructor(t,r,i,o,s){this.parentContexts=t,this.location=r,this.resolver=i,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new fe,this.deactivateEvents=new fe,this.attachEvents=new fe,this.detachEvents=new fe,this.name=o||ge,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const s=(r=r||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new ZO(t,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(y(Bs),y(jn),y(ui),function(e){return function(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let i=0;for(;i<r;){const o=t[i];if(yp(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<r&&"string"==typeof t[i];)i++;else{if(o===n)return t[i+1];i+=2}}}return null}(bt(),e)}("name"),y(ar))},e.\u0275dir=O({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),e})();class ZO{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===Do?this.route:n===Bs?this.childContexts:this.parent.get(n,t)}}let Xv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=mn({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,r){1&t&&Vn(0,"router-outlet")},directives:[xf],encapsulation:2}),e})();function Zv(e,n=""){for(let t=0;t<e.length;t++){const r=e[t];QO(r,ek(n,r))}}function QO(e,n){e.children&&Zv(e.children,n)}function ek(e,n){return n?e||n.path?e&&!n.path?`${e}/`:!e&&n.path?n.path:`${e}/${n.path}`:"":e}function Rf(e){const n=e.children&&e.children.map(Rf),t=n?Object.assign(Object.assign({},e),{children:n}):Object.assign({},e);return!t.component&&(n||t.loadChildren)&&t.outlet&&t.outlet!==ge&&(t.component=Xv),t}function Tn(e){return e.outlet||ge}function Qv(e,n){const t=e.filter(r=>Tn(r)===n);return t.push(...e.filter(r=>Tn(r)!==n)),t}const eb={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Fl(e,n,t){var r;if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?Object.assign({},eb):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const o=(n.matcher||hO)(t,e,n);if(!o)return Object.assign({},eb);const s={};Rt(o.posParams,(l,c)=>{s[c]=l.path});const a=o.consumed.length>0?Object.assign(Object.assign({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a,positionalParamSegments:null!==(r=o.posParams)&&void 0!==r?r:{}}}function Pl(e,n,t,r,i="corrected"){if(t.length>0&&function(e,n,t){return t.some(r=>Vl(e,n,r)&&Tn(r)!==ge)}(e,t,r)){const s=new ve(n,function(e,n,t,r){const i={};i[ge]=r,r._sourceSegment=e,r._segmentIndexShift=n.length;for(const o of t)if(""===o.path&&Tn(o)!==ge){const s=new ve([],{});s._sourceSegment=e,s._segmentIndexShift=n.length,i[Tn(o)]=s}return i}(e,n,r,new ve(t,e.children)));return s._sourceSegment=e,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===t.length&&function(e,n,t){return t.some(r=>Vl(e,n,r))}(e,t,r)){const s=new ve(e.segments,function(e,n,t,r,i,o){const s={};for(const a of r)if(Vl(e,t,a)&&!i[Tn(a)]){const l=new ve([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:n.length,s[Tn(a)]=l}return Object.assign(Object.assign({},i),s)}(e,n,t,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:t}}const o=new ve(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:t}}function Vl(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function tb(e,n,t,r){return!!(Tn(e)===r||r!==ge&&Vl(n,t,e))&&("**"===e.path||Fl(n,e,t).matched)}function nb(e,n,t){return 0===n.length&&!e.children[t]}class js{constructor(n){this.segmentGroup=n||null}}class rb{constructor(n){this.urlTree=n}}function Ll(e){return new Se(n=>n.error(new js(e)))}function ib(e){return new Se(n=>n.error(new rb(e)))}function ok(e){return new Se(n=>n.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class lk{constructor(n,t,r,i,o){this.configLoader=t,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=n.get(Er)}apply(){const n=Pl(this.urlTree.root,[],[],this.config).segmentGroup,t=new ve(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,t,ge).pipe(de(o=>this.createUrlTree(Of(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(zr(o=>{if(o instanceof rb)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof js?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.ngModule,this.config,n.root,ge).pipe(de(i=>this.createUrlTree(Of(i),n.queryParams,n.fragment))).pipe(zr(i=>{throw i instanceof js?this.noMatchError(i):i}))}noMatchError(n){return new Error(`Cannot match any routes. URL Segment: '${n.segmentGroup}'`)}createUrlTree(n,t,r){const i=n.segments.length>0?new ve([],{[ge]:n}):n;return new pi(i,t,r)}expandSegmentGroup(n,t,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(n,t,r).pipe(de(o=>new ve([],o))):this.expandSegment(n,r,t,r.segments,i,!0)}expandChildren(n,t,r){const i=[];for(const o of Object.keys(r.children))"primary"===o?i.unshift(o):i.push(o);return pt(i).pipe(Rs(o=>{const s=r.children[o],a=Qv(t,o);return this.expandSegmentGroup(n,a,s,o).pipe(de(l=>({segment:l,outlet:o})))}),vv((o,s)=>(o[s.outlet]=s.segment,o),{}),function(e,n){const t=arguments.length>=2;return r=>r.pipe(e?pn((i,o)=>e(i,o,r)):rn,yf(1),t?Dv(n):bv(()=>new Tl))}())}expandSegment(n,t,r,i,o,s){return pt(r).pipe(Rs(a=>this.expandSegmentAgainstRoute(n,t,r,a,i,o,s).pipe(zr(c=>{if(c instanceof js)return ie(null);throw c}))),yo(a=>!!a),zr((a,l)=>{if(a instanceof Tl||"EmptyError"===a.name){if(nb(t,i,o))return ie(new ve([],{}));throw new js(t)}throw a}))}expandSegmentAgainstRoute(n,t,r,i,o,s,a){return tb(i,t,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,t,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s):Ll(t):Ll(t)}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,i){const o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ib(o):this.lineralizeSegments(r,o).pipe(st(s=>{const a=new ve(s,{});return this.expandSegment(n,a,t,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:u}=Fl(t,i,o);if(!a)return Ll(t);const d=this.applyRedirectCommands(l,i.redirectTo,u);return i.redirectTo.startsWith("/")?ib(d):this.lineralizeSegments(i,d).pipe(st(f=>this.expandSegment(n,t,r,f.concat(o.slice(c)),s,!1)))}matchSegmentAgainstRoute(n,t,r,i,o){if("**"===r.path)return r.loadChildren?(r._loadedConfig?ie(r._loadedConfig):this.configLoader.load(n.injector,r)).pipe(de(f=>(r._loadedConfig=f,new ve(i,{})))):ie(new ve(i,{}));const{matched:s,consumedSegments:a,lastChild:l}=Fl(t,r,i);if(!s)return Ll(t);const c=i.slice(l);return this.getChildConfig(n,r,i).pipe(st(d=>{const f=d.module,h=d.routes,{segmentGroup:m,slicedSegments:_}=Pl(t,a,c,h),C=new ve(m.segments,m.children);if(0===_.length&&C.hasChildren())return this.expandChildren(f,h,C).pipe(de(z=>new ve(a,z)));if(0===h.length&&0===_.length)return ie(new ve(a,{}));const T=Tn(r)===o;return this.expandSegment(f,C,h,_,T?ge:o,!0).pipe(de(P=>new ve(a.concat(P.segments),P.children)))}))}getChildConfig(n,t,r){return t.children?ie(new Af(t.children,n)):t.loadChildren?void 0!==t._loadedConfig?ie(t._loadedConfig):this.runCanLoadGuards(n.injector,t,r).pipe(st(i=>{return i?this.configLoader.load(n.injector,t).pipe(de(o=>(t._loadedConfig=o,o))):(e=t,new Se(n=>n.error(bf(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`))));var e})):ie(new Af([],n))}runCanLoadGuards(n,t,r){const i=t.canLoad;return i&&0!==i.length?ie(i.map(s=>{const a=n.get(s);let l;if((e=a)&&qr(e.canLoad))l=a.canLoad(t,r);else{if(!qr(a))throw new Error("Invalid CanLoad guard");l=a(t,r)}var e;return dr(l)})).pipe(Hs(),Kt(s=>{if(!mi(s))return;const a=bf(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),de(s=>!0===s)):ie(!0)}lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return ie(r);if(i.numberOfChildren>1||!i.children[ge])return ok(n.redirectTo);i=i.children[ge]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreatreUrlTree(n,t,r,i){const o=this.createSegmentGroup(n,t.root,r,i);return new pi(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Rt(n,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,i){const o=this.createSegments(n,t.segments,r,i);let s={};return Rt(t.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,r,i)}),new ve(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){const i=r[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${n}'. Cannot find '${t.path}'.`);return i}findOrReturn(n,t){let r=0;for(const i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}}function Of(e){const n={};for(const r of Object.keys(e.children)){const o=Of(e.children[r]);(o.segments.length>0||o.hasChildren())&&(n[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children[ge]){const n=e.children[ge];return new ve(e.segments.concat(n.segments),n.children)}return e}(new ve(e.segments,n))}class ob{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Hl{constructor(n,t){this.component=n,this.route=t}}function dk(e,n,t){const r=e._root;return Us(r,n?n._root:null,t,[r.value])}function Bl(e,n,t){const r=function(e){if(!e)return null;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(n);return(r?r.module.injector:t).get(e)}function Us(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=bo(n);return e.children.forEach(s=>{(function(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!gi(e.url,n.url);case"pathParamsOrQueryParamsChange":return!gi(e.url,n.url)||!ur(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Sf(e,n)||!ur(e.queryParams,n.queryParams);default:return!Sf(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new ob(r)):(o.data=s.data,o._resolvedData=s._resolvedData),Us(e,n,o.component?a?a.children:null:t,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Hl(a.outlet.component,s))}else s&&$s(n,a,i),i.canActivateChecks.push(new ob(r)),Us(e,null,o.component?a?a.children:null:t,r,i)})(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Rt(o,(s,a)=>$s(s,t.getContext(a),i)),i}function $s(e,n,t){const r=bo(e),i=e.value;Rt(r,(o,s)=>{$s(o,i.component?n?n.children.getContext(s):null:n,t)}),t.canDeactivateChecks.push(new Hl(i.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,i))}class Ek{}function sb(e){return new Se(n=>n.error(e))}class Sk{constructor(n,t,r,i,o,s){this.rootComponentType=n,this.config=t,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=s}recognize(){const n=Pl(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,n,ge);if(null===t)return null;const r=new Rl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ge,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new xr(r,t),o=new Gv(this.url,i);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(n){const t=n.value,r=$v(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(n,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(n,t):this.processSegment(n,t,t.segments,r)}processChildren(n,t){const r=[];for(const o of Object.keys(t.children)){const s=t.children[o],a=Qv(n,o),l=this.processSegmentGroup(a,s,o);if(null===l)return null;r.push(...l)}const i=ab(r);return i.sort((n,t)=>n.value.outlet===ge?-1:t.value.outlet===ge?1:n.value.outlet.localeCompare(t.value.outlet)),i}processSegment(n,t,r,i){for(const o of n){const s=this.processSegmentAgainstRoute(o,t,r,i);if(null!==s)return s}return nb(t,r,i)?[]:null}processSegmentAgainstRoute(n,t,r,i){if(n.redirectTo||!tb(n,t,r,i))return null;let o,s=[],a=[];if("**"===n.path){const h=r.length>0?Iv(r).parameters:{};o=new Rl(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ub(n),Tn(n),n.component,n,lb(t),cb(t)+r.length,db(n))}else{const h=Fl(t,n,r);if(!h.matched)return null;s=h.consumedSegments,a=r.slice(h.lastChild),o=new Rl(s,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ub(n),Tn(n),n.component,n,lb(t),cb(t)+s.length,db(n))}const l=(e=n).children?e.children:e.loadChildren?e._loadedConfig.routes:[],{segmentGroup:c,slicedSegments:u}=Pl(t,s,a,l.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);var e;if(0===u.length&&c.hasChildren()){const h=this.processChildren(l,c);return null===h?null:[new xr(o,h)]}if(0===l.length&&0===u.length)return[new xr(o,[])];const d=Tn(n)===i,f=this.processSegment(l,c,u,d?ge:i);return null===f?null:[new xr(o,f)]}}function Ik(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function ab(e){const n=[],t=new Set;for(const r of e){if(!Ik(r)){n.push(r);continue}const i=n.find(o=>r.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...r.children),t.add(i)):n.push(r)}for(const r of t){const i=ab(r.children);n.push(new xr(r.value,i))}return n.filter(r=>!t.has(r))}function lb(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function cb(e){let n=e,t=n._segmentIndexShift?n._segmentIndexShift:0;for(;n._sourceSegment;)n=n._sourceSegment,t+=n._segmentIndexShift?n._segmentIndexShift:0;return t-1}function ub(e){return e.data||{}}function db(e){return e.resolve||{}}function kf(e){return Ir(n=>{const t=e(n);return t?pt(t).pipe(de(()=>n)):ie(n)})}class Vk extends class{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}{}const Ff=new se("ROUTES");class fb{constructor(n,t,r,i){this.injector=n,this.compiler=t,this.onLoadStartListener=r,this.onLoadEndListener=i}load(n,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const i=this.loadModuleFactory(t.loadChildren).pipe(de(o=>{this.onLoadEndListener&&this.onLoadEndListener(t);const s=o.create(n);return new Af(Mv(s.injector.get(Ff,void 0,oe.Self|oe.Optional)).map(Rf),s)}),zr(o=>{throw t._loader$=void 0,o}));return t._loader$=new YR(i,()=>new Pe).pipe(yv()),t._loader$}loadModuleFactory(n){return dr(n()).pipe(st(t=>t instanceof v0?ie(t):pt(this.compiler.compileModuleAsync(t))))}}class Hk{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,t){return n}}function Bk(e){throw e}function jk(e,n,t){return n.parse("/")}function hb(e,n){return ie(null)}const Uk={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$k={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Jt=(()=>{class e{constructor(t,r,i,o,s,a,l){this.rootComponentType=t,this.urlSerializer=r,this.rootContexts=i,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Pe,this.errorHandler=Bk,this.malformedUriErrorHandler=jk,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:hb,afterPreactivation:hb},this.urlHandlingStrategy=new Hk,this.routeReuseStrategy=new Vk,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(Er),this.console=s.get(ey);const d=s.get(qe);this.isNgZoneEnabled=d instanceof qe&&qe.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new pi(new ve([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new fb(s,a,f=>this.triggerEvent(new wv(f)),f=>this.triggerEvent(new Ev(f))),this.routerState=Uv(this.currentUrlTree,this.rootComponentType),this.transitions=new Mt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const r=this.events;return t.pipe(pn(i=>0!==i.id),de(i=>Object.assign(Object.assign({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),Ir(i=>{let o=!1,s=!1;return ie(i).pipe(Kt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ir(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return jl(a.source)&&(this.browserUrlTree=a.extractedUrl),ie(a).pipe(Ir(d=>{const f=this.transitions.getValue();return r.next(new vf(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?In:Promise.resolve(d)}),function(e,n,t,r){return Ir(i=>function(e,n,t,r,i){return new lk(e,n,t,r,i).apply()}(e,n,t,i.extractedUrl,r).pipe(de(o=>Object.assign(Object.assign({},i),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Kt(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function(e,n,t,r,i){return st(o=>function(e,n,t,r,i="emptyOnly",o="legacy"){try{const s=new Sk(e,n,t,r,i,o).recognize();return null===s?sb(new Ek):ie(s)}catch(s){return sb(s)}}(e,n,o.urlAfterRedirects,t(o.urlAfterRedirects),r,i).pipe(de(s=>Object.assign(Object.assign({},o),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),Kt(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new nO(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:m,restoredState:_,extras:C}=a,T=new vf(f,this.serializeUrl(h),m,_);r.next(T);const b=Uv(h,this.rootComponentType).snapshot;return ie(Object.assign(Object.assign({},a),{targetSnapshot:b,urlAfterRedirects:h,extras:Object.assign(Object.assign({},C),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),In}),kf(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Kt(a=>{const l=new rO(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),de(a=>Object.assign(Object.assign({},a),{guards:dk(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(e,n){return st(t=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?ie(Object.assign(Object.assign({},t),{guardsResult:!0})):function(e,n,t,r){return pt(e).pipe(st(i=>function(e,n,t,r,i){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?ie(o.map(a=>{const l=Bl(a,n,i);let c;if(function(e){return e&&qr(e.canDeactivate)}(l))c=dr(l.canDeactivate(e,n,t,r));else{if(!qr(l))throw new Error("Invalid CanDeactivate guard");c=dr(l(e,n,t,r))}return c.pipe(yo())})).pipe(Hs()):ie(!0)}(i.component,i.route,t,n,r)),yo(i=>!0!==i,!0))}(s,r,i,e).pipe(st(a=>a&&function(e){return"boolean"==typeof e}(a)?function(e,n,t,r){return pt(n).pipe(Rs(i=>xs(function(e,n){return null!==e&&n&&n(new aO(e)),ie(!0)}(i.route.parent,r),function(e,n){return null!==e&&n&&n(new cO(e)),ie(!0)}(i.route,r),function(e,n,t){const r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>_v(()=>ie(s.guards.map(l=>{const c=Bl(l,s.node,t);let u;if(function(e){return e&&qr(e.canActivateChild)}(c))u=dr(c.canActivateChild(r,e));else{if(!qr(c))throw new Error("Invalid CanActivateChild guard");u=dr(c(r,e))}return u.pipe(yo())})).pipe(Hs())));return ie(o).pipe(Hs())}(e,i.path,t),function(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return ie(!0);const i=r.map(o=>_v(()=>{const s=Bl(o,n,t);let a;if(function(e){return e&&qr(e.canActivate)}(s))a=dr(s.canActivate(n,e));else{if(!qr(s))throw new Error("Invalid CanActivate guard");a=dr(s(n,e))}return a.pipe(yo())}));return ie(i).pipe(Hs())}(e,i.route,t))),yo(i=>!0!==i,!0))}(r,o,e,n):ie(a)),de(a=>Object.assign(Object.assign({},t),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Kt(a=>{if(mi(a.guardsResult)){const c=bf(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new iO(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),pn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),kf(a=>{if(a.guards.canActivateChecks.length)return ie(a).pipe(Kt(l=>{const c=new oO(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Ir(l=>{let c=!1;return ie(l).pipe(function(e,n){return st(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;if(!i.length)return ie(t);let o=0;return pt(i).pipe(Rs(s=>function(e,n,t,r){return function(e,n,t,r){const i=Object.keys(e);if(0===i.length)return ie({});const o={};return pt(i).pipe(st(s=>function(e,n,t,r){const i=Bl(e,n,r);return dr(i.resolve?i.resolve(n,t):i(n,t))}(e[s],n,t,r).pipe(Kt(a=>{o[s]=a}))),yf(1),st(()=>Object.keys(o).length===i.length?ie(o):In))}(e._resolve,e,n,r).pipe(de(o=>(e._resolvedData=o,e.data=Object.assign(Object.assign({},e.data),$v(e,t).resolve),null)))}(s.route,r,e,n)),Kt(()=>o++),yf(1),st(s=>o===i.length?ie(t):In))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Kt({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Kt(l=>{const c=new sO(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),kf(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),de(a=>{const l=function(e,n,t){const r=Ps(e,n._root,t?t._root:void 0);return new jv(r,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Kt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,n,t)=>de(r=>(new GO(n,r.targetRouterState,r.currentRouterState,t).activate(e),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Kt({next(){o=!0},complete(){o=!0}}),function(e){return Je((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}(()=>{var a;o||s||this.cancelNavigationTransition(i,`Navigation ID ${i.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===i.id&&(this.currentNavigation=null)}),zr(a=>{if(s=!0,function(e){return e&&e[Sv]}(a)){const l=mi(a.url);l||(this.navigated=!0,this.restoreHistory(i,!0));const c=new Cv(i.id,this.serializeUrl(i.extractedUrl),a.message);r.next(c),l?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jl(i.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:i.resolve,reject:i.reject,promise:i.promise})},0):i.resolve(!1)}else{this.restoreHistory(i,!0);const l=new tO(i.id,this.serializeUrl(i.extractedUrl),a);r.next(l);try{i.resolve(this.errorHandler(a))}catch(c){i.reject(c)}}return In}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var i;const o={replaceUrl:!0},s=(null===(i=t.state)||void 0===i?void 0:i.navigationId)?t.state:null;if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(t.url);this.scheduleNavigation(a,r,s,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Zv(t),this.config=t.map(Rf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=i||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),function(e,n,t,r,i){if(0===t.length)return Nf(n.root,n.root,n,r,i);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new qv(!0,0,e);let n=0,t=!1;const r=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Rt(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new qv(t,n,r)}(t);if(o.toRoot())return Nf(n.root,new ve([],{}),n,r,i);const s=function(e,n,t){if(e.isAbsolute)return new Mf(n.root,!0,0);if(-1===t.snapshot._lastPathIndex){const o=t.snapshot._urlSegment;return new Mf(o,o===n.root,0)}const r=Ol(e.commands[0])?0:1;return function(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Mf(r,!1,i-o)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,n,e),a=s.processChildren?kl(s.segmentGroup,s.index,o.commands):Kv(s.segmentGroup,s.index,o.commands);return Nf(s.segmentGroup,a,n,r,i)}(c,this.currentUrlTree,t,d,null!=u?u:null)}navigateByUrl(t,r={skipLocationChange:!1}){const i=mi(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)}navigate(t,r={skipLocationChange:!1}){return function(e){for(let n=0;n<e.length;n++){const t=e[n];if(null==t)throw new Error(`The requested path contains ${t} segment at index ${n}`)}}(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let r;try{r=this.urlSerializer.parse(t)}catch(i){r=this.malformedUriErrorHandler(i,this.urlSerializer,t)}return r}isActive(t,r){let i;if(i=!0===r?Object.assign({},Uk):!1===r?Object.assign({},$k):r,mi(t))return xv(this.currentUrlTree,t,i);const o=this.parseUrl(t);return xv(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.keys(t).reduce((r,i)=>{const o=t[i];return null!=o&&(r[i]=o),r},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Os(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,r,i,o,s){var a,l,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,d=jl(r)&&u&&!jl(u.source),f=u.rawUrl.toString()===t.toString(),h=u.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(d&&f&&h)return Promise.resolve(!0);let _,C,T;s?(_=s.resolve,C=s.reject,T=s.promise):T=new Promise((z,he)=>{_=z,C=he});const b=++this.navigationId;let P;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),P=i&&i.\u0275routerPageId?i.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):P=0,this.setTransition({id:b,targetPageId:P,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:o,resolve:_,reject:C,promise:T,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),T.catch(z=>Promise.reject(z))}setBrowserUrl(t,r){const i=this.urlSerializer.serialize(t),o=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(t,r=!1){var i,o;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)||0===s?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,r){const i=new Cv(t.id,this.serializeUrl(t.extractedUrl),r);this.triggerEvent(i),t.resolve(!1)}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return e.\u0275fac=function(t){td()},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function jl(e){return"imperative"!==e}class pb{}class gb{preload(n,t){return ie(null)}}let mb=(()=>{class e{constructor(t,r,i,o){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new fb(i,r,l=>t.triggerEvent(new wv(l)),l=>t.triggerEvent(new Ev(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(pn(t=>t instanceof Os),Rs(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Er);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const i=[];for(const o of r)if(o.loadChildren&&!o.canLoad&&o._loadedConfig){const s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(t,o)):o.children&&i.push(this.processRoutes(t,o.children));return pt(i).pipe(xo(),de(o=>{}))}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?ie(r._loadedConfig):this.loader.load(t.injector,r)).pipe(st(o=>(r._loadedConfig=o,this.processRoutes(o.module,o.routes)))))}}return e.\u0275fac=function(t){return new(t||e)(H(Jt),H(sl),H(Ct),H(pb))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Lf=(()=>{class e{constructor(t,r,i={}){this.router=t,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof vf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Os&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Tv&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.router.triggerEvent(new Tv(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){td()},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const _i=new se("ROUTER_CONFIGURATION"),_b=new se("ROUTER_FORROOT_GUARD"),Kk=[qd,{provide:Fv,useClass:Pv},{provide:Jt,useFactory:function(e,n,t,r,i,o,s={},a,l){const c=new Jt(null,e,n,t,r,i,Mv(o));return a&&(c.urlHandlingStrategy=a),l&&(c.routeReuseStrategy=l),function(e,n){e.errorHandler&&(n.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(n.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(n.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(n.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(n.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(n.canceledNavigationResolution=e.canceledNavigationResolution)}(s,c),s.enableTracing&&c.events.subscribe(u=>{var d,f;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(f=console.groupEnd)||void 0===f||f.call(console)}),c},deps:[Fv,Bs,qd,Ct,sl,Ff,_i,[class{},new Qn],[class{},new Qn]]},Bs,{provide:Do,useFactory:function(e){return e.routerState.root},deps:[Jt]},mb,gb,class{preload(n,t){return t().pipe(zr(()=>ie(null)))}},{provide:_i,useValue:{enableTracing:!1}}];function Jk(){return new sy("Router",Jt)}let yb=(()=>{class e{constructor(t,r){}static forRoot(t,r){return{ngModule:e,providers:[Kk,vb(t),{provide:_b,useFactory:Zk,deps:[[Jt,new Qn,new Hi]]},{provide:_i,useValue:r||{}},{provide:_o,useFactory:Xk,deps:[fi,[new Ko(zd),new Qn],_i]},{provide:Lf,useFactory:Yk,deps:[Jt,Hx,_i]},{provide:pb,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:gb},{provide:sy,multi:!0,useFactory:Jk},[Hf,{provide:bs,multi:!0,useFactory:nF,deps:[Hf]},{provide:bb,useFactory:rF,deps:[Hf]},{provide:Q0,multi:!0,useExisting:bb}]]}}static forChild(t){return{ngModule:e,providers:[vb(t)]}}}return e.\u0275fac=function(t){return new(t||e)(H(_b,8),H(Jt,8))},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({}),e})();function Yk(e,n,t){return t.scrollOffset&&n.setOffset(t.scrollOffset),new Lf(e,n,t)}function Xk(e,n,t={}){return t.useHash?new bA(e,n):new My(e,n)}function Zk(e){return"guarded"}function vb(e){return[{provide:ew,multi:!0,useValue:e},{provide:Ff,multi:!0,useValue:e}]}let Hf=(()=>{class e{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Pe}appInitializer(){return this.injector.get(_A,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const i=new Promise(a=>r=a),o=this.injector.get(Jt),s=this.injector.get(_i);return"disabled"===s.initialNavigation?(o.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(o.hooks.afterPreactivation=()=>this.initNavigation?ie(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),o.initialNavigation()):r(!0),i})}bootstrapListener(t){const r=this.injector.get(_i),i=this.injector.get(mb),o=this.injector.get(Lf),s=this.injector.get(Jt),a=this.injector.get(go);t===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),i.setUpPreloading(),o.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return e.\u0275fac=function(t){return new(t||e)(H(Ct))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function nF(e){return e.appInitializer.bind(e)}function rF(e){return e.bootstrapListener.bind(e)}const bb=new se("Router Initializer");function Db(e,n,t,r,i,o,s){try{var a=e[o](s),l=a.value}catch(c){return void t(c)}a.done?n(l):Promise.resolve(l).then(r,i)}const aF=[{path:"",redirectTo:"welcome",pathMatch:"full"},{path:"hello-world",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=mn({type:e,selectors:[["app-hello-world"]],decls:2,vars:0,consts:[[2,"color","azure"]],template:function(t,r){1&t&&(Z(0,"p",0),sr(1,"hello-world works!"),Q())},styles:[""]}),e})(),canActivate:[(()=>{class e extends class{constructor(n,t){this.router=n,this.keycloakAngular=t}canActivate(n,t){return new Promise((r,i)=>Mr(this,void 0,void 0,function*(){try{this.authenticated=yield this.keycloakAngular.isLoggedIn(),this.roles=yield this.keycloakAngular.getUserRoles(!0);const o=yield this.isAccessAllowed(n,t);r(o)}catch(o){i("An error happened during access validation. Details:"+o)}}))}}{constructor(t,r){super(t,r),this.router=t,this.keycloak=r}isAccessAllowed(t,r){var i=this;return function(e){return function(){var n=this,t=arguments;return new Promise(function(r,i){var o=e.apply(n,t);function s(l){Db(o,r,i,s,a,"next",l)}function a(l){Db(o,r,i,s,a,"throw",l)}s(void 0)})}}(function*(){i.authenticated||(yield i.keycloak.login({redirectUri:window.location.origin+r.url}));const o=t.data.roles;return!(o instanceof Array&&0!==o.length)||o.every(s=>i.roles.includes(s))})()}}return e.\u0275fac=function(t){return new(t||e)(H(Jt),H(El))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()]},{path:"welcome",component:(()=>{class e{constructor(t){this.router=t}redirect(){this.router.navigate(["hello-world"])}goToGithub(){window.location.href="https://github.com/timkister"}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(y(Jt))},e.\u0275cmp=mn({type:e,selectors:[["app-welcome"]],decls:21,vars:0,consts:[[1,"container"],[1,"spacer100"],[1,"typed-out"],[1,"linkbox",3,"click"],[1,"linkboxinside"],[1,"right"],[1,"centertext"],[1,"spacer30"],[1,"linkbox"]],template:function(t,r){1&t&&(Z(0,"div",0),Vn(1,"div",1),Vn(2,"div",1),Vn(3,"div",1),Z(4,"div",2),Z(5,"h1"),sr(6,"Hey there! - My name is Tim and I'm a developer."),Q(),Q(),Vn(7,"div",1),Z(8,"button",3),Me("click",function(){return r.goToGithub()}),Z(9,"div",4),Z(10,"div",5),Z(11,"h1",6),sr(12,"My Github"),Q(),Q(),Q(),Q(),Vn(13,"div",7),Z(14,"button",8),Z(15,"h1",6),sr(16,"My Customers"),Q(),Q(),Vn(17,"div",7),Z(18,"button",3),Me("click",function(){return r.redirect()}),Z(19,"h1",6),sr(20,"Admin"),Q(),Q(),Q())},styles:[""]}),e})()}];let lF=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[yb.forRoot(aF)],yb]}),e})(),cF=(()=>{class e{constructor(){this.title="timkister"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=mn({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(t,r){1&t&&Vn(0,"router-outlet")},directives:[xf],styles:[""]}),e})();function uF(e){return()=>e.init({config:{url:"http://192.168.9.158:8080/auth",realm:"angular-web",clientId:"angular-web-client"},initOptions:{checkLoginIframe:!0,checkLoginIframeInterval:25},loadUserProfileAtStartUp:!0})}const dF=["addListener","removeListener"],fF=["addEventListener","removeEventListener"],hF=["on","off"];function Yt(e,n,t,r){if(E(t)&&(r=t,t=void 0),r)return Yt(e,n,t).pipe(mf(r));const[i,o]=function(e){return E(e.addEventListener)&&E(e.removeEventListener)}(e)?fF.map(s=>a=>e[s](n,a,t)):function(e){return E(e.addListener)&&E(e.removeListener)}(e)?dF.map(Cb(e,n)):function(e){return E(e.on)&&E(e.off)}(e)?hF.map(Cb(e,n)):[];if(!i&&hc(e))return st(s=>Yt(s,n,t))(Ot(e));if(!i)throw new TypeError("Invalid event target");return new Se(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return i(a),()=>o(a)})}function Cb(e,n){return t=>r=>e[t](n,r)}class _F extends M{constructor(n,t){super()}schedule(n,t=0){return this}}const Ul={setInterval(...e){const{delegate:n}=Ul;return((null==n?void 0:n.setInterval)||setInterval)(...e)},clearInterval(e){const{delegate:n}=Ul;return((null==n?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},wb={now:()=>(wb.delegate||Date).now(),delegate:void 0};class Gs{constructor(n,t=Gs.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}Gs.now=wb.now;const bF=new class extends Gs{constructor(n,t=Gs.now){super(n,t),this.actions=[],this._active=!1,this._scheduled=void 0}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class extends _F{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){if(this.closed)return this;this.state=n;const r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return Ul.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;Ul.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let i,r=!1;try{this.work(n)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,X(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}});const{isArray:CF}=Array;function Tb(e){return 1===e.length&&CF(e[0])?e[0]:e}function $l(...e){const n=ra(e),t=Tb(e);return t.length?new Se(r=>{let i=t.map(()=>[]),o=t.map(()=>!1);r.add(()=>{i=o=null});for(let s=0;!r.closed&&s<t.length;s++)Ot(t[s]).subscribe(new Re(r,a=>{if(i[s].push(a),i.every(l=>l.length)){const l=i.map(c=>c.shift());r.next(n?n(...l):l),i.some((c,u)=>!c.length&&o[u])&&r.complete()}},()=>{o[s]=!0,!i[s].length&&r.complete()}));return()=>{i=o=null}}):In}function Tt(e){return Je((n,t)=>{Ot(e).subscribe(new Re(t,()=>t.complete(),Ue)),!t.closed&&n.subscribe(t)})}function Uf(...e){const n=ra(e);return Je((t,r)=>{const i=e.length,o=new Array(i);let s=e.map(()=>!1),a=!1;for(let l=0;l<i;l++)Ot(e[l]).subscribe(new Re(r,c=>{o[l]=c,!a&&!s[l]&&(s[l]=!0,(a=s.every(rn))&&(s=null))},Ue));t.subscribe(new Re(r,l=>{if(a){const c=[l,...o];r.next(n?n(...c):c)}}))})}new Se(Ue);let d1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({}),e})(),EP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[d1]]}),e})(),TP=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[EP]}),e})();const OP=["*"],XP=["dialog"];function vi(e){return null!=e}function Eo(e){return(e||document.body).getBoundingClientRect()}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){let n=this;if(!document.documentElement.contains(n))return null;do{if(n.matches(e))return n;n=n.parentElement||n.parentNode}while(null!==n&&1===n.nodeType);return null});const A1={animation:!0,transitionTimerDelayMs:5},q2=()=>{},{transitionTimerDelayMs:K2}=A1,Ys=new Map,Zt=(e,n,t,r)=>{let i=r.context||{};const o=Ys.get(n);if(o)switch(r.runningTransition){case"continue":return In;case"stop":e.run(()=>o.transition$.complete()),i=Object.assign(o.context,i),Ys.delete(n)}const s=t(n,r.animation,i)||q2;if(!r.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>s()),ie(void 0).pipe(function(e){return n=>new Se(t=>n.subscribe({next:s=>e.run(()=>t.next(s)),error:s=>e.run(()=>t.error(s)),complete:()=>e.run(()=>t.complete())}))}(e));const a=new Pe,l=new Pe,c=a.pipe(function(...e){return n=>xs(n,ie(...e))}(!0));Ys.set(n,{transition$:a,complete:()=>{l.next(),l.complete()},context:i});const u=function(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const d=Yt(n,"transitionend").pipe(Tt(c),pn(({target:h})=>h===n));(function(...e){return 1===(e=Tb(e)).length?Ot(e[0]):new Se(function(e){return n=>{let t=[];for(let r=0;t&&!n.closed&&r<e.length;r++)t.push(Ot(e[r]).subscribe(new Re(n,i=>{if(t){for(let o=0;o<t.length;o++)o!==r&&t[o].unsubscribe();t=null}n.next(i)})))}}(e))})(function(e=0,n,t=bF){let r=-1;return null!=n&&(Lh(n)?t=n:r=n),new Se(i=>{let o=function(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}(u+K2).pipe(Tt(c)),d,l).pipe(Tt(c)).subscribe(()=>{Ys.delete(n),e.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};let tc=(()=>{class e{constructor(){this.animation=A1.animation}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),P1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})(),V1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})(),H1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({}),e})(),U1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})(),$1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({}),e})();var St=(()=>{return(e=St||(St={}))[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",St;var e})();"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const W1=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function z1(e){const n=Array.from(e.querySelectorAll(W1)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}new class{getAllStyles(n){return window.getComputedStyle(n)}getStyle(n,t){return this.getAllStyles(n)[t]}isStaticPositioned(n){return"static"===(this.getStyle(n,"position")||"static")}offsetParent(n){let t=n.offsetParent||document.documentElement;for(;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement}position(n,t=!0){let r,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(n,"position"))r=n.getBoundingClientRect(),r={top:r.top,bottom:r.bottom,left:r.left,right:r.right,height:r.height,width:r.width};else{const o=this.offsetParent(n);r=this.offset(n,!1),o!==document.documentElement&&(i=this.offset(o,!1)),i.top+=o.clientTop,i.left+=o.clientLeft}return r.top-=i.top,r.bottom-=i.top,r.left-=i.left,r.right-=i.left,t&&(r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}offset(n,t=!0){const r=n.getBoundingClientRect(),i_top=window.scrollY-document.documentElement.clientTop,i_left=window.scrollX-document.documentElement.clientLeft;let o={height:r.height||n.offsetHeight,width:r.width||n.offsetWidth,top:r.top+i_top,bottom:r.bottom+i_top,left:r.left+i_left,right:r.right+i_left};return t&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o}positionElements(n,t,r,i){const[o="top",s="center"]=r.split("-"),a=i?this.offset(n,!1):this.position(n,!1),l=this.getAllStyles(t),c=parseFloat(l.marginTop),u=parseFloat(l.marginBottom),d=parseFloat(l.marginLeft),f=parseFloat(l.marginRight);let h=0,m=0;switch(o){case"top":h=a.top-(t.offsetHeight+c+u);break;case"bottom":h=a.top+a.height;break;case"left":m=a.left-(t.offsetWidth+d+f);break;case"right":m=a.left+a.width}switch(s){case"top":h=a.top;break;case"bottom":h=a.top+a.height-t.offsetHeight;break;case"left":m=a.left;break;case"right":m=a.left+a.width-t.offsetWidth;break;case"center":"top"===o||"bottom"===o?m=a.left+a.width/2-t.offsetWidth/2:h=a.top+a.height/2-t.offsetHeight/2}t.style.transform=`translate(${Math.round(m)}px, ${Math.round(h)}px)`;const _=t.getBoundingClientRect(),C=document.documentElement,T=window.innerHeight||C.clientHeight,b=window.innerWidth||C.clientWidth;return _.left>=0&&_.top>=0&&_.right<=b&&_.bottom<=T}},new Date(1882,10,12),new Date(2174,10,25);let Q1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn,TP]]}),e})(),rD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({}),e})();class wi{constructor(n,t,r){this.nodes=n,this.viewRef=t,this.componentRef=r}}let AV=(()=>{class e{constructor(t,r){this._el=t,this._zone=r}ngOnInit(){this._zone.onStable.asObservable().pipe(jt(1)).subscribe(()=>{Zt(this._zone,this._el.nativeElement,(t,r)=>{r&&Eo(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Zt(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return e.\u0275fac=function(t){return new(t||e)(y(ze),y(qe))},e.\u0275cmp=mn({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,r){2&t&&(ai("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),tt("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,r){},encapsulation:2}),e})();class iD{close(n){}dismiss(n){}}class xV{constructor(n,t,r,i){this._windowCmptRef=n,this._contentRef=t,this._backdropCmptRef=r,this._beforeDismiss=i,this._closed=new Pe,this._dismissed=new Pe,this._hidden=new Pe,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Tt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Tt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();(e=t)&&e.then?t.then(r=>{!1!==r&&this._dismiss(n)},()=>{}):!1!==t&&this._dismiss(n)}else this._dismiss(n);var e}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():ie(void 0);n.subscribe(()=>{const{nativeElement:r}=this._windowCmptRef.location;r.parentNode.removeChild(r),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),t.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:r}=this._backdropCmptRef.location;r.parentNode.removeChild(r),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),$l(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var ea=(()=>{return(e=ea||(ea={}))[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",ea;var e})();let RV=(()=>{class e{constructor(t,r,i){this._document=t,this._elRef=r,this._zone=i,this._closed$=new Pe,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new fe,this.shown=new Pe,this.hidden=new Pe}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(jt(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,r={animation:this.animation,runningTransition:"stop"},s=$l(Zt(this._zone,t,()=>t.classList.remove("show"),r),Zt(this._zone,this._dialogEl.nativeElement,()=>{},r));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const t={animation:this.animation,runningTransition:"continue"};$l(Zt(this._zone,this._elRef.nativeElement,(o,s)=>{s&&Eo(o),o.classList.add("show")},t),Zt(this._zone,this._dialogEl.nativeElement,()=>{},t)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{Yt(t,"keydown").pipe(Tt(this._closed$),pn(i=>i.which===St.Escape)).subscribe(i=>{this.keyboard?requestAnimationFrame(()=>{i.defaultPrevented||this._zone.run(()=>this.dismiss(ea.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let r=!1;Yt(this._dialogEl.nativeElement,"mousedown").pipe(Tt(this._closed$),Kt(()=>r=!1),Ir(()=>Yt(t,"mouseup").pipe(Tt(this._closed$),jt(1))),pn(({target:i})=>t===i)).subscribe(()=>{r=!0}),Yt(t,"click").pipe(Tt(this._closed$)).subscribe(({target:i})=>{t===i&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!r&&this._zone.run(()=>this.dismiss(ea.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const r=t.querySelector("[ngbAutofocus]"),i=z1(t)[0];(r||i||t).focus()}}_restoreFocus(){const t=this._document.body,r=this._elWithFocus;let i;i=r&&r.focus&&t.contains(r)?r:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>i.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Zt(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return e.\u0275fac=function(t){return new(t||e)(y(xt),y(ze),y(qe))},e.\u0275cmp=mn({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(t,r){if(1&t&&Md(XP,7),2&t){let i;nt(i=function(){return e=S(),n=dp(),e[19].queries[n].queryList;var e,n}())&&(r._dialogEl=i.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,r){2&t&&(ke("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),ai("modal d-block"+(r.windowClass?" "+r.windowClass:"")),tt("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:OP,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,r){1&t&&(function(e){const n=S()[16][6];if(!n.projection){const r=n.projection=Go(e?e.length:1,null),i=r.slice();let o=n.child;for(;null!==o;){const s=e?RS(o,e):0;null!==s&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o),o=o.next}}}(),Z(0,"div",0,1),Z(2,"div",2),function(e,n=0,t){const r=S(),i=Ce(),o=Wi(i,20+e,16,null,t||null);null===o.projection&&(o.projection=n),Fc(),64!=(64&o.flags)&&function(e,n,t){Tg(n[11],0,n,t,gg(e,t,n),vg(t.parent||n[6],t,n))}(i,r,o)}(3),Q(),Q()),2&t&&ai("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),e})();const OV=()=>{};let kV=(()=>{class e{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):OV}_adjustBody(t){const r=this._document.body,i=r.style.paddingRight,o=parseFloat(window.getComputedStyle(r)["padding-right"]);return r.style["padding-right"]=`${o+t}px`,()=>r.style["padding-right"]=i}_isPresent(t){const r=this._document.body.getBoundingClientRect();return window.innerWidth-(r.left+r.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const r=this._document.body;r.appendChild(t);const i=t.getBoundingClientRect().width-t.clientWidth;return r.removeChild(t),i}}return e.\u0275fac=function(t){return new(t||e)(H(xt))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),FV=(()=>{class e{constructor(t,r,i,o,s,a){this._applicationRef=t,this._injector=r,this._document=i,this._scrollBar=o,this._rendererFactory=s,this._ngZone=a,this._activeWindowCmptHasChanged=new Pe,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new fe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,r=!1)=>{this._ngZone.runOutsideAngular(()=>{const i=Yt(n,"focusin").pipe(Tt(t),de(o=>o.target));Yt(n,"keydown").pipe(Tt(t),pn(o=>o.which===St.Tab),Uf(i)).subscribe(([o,s])=>{const[a,l]=z1(n);(s===a||s===n)&&o.shiftKey&&(l.focus(),o.preventDefault()),s===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),r&&Yt(n,"click").pipe(Tt(t),Uf(i),de(o=>o[1])).subscribe(o=>o.focus())})})(0,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(t,r,i,o){const s=o.container instanceof HTMLElement?o.container:vi(o.container)?this._document.querySelector(o.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);const u=new iD,d=this._getContentRef(t,o.injector||r,i,u,o);let f=!1!==o.backdrop?this._attachBackdrop(t,s):void 0,h=this._attachWindowComponent(t,s,d),m=new xV(h,d,f,o.beforeDismiss);return this._registerModalRef(m),this._registerWindowCmpt(h),m.result.then(l,l),m.result.then(c,c),u.close=_=>{m.close(_)},u.dismiss=_=>{m.dismiss(_)},this._applyWindowOptions(h.instance,o),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),f&&f.instance&&(this._applyBackdropOptions(f.instance,o),f.changeDetectorRef.detectChanges()),h.changeDetectorRef.detectChanges(),m}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(r=>r.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,r){let o=t.resolveComponentFactory(AV).create(this._injector);return this._applicationRef.attachView(o.hostView),r.appendChild(o.location.nativeElement),o}_attachWindowComponent(t,r,i){let s=t.resolveComponentFactory(RV).create(this._injector,i.nodes);return this._applicationRef.attachView(s.hostView),r.appendChild(s.location.nativeElement),s}_applyWindowOptions(t,r){this._windowAttributes.forEach(i=>{vi(r[i])&&(t[i]=r[i])})}_applyBackdropOptions(t,r){this._backdropAttributes.forEach(i=>{vi(r[i])&&(t[i]=r[i])})}_getContentRef(t,r,i,o,s){return i?i instanceof ut?this._createFromTemplateRef(i,o):function(e){return"string"==typeof e}(i)?this._createFromString(i):this._createFromComponent(t,r,i,o,s):new wi([])}_createFromTemplateRef(t,r){const o=t.createEmbeddedView({$implicit:r,close(s){r.close(s)},dismiss(s){r.dismiss(s)}});return this._applicationRef.attachView(o),new wi([o.rootNodes],o)}_createFromString(t){const r=this._document.createTextNode(`${t}`);return new wi([[r]])}_createFromComponent(t,r,i,o,s){const a=t.resolveComponentFactory(i),l=Ct.create({providers:[{provide:iD,useValue:o}],parent:r}),c=a.create(l),u=c.location.nativeElement;return s.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new wi([[u]],c.hostView,c)}_setAriaHidden(t){const r=t.parentElement;r&&t!==this._document.body&&(Array.from(r.children).forEach(i=>{i!==t&&"SCRIPT"!==i.nodeName&&(this._ariaHiddenValues.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}),this._setAriaHidden(r))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,r)=>{t?r.setAttribute("aria-hidden",t):r.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const r=()=>{const i=this._modalRefs.indexOf(t);i>-1&&(this._modalRefs.splice(i,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(r,r)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const r=this._windowCmpts.indexOf(t);r>-1&&(this._windowCmpts.splice(r,1),this._activeWindowCmptHasChanged.next())})}}return e.\u0275fac=function(t){return new(t||e)(H(go),H(Ct),H(xt),H(kV),H(gd),H(qe))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),PV=(()=>{class e{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return e.\u0275fac=function(t){return new(t||e)(H(tc))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),VV=(()=>{class e{constructor(t,r,i,o){this._moduleCFR=t,this._injector=r,this._modalStack=i,this._config=o}open(t,r={}){const i=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),r);return this._modalStack.open(this._moduleCFR,this._injector,t,i)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.\u0275fac=function(t){return new(t||e)(H(ui),H(Ct),H(FV),H(PV))},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),oD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({providers:[VV]}),e})(),cD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})(),_D=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})(),vD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})(),bD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})(),DD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})(),CD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})(),wD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})(),ED=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({}),e})();new se("live announcer delay",{providedIn:"root",factory:function(){return 100}});let TD=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[[nn]]}),e})();const QV=[P1,V1,H1,U1,$1,Q1,rD,oD,cD,_D,vD,bD,DD,CD,wD,ED,TD];let eL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e}),e.\u0275inj=Ne({imports:[QV,P1,V1,H1,U1,$1,Q1,rD,oD,cD,_D,vD,bD,DD,CD,wD,ED,TD]}),e})(),tL=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=xe({type:e,bootstrap:[cF]}),e.\u0275inj=Ne({providers:[{provide:bs,useFactory:uF,multi:!0,deps:[El]}],imports:[[hR,lF,BR,eL]]}),e})();fy=!1,dR().bootstrapModule(tL).catch(e=>console.error(e))},520:(module,exports,__webpack_require__)=>{var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(D){return"[object Array]"===Object.prototype.toString.call(D)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(D){return"object"==typeof D&&D.buffer&&D.buffer.constructor===ArrayBuffer});var createOutputMethod=function(D,k){return function(B){return new Sha256(k,!0).update(B)[D]()}},createMethod=function(D){var k=createOutputMethod("hex",D);NODE_JS&&(k=nodeWrap(k,D)),k.create=function(){return new Sha256(D)},k.update=function($){return k.create().update($)};for(var B=0;B<OUTPUT_TYPES.length;++B){var E=OUTPUT_TYPES[B];k[E]=createOutputMethod(E,D)}return k},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(D){if("string"==typeof D)return crypto.createHash(algorithm).update(D,"utf8").digest("hex");if(null==D)throw new Error(ERROR);return D.constructor===ArrayBuffer&&(D=new Uint8Array(D)),Array.isArray(D)||ArrayBuffer.isView(D)||D.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(D)).digest("hex"):method(D)};return nodeMethod},createHmacOutputMethod=function(D,k){return function(B,E){return new HmacSha256(B,k,!0).update(E)[D]()}},createHmacMethod=function(D){var k=createHmacOutputMethod("hex",D);k.create=function($){return new HmacSha256($,D)},k.update=function($,A){return k.create($).update(A)};for(var B=0;B<OUTPUT_TYPES.length;++B){var E=OUTPUT_TYPES[B];k[E]=createHmacOutputMethod(E,D)}return k};function Sha256(D,k){k?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=D}function HmacSha256(D,k,B){var E,$=typeof D;if("string"===$){var G,A=[],X=D.length,M=0;for(E=0;E<X;++E)(G=D.charCodeAt(E))<128?A[M++]=G:G<2048?(A[M++]=192|G>>6,A[M++]=128|63&G):G<55296||G>=57344?(A[M++]=224|G>>12,A[M++]=128|G>>6&63,A[M++]=128|63&G):(G=65536+((1023&G)<<10|1023&D.charCodeAt(++E)),A[M++]=240|G>>18,A[M++]=128|G>>12&63,A[M++]=128|G>>6&63,A[M++]=128|63&G);D=A}else{if("object"!==$)throw new Error(ERROR);if(null===D)throw new Error(ERROR);if(ARRAY_BUFFER&&D.constructor===ArrayBuffer)D=new Uint8Array(D);else if(!(Array.isArray(D)||ARRAY_BUFFER&&ArrayBuffer.isView(D)))throw new Error(ERROR)}D.length>64&&(D=new Sha256(k,!0).update(D).array());var p=[],Ie=[];for(E=0;E<64;++E){var Ae=D[E]||0;p[E]=92^Ae,Ie[E]=54^Ae}Sha256.call(this,k,B),this.update(Ie),this.oKeyPad=p,this.inner=!0,this.sharedMemory=B}Sha256.prototype.update=function(D){if(!this.finalized){var k,B=typeof D;if("string"!==B){if("object"!==B)throw new Error(ERROR);if(null===D)throw new Error(ERROR);if(ARRAY_BUFFER&&D.constructor===ArrayBuffer)D=new Uint8Array(D);else if(!(Array.isArray(D)||ARRAY_BUFFER&&ArrayBuffer.isView(D)))throw new Error(ERROR);k=!0}for(var E,A,$=0,X=D.length,M=this.blocks;$<X;){if(this.hashed&&(this.hashed=!1,M[0]=this.block,M[16]=M[1]=M[2]=M[3]=M[4]=M[5]=M[6]=M[7]=M[8]=M[9]=M[10]=M[11]=M[12]=M[13]=M[14]=M[15]=0),k)for(A=this.start;$<X&&A<64;++$)M[A>>2]|=D[$]<<SHIFT[3&A++];else for(A=this.start;$<X&&A<64;++$)(E=D.charCodeAt($))<128?M[A>>2]|=E<<SHIFT[3&A++]:E<2048?(M[A>>2]|=(192|E>>6)<<SHIFT[3&A++],M[A>>2]|=(128|63&E)<<SHIFT[3&A++]):E<55296||E>=57344?(M[A>>2]|=(224|E>>12)<<SHIFT[3&A++],M[A>>2]|=(128|E>>6&63)<<SHIFT[3&A++],M[A>>2]|=(128|63&E)<<SHIFT[3&A++]):(E=65536+((1023&E)<<10|1023&D.charCodeAt(++$)),M[A>>2]|=(240|E>>18)<<SHIFT[3&A++],M[A>>2]|=(128|E>>12&63)<<SHIFT[3&A++],M[A>>2]|=(128|E>>6&63)<<SHIFT[3&A++],M[A>>2]|=(128|63&E)<<SHIFT[3&A++]);this.lastByteIndex=A,this.bytes+=A-this.start,A>=64?(this.block=M[16],this.start=A-64,this.hash(),this.hashed=!0):this.start=A}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var D=this.blocks,k=this.lastByteIndex;D[16]=this.block,D[k>>2]|=EXTRA[3&k],this.block=D[16],k>=56&&(this.hashed||this.hash(),D[0]=this.block,D[16]=D[1]=D[2]=D[3]=D[4]=D[5]=D[6]=D[7]=D[8]=D[9]=D[10]=D[11]=D[12]=D[13]=D[14]=D[15]=0),D[14]=this.hBytes<<3|this.bytes>>>29,D[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var p,j,ue,be,$e,Fe,D=this.h0,k=this.h1,B=this.h2,E=this.h3,$=this.h4,A=this.h5,X=this.h6,M=this.h7,G=this.blocks;for(p=16;p<64;++p)G[p]=G[p-16]+(((j=G[p-15])>>>7|j<<25)^(j>>>18|j<<14)^j>>>3)+G[p-7]+(((j=G[p-2])>>>17|j<<15)^(j>>>19|j<<13)^j>>>10)<<0;for(Fe=k&B,p=0;p<64;p+=4)this.first?(this.is224?(ue=300032,M=(j=G[0]-1413257819)-150054599<<0,E=j+24177077<<0):(ue=704751109,M=(j=G[0]-210244248)-1521486534<<0,E=j+143694565<<0),this.first=!1):(M=E+(j=M+(($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7))+($&A^~$&X)+K[p]+G[p])<<0,E=j+(((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+((ue=D&k)^D&B^Fe))<<0),X=B+(j=X+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&$^~M&A)+K[p+1]+G[p+1])<<0,B=j+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((be=E&D)^E&k^ue))<<0,A=k+(j=A+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&M^~X&$)+K[p+2]+G[p+2])<<0,k=j+(((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(($e=B&E)^B&D^be))<<0,$=D+(j=$+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&X^~A&M)+K[p+3]+G[p+3])<<0,D=j+(((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+((Fe=k&B)^k&E^$e))<<0;this.h0=this.h0+D<<0,this.h1=this.h1+k<<0,this.h2=this.h2+B<<0,this.h3=this.h3+E<<0,this.h4=this.h4+$<<0,this.h5=this.h5+A<<0,this.h6=this.h6+X<<0,this.h7=this.h7+M<<0},Sha256.prototype.hex=function(){this.finalize();var D=this.h0,k=this.h1,B=this.h2,E=this.h3,$=this.h4,A=this.h5,X=this.h6,M=this.h7,G=HEX_CHARS[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D]+HEX_CHARS[k>>28&15]+HEX_CHARS[k>>24&15]+HEX_CHARS[k>>20&15]+HEX_CHARS[k>>16&15]+HEX_CHARS[k>>12&15]+HEX_CHARS[k>>8&15]+HEX_CHARS[k>>4&15]+HEX_CHARS[15&k]+HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[$>>28&15]+HEX_CHARS[$>>24&15]+HEX_CHARS[$>>20&15]+HEX_CHARS[$>>16&15]+HEX_CHARS[$>>12&15]+HEX_CHARS[$>>8&15]+HEX_CHARS[$>>4&15]+HEX_CHARS[15&$]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[15&A]+HEX_CHARS[X>>28&15]+HEX_CHARS[X>>24&15]+HEX_CHARS[X>>20&15]+HEX_CHARS[X>>16&15]+HEX_CHARS[X>>12&15]+HEX_CHARS[X>>8&15]+HEX_CHARS[X>>4&15]+HEX_CHARS[15&X];return this.is224||(G+=HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]),G},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var D=this.h0,k=this.h1,B=this.h2,E=this.h3,$=this.h4,A=this.h5,X=this.h6,M=this.h7,G=[D>>24&255,D>>16&255,D>>8&255,255&D,k>>24&255,k>>16&255,k>>8&255,255&k,B>>24&255,B>>16&255,B>>8&255,255&B,E>>24&255,E>>16&255,E>>8&255,255&E,$>>24&255,$>>16&255,$>>8&255,255&$,A>>24&255,A>>16&255,A>>8&255,255&A,X>>24&255,X>>16&255,X>>8&255,255&X];return this.is224||G.push(M>>24&255,M>>16&255,M>>8&255,255&M),G},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var D=new ArrayBuffer(this.is224?28:32),k=new DataView(D);return k.setUint32(0,this.h0),k.setUint32(4,this.h1),k.setUint32(8,this.h2),k.setUint32(12,this.h3),k.setUint32(16,this.h4),k.setUint32(20,this.h5),k.setUint32(24,this.h6),this.is224||k.setUint32(28,this.h7),D},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var D=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(D),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},172:(D,k,B)=>{window,D.exports=function(E,$){if("undefined"==typeof Promise)throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");var A=!1;function X(){A||(A=!0,console.warn("[KEYCLOAK] Usage of legacy style promise methods such as `.error()` and `.success()` has been deprecated and support will be removed in future versions. Use standard style promise methods such as `.then() and `.catch()` instead."))}return function M(G){if(!(this instanceof M))return new M(G);for(var Ie,vt,p=this,Ae=[],j={enable:!0,callbackList:[],interval:5},Ue=document.getElementsByTagName("script"),q=0;q<Ue.length;q++)(-1!==Ue[q].src.indexOf("keycloak.js")||-1!==Ue[q].src.indexOf("keycloak.min.js"))&&-1!==Ue[q].src.indexOf("version=")&&(p.iframeVersion=Ue[q].src.substring(Ue[q].src.indexOf("version=")+8).split("&")[0]);var ue=!0,be=dc(console.info),$e=dc(console.warn);function It(g,v){for(var I=function(g){var v=null,I=window.crypto||window.msCrypto;if(I&&I.getRandomValues&&window.Uint8Array)return v=new Uint8Array(g),I.getRandomValues(v),v;v=new Array(g);for(var x=0;x<v.length;x++)v[x]=Math.floor(256*Math.random());return v}(g),x=new Array(g),N=0;N<g;N++)x[N]=v.charCodeAt(I[N]%v.length);return String.fromCharCode.apply(null,x)}function Ge(){if(void 0!==p.authServerUrl)return"/"==p.authServerUrl.charAt(p.authServerUrl.length-1)?p.authServerUrl+"realms/"+encodeURIComponent(p.realm):p.authServerUrl+"/realms/"+encodeURIComponent(p.realm)}function zn(g,v){var I=g.code,x=g.error,N=g.prompt,w=(new Date).getTime();if(g.kc_action_status&&p.onActionUpdate&&p.onActionUpdate(g.kc_action_status),x)if("none"!=N){var R={error:x,error_description:g.error_description};p.onAuthError&&p.onAuthError(R),v&&v.setError(R)}else v&&v.setSuccess();else if("standard"!=p.flow&&(g.access_token||g.id_token)&&me(g.access_token,null,g.id_token,!0),"implicit"!=p.flow&&I){var L="code="+I+"&grant_type=authorization_code",W=p.endpoints.token(),U=new XMLHttpRequest;U.open("POST",W,!0),U.setRequestHeader("Content-type","application/x-www-form-urlencoded"),L+="&client_id="+encodeURIComponent(p.clientId),L+="&redirect_uri="+g.redirectUri,g.pkceCodeVerifier&&(L+="&code_verifier="+g.pkceCodeVerifier),U.withCredentials=!0,U.onreadystatechange=function(){if(4==U.readyState)if(200==U.status){var Ze=JSON.parse(U.responseText);me(Ze.access_token,Ze.refresh_token,Ze.id_token,"standard"===p.flow),Pe()}else p.onAuthError&&p.onAuthError(),v&&v.setError()},U.send(L)}function me(Ze,Kn,gn,At){Or(Ze,Kn,gn,w=(w+(new Date).getTime())/2),ue&&(p.tokenParsed&&p.tokenParsed.nonce!=g.storedNonce||p.refreshTokenParsed&&p.refreshTokenParsed.nonce!=g.storedNonce||p.idTokenParsed&&p.idTokenParsed.nonce!=g.storedNonce)?(be("[KEYCLOAK] Invalid nonce, clearing token"),p.clearToken(),v&&v.setError()):At&&(p.onAuthSuccess&&p.onAuthSuccess(),v&&v.setSuccess())}}function ta(g){return 0==g.status&&g.responseText&&g.responseURL.startsWith("file:")}function Or(g,v,I,x){if(p.tokenTimeoutHandle&&(clearTimeout(p.tokenTimeoutHandle),p.tokenTimeoutHandle=null),v?(p.refreshToken=v,p.refreshTokenParsed=rn(v)):(delete p.refreshToken,delete p.refreshTokenParsed),I?(p.idToken=I,p.idTokenParsed=rn(I)):(delete p.idToken,delete p.idTokenParsed),g){if(p.token=g,p.tokenParsed=rn(g),p.sessionId=p.tokenParsed.session_state,p.authenticated=!0,p.subject=p.tokenParsed.sub,p.realmAccess=p.tokenParsed.realm_access,p.resourceAccess=p.tokenParsed.resource_access,x&&(p.timeSkew=Math.floor(x/1e3)-p.tokenParsed.iat),null!=p.timeSkew&&(be("[KEYCLOAK] Estimated time difference between browser and server is "+p.timeSkew+" seconds"),p.onTokenExpired)){var N=1e3*(p.tokenParsed.exp-(new Date).getTime()/1e3+p.timeSkew);be("[KEYCLOAK] Token expires in "+Math.round(N/1e3)+" s"),N<=0?p.onTokenExpired():p.tokenTimeoutHandle=setTimeout(p.onTokenExpired,N)}}else delete p.token,delete p.tokenParsed,delete p.subject,delete p.realmAccess,delete p.resourceAccess,p.authenticated=!1}function rn(g){switch((g=(g=(g=g.split(".")[1]).replace(/-/g,"+")).replace(/_/g,"/")).length%4){case 0:break;case 2:g+="==";break;case 3:g+="=";break;default:throw"Invalid token"}return g=decodeURIComponent(escape(atob(g))),JSON.parse(g)}function cc(){var g="0123456789abcdef",v=It(36,g).split("");return v[14]="4",v[19]=g.substr(3&v[19]|8,1),v[8]=v[13]=v[18]=v[23]="-",v.join("")}function qn(g){var v=function(g){var v;switch(p.flow){case"standard":v=["code","state","session_state","kc_action_status"];break;case"implicit":v=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status"];break;case"hybrid":v=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status"]}v.push("error"),v.push("error_description"),v.push("error_uri");var N,w,I=g.indexOf("?"),x=g.indexOf("#");if("query"===p.responseMode&&-1!==I?(N=g.substring(0,I),""!==(w=Mo(g.substring(I+1,-1!==x?x:g.length),v)).paramsString&&(N+="?"+w.paramsString),-1!==x&&(N+=g.substring(x))):"fragment"===p.responseMode&&-1!==x&&(N=g.substring(0,x),""!==(w=Mo(g.substring(x+1),v)).paramsString&&(N+="#"+w.paramsString)),w&&w.oauthParams)if("standard"===p.flow||"hybrid"===p.flow){if((w.oauthParams.code||w.oauthParams.error)&&w.oauthParams.state)return w.oauthParams.newUrl=N,w.oauthParams}else if("implicit"===p.flow&&(w.oauthParams.access_token||w.oauthParams.error)&&w.oauthParams.state)return w.oauthParams.newUrl=N,w.oauthParams}(g);if(v){var I=vt.get(v.state);return I&&(v.valid=!0,v.redirectUri=I.redirectUri,v.storedNonce=I.nonce,v.prompt=I.prompt,v.pkceCodeVerifier=I.pkceCodeVerifier),v}}function Mo(g,v){for(var I=g.split("&"),x={paramsString:"",oauthParams:{}},N=0;N<I.length;N++){var w=I[N].indexOf("="),R=I[N].slice(0,w);-1!==v.indexOf(R)?x.oauthParams[R]=I[N].slice(w+1):(""!==x.paramsString&&(x.paramsString+="&"),x.paramsString+=I[N])}return x}function ot(){var g={setSuccess:function(v){g.resolve(v)},setError:function(v){g.reject(v)}};return g.promise=new Promise(function(v,I){g.resolve=v,g.reject=I}),g.promise.success=function(v){return X(),this.then(function(x){v(x)}),this},g.promise.error=function(v){return X(),this.catch(function(x){v(x)}),this},g}function Io(){var g=ot();if(!j.enable||j.iframe)return g.setSuccess(),g.promise;var v=document.createElement("iframe");j.iframe=v,v.onload=function(){var N=p.endpoints.authorize();j.iframeOrigin="/"===N.charAt(0)?window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""):N.substring(0,N.indexOf("/",8)),g.setSuccess()};var I=p.endpoints.checkSessionIframe();return v.setAttribute("src",I),v.setAttribute("title","keycloak-session-iframe"),v.style.display="none",document.body.appendChild(v),window.addEventListener("message",function(N){if(N.origin===j.iframeOrigin&&j.iframe.contentWindow===N.source&&("unchanged"==N.data||"changed"==N.data||"error"==N.data)){"unchanged"!=N.data&&p.clearToken();for(var w=j.callbackList.splice(0,j.callbackList.length),R=w.length-1;R>=0;--R){var L=w[R];"error"==N.data?L.setError():L.setSuccess("unchanged"==N.data)}}},!1),g.promise}function Pe(){j.enable&&p.token&&setTimeout(function(){Zr().then(function(g){g&&Pe()})},1e3*j.interval)}function Zr(){var g=ot();if(j.iframe&&j.iframeOrigin){var v=p.clientId+" "+(p.sessionId?p.sessionId:"");j.callbackList.push(g),1==j.callbackList.length&&j.iframe.contentWindow.postMessage(v,j.iframeOrigin)}else g.setSuccess();return g.promise}function na(){var g=ot();if(j.enable||p.silentCheckSsoRedirectUri){var v=document.createElement("iframe");v.setAttribute("src",p.endpoints.thirdPartyCookiesIframe()),v.setAttribute("title","keycloak-3p-check-iframe"),v.style.display="none",document.body.appendChild(v);var I=function(x){v.contentWindow===x.source&&("supported"!==x.data&&"unsupported"!==x.data||("unsupported"===x.data&&(j.enable=!1,p.silentCheckSsoFallback&&(p.silentCheckSsoRedirectUri=!1),$e("[KEYCLOAK] 3rd party cookies aren't supported by this browser. checkLoginIframe and silent check-sso are not available.")),document.body.removeChild(v),window.removeEventListener("message",I),g.setSuccess()))};window.addEventListener("message",I,!1)}else g.setSuccess();return function(g,v,I){var x=null,N=new Promise(function(w,R){x=setTimeout(function(){R({error:I||"Promise is not settled within timeout of "+v+"ms"})},v)});return Promise.race([g,N]).finally(function(){clearTimeout(x)})}(g.promise,p.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Je(g){if(!g||"default"==g)return{login:function(w){return window.location.replace(p.createLoginUrl(w)),ot().promise},logout:function(w){return window.location.replace(p.createLogoutUrl(w)),ot().promise},register:function(w){return window.location.replace(p.createRegisterUrl(w)),ot().promise},accountManagement:function(){var w=p.createAccountUrl();if(void 0===w)throw"Not supported by the OIDC server";return window.location.href=w,ot().promise},redirectUri:function(w,R){return 1==arguments.length&&(R=!0),w&&w.redirectUri?w.redirectUri:p.redirectUri?p.redirectUri:location.href}};if("cordova"==g){j.enable=!1;var v=function(w,R,L){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(w,R,L):window.open(w,R,L)},N=function(w){var R=function(w){return w&&w.cordovaOptions?Object.keys(w.cordovaOptions).reduce(function(R,L){return R[L]=w.cordovaOptions[L],R},{}):{}}(w);return R.location="no",w&&"none"==w.prompt&&(R.hidden="yes"),function(w){return Object.keys(w).reduce(function(R,L){return R.push(L+"="+w[L]),R},[]).join(",")}(R)};return{login:function(w){var R=ot(),L=N(w),W=p.createLoginUrl(w),U=v(W,"_blank",L),me=!1,Ze=!1,Kn=function(){Ze=!0,U.close()};return U.addEventListener("loadstart",function(gn){0==gn.url.indexOf("http://localhost")&&(zn(qn(gn.url),R),Kn(),me=!0)}),U.addEventListener("loaderror",function(gn){me||(0==gn.url.indexOf("http://localhost")?(zn(qn(gn.url),R),Kn(),me=!0):(R.setError(),Kn()))}),U.addEventListener("exit",function(gn){Ze||R.setError({reason:"closed_by_user"})}),R.promise},logout:function(w){var U,R=ot(),L=p.createLogoutUrl(w),W=v(L,"_blank","location=no,hidden=yes,clearcache=yes");return W.addEventListener("loadstart",function(me){0==me.url.indexOf("http://localhost")&&W.close()}),W.addEventListener("loaderror",function(me){0==me.url.indexOf("http://localhost")||(U=!0),W.close()}),W.addEventListener("exit",function(me){U?R.setError():(p.clearToken(),R.setSuccess())}),R.promise},register:function(w){var R=ot(),L=p.createRegisterUrl(),W=N(w),U=v(L,"_blank",W);return U.addEventListener("loadstart",function(me){0==me.url.indexOf("http://localhost")&&(U.close(),zn(qn(me.url),R))}),R.promise},accountManagement:function(){var w=p.createAccountUrl();if(void 0===w)throw"Not supported by the OIDC server";var R=v(w,"_blank","location=no");R.addEventListener("loadstart",function(L){0==L.url.indexOf("http://localhost")&&R.close()})},redirectUri:function(w){return"http://localhost"}}}if("cordova-native"==g)return j.enable=!1,{login:function(w){var R=ot(),L=p.createLoginUrl(w);return universalLinks.subscribe("keycloak",function(W){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),zn(qn(W.url),R)}),window.cordova.plugins.browsertab.openUrl(L),R.promise},logout:function(w){var R=ot(),L=p.createLogoutUrl(w);return universalLinks.subscribe("keycloak",function(W){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),p.clearToken(),R.setSuccess()}),window.cordova.plugins.browsertab.openUrl(L),R.promise},register:function(w){var R=ot(),L=p.createRegisterUrl(w);return universalLinks.subscribe("keycloak",function(W){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),zn(qn(W.url),R)}),window.cordova.plugins.browsertab.openUrl(L),R.promise},accountManagement:function(){var w=p.createAccountUrl();if(void 0===w)throw"Not supported by the OIDC server";window.cordova.plugins.browsertab.openUrl(w)},redirectUri:function(w){return w&&w.redirectUri?w.redirectUri:p.redirectUri?p.redirectUri:"http://localhost"}};throw"invalid adapter type: "+g}p.init=function(g){if(p.authenticated=!1,vt=function(){try{return new Re}catch(g){}return new de}(),Ie=g&&["default","cordova","cordova-native"].indexOf(g.adapter)>-1?Je(g.adapter):g&&"object"==typeof g.adapter?g.adapter:window.Cordova||window.cordova?Je("cordova"):Je(),g){if(void 0!==g.useNonce&&(ue=g.useNonce),void 0!==g.checkLoginIframe&&(j.enable=g.checkLoginIframe),g.checkLoginIframeInterval&&(j.interval=g.checkLoginIframeInterval),"login-required"===g.onLoad&&(p.loginRequired=!0),g.responseMode){if("query"!==g.responseMode&&"fragment"!==g.responseMode)throw"Invalid value for responseMode";p.responseMode=g.responseMode}if(g.flow){switch(g.flow){case"standard":p.responseType="code";break;case"implicit":p.responseType="id_token token";break;case"hybrid":p.responseType="code id_token token";break;default:throw"Invalid value for flow"}p.flow=g.flow}if(null!=g.timeSkew&&(p.timeSkew=g.timeSkew),g.redirectUri&&(p.redirectUri=g.redirectUri),g.silentCheckSsoRedirectUri&&(p.silentCheckSsoRedirectUri=g.silentCheckSsoRedirectUri),p.silentCheckSsoFallback="boolean"!=typeof g.silentCheckSsoFallback||g.silentCheckSsoFallback,g.pkceMethod){if("S256"!==g.pkceMethod)throw"Invalid value for pkceMethod";p.pkceMethod=g.pkceMethod}p.enableLogging="boolean"==typeof g.enableLogging&&g.enableLogging,"string"==typeof g.scope&&(p.scope=g.scope),p.messageReceiveTimeout="number"==typeof g.messageReceiveTimeout&&g.messageReceiveTimeout>0?g.messageReceiveTimeout:1e4}p.responseMode||(p.responseMode="fragment"),p.responseType||(p.responseType="code",p.flow="standard");var I=ot(),x=ot();x.promise.then(function(){p.onReady&&p.onReady(p.authenticated),I.setSuccess(p.authenticated)}).catch(function(W){I.setError(W)});var N=function(g){var I,v=ot();function x(U){p.endpoints=U?{authorize:function(){return U.authorization_endpoint},token:function(){return U.token_endpoint},logout:function(){if(!U.end_session_endpoint)throw"Not supported by the OIDC server";return U.end_session_endpoint},checkSessionIframe:function(){if(!U.check_session_iframe)throw"Not supported by the OIDC server";return U.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!U.userinfo_endpoint)throw"Not supported by the OIDC server";return U.userinfo_endpoint}}:{authorize:function(){return Ge()+"/protocol/openid-connect/auth"},token:function(){return Ge()+"/protocol/openid-connect/token"},logout:function(){return Ge()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var me=Ge()+"/protocol/openid-connect/login-status-iframe.html";return p.iframeVersion&&(me=me+"?version="+p.iframeVersion),me},thirdPartyCookiesIframe:function(){var me=Ge()+"/protocol/openid-connect/3p-cookies/step1.html";return p.iframeVersion&&(me=me+"?version="+p.iframeVersion),me},register:function(){return Ge()+"/protocol/openid-connect/registrations"},userinfo:function(){return Ge()+"/protocol/openid-connect/userinfo"}}}if(G?"string"==typeof G&&(I=G):I="keycloak.json",I)(N=new XMLHttpRequest).open("GET",I,!0),N.setRequestHeader("Accept","application/json"),N.onreadystatechange=function(){if(4==N.readyState)if(200==N.status||ta(N)){var U=JSON.parse(N.responseText);p.authServerUrl=U["auth-server-url"],p.realm=U.realm,p.clientId=U.resource,x(null),v.setSuccess()}else v.setError()},N.send();else{if(!G.clientId)throw"clientId missing";p.clientId=G.clientId;var w=G.oidcProvider;if(w)if("string"==typeof w){var W,N;W="/"==w.charAt(w.length-1)?w+".well-known/openid-configuration":w+"/.well-known/openid-configuration",(N=new XMLHttpRequest).open("GET",W,!0),N.setRequestHeader("Accept","application/json"),N.onreadystatechange=function(){4==N.readyState&&(200==N.status||ta(N)?(x(JSON.parse(N.responseText)),v.setSuccess()):v.setError())},N.send()}else x(w),v.setSuccess();else{if(!G.url)for(var R=document.getElementsByTagName("script"),L=0;L<R.length;L++)if(R[L].src.match(/.*keycloak\.js/)){G.url=R[L].src.substr(0,R[L].src.indexOf("/js/keycloak.js"));break}if(!G.realm)throw"realm missing";p.authServerUrl=G.url,p.realm=G.realm,x(null),v.setSuccess()}}return v.promise}();function w(){var W=function(Ze){Ze||(me.prompt="none"),p.login(me).then(function(){x.setSuccess()}).catch(function(Kn){x.setError(Kn)})},U=function(){var Ze=document.createElement("iframe"),Kn=p.createLoginUrl({prompt:"none",redirectUri:p.silentCheckSsoRedirectUri});Ze.setAttribute("src",Kn),Ze.setAttribute("title","keycloak-silent-check-sso"),Ze.style.display="none",document.body.appendChild(Ze);var gn=function(At){At.origin===window.location.origin&&Ze.contentWindow===At.source&&(zn(qn(At.data),x),document.body.removeChild(Ze),window.removeEventListener("message",gn))};window.addEventListener("message",gn)},me={};switch(g.onLoad){case"check-sso":j.enable?Io().then(function(){Zr().then(function(Ze){Ze?x.setSuccess():p.silentCheckSsoRedirectUri?U():W(!1)}).catch(function(Ze){x.setError(Ze)})}):p.silentCheckSsoRedirectUri?U():W(!1);break;case"login-required":W(!0);break;default:throw"Invalid value for onLoad"}}function R(){var W=qn(window.location.href);if(W&&window.history.replaceState(window.history.state,null,W.newUrl),W&&W.valid)return Io().then(function(){zn(W,x)}).catch(function(U){x.setError(U)});g?g.token&&g.refreshToken?(Or(g.token,g.refreshToken,g.idToken),j.enable?Io().then(function(){Zr().then(function(U){U?(p.onAuthSuccess&&p.onAuthSuccess(),x.setSuccess(),Pe()):x.setSuccess()}).catch(function(U){x.setError(U)})}):p.updateToken(-1).then(function(){p.onAuthSuccess&&p.onAuthSuccess(),x.setSuccess()}).catch(function(U){p.onAuthError&&p.onAuthError(),g.onLoad?w():x.setError(U)})):g.onLoad?w():x.setSuccess():x.setSuccess()}return N.then(function(){var W,U;(W=ot(),U=function(){("interactive"===document.readyState||"complete"===document.readyState)&&(document.removeEventListener("readystatechange",U),W.setSuccess())},document.addEventListener("readystatechange",U),U(),W.promise).then(na).then(R).catch(function(W){I.setError(W)})}),N.catch(function(W){I.setError(W)}),I.promise},p.login=function(g){return Ie.login(g)},p.createLoginUrl=function(g){var w,v=cc(),I=cc(),x=Ie.redirectUri(g),N={state:v,nonce:I,redirectUri:encodeURIComponent(x)};g&&g.prompt&&(N.prompt=g.prompt),w=g&&"register"==g.action?p.endpoints.register():p.endpoints.authorize();var R=g&&g.scope||p.scope;R?-1===R.indexOf("openid")&&(R="openid "+R):R="openid";var L=w+"?client_id="+encodeURIComponent(p.clientId)+"&redirect_uri="+encodeURIComponent(x)+"&state="+encodeURIComponent(v)+"&response_mode="+encodeURIComponent(p.responseMode)+"&response_type="+encodeURIComponent(p.responseType)+"&scope="+encodeURIComponent(R);if(ue&&(L=L+"&nonce="+encodeURIComponent(I)),g&&g.prompt&&(L+="&prompt="+encodeURIComponent(g.prompt)),g&&g.maxAge&&(L+="&max_age="+encodeURIComponent(g.maxAge)),g&&g.loginHint&&(L+="&login_hint="+encodeURIComponent(g.loginHint)),g&&g.idpHint&&(L+="&kc_idp_hint="+encodeURIComponent(g.idpHint)),g&&g.action&&"register"!=g.action&&(L+="&kc_action="+encodeURIComponent(g.action)),g&&g.locale&&(L+="&ui_locales="+encodeURIComponent(g.locale)),p.pkceMethod){var W=function(g){return It(g,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}(96);N.pkceCodeVerifier=W,L+="&code_challenge="+function(g,v){if("S256"===g){var I=new Uint8Array(E.arrayBuffer(v));return $.fromByteArray(I).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}throw"Invalid value for pkceMethod"}(p.pkceMethod,W),L+="&code_challenge_method="+p.pkceMethod}return vt.add(N),L},p.logout=function(g){return Ie.logout(g)},p.createLogoutUrl=function(g){return p.endpoints.logout()+"?redirect_uri="+encodeURIComponent(Ie.redirectUri(g,!1))},p.register=function(g){return Ie.register(g)},p.createRegisterUrl=function(g){return g||(g={}),g.action="register",p.createLoginUrl(g)},p.createAccountUrl=function(g){var v=Ge(),I=void 0;return void 0!==v&&(I=v+"/account?referrer="+encodeURIComponent(p.clientId)+"&referrer_uri="+encodeURIComponent(Ie.redirectUri(g))),I},p.accountManagement=function(){return Ie.accountManagement()},p.hasRealmRole=function(g){var v=p.realmAccess;return!!v&&v.roles.indexOf(g)>=0},p.hasResourceRole=function(g,v){if(!p.resourceAccess)return!1;var I=p.resourceAccess[v||p.clientId];return!!I&&I.roles.indexOf(g)>=0},p.loadUserProfile=function(){var g=Ge()+"/account",v=new XMLHttpRequest;v.open("GET",g,!0),v.setRequestHeader("Accept","application/json"),v.setRequestHeader("Authorization","bearer "+p.token);var I=ot();return v.onreadystatechange=function(){4==v.readyState&&(200==v.status?(p.profile=JSON.parse(v.responseText),I.setSuccess(p.profile)):I.setError())},v.send(),I.promise},p.loadUserInfo=function(){var g=p.endpoints.userinfo(),v=new XMLHttpRequest;v.open("GET",g,!0),v.setRequestHeader("Accept","application/json"),v.setRequestHeader("Authorization","bearer "+p.token);var I=ot();return v.onreadystatechange=function(){4==v.readyState&&(200==v.status?(p.userInfo=JSON.parse(v.responseText),I.setSuccess(p.userInfo)):I.setError())},v.send(),I.promise},p.isTokenExpired=function(g){if(!p.tokenParsed||!p.refreshToken&&"implicit"!=p.flow)throw"Not authenticated";if(null==p.timeSkew)return be("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var v=p.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+p.timeSkew;if(g){if(isNaN(g))throw"Invalid minValidity";v-=g}return v<0},p.updateToken=function(g){var v=ot();if(!p.refreshToken)return v.setError(),v.promise;g=g||5;var I=function(){var N=!1;if(-1==g?(N=!0,be("[KEYCLOAK] Refreshing token: forced refresh")):(!p.tokenParsed||p.isTokenExpired(g))&&(N=!0,be("[KEYCLOAK] Refreshing token: token expired")),N){var w="grant_type=refresh_token&refresh_token="+p.refreshToken,R=p.endpoints.token();if(Ae.push(v),1==Ae.length){var L=new XMLHttpRequest;L.open("POST",R,!0),L.setRequestHeader("Content-type","application/x-www-form-urlencoded"),L.withCredentials=!0,w+="&client_id="+encodeURIComponent(p.clientId);var W=(new Date).getTime();L.onreadystatechange=function(){if(4==L.readyState)if(200==L.status){be("[KEYCLOAK] Token refreshed"),W=(W+(new Date).getTime())/2;var U=JSON.parse(L.responseText);Or(U.access_token,U.refresh_token,U.id_token,W),p.onAuthRefreshSuccess&&p.onAuthRefreshSuccess();for(var me=Ae.pop();null!=me;me=Ae.pop())me.setSuccess(!0)}else for($e("[KEYCLOAK] Failed to refresh token"),400==L.status&&p.clearToken(),p.onAuthRefreshError&&p.onAuthRefreshError(),me=Ae.pop();null!=me;me=Ae.pop())me.setError(!0)},L.send(w)}}else v.setSuccess(!1)};return j.enable?Zr().then(function(){I()}).catch(function(N){v.setError(N)}):I(),v.promise},p.clearToken=function(){p.token&&(Or(null,null,null),p.onAuthLogout&&p.onAuthLogout(),p.loginRequired&&p.login())};var Re=function(){if(!(this instanceof Re))return new Re;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");function v(){for(var I=(new Date).getTime(),x=0;x<localStorage.length;x++){var N=localStorage.key(x);if(N&&0==N.indexOf("kc-callback-")){var w=localStorage.getItem(N);if(w)try{var R=JSON.parse(w).expires;(!R||R<I)&&localStorage.removeItem(N)}catch(L){localStorage.removeItem(N)}}}}this.get=function(I){if(I){var x="kc-callback-"+I,N=localStorage.getItem(x);return N&&(localStorage.removeItem(x),N=JSON.parse(N)),v(),N}},this.add=function(I){v();var x="kc-callback-"+I.state;I.expires=(new Date).getTime()+36e5,localStorage.setItem(x,JSON.stringify(I))}},de=function(){if(!(this instanceof de))return new de;var g=this;g.get=function(N){if(N){var w=I("kc-callback-"+N);if(x("kc-callback-"+N,"",v(-100)),w)return JSON.parse(w)}},g.add=function(N){x("kc-callback-"+N.state,JSON.stringify(N),v(60))},g.removeItem=function(N){x(N,"",v(-100))};var v=function(N){var w=new Date;return w.setTime(w.getTime()+60*N*1e3),w},I=function(N){for(var w=N+"=",R=document.cookie.split(";"),L=0;L<R.length;L++){for(var W=R[L];" "==W.charAt(0);)W=W.substring(1);if(0==W.indexOf(w))return W.substring(w.length,W.length)}return""},x=function(N,w,R){var L=N+"="+w+"; expires="+R.toUTCString()+"; ";document.cookie=L}};function dc(g){return function(){p.enableLogging&&g.apply(console,Array.prototype.slice.call(arguments))}}}}(B(520),B(425))},425:(D,k)=>{"use strict";k.byteLength=function(q){var ue=G(q),$e=ue[1];return 3*(ue[0]+$e)/4-$e},k.toByteArray=function(q){var ue,Ge,be=G(q),$e=be[0],Fe=be[1],Xe=new $(function(q,ue,be){return 3*(ue+be)/4-be}(0,$e,Fe)),It=0,Mn=Fe>0?$e-4:$e;for(Ge=0;Ge<Mn;Ge+=4)ue=E[q.charCodeAt(Ge)]<<18|E[q.charCodeAt(Ge+1)]<<12|E[q.charCodeAt(Ge+2)]<<6|E[q.charCodeAt(Ge+3)],Xe[It++]=ue>>16&255,Xe[It++]=ue>>8&255,Xe[It++]=255&ue;return 2===Fe&&(ue=E[q.charCodeAt(Ge)]<<2|E[q.charCodeAt(Ge+1)]>>4,Xe[It++]=255&ue),1===Fe&&(ue=E[q.charCodeAt(Ge)]<<10|E[q.charCodeAt(Ge+1)]<<4|E[q.charCodeAt(Ge+2)]>>2,Xe[It++]=ue>>8&255,Xe[It++]=255&ue),Xe},k.fromByteArray=function(q){for(var ue,be=q.length,$e=be%3,Fe=[],It=0,Mn=be-$e;It<Mn;It+=16383)Fe.push(j(q,It,It+16383>Mn?Mn:It+16383));return 1===$e?Fe.push(B[(ue=q[be-1])>>2]+B[ue<<4&63]+"=="):2===$e&&Fe.push(B[(ue=(q[be-2]<<8)+q[be-1])>>10]+B[ue>>4&63]+B[ue<<2&63]+"="),Fe.join("")};for(var B=[],E=[],$="undefined"!=typeof Uint8Array?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",X=0,M=A.length;X<M;++X)B[X]=A[X],E[A.charCodeAt(X)]=X;function G(q){var ue=q.length;if(ue%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var be=q.indexOf("=");return-1===be&&(be=ue),[be,be===ue?0:4-be%4]}function vt(q){return B[q>>18&63]+B[q>>12&63]+B[q>>6&63]+B[63&q]}function j(q,ue,be){for(var Fe=[],Xe=ue;Xe<be;Xe+=3)Fe.push(vt((q[Xe]<<16&16711680)+(q[Xe+1]<<8&65280)+(255&q[Xe+2])));return Fe.join("")}E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63}},D=>{D(D.s=760)}]);