1(self.webpackChunkauthcentralui=self.webpackChunkauthcentralui||[]).push([[179],{787:(_o,yo,_r)=>{"use strict";function Pe(e){return"function"==typeof e}function si(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const bi=si(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Ci(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Qe{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(Pe(i))try{i()}catch(o){n=o instanceof bi?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Gn(o)}catch(s){n=n??[],s instanceof bi?n=[...n,...s.errors]:n.push(s)}}if(n)throw new bi(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Gn(n);else{if(n instanceof Qe){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Ci(t,n)}remove(n){const{_finalizers:t}=this;t&&Ci(t,n),n instanceof Qe&&n._removeParent(this)}}Qe.EMPTY=(()=>{const e=new Qe;return e.closed=!0,e})();const $i=Qe.EMPTY;function vo(e){return e instanceof Qe||e&&"closed"in e&&Pe(e.remove)&&Pe(e.add)&&Pe(e.unsubscribe)}function Gn(e){Pe(e)?e():e.unsubscribe()}const Yi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zn={setTimeout(e,n,...t){const{delegate:i}=zn;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=zn;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function yr(e){zn.setTimeout(()=>{const{onUnhandledError:n}=Yi;if(!n)throw e;n(e)})}function Hr(){}const Nl=Co("C",void 0,void 0);function Co(e,n,t){return{kind:e,value:n,error:t}}let Ui=null;function wi(e){if(Yi.useDeprecatedSynchronousErrorHandling){const n=!Ui;if(n&&(Ui={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=Ui;if(Ui=null,t)throw i}}else e()}class wo extends Qe{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,vo(n)&&n.add(this)):this.destination=J}static create(n,t,i){return new Ve(n,t,i)}next(n){this.isStopped?he(function bo(e){return Co("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?he(function Al(e){return Co("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?he(Nl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Do=Function.prototype.bind;function Mn(e,n){return Do.call(e,n)}class Tt{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Di(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Di(i)}else Di(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Di(t)}}}class Ve extends wo{constructor(n,t,i){let r;if(super(),Pe(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&Yi.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Mn(n.next,o),error:n.error&&Mn(n.error,o),complete:n.complete&&Mn(n.complete,o)}):r=n}this.destination=new Tt(r)}}function Di(e){Yi.useDeprecatedSynchronousErrorHandling?function Gi(e){Yi.useDeprecatedSynchronousErrorHandling&&Ui&&(Ui.errorThrown=!0,Ui.error=e)}
1(e):yr(e)}function he(e,n){const{onStoppedNotification:t}=Yi;t&&zn.setTimeout(()=>t(e,n))}const J={closed:!0,next:Hr,error:function $a(e){throw e},complete:Hr},U="function"==typeof Symbol&&Symbol.observable||"@@observable";function ee(e){return e}function _e(e){return 0===e.length?ee:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let W=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function At(e){return e&&e instanceof wo||function ut(e){return e&&Pe(e.next)&&Pe(e.error)&&Pe(e.complete)}(e)&&vo(e)}(t)?t:new Ve(t,i,r);return wi(()=>{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(i){t.error(i)}}forEach(t,i){return new(i=Je(i))((r,o)=>{const s=new Ve({next:a=>{try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[U](){return this}pipe(...t){return _e(t)(this)}toPromise(t){return new(t=Je(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return e.create=n=>new e(n),e})();function Je(e){var n;return null!==(n=e??Yi.Promise)&&void 0!==n?n:Promise}const Bt=si(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let fe=(()=>{class e extends W{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new jr(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new Bt}next(t){wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){wi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?$i:(this.currentObservers=null,o.push(t),new Qe(()=>{this.currentObservers=null,Ci(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new W;return t.source=this,t}}return e.create=(n,t)=>new jr(n,t),e})();class jr extends fe{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.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,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:$i}}function zi(e){return Pe(e?.lift)}function ot(e){return n=>{if(zi(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(e,n,t,i,r){return new tn(e,n,t,i,r)}class tn extends wo{constructor(n,t,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function se(e,n){return ot((t,i)=>{let r=0;t.subscribe($e(i,o=>{i.next(e.call(n,o,r++))}))})}function G(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function qt(e){return this instanceof qt?(this.v=e,this):new qt(e)}function es(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 Wt(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(s){return new Promise(function(a,c){!function r(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}(a,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const om=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function KC(e){return Pe(e?.then)}function ZC(e){return Pe(e[U])}function QC(e){return Symbol.asyncIterator&&Pe(e?.[Symbol.asyncIterator])}function JC(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 XC=function B2(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function ew(e){return Pe(e?.[XC])}function tw(e){return function Bs(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){i[h]&&(r[h]=function(f){return new Promise(function(g,b){o.push([h,f,g,b])>1||a(h,f)})})}function a(h,f){try{!function c(h){h.value instanceof qt?Promise.resolve(h.value.v).then(l,d):u(o[0][2],h)}(i[h](f))}catch(g){u(o[0][3],g)}}function l(h){a("next",h)}function d(h){a("throw",h)}function u(h,f){h(f),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield qt(t.read());if(r)return yield qt(void 0);yield yield qt(i)}}finally{t.releaseLock()}})}function nw(e){return Pe(e?.getReader)}function rn(e){if(e instanceof W)return e;if(null!=e){if(ZC(e))return function H2(e){return new W(n=>{const t=e[U]();if(Pe(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(om(e))return function j2(e){return new W(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(KC(e))return function $2(e){return new W(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,yr)})}(e);if(QC(e))return iw(e);if(ew(e))return function Y2(e){return new W(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(nw(e))return function U2(e){return iw(tw(e))}(e)}throw JC(e)}function iw(e){return new W(n=>{(function G2(e,n){var t,i,r,o;return function te(e,n,t,i){return new(t||(t=Promise))(function(o,s){function a(d){try{l(i.next(d))}catch(u){s(u)}}function c(d){try{l(i.throw(d))}catch(u){s(u)}}function l(d){d.done?o(d.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(d.value).then(a,c)}l((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=es(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}
1finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function So(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function on(e,n,t=1/0){return Pe(n)?on((i,r)=>se((o,s)=>n(i,o,r,s))(rn(e(i,r))),t):("number"==typeof n&&(t=n),ot((i,r)=>function z2(e,n,t,i,r,o,s,a){const c=[];let l=0,d=0,u=!1;const h=()=>{u&&!c.length&&!l&&n.complete()},f=b=>l<i?g(b):c.push(b),g=b=>{o&&n.next(b),l++;let w=!1;rn(t(b,d++)).subscribe($e(n,S=>{r?.(S),o?f(S):n.next(S)},()=>{w=!0},void 0,()=>{if(w)try{for(l--;c.length&&l<i;){const S=c.shift();s?So(n,s,()=>g(S)):g(S)}h()}catch(S){n.error(S)}}))};return e.subscribe($e(n,f,()=>{u=!0,h()})),()=>{a?.()}}(i,r,e,t)))}function Ua(e=1/0){return on(ee,e)}const ai=new W(e=>e.complete());function rw(e){return e&&Pe(e.schedule)}function sm(e){return e[e.length-1]}function sh(e){return Pe(sm(e))?e.pop():void 0}function Vl(e){return rw(sm(e))?e.pop():void 0}function am(e,n=0){return ot((t,i)=>{t.subscribe($e(i,r=>So(i,e,()=>i.next(r),n),()=>So(i,e,()=>i.complete(),n),r=>So(i,e,()=>i.error(r),n)))})}function ow(e,n=0){return ot((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function sw(e,n){if(!e)throw new Error("Iterable cannot be null");return new W(t=>{So(t,n,()=>{const i=e[Symbol.asyncIterator]();So(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function sn(e,n){return n?function eL(e,n){if(null!=e){if(ZC(e))return function K2(e,n){return rn(e).pipe(ow(n),am(n))}(e,n);if(om(e))return function Q2(e,n){return new W(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(KC(e))return function Z2(e,n){return rn(e).pipe(ow(n),am(n))}(e,n);if(QC(e))return sw(e,n);if(ew(e))return function J2(e,n){return new W(t=>{let i;return So(t,n,()=>{i=e[XC](),So(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>Pe(i?.return)&&i.return()})}(e,n);if(nw(e))return function X2(e,n){return sw(tw(e),n)}(e,n)}throw JC(e)}(e,n):rn(e)}function cm(...e){const n=Vl(e),t=function q2(e,n){return"number"==typeof sm(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?rn(i[0]):Ua(t)(sn(i,n)):ai}class Ot extends fe{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:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function le(...e){return sn(e,Vl(e))}function aw(e={}){const{connector:n=(()=>new fe),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return o=>{let s,a,c,l=0,d=!1,u=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,d=u=!1},g=()=>{const b=s;f(),b?.unsubscribe()};return ot((b,w)=>{l++,!u&&!d&&h();const S=c=c??n();w.add(()=>{l--,0===l&&!u&&!d&&(a=lm(g,r))}),S.subscribe(w),!s&&l>0&&(s=new Ve({next:D=>S.next(D),error:D=>{u=!0,h(),a=lm(f,t,D),S.error(D)},complete:()=>{d=!0,h(),a=lm(f,i),S.complete()}}),rn(b).subscribe(s))})(o)}}function lm(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new Ve({next:()=>{i.unsubscribe(),e()}});return rn(n(...t)).subscribe(i)}function Wi(e,n){return ot((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe($e(i,c=>{r?.unsubscribe();let l=0;const d=o++;rn(e(c,d)).subscribe(r=$e(i,u=>i.next(n?n(c,u,d,l++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Bl(e,n=ee){return e=e??tL,ot((t,i)=>{let r,o=!0;t.subscribe($e(i,s=>{const a=n(s);(o||!e(r,a))&&(o=!1,r=a,i.next(s))}))})}function tL(e,n){return e===n}function at(e){for(let n in e)if(e[n]===at)return n;throw Error("Could not find renamed property on target object.")}function ah(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function an(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(an).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 dm(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}
1const nL=at({__forward_ref__:at});function ye(e){return e.__forward_ref__=ye,e.toString=function(){return an(this())},e}function me(e){return um(e)?e():e}function um(e){return"function"==typeof e&&e.hasOwnProperty(nL)&&e.__forward_ref__===ye}function hm(e){return e&&!!e.\u0275providers}const cw="https://g.co/ng/security#xss";class E extends Error{constructor(n,t){super(function ch(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function be(e){return"string"==typeof e?e:null==e?"":String(e)}function fm(e,n){throw new E(-201,!1)}function qi(e,n){null==e&&function pe(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")}function L(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Te(e){return{providers:e.providers||[],imports:e.imports||[]}}function lh(e){return lw(e,uh)||lw(e,dw)}function lw(e,n){return e.hasOwnProperty(n)?e[n]:null}function dh(e){return e&&(e.hasOwnProperty(pm)||e.hasOwnProperty(dL))?e[pm]:null}const uh=at({\u0275prov:at}),pm=at({\u0275inj:at}),dw=at({ngInjectableDef:at}),dL=at({ngInjectorDef:at});var Ne=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ne||{});let gm;function uw(){return gm}function ci(e){const n=gm;return gm=e,n}function hw(e,n,t){const i=lh(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&Ne.Optional?null:void 0!==n?n:void fm(an(e))}const ht=globalThis;class K{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=L({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Hl={},bm="__NG_DI_FLAG__",hh="ngTempTokenPath",fL=/\n/gm,pw="__source";let Ga;function ts(e){const n=Ga;return Ga=e,n}function mL(e,n=Ne.Default){if(void 0===Ga)throw new E(-203,!1);return null===Ga?hw(e,void 0,n):Ga.get(e,n&Ne.Optional?null:void 0,n)}function N(e,n=Ne.Default){return(uw()||mL)(me(e),n)}function $(e,n=Ne.Default){return N(e,fh(n))}function fh(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Cm(e){const n=[];for(let t=0;t<e.length;t++){const i=me(e[t]);if(Array.isArray(i)){if(0===i.length)throw new E(900,!1);let r,o=Ne.Default;for(let s=0;s<i.length;s++){const a=i[s],c=_L(a);"number"==typeof c?-1===c?r=a.token:o|=c:r=a}n.push(N(r,o))}else n.push(N(i))}return n}function jl(e,n){return e[bm]=n,e.prototype[bm]=n,e}function _L(e){return e[bm]}function To(e){return{toString:e}.toString()}var ph=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ph||{}),Ki=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ki||{});const Yr={},qe=[],gh=at({\u0275cmp:at}),wm=at({\u0275dir:at}),Dm=at({\u0275pipe:at}),mw=at({\u0275mod:at}),Oo=at({\u0275fac:at}),$l=at({__NG_ELEMENT_ID__:at}),_w=at({__NG_ENV_ID__:at});function yw(e,n,t){let i=e.length;for(;;){const r=e.indexOf(n,t);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}t=r+1}}function Mm(e,n,t){let i=0;for(;i<t.length;){const r=t[i];if("number"==typeof r){if(0!==r)break;i++;const o=t[i++],s=t[i++],a=t[i++];e.setAttribute(n,s,a,o)}else{const o=r,s=t[++i];bw(o)?e.setProperty(n,o,s):e.setAttribute(n,o,s),i++}}return i}function vw(e){return 3===e||4===e||6===e}function bw(e){return 64===e.charCodeAt(0)}function Yl(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?t=r:0===t||Cw(e,t,r,null,-1===t||2===t?n[++i]:null)}}return e}function Cw(e,n,t,i,r){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===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(e.splice(s,0,n),o=s+1),e.splice(o++,0,t),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}const ww="ng-template";function bL(e,n,t){let i=0,r=!0;for(;i<e.length;){let o=e[i++];if("string"==typeof o&&r){const s=e[i++];if(t&&"class"===o&&-1!==yw(s.toLowerCase(),n,0))return!0}else{if(1===o){for(;i<e.length&&"string"==typeof(o=e[i++]);
1)if(o.toLowerCase()===n)return!0;return!1}"number"==typeof o&&(r=!1)}}return!1}function Dw(e){return 4===e.type&&e.value!==ww}function CL(e,n,t){return n===(4!==e.type||t?e.value:ww)}function wL(e,n,t){let i=4;const r=e.attrs||[],o=function SL(e){for(let n=0;n<e.length;n++)if(vw(e[n]))return n;return e.length}(r);let s=!1;for(let a=0;a<n.length;a++){const c=n[a];if("number"!=typeof c){if(!s)if(4&i){if(i=2|1&i,""!==c&&!CL(e,c,t)||""===c&&1===n.length){if(vr(i))return!1;s=!0}}else{const l=8&i?c:n[++a];if(8&i&&null!==e.attrs){if(!bL(e.attrs,l,t)){if(vr(i))return!1;s=!0}continue}const u=DL(8&i?"class":c,r,Dw(e),t);if(-1===u){if(vr(i))return!1;s=!0;continue}if(""!==l){let h;h=u>o?"":r[u+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==yw(f,l,0)||2&i&&l!==h){if(vr(i))return!1;s=!0}}}}else{if(!s&&!vr(i)&&!vr(c))return!1;if(s&&vr(c))continue;s=!1,i=c|1&i}}return vr(i)||s}function vr(e){return 0==(1&e)}function DL(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r<n.length;){const s=n[r];if(s===e)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=n[++r];for(;"string"==typeof a;)a=n[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function TL(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const i=e[t];if("number"==typeof i)return-1;if(i===n)return t;t++}return-1}(n,e)}function Mw(e,n,t=!1){for(let i=0;i<n.length;i++)if(wL(e,n[i],t))return!0;return!1}function OL(e,n){e:for(let t=0;t<n.length;t++){const i=n[t];if(e.length===i.length){for(let r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function Sw(e,n){return e?":not("+n.trim()+")":n}function EL(e){let n=e[0],t=1,i=2,r="",o=!1;for(;t<e.length;){let s=e[t];if("string"==typeof s)if(2&i){const a=e[++t];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);
1else""!==r&&!vr(s)&&(n+=Sw(o,r),r=""),i=s,o=o||!vr(i);t++}return""!==r&&(n+=Sw(o,r)),n}function ue(e){return To(()=>{const n=Ow(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ph.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ki.Emulated,styles:e.styles||qe,_:null,schemas:e.schemas||null,tView:null,id:""};Ew(t);const i=e.dependencies;return t.directiveDefs=mh(i,!1),t.pipeDefs=mh(i,!0),t.id=function RL(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const r of t)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function Sm(e,n,t){const i=e.\u0275cmp;i.directiveDefs=mh(n,!1),i.pipeDefs=mh(t,!0)}function xL(e){return Ye(e)||Sn(e)}function PL(e){return null!==e}function Ee(e){return To(()=>({type:e.type,bootstrap:e.bootstrap||qe,declarations:e.declarations||qe,imports:e.imports||qe,exports:e.exports||qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Tw(e,n){if(null==e)return Yr;const t={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,n&&(n[r]=o)}return t}function j(e){return To(()=>{const n=Ow(e);return Ew(n),n})}function li(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ye(e){return e[gh]||null}function Sn(e){return e[wm]||null}function Wn(e){return e[Dm]||null}function Si(e,n){const t=e[mw]||null;if(!t&&!0===n)throw new Error(`Type ${an(e)} does not have '\u0275mod' property.`);return t}function Ow(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Yr,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||qe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Tw(e.inputs,n),outputs:Tw(e.outputs)}}function Ew(e){e.features?.forEach(n=>n(e))}function mh(e,n){if(!e)return null;const t=n?Wn:xL;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(PL)}const Rt=0,q=1,Se=2,Ct=3,br=4,Ul=5,An=6,Wa=7,Ht=8,ns=9,qa=10,Ce=11,Gl=12,kw=13,Ka=14,jt=15,zl=16,Za=17,Ur=18,Wl=19,Iw=20,is=21,Eo=22,ql=23,Kl=24,Ae=25,Tm=1,xw=2,Gr=7,Qa=9,Tn=11;function di(e){return Array.isArray(e)&&"object"==typeof e[Tm]}function qn(e){return Array.isArray(e)&&!0===e[Tm]}function Om(e){return 0!=(4&e.flags)}function js(e){return e.componentOffset>-1}function yh(e){return 1==(1&e.flags)}function Cr(e){return!!e.template}function Em(e){return 0!=(512&e[Se])}function $s(e,n){return e.hasOwnProperty(Oo)?e[Oo]:null}let On=null,vh=!1;function Zi(e){const n=On;return On=e,n}const Aw={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Lw(e){if(!Ql(e)||e.dirty){if(!e.producerMustRecompute(e)&&!Bw(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Vw(e){e.dirty=!0,function Fw(e){if(void 0===e.liveConsumerNode)return;const n=vh;vh=!0;try{for(const t of e.liveConsumerNode)t.dirty||Vw(t)}finally{vh=n}}(e),e.consumerMarkedDirty?.(e)}function Im(e){return e&&(e.nextProducerIndex=0),Zi(e)}function xm(e,n){if(Zi(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Ql(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)bh(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Bw(e){Ja(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],i=e.producerLastReadVersion[n];if(i!==t.version||(Lw(t),i!==t.version))return!0}return!1}function Hw(e){if(Ja(e),Ql(e))for(let n=0;n<e.producerNode.length;n++)bh(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function bh(e,n){if(function $w(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),Ja(e),1===e.liveConsumerNode.length)for(let i=0;i<e.producerNode.length;i++)bh(e.producerNode[i],e.producerIndexOfThis[i]);const t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){const i=e.liveConsumerIndexOfThis[n],r=e.liveConsumerNode[n];Ja(r),r.producerIndexOfThis[i]=n}}function Ql(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Ja(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Yw=null;function zw(e){const n=Zi(null);try{return e()}finally{Zi(n)}}const Ww=()=>{},qL=(()=>({...Aw,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Ww}))();class KL{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Et(){return qw}function qw(e){return e.type.prototype.ngOnChanges&&(e.setInput=QL),ZL}function ZL(){const e=Zw(this),n=e?.current;if(n){const t=e.previous;if(t===Yr)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function QL(e,n,t,i){const r=this.declaredInputs[t],o=Zw(e)||function JL(e,n){return e[Kw]=n}(e,{previous:Yr,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[r];s[r]=new KL(c&&c.currentValue,n,a===Yr),e[i]=n}Et.ngInherit=!0;const Kw="__ngSimpleChanges__";function Zw(e){return e[Kw]||null}const zr=function(e,n,t){},Qw="svg";function ft(e){for(;Array.isArray(e);)e=e[Rt];return e}
1function Ch(e,n){return ft(n[e])}function ui(e,n){return ft(n[e.index])}function Xw(e,n){return e.data[n]}function Xa(e,n){return e[n]}function Ti(e,n){const t=n[e];return di(t)?t:t[Rt]}function os(e,n){return null==n?null:e[n]}function e1(e){e[Za]=0}function rF(e){1024&e[Se]||(e[Se]|=1024,n1(e,1))}function t1(e){1024&e[Se]&&(e[Se]&=-1025,n1(e,-1))}function n1(e,n){let t=e[Ct];if(null===t)return;t[Ul]+=n;let i=t;for(t=t[Ct];null!==t&&(1===n&&1===i[Ul]||-1===n&&0===i[Ul]);)t[Ul]+=n,i=t,t=t[Ct]}function r1(e,n){if(256==(256&e[Se]))throw new E(911,!1);null===e[is]&&(e[is]=[]),e[is].push(n)}const ge={lFrame:p1(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function s1(){return ge.bindingsEnabled}function ec(){return null!==ge.skipHydrationRootTNode}function R(){return ge.lFrame.lView}function Ue(){return ge.lFrame.tView}function V(e){return ge.lFrame.contextLView=e,e[Ht]}function B(e){return ge.lFrame.contextLView=null,e}function En(){let e=a1();for(;null!==e&&64===e.type;)e=e.parent;return e}function a1(){return ge.lFrame.currentTNode}function Wr(e,n){const t=ge.lFrame;t.currentTNode=e,t.isParent=n}function Lm(){return ge.lFrame.isParent}function Fm(){ge.lFrame.isParent=!1}function Kn(){const e=ge.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function tc(){return ge.lFrame.bindingIndex++}function Io(e){const n=ge.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function mF(e,n){const t=ge.lFrame;t.bindingIndex=t.bindingRootIndex=e,Vm(n)}function Vm(e){ge.lFrame.currentDirectiveIndex=e}function u1(){return ge.lFrame.currentQueryIndex}function Hm(e){ge.lFrame.currentQueryIndex=e}function yF(e){const n=e[q];return 2===n.type?n.declTNode:1===n.type?e[An]:null}function h1(e,n,t){if(t&Ne.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&Ne.Host||(r=yF(o),null===r||(o=o[Ka],10&r.type))););if(null===r)return!1;n=r,e=o}const i=ge.lFrame=f1();return i.currentTNode=n,i.lView=e,!0}function jm(e){const n=f1(),t=e[q];ge.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function f1(){const e=ge.lFrame,n=null===e?null:e.child;return null===n?p1(e):n}function p1(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 g1(){const e=ge.lFrame;return ge.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const m1=g1;function $m(){const e=g1();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 Zn(){return ge.lFrame.selectedIndex}function Ys(e){ge.lFrame.selectedIndex=e}function kt(){const e=ge.lFrame;return Xw(e.tView,e.selectedIndex)}function $t(){ge.lFrame.currentNamespace=Qw}function Oi(){!function wF(){ge.lFrame.currentNamespace=null}()}let y1=!0;function wh(){return y1}function ss(e){y1=e}function Dh(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t<i;t++){const o=e.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:d}=o;s&&(e.contentHooks??=[]).push(-t,s),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),c&&(e.viewHooks??=[]).push(-t,c),l&&((e.viewHooks??=[]).push(t,l),(e.viewCheckHooks??=[]).push(t,l)),null!=d&&(e.destroyHooks??=[]).push(t,d)}}function Mh(e,n,t){v1(e,n,3,t)}function Sh(e,n,t,i){(3&e[Se])===t&&v1(e,n,t,i)}function Ym(e,n){let t=e[Se];(3&t)===n&&(t&=8191,t+=1,e[Se]=t)}function v1(e,n,t,i){const o=i??-1,s=n.length-1;let a=0;for(let c=void 0!==i?65535&e[Za]:0;c<s;c++)if("number"==typeof n[c+1]){if(a=n[c],null!=i&&a>=i)break}else n[c]<0&&(e[Za]+=65536),(a<o||-1==o)&&(MF(e,t,n,c),e[Za]=(4294901760&e[Za])+c+2),c++}function b1(e,n){zr(4,e,n);const t=Zi(null);try{n.call(e)}finally{Zi(t),zr(5,e,n)}}function MF(e,n,t,i){const r=t[i]<0,o=t[i+1],a=e[r?-t[i]:t[i]];r?e[Se]>>13<e[Za]>>16&&(3&e[Se])===n&&(e[Se]+=8192,b1(a,o)):b1(a,o)}const nc=-1;class Xl{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function Gm(e){return e!==nc}function ed(e){return 32767&e}function td(e,n){let t=function EF(e){return e>>16}(e),i=n;for(;t>0;)i=i[Ka],t--;return i}let zm=!0;function Th(e){const n=zm;return zm=e,n}const C1=255,w1=5;let kF=0;const qr={};function Oh(e,n){const t=D1(e,n);if(-1!==t)return t;const i=n[q];i.firstCreatePass&&(e.injectorIndex=n.length,Wm(i.data,e),Wm(n,null),Wm(i.blueprint,null));const r=Eh(e,n),o=e.injectorIndex;if(Gm(r)){const s=ed(r),a=td(r,n),c=a[q].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=r,o}function Wm(e,n){e.push(0,0,0,0,0,0,0,0,n)}function D1(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Eh(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){if(i=I1(r),null===i)return nc;if(t++,r=r[Ka],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return nc}function qm(e,n,t){!function IF(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty($l)&&(i=t[$l]),null==i&&(i=t[$l]=kF++);const r=i&C1;n.data[e+(r>>w1)]|=1<<r}(e,n,t)}function M1(e,n,t){if(t&Ne.Optional||void 0!==e)return e;fm()}function S1(e,n,t,i){if(t&Ne.Optional&&void 0===i&&(i=null),!(t&(Ne.Self|Ne.Host))){const r=e[ns],o=ci(void 0);try{return r?r.get(n,i,t&Ne.Optional):hw(n,i,t&Ne.Optional)}finally{ci(o)}}return M1(i,0,t)}function T1(e,n,t,i=Ne.Default,r){if(null!==e){if(2048&n[Se]&&!(i&Ne.Self)){const s=function LF(e,n,t,i,r){let o=e,s=n;for(;null!==o&&null!==s&&2048&s[Se]&&!(512&s[Se]);){const a=O1(o,s,t,i|Ne.Self,qr);if(a!==qr)return a;let c=o.parent;if(!c){const l=s[Iw];if(l){const d=l.get(t,qr,i);if(d!==qr)return d}c=I1(s),s=s[Ka]}o=c}return r}(e,n,t,i,qr);if(s!==qr)return s}const o=O1(e,n,t,i,qr);if(o!==qr)return o}return S1(n,t,i,r)}function O1(e,n,t,i,r){const o=function NF(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty($l)?e[$l]:void 0;return"number"==typeof n?n>=0?n&C1:RF:n}(t);if("function"==typeof o){if(!h1(n,e,i))return i&Ne.Host?M1(r,0,i):S1(n,t,i,r);try{let s;if(s=o(i),null!=s||i&Ne.Optional)return s;fm()}finally{m1()}}else if("number"==typeof o){let s=null,a=D1(e,n),c=nc,l=i&Ne.Host?n[jt][An]:null;for((-1===a||i&Ne.SkipSelf)&&(c=-1===a?Eh(e,n):n[a+8],c!==nc&&k1(i,!1)?(s=n[q],a=ed(c),n=td(c,n)):a=-1);-1!==a;){const d=n[q];if(E1(o,a,d.data)){const u=PF(a,n,t,s,i,l);if(u!==qr)return u}c=n[a+8],c!==nc&&k1(i,n[q].data[a+8]===l)&&E1(o,a,n)?(s=d,a=ed(c),n=td(c,n)):a=-1}}return r}function PF(e,n,t,i,r,o){const s=n[q],a=s.data[e+8],d=kh(a,s,t,null==i?js(a)&&zm:i!=s&&0!=(3&a.type),r&Ne.Host&&o===a);return null!==d?Us(n,s,d,a):qr}function kh(e,n,t,i,r){const o=e.providerIndexes,s=n.data,a=1048575&o,c=e.directiveStart,d=o>>20,h=r?a+d:e.directiveEnd;for(let f=i?a:a+d;f<h;f++){const g=s[f];
1if(f<c&&t===g||f>=c&&g.type===t)return f}if(r){const f=s[c];if(f&&Cr(f)&&f.type===t)return c}return null}function Us(e,n,t,i){let r=e[t];const o=n.data;if(function SF(e){return e instanceof Xl}(r)){const s=r;s.resolving&&function iL(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new E(-200,`Circular dependency in DI detected for ${e}${t}`)}(function it(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():be(e)}(o[t]));const a=Th(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ci(s.injectImpl):null;h1(e,i,Ne.Default);try{r=e[t]=s.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function DF(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=qw(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}r&&(t.preOrderHooks??=[]).push(0-e,r),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==l&&ci(l),Th(a),s.resolving=!1,m1()}}return r}function E1(e,n,t){return!!(t[n+(e>>w1)]&1<<e)}function k1(e,n){return!(e&Ne.Self||e&Ne.Host&&n)}class Qn{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,i){return T1(this._tNode,this._lView,n,fh(i),t)}}function RF(){return new Qn(En(),R())}function Lt(e){return To(()=>{const n=e.prototype.constructor,t=n[Oo]||Km(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Oo]||Km(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Km(e){return um(e)?()=>{const n=Km(me(e));return n&&n()}:$s(e)}function I1(e){const n=e[q],t=n.type;return 2===t?n.declTNode:1===t?e[An]:null}function as(e){return function xF(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const o=t[r];if(vw(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(o===n)return t[r+1];r+=2}}}return null}(En(),e)}const rc="__parameters__";function sc(e,n,t){return To(()=>{const i=function Zm(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(c,l,d){const u=c.hasOwnProperty(rc)?c[rc]:Object.defineProperty(c,rc,{value:[]})[rc];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),c}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function cc(e,n){e.forEach(t=>Array.isArray(t)?cc(t,n):n(t))}function P1(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Ih(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function rd(e,n){const t=[];for(let i=0;i<e;i++)t.push(n);return t}function Ei(e,n,t){let i=lc(e,n);return i>=0?e[1|i]=t:(i=~i,function YF(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function Qm(e,n){const t=lc(e,n);if(t>=0)return e[1|t]}function lc(e,n){return function N1(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=e[o<<t];if(n===s)return o<<t;s>n?r=o:i=o+1}return~(r<<t)}(e,n,1)}const Ph=jl(sc("Optional"),8),Nh=jl(sc("SkipSelf"),4);function Vh(e){return 128==(128&e.flags)}var cs=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(cs||{});const dV=/^>|^->|<!--|-->|--!>|<!-$/g,uV=/(<|>)/g,hV="\u200b$1\u200b";const n_=new Map;let fV=0;const r_="__ngContext__";function Rn(e,n){di(n)?(e[r_]=n[Wl],function gV(e){n_.set(e[Wl],e)}(n)):e[r_]=n}let o_;function s_(e,n){return o_(e,n)}function ad(e){const n=e[Ct];return qn(n)?n[Ct]:n}function X1(e){return tD(e[Gl])}function eD(e){return tD(e[br])}function tD(e){for(;null!==e&&!qn(e);)e=e[br];return e}function hc(e,n,t,i,r){if(null!=i){let o,s=!1;qn(i)?o=i:di(i)&&(s=!0,i=i[Rt]);const a=ft(i);0===e&&null!==t?null==r?oD(n,t,a):Gs(n,t,a,r||null,!0):1===e&&null!==t?Gs(n,t,a,r||null,!0):2===e?function Gh(e,n,t){const i=Yh(e,n);i&&function AV(e,n,t,i){e.removeChild(n,t,i)}(e,i,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function FV(e,n,t,i,r){const o=t[Gr];o!==ft(t)&&hc(n,e,i,o,r);for(let a=Tn;a<t.length;a++){const c=t[a];ld(c[q],c,e,n,i,o)}}(n,e,o,t,r)}}function a_(e,n){return e.createComment(function G1(e){return e.replace(dV,n=>n.replace(uV,hV))}(n))}function jh(e,n,t){return e.createElement(n,t)}function iD(e,n){const t=e[Qa],i=t.indexOf(n);t1(n),t.splice(i,1)}function $h(e,n){if(e.length<=Tn)return;const t=Tn+n,i=e[t];if(i){const r=i[zl];null!==r&&r!==e&&iD(r,i),n>0&&(e[t-1][br]=i[br]);const o=Ih(e,Tn+n);!function TV(e,n){ld(e,n,n[Ce],2,null,null),n[Rt]=null,n[An]=null}(i[q],i);const s=o[Ur];null!==s&&s.detachView(o[q]),i[Ct]=null,i[br]=null,i[Se]&=-129}return i}function c_(e,n){if(!(256&n[Se])){const t=n[Ce];n[ql]&&Hw(n[ql]),n[Kl]&&Hw(n[Kl]),t.destroyNode&&ld(e,n,t,3,null,null),function kV(e){let n=e[Gl];
1if(!n)return l_(e[q],e);for(;n;){let t=null;if(di(n))t=n[Gl];else{const i=n[Tn];i&&(t=i)}if(!t){for(;n&&!n[br]&&n!==e;)di(n)&&l_(n[q],n),n=n[Ct];null===n&&(n=e),di(n)&&l_(n[q],n),t=n&&n[br]}n=t}}(n)}}function l_(e,n){if(!(256&n[Se])){n[Se]&=-129,n[Se]|=256,function NV(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i<t.length;i+=2){const r=n[t[i]];if(!(r instanceof Xl)){const o=t[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=r[o[s]],c=o[s+1];zr(4,a,c);try{c.call(a)}finally{zr(5,a,c)}}else{zr(4,r,o);try{o.call(r)}finally{zr(5,r,o)}}}}}(e,n),function PV(e,n){const t=e.cleanup,i=n[Wa];if(null!==t)for(let o=0;o<t.length-1;o+=2)if("string"==typeof t[o]){const s=t[o+3];s>=0?i[s]():i[-s].unsubscribe(),o+=2}else t[o].call(i[t[o+1]]);null!==i&&(n[Wa]=null);const r=n[is];if(null!==r){n[is]=null;for(let o=0;o<r.length;o++)(0,r[o])()}}(e,n),1===n[q].type&&n[Ce].destroy();const t=n[zl];if(null!==t&&qn(n[Ct])){t!==n[Ct]&&iD(t,n);const i=n[Ur];null!==i&&i.detachView(e)}!function mV(e){n_.delete(e[Wl])}(n)}}function d_(e,n,t){return function rD(e,n,t){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return t[Rt];{const{componentOffset:r}=i;if(r>-1){const{encapsulation:o}=e.data[i.directiveStart+r];if(o===Ki.None||o===Ki.Emulated)return null}return ui(i,t)}}(e,n.parent,t)}function Gs(e,n,t,i,r){e.insertBefore(n,t,i,r)}function oD(e,n,t){e.appendChild(n,t)}function sD(e,n,t,i,r){null!==i?Gs(e,n,t,i,r):oD(e,n,t)}function Yh(e,n){return e.parentNode(n)}function aD(e,n,t){return lD(e,n,t)}let u_,g_,Wh,lD=function cD(e,n,t){return 40&e.type?ui(e,t):null};function Uh(e,n,t,i){const r=d_(e,i,n),o=n[Ce],a=aD(i.parent||n[An],i,n);if(null!=r)if(Array.isArray(t))for(let c=0;c<t.length;c++)sD(o,r,t[c],a,!1);else sD(o,r,t,a,!1);void 0!==u_&&u_(o,i,n,t,r)}function cd(e,n){if(null!==n){const t=n.type;if(3&t)return ui(n,e);if(4&t)return h_(-1,e[n.index]);if(8&t){const i=n.child;if(null!==i)return cd(e,i);{const r=e[n.index];return qn(r)?h_(-1,r):ft(r)}}if(32&t)return s_(n,e)()||ft(e[n.index]);{const i=uD(e,n);return null!==i?Array.isArray(i)?i[0]:cd(ad(e[jt]),i):cd(e,n.next)}}return null}function uD(e,n){return null!==n?e[jt][An].projection[n.projection]:null}function h_(e,n){const t=Tn+e+1;if(t<n.length){const i=n[t],r=i[q].firstChild;if(null!==r)return cd(i,r)}return n[Gr]}function f_(e,n,t,i,r,o,s){for(;null!=t;){const a=i[t.index],c=t.type;if(s&&0===n&&(a&&Rn(ft(a),i),t.flags|=2),32!=(32&t.flags))if(8&c)f_(e,n,t.child,i,r,o,!1),hc(n,e,r,a,o);else if(32&c){const l=s_(t,i);let d;for(;d=l();)hc(n,e,r,d,o);hc(n,e,r,a,o)}else 16&c?fD(e,n,i,t,r,o):hc(n,e,r,a,o);t=s?t.projectionNext:t.next}}function ld(e,n,t,i,r,o){f_(t,i,e.firstChild,n,r,o,!1)}function fD(e,n,t,i,r,o){const s=t[jt],c=s[An].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)hc(n,e,r,c[l],o);else{let l=c;const d=s[Ct];Vh(i)&&(l.flags|=128),f_(e,n,l,d,r,o,!0)}}function pD(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function gD(e,n,t){const{mergedAttrs:i,classes:r,styles:o}=t;null!==i&&Mm(e,n,i),null!==r&&pD(e,n,r),null!==o&&function BV(e,n,t){e.setAttribute(n,"style",t)}(e,n,o)}function yD(e){return function m_(){if(void 0===Wh&&(Wh=null,ht.trustedTypes))try{Wh=ht.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Wh}()?.createScriptURL(e)||e}class vD{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${cw})`}}function ls(e){return e instanceof vD?e.changingThisBreaksApplicationSecurity:e}function dd(e,n){const t=function KV(e){return e instanceof vD&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${cw})`)}return t===n}const XV=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var gc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(gc||{});function Kh(e){const n=hd();return n?n.sanitize(gc.URL,e)||"":dd(e,"URL")?ls(e):function __(e){return(e=String(e)).match(XV)?e:"unsafe:"+e}(be(e))}function TD(e){const n=hd();if(n)return yD(n.sanitize(gc.RESOURCE_URL,e)||"");if(dd(e,"ResourceURL"))return yD(ls(e));throw new E(904,!1)}function hd(){const e=R();return e&&e[qa].sanitizer}const fd=new K("ENVIRONMENT_INITIALIZER"),ED=new K("INJECTOR",-1),kD=new K("INJECTOR_DEF_TYPES");class C_{get(n,t=Hl){if(t===Hl){const i=new Error(`NullInjectorError: No provider for ${an(n)}!`);throw i.name="NullInjectorError",i}return t}}function hB(...e){return{\u0275providers:ID(0,e),\u0275fromNgModule:!0}}function ID(e,...n){const t=[],i=new Set;let r;const o=s=>{t.push(s)};return cc(n,s=>{const a=s;Zh(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&xD(r,o),t}function xD(e,n){for(let t=0;t<e.length;t++){const{ngModule:i,providers:r}=e[t];D_(r,o=>{n(o,i)})}}function Zh(e,n,t,i){if(!(e=me(e)))return!1;let r=null,o=dh(e);const s=!o&&Ye(e);if(o||s){if(s&&!s.standalone)return!1;r=e}else{const c=e.ngModule;if(o=dh(c),!o)return!1;r=c}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)Zh(l,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;i.add(r);try{cc(o.imports,d=>{Zh(d,n,t,i)&&(l||=[],l.push(d))})}finally{}void 0!==l&&xD(l,n)}if(!a){const l=$s(r)||(()=>new r);n({provide:r,useFactory:l,deps:qe},r),n({provide:kD,useValue:r,multi:!0},r),n({provide:fd,useValue:()=>N(r),multi:!0},r)}const c=o.providers;if(null!=c&&!a){const l=e;D_(c,d=>{n(d,l)})}}}return r!==e&&void 0!==e.providers}function D_(e,n){for(let t of e)hm(t)&&(t=t.\u0275providers),Array.isArray(t)?D_(t,n):n(t)}const fB=at({provide:String,useValue:at});function M_(e){return null!==e&&"object"==typeof e&&fB in e}function zs(e){return"function"==typeof e}const S_=new K("Set Injector scope."),Qh={},gB={};let T_;function Jh(){return void 0===T_&&(T_=new C_),T_}class Jn{}class mc extends Jn{get destroyed(){return this._destroyed}constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,E_(n,s=>this.processProvider(s)),this.records.set(ED,_c(void 0,this)),r.has("environment")&&this.records.set(Jn,_c(void 0,this));const o=this.records.get(S_);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(kD.multi,qe,Ne.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=ts(this),i=ci(void 0);try{return n()}finally{ts(t),ci(i)}}get(n,t=Hl,i=Ne.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(_w))return n[_w](this);i=fh(i);const o=ts(this),s=ci(void 0);try{if(!(i&Ne.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function bB(e){return"function"==typeof e||"object"==typeof e&&e instanceof K}(n)&&lh(n);c=l&&this.injectableDefInScope(l)?_c(O_(n),Qh):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&Ne.Self?Jh():this.parent).get(n,t=i&Ne.Optional&&t===Hl?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[hh]=a[hh]||[]).unshift(an(n)),o)throw a;return function yL(e,n,t,i){const r=e[hh];throw n[pw]&&r.unshift(n[pw]),e.message=function vL(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=an(n);if(Array.isArray(n))r=n.map(an).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];
1o.push(s+":"+("string"==typeof a?JSON.stringify(a):an(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(fL,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[hh]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{ci(s),ts(o)}}resolveInjectorInitializers(){const n=ts(this),t=ci(void 0);try{const r=this.get(fd.multi,qe,Ne.Self);for(const o of r)o()}finally{ts(n),ci(t)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(an(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(n){let t=zs(n=me(n))?n:me(n&&n.provide);const i=function _B(e){return M_(e)?_c(void 0,e.useValue):_c(AD(e),Qh)}(n);if(zs(n)||!0!==n.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=_c(void 0,Qh,!0),r.factory=()=>Cm(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){return t.value===Qh&&(t.value=gB,t.value=t.factory()),"object"==typeof t.value&&t.value&&function vB(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=me(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function O_(e){const n=lh(e),t=null!==n?n.factory:$s(e);if(null!==t)return t;if(e instanceof K)throw new E(204,!1);if(e instanceof Function)return function mB(e){const n=e.length;if(n>0)throw rd(n,"?"),new E(204,!1);const t=function lL(e){return e&&(e[uh]||e[dw])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new E(204,!1)}function AD(e,n,t){let i;if(zs(e)){const r=me(e);return $s(r)||O_(r)}if(M_(e))i=()=>me(e.useValue);else if(function ND(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Cm(e.deps||[]));else if(function PD(e){return!(!e||!e.useExisting)}(e))i=()=>N(me(e.useExisting));else{const r=me(e&&(e.useClass||e.provide));if(!function yB(e){return!!e.deps}(e))return $s(r)||O_(r);i=()=>new r(...Cm(e.deps))}return i}function _c(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function E_(e,n){for(const t of e)Array.isArray(t)?E_(t,n):t&&hm(t)?E_(t.\u0275providers,n):n(t)}const Xh=new K("AppId",{providedIn:"root",factory:()=>CB}),CB="ng",RD=new K("Platform Initializer"),Po=new K("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),LD=new K("AnimationModuleType"),FD=new K("CSP nonce",{providedIn:"root",factory:()=>function pc(){if(void 0!==g_)return g_;if(typeof document<"u")return document;throw new E(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let VD=(e,n,t)=>null;function L_(e,n,t=!1){return VD(e,n,t)}class xB{}class jD{}class NB{resolveComponentFactory(n){throw function PB(e){const n=Error(`No component factory found for ${an(e)}.`);return n.ngComponent=e,n}(n)}}let md=(()=>{class e{static#e=this.NULL=new NB}return e})();function AB(){return bc(En(),R())}function bc(e,n){return new we(ui(e,n))}let we=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=AB}return e})();function RB(e){return e instanceof we?e.nativeElement:e}class ds{}let It=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function LB(){const e=R(),t=Ti(En().index,e);return(di(t)?t:e)[Ce]}()}return e})(),FB=(()=>{class e{static#e=this.\u0275prov=L({token:e,providedIn:"root",factory:()=>null})}return e})();class _d{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const VB=new _d("16.2.12"),B_={};function zD(e,n=null,t=null,i){const r=WD(e,n,t,i);return r.resolveInjectorInitializers(),r}function WD(e,n=null,t=null,i,r=new Set){const o=[t||qe,hB(e)];return i=i||("object"==typeof e?void 0:an(e)),new mc(o,n||Jh(),i||null,r)}let Zt=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Hl;static#t=this.NULL=new C_;static create(t,i){if(Array.isArray(t))return zD({name:""},i,t,"");{const r=t.name??"";
1return zD({name:r},t.parent,t.providers,r)}}static#n=this.\u0275prov=L({token:e,providedIn:"any",factory:()=>N(ED)});static#i=this.__NG_ELEMENT_ID__=-1}return e})();function H_(e){return e.ngOriginalError}class No{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&H_(n);for(;t&&H_(t);)t=H_(t);return t||null}}let wr=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=GB;static#t=this.__NG_ENV_ID__=t=>t}return e})();class UB extends wr{constructor(n){super(),this._lView=n}onDestroy(n){return r1(this._lView,n),()=>function oF(e,n){if(null===e[is])return;const t=e[is].indexOf(n);-1!==t&&e[is].splice(t,1)}(this._lView,n)}}function GB(){return new UB(R())}function j_(e){return n=>{setTimeout(e,void 0,n)}}const H=class zB extends fe{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){let r=n,o=t||(()=>null),s=i;if(n&&"object"==typeof n){const c=n;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=j_(o),r&&(r=j_(r)),s&&(s=j_(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof Qe&&n.add(a),a}};function KD(...e){}class ke{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new H(!1),typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function WB(){const e="function"==typeof ht.requestAnimationFrame;let n=ht[e?"requestAnimationFrame":"setTimeout"],t=ht[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function ZB(e){const n=()=>{!function KB(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ht,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Y_(e),e.isCheckStableRunning=!0,$_(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Y_(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,s,a)=>{if(function JB(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(r,o,s,a);try{return ZD(e),t.invokeTask(r,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),QD(e)}},onInvoke:(t,i,r,o,s,a,c)=>{try{return ZD(e),t.invoke(r,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),QD(e)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Y_(e),$_(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ke.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(ke.isInAngularZone())throw new E(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,qB,KD,KD);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const qB={};function $_(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 Y_(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function ZD(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function QD(e){e._nesting--,$_(e)}class QB{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new H,this.onError=ne
1w H}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}const JD=new K("",{providedIn:"root",factory:XD});function XD(){const e=$(ke);let n=!0;return cm(new W(r=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(n),r.complete()})}),new W(r=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{ke.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,r.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ke.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(aw()))}function U_(e){return e.ownerDocument.defaultView}function eM(e){return e.ownerDocument}function Ao(e){return e instanceof Function?e():e}let G_=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e})}return e})();function yd(e){for(;e;){e[Se]|=64;const n=ad(e);if(Em(e)&&!n)return e;e=n}return null}const oM=new K("",{providedIn:"root",factory:()=>!1});let lf=null;function lM(e,n){return e[n]??hM()}function dM(e,n){const t=hM();t.producerNode?.length&&(e[n]=lf,t.lView=e,lf=uM())}const sH={...Aw,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{yd(e.lView)},lView:null};function uM(){return Object.create(sH)}function hM(){return lf??=uM(),lf}const De={};function p(e){fM(Ue(),R(),Zn()+e,!1)}function fM(e,n,t,i){if(!i)if(3==(3&n[Se])){const o=e.preOrderCheckHooks;null!==o&&Mh(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Sh(n,o,0,t)}Ys(t)}function _(e,n=Ne.Default){const t=R();return null===t?N(e,n):T1(En(),t,me(e),n)}function df(e,n,t,i,r,o,s,a,c,l,d){const u=n.blueprint.slice();return u[Rt]=r,u[Se]=140|i,(null!==l||e&&2048&e[Se])&&(u[Se]|=2048),e1(u),u[Ct]=u[Ka]=e,u[Ht]=t,u[qa]=s||e&&e[qa],u[Ce]=a||e&&e[Ce],u[ns]=c||e&&e[ns]||null,u[An]=o,u[Wl]=function pV(){return fV++}(),u[Eo]=d,u[Iw]=l,u[jt]=2==n.type?e[jt]:u,u}function Dc(e,n,t,i,r){let o=e.data[n];if(null===o)o=function z_(e,n,t,i,r){const o=a1(),s=Lm(),c=e.data[n]=function pH(e,n,t,i,r,o){let s=n?n.injectorIndex:-1,a=0;return ec()&&(a|=128),{type:t,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=c),null!==o&&(s?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}(e,n,t,i,r),function gF(){return ge.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const s=function Jl(){const e=ge.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Wr(o,!0),o}function vd(e,n,t,i){if(0===t)return-1;const r=n.length;for(let o=0;o<t;o++)n.push(i),e.blueprint.push(i),e.data.push(null);return r}function gM(e,n,t,i,r){const o=lM(n,ql),s=Zn(),a=2&i;try{Ys(-1),a&&n.length>Ae&&fM(e,n,Ae,!1),zr(a?2:0,r);const l=a?o:null,d=Im(l);try{null!==l&&(l.dirty=!1),t(i,r)}finally{xm(l,d)}}finally{a&&null===n[ql]&&dM(n,ql),Ys(s),zr(a?3:1,r)}}function W_(e,n,t){if(Om(n)){const i=Zi(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;s<o;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,t[s],s)}}finally{Zi(i)}}}function q_(e,n,t){s1()&&(function CH(e,n,t,i){const r=t.directiveStart,o=t.directiveEnd;js(t)&&function EH(e,n,t){const i=ui(n,e),r=mM(t);let s=16;t.signals?s=4096:t.onPush&&(s=64);const a=uf(e,df(e,r,null,s,i,n,null,e[qa].rendererFactory.createRenderer(i,t),null,null,null));e[n.index]=a}
1(n,t,e.data[r+t.componentOffset]),e.firstCreatePass||Oh(t,n),Rn(i,n);const s=t.initialInputs;for(let a=r;a<o;a++){const c=e.data[a],l=Us(n,e,a,t);Rn(l,n),null!==s&&kH(0,a-r,l,c,0,s),Cr(c)&&(Ti(t.index,n)[Ht]=Us(n,e,a,t))}}(e,n,t,ui(t,n)),64==(64&t.flags)&&CM(e,n,t))}function K_(e,n,t=ui){const i=n.localNames;if(null!==i){let r=n.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?t(n,e):e[s];e[r++]=a}}}function mM(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=Z_(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function Z_(e,n,t,i,r,o,s,a,c,l,d){const u=Ae+i,h=u+r,f=function cH(e,n){const t=[];for(let i=0;i<n;i++)t.push(i<e?null:De);return t}(u,h),g="function"==typeof l?l():l;return f[q]={type:e,blueprint:f,template:t,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,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:c,consts:g,incompleteFirstPass:!1,ssrId:d}}let _M=e=>null;function yM(e,n,t,i){for(let r in e)if(e.hasOwnProperty(r)){t=null===t?{}:t;const o=e[r];null===i?vM(t,n,r,o):i.hasOwnProperty(r)&&vM(t,n,i[r],o)}return t}function vM(e,n,t,i){e.hasOwnProperty(t)?e[t].push(n,i):e[t]=[n,i]}function ki(e,n,t,i,r,o,s,a){const c=ui(n,t);let d,l=n.inputs;!a&&null!=l&&(d=l[i])?(ty(e,t,d,i,r),js(n)&&function _H(e,n){const t=Ti(n,e);16&t[Se]||(t[Se]|=64)}(t,n.index)):3&n.type&&(i=function mH(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(c,i,r))}function Q_(e,n,t,i){if(s1()){const r=null===i?null:{"":-1},o=function DH(e,n){const t=e.directiveRegistry;let i=null,r=null;if(t)for(let o=0;o<t.length;o++){const s=t[o];if(Mw(n,s.selectors,!1))if(i||(i=[]),Cr(s))if(null!==s.findHostDirectiveDefs){const a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),i.unshift(...a,s),J_(e,n,a.length)}else i.unshift(s),J_(e,n,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,i,r),i.push(s)}return null===i?null:[i,r]}(e,t);let s,a;null===o?s=a=null:[s,a]=o,null!==s&&bM(e,n,t,s,r,a),r&&function MH(e,n,t){if(n){const i=e.localNames=[];for(let r=0;r<n.length;r+=2){const o=t[n[r+1]];if(null==o)throw new E(-301,!1);i.push(n[r],o)}}}(t,i,r)}t.mergedAttrs=Yl(t.mergedAttrs,t.attrs)}function bM(e,n,t,i,r,o){for(let l=0;l<i.length;l++)qm(Oh(t,n),e,i[l].type);!function TH(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,i.length);for(let l=0;l<i.length;l++){const d=i[l];d.providersResolver&&d.providersResolver(d)}let s=!1,a=!1,c=vd(e,n,i.length,null);for(let l=0;l<i.length;l++){const d=i[l];t.mergedAttrs=Yl(t.mergedAttrs,d.hostAttrs),OH(e,t,n,c,d),SH(c,d,r),null!==d.contentQueries&&(t.flags|=4),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=64);const u=d.type.prototype;!s&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),s=!0),!a&&(u.ngOnChanges||u.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),a=!0),c++}!function gH(e,n,t){const r=n.directiveEnd,o=e.data,s=n.attrs,a=[];let c=null,l=null;for(let d=n.directiveStart;d<r;d++){const u=o[d],h=t?t.get(u):null,g=h?h.outputs:null;c=yM(u.inputs,d,c,h?h.inputs:null),l=yM(u.outputs,d,l,g);const b=null===c||null===s||Dw(n)?null:IH(c,d,s);a.push(b)}null!==c&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=c,n.outputs=l}(e,t,o)}function CM(e,n,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,s=function _F(){return ge.lFrame.currentDirectiveIndex}();try{Ys(o);for(let a=i;a<r;a++){const c=e.data[a],l=n[a];Vm(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&wH(c,l)}}finally{Ys(-1),Vm(s)}}function wH(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}
1function J_(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function SH(e,n,t){if(t){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)t[n.exportAs[i]]=e;Cr(n)&&(t[""]=e)}}function OH(e,n,t,i,r){e.data[i]=r;const o=r.factory||(r.factory=$s(r.type)),s=new Xl(o,Cr(r),_);e.blueprint[i]=s,t[i]=s,function vH(e,n,t,i,r){const o=r.hostBindings;if(o){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~n.index;(function bH(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,i,o)}}(e,n,i,vd(e,t,r.hostVars,De),r)}function Kr(e,n,t,i,r,o){const s=ui(e,n);!function X_(e,n,t,i,r,o,s){if(null==o)e.removeAttribute(n,r,t);else{const a=null==s?be(o):s(o,i||"",r);e.setAttribute(n,r,a,t)}}(n[Ce],s,o,e.value,t,i,r)}function kH(e,n,t,i,r,o){const s=o[n];if(null!==s)for(let a=0;a<s.length;)wM(i,t,s[a++],s[a++],s[a++])}function wM(e,n,t,i,r){const o=Zi(null);try{const s=e.inputTransforms;null!==s&&s.hasOwnProperty(i)&&(r=s[i].call(n,r)),null!==e.setInput?e.setInput(n,r,t,i):n[i]=r}finally{Zi(o)}}function IH(e,n,t){let i=null,r=0;for(;r<t.length;){const o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===i&&(i=[]);const s=e[o];for(let a=0;a<s.length;a+=2)if(s[a]===n){i.push(o,s[a+1],t[r+1]);break}}r+=2}else r+=2;else r+=4}return i}function DM(e,n,t,i){return[e,!0,!1,n,null,0,i,t,null,null,null]}function MM(e,n){const t=e.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const o=t[i+1];if(-1!==o){const s=e.data[o];Hm(t[i]),s.contentQueries(2,n[o],o)}}}function uf(e,n){return e[Gl]?e[kw][br]=n:e[Gl]=n,e[kw]=n,n}function ey(e,n,t){Hm(0);const i=Zi(null);try{n(e,t)}finally{Zi(i)}}function SM(e){return e[Wa]||(e[Wa]=[])}function TM(e){return e.cleanup||(e.cleanup=[])}function EM(e,n){const t=e[ns],i=t?t.get(No,null):null;i&&i.handleError(n)}function ty(e,n,t,i,r){for(let o=0;o<t.length;){const s=t[o++],a=t[o++];wM(e.data[s],n[s],i,a,r)}}function Ro(e,n,t){const i=Ch(n,e);!function nD(e,n,t){e.setValue(n,t)}(e[Ce],i,t)}function xH(e,n){const t=Ti(n,e),i=t[q];!function PH(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(i,t);const r=t[Rt];null!==r&&null===t[Eo]&&(t[Eo]=L_(r,t[ns])),ny(i,t,t[Ht])}function ny(e,n,t){jm(n);try{const i=e.viewQuery;null!==i&&ey(1,i,t);const r=e.template;null!==r&&gM(e,n,r,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&MM(e,n),e.staticViewQueries&&ey(2,e.viewQuery,t);const o=e.components;null!==o&&function NH(e,n){for(let t=0;t<n.length;t++)xH(e,n[t])}(n,o)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{n[Se]&=-5,$m()}}let kM=(()=>{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,i,r){const o=typeof Zone>"u"?null:Zone.current,s=function WL(e,n,t){const i=Object.create(qL);t&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=n;const r=s=>{i.cleanupFn=s};return i.ref={notify:()=>Vw(i),run:()=>{if(i.dirty=!1,i.hasRun&&!Bw(i))return;i.hasRun=!0;const s=Im(i);try{i.cleanupFn(),i.cleanupFn=Ww,i.fn(r)}finally{xm(i,s)}},cleanup:()=>i.cleanupFn()},i.ref}(t,l=>{this.all.has(l)&&this.queue.set(l,o)},r);let a;this.all.add(s),s.notify();const c=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=i?.onDestroy(c),{destroy:c}}flush(){if(0!==this.queue.size)for(const[t,i]of this.queue)this.queue.delete(t),i?i.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=L({token:e,providedIn:"root",factory:()=>new e})}return e})();function hf(e,n,t){let i=t?e.styles:null,r=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?r=dm(r,a):2==o&&(i=dm(i,a+": "+n[++s]+";"))}t?e.styles=i:e.stylesWithoutHost=i,t?e.classes=r:e.classesWithoutHost=r}function bd(e,n,t,i,r=!1){for(;null!==t;){const o=n[t.index];null!==o&&i.push(ft(o)),qn(o)&&IM(o,i);const s=t.type;if(8&s)bd(e,n,t.child,i);else if(32&s){const a=s_(t,n);let c;for(;c=a();)i.push(c)}else if(16&s){const a=uD(n,t);if(Array.isArray(a))i.push(...a);else{const c=ad(n[jt]);bd(c[q],c,a,i,!0)}}t=r?t.projectionNext:t.next}return i}function IM(e,n){for(let t=Tn;t<e.length;t++){const i=e[t],r=i[q].firstChild;null!==r&&bd(i[q],i,r,n)}e[Gr]!==e[Rt]&&n.push(e[Gr])}function ff(e,n,t,i=!0){const r=n[qa],o=r.rendererFactory,s=r.afterRe
1nderEventManager;o.begin?.(),s?.begin();try{xM(e,n,e.template,t)}catch(c){throw i&&EM(n,c),c}finally{o.end?.(),r.effectManager?.flush(),s?.end()}}function xM(e,n,t,i){const r=n[Se];if(256!=(256&r)){n[qa].effectManager?.flush(),jm(n);try{e1(n),function l1(e){return ge.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&gM(e,n,t,2,i);const s=3==(3&r);if(s){const l=e.preOrderCheckHooks;null!==l&&Mh(n,l,null)}else{const l=e.preOrderHooks;null!==l&&Sh(n,l,0,null),Ym(n,0)}if(function LH(e){for(let n=X1(e);null!==n;n=eD(n)){if(!n[xw])continue;const t=n[Qa];for(let i=0;i<t.length;i++){rF(t[i])}}}(n),PM(n,2),null!==e.contentQueries&&MM(e,n),s){const l=e.contentCheckHooks;null!==l&&Mh(n,l)}else{const l=e.contentHooks;null!==l&&Sh(n,l,1),Ym(n,1)}!function aH(e,n){const t=e.hostBindingOpCodes;if(null===t)return;const i=lM(n,Kl);try{for(let r=0;r<t.length;r++){const o=t[r];if(o<0)Ys(~o);else{const s=o,a=t[++r],c=t[++r];mF(a,s),i.dirty=!1;const l=Im(i);try{c(2,n[s])}finally{xm(i,l)}}}}finally{null===n[Kl]&&dM(n,Kl),Ys(-1)}}(e,n);const a=e.components;null!==a&&AM(n,a,0);const c=e.viewQuery;if(null!==c&&ey(2,c,i),s){const l=e.viewCheckHooks;null!==l&&Mh(n,l)}else{const l=e.viewHooks;null!==l&&Sh(n,l,2),Ym(n,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[Se]&=-73,t1(n)}finally{$m()}}}function PM(e,n){for(let t=X1(e);null!==t;t=eD(t))for(let i=Tn;i<t.length;i++)NM(t[i],n)}function FH(e,n,t){NM(Ti(n,e),t)}function NM(e,n){if(!function nF(e){return 128==(128&e[Se])}(e))return;const t=e[q],i=e[Se];if(80&i&&0===n||1024&i||2===n)xM(t,e,t.template,e[Ht]);else if(e[Ul]>0){PM(e,1);const r=t.components;null!==r&&AM(e,r,1)}}function AM(e,n,t){for(let i=0;i<n.length;i++)FH(e,n[i],t)}class Cd{get rootNodes(){const n=this._lView,t=n[q];return bd(t,n,t.firstChild,[])}constructor(n,t){this._lView=n,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ht]}set context(n){this._lView[Ht]=n}get destroyed(){return 256==(256&this._lView[Se])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Ct];if(qn(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&($h(n,i),Ih(t,i))}this._attachedToViewContainer=!1}c_(this._lView[q],this._lView)}onDestroy(n){r1(this._lView,n)}markForCheck(){yd(this._cdRefInjectingView||this._lView)}detach(){this._lView[Se]&=-129}reattach(){this._lView[Se]|=128}detectChanges(){ff(this._lView[q],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function EV(e,n){ld(e,n,n[Ce],2,null,null)}(this._lView[q],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=n}}class VH extends Cd{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;ff(n[q],n,n[Ht],!1)}checkNoChanges(){}get context(){return null}}class RM extends md{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Ye(n);return new wd(t,this.ngModule)}}function LM(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class HH{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){i=fh(i);const r=this.injector.get(n,B_,i);return r!==B_||t===B_?r:this.parentInjector.get(n,t,i)}}class wd extends jD{get inputs(){const n=this.componentDef,t=n.inputTransforms,i=LM(n.inputs);if(null!==t)for(const r of i)t.hasOwnProperty(r.propName)&&(r.transform=t[r.propName]);return i}get outputs(){return LM(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function kL(e){return e.map(EL).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,i,r){let o=(r=r||this.ngModule)instanceof Jn?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new HH(n,o):n,a=s.get(ds,null);if(null===a)throw new E(407,!1);const u={rendererFactory:a,sanitizer:s.get(FB,null),effectManager:s.get(kM,null),afterRenderEventManager:s.get(G_,null)},h=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",g=i?function lH(e,n,t,i){const o=i.get(oM,!1)||t===Ki.ShadowDom,s=e.selectRootElement(n,o);return function dH(e){_M(e)}(s),s}(h,i,this.componentDef.encapsulation,s):jh(h,f,function BH(e){const n=e.toLowerCase();return"svg"===n?Qw:"math"===n?"math":null}(f)),S=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let D=null;null!==g&&(D=L_(g,s,!0));const P=Z_(0,null,null,1,0,null,null,null,null,null,null),A=df(null,P,null,S,null,null,u,h,s,null,D);let Y,re;jm(A);try{const de=this.componentDef;let Me,Ze=null;de.findHostDirectiveDefs?(Me=[],Ze=new Map,de.findHostDirectiveDefs(de,Me,Ze),Me.push(de)):Me=[de];const tt=function $H(e,n){const t=e[q],i=Ae;return e[i]=n,Dc(t,i,2,"#host",null)}(A,g),Gt=function YH(e,n,t,i,r,o,s){const a=r[q];!function UH(e,n,t,i){for(const r of e)n.mergedAttrs=Yl(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(hf(n,n.mergedAttrs,!0),null!==t&&gD(i,t,n))}(i,e,n,s);let c=null;null!==n&&(c=L_(n,r[ns]));const l=o.rendererFactory.createRenderer(n,t);let d=16;t.signals?d=4096:t.onPush&&(d=64);const u=df(r,mM(t),null,d,r[e.index],e,o,l,null,null,c);return a.firstCreatePass&&J_(a,e,i.length-1),uf(r,u),r[e.index]=u}(tt,g,de,Me,A,u,h);re=Xw(P,Ae),g&&function zH(e,n,t,i){if(i)Mm(e,t,["ng-version",VB.full]);else{const{attrs:r,classes:o}=function IL(e){const n=[],t=[];let i=1,r=2;for(;i<e.length;){let o=e[i];if("string"==typeof o)2===r?""!==o&&n.push(o,e[++i]):8===r&&t.push(o);else{if(!vr(r))break;r=o}i++}return{attrs:n,classes:t}}(n.selectors[0]);r&&Mm(e,t,r),o&&o.length>0&&pD(e,t,o.join(" "))}}(h,de,g,i),void 0!==t&&function WH(e,n,t){const i=e.projection=[];for(let r=0;r<n.length;r++){const o=t[r];i.push(null!=o?Array.from(o):null)}}(re,this.ngContentSelectors,t),Y=function GH(e,n,t,i,r,o){const s=En(),a=r[q],c=ui(s,r);bM(a,r,s,t,null,i);for(let d=0;d<t.length;d++)Rn(Us(r,a,s.directiveStart+d,s),r);CM(a,r,s),c&&Rn(c,r);
1const l=Us(r,a,s.directiveStart+s.componentOffset,s);if(e[Ht]=r[Ht]=l,null!==o)for(const d of o)d(l,n);return W_(a,s,e),l}(Gt,de,Me,Ze,A,[qH]),ny(P,A,null)}finally{$m()}return new jH(this.componentType,Y,bc(re,A),A,re)}}class jH extends xB{constructor(n,t,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new VH(r),this.componentType=n}setInput(n,t){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const o=this._rootLView;ty(o[q],o,r,n,t),this.previousInputValues.set(n,t),yd(Ti(this._tNode.index,o))}}get injector(){return new Qn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function qH(){const e=En();Dh(R()[q],e)}function Ke(e){let n=function FM(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(Cr(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new E(903,!1);r=n.\u0275dir}if(r){if(t){i.push(r);const s=e;s.inputs=pf(e.inputs),s.inputTransforms=pf(e.inputTransforms),s.declaredInputs=pf(e.declaredInputs),s.outputs=pf(e.outputs);const a=r.hostBindings;a&&JH(e,a);const c=r.viewQuery,l=r.contentQueries;if(c&&ZH(e,c),l&&QH(e,l),ah(e.inputs,r.inputs),ah(e.declaredInputs,r.declaredInputs),ah(e.outputs,r.outputs),null!==r.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),ah(s.inputTransforms,r.inputTransforms)),Cr(r)&&r.data.animation){const d=e.data;d.animation=(d.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(e),a===Ke&&(t=!1)}}n=Object.getPrototypeOf(n)}!function KH(e){let n=0,t=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Yl(r.hostAttrs,t=Yl(t,r.hostAttrs))}}(i)}function pf(e){return e===Yr?{}:e===qe?[]:e}function ZH(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function QH(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function JH(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function jM(e){const n=e.inputConfig,t={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[2]&&(t[i]=r[2])}e.inputTransforms=t}function gf(e){return!!iy(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function iy(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Zr(e,n,t){return e[n]=t}function Ln(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Ws(e,n,t,i){const r=Ln(e,n,t);return Ln(e,n+1,i)||r}function X(e,n,t,i){const r=R();return Ln(r,tc(),n)&&(Ue(),Kr(kt(),r,e,n,t,i)),X}function Sc(e,n,t,i){return Ln(e,tc(),t)?n+be(t)+i:De}function Tc(e,n,t,i,r,o){const a=Ws(e,function ko(){return ge.lFrame.bindingIndex}(),t,r);return Io(2),a?n+be(t)+i+be(r)+o:De}function M(e,n,t,i,r,o,s,a){const c=R(),l=Ue(),d=e+Ae,u=l.firstCreatePass?function D3(e,n,t,i,r,o,s,a,c){const l=n.consts,d=Dc(n,e,4,s||null,os(l,a));Q_(n,t,d,os(l,c)),Dh(n,d);const u=d.tView=Z_(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}(d,l,c,n,t,i,r,o,s):l.data[d];Wr(u,!1);const h=eS(l,c,u,e);wh()&&Uh(l,c,h,u),Rn(h,c),uf(c,c[d]=DM(h,c,h,u)),yh(u)&&q_(l,c,u),null!=s&&K_(c,u,a)}let eS=function tS(e,n,t,i){return ss(!0),n[Ce].createComment("")};function Xn(e){return Xa(function pF(){return ge.lFrame.contextLView}(),Ae+e)}function y(e,n,t){const i=R();return Ln(i,tc(),n)&&ki(Ue(),kt(),i,e,n,i[Ce],t,!1),y}function ly(e,n,t,i,r){const s=r?"class":"style";ty(e,t,n.inputs[s],s,i)}function m(e,n,t,i){const r=R(),o=Ue(),s=Ae+e,a=r[Ce],c=o.firstCreatePass?function O3(e,n,t,i,r,o){const s=n.consts,c=Dc(n,e,2,i,os(s,r));return Q_(n,t,c,os(s,o)),null!==c.attrs&&hf(c,c.attrs,!1),null!==c.mergedAttrs&&hf(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,r,n,t,i):o.data[s],l=nS(o,r,c,a,n,e);r[s]=l;const d=yh(c);return Wr(c,!0),gD(a,l,c),32!=(32&c.flags)&&wh()&&Uh(o,r,l,c),0===function sF(){return ge.lFrame.elementDepthCount}()&&Rn(l,r),function aF(){ge.lFrame.elementDepthCount++}(),d&&(q_(o,r,c),W_(o,c,r)),null!==i&&K_(r,c),m}function v(){let e=En();Lm()?Fm():(e=e.parent,Wr(e,!1));const n=e;(function lF(e){return ge.skipHydrationRootTNode===e})(n)&&function fF(){ge.skipHydrationRootTNode=null}(),function cF(){ge.lFrame.elementDepthCount--}();const t=Ue();return t.firstCreatePass&&(Dh(t,e),Om(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function TF(e){return 0!=(8&e.flags)}(n)&&ly(t,n,R(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function OF(e){return 0!=(16&e.flags)}(n)&&ly(t,n,R(),n.stylesWithoutHost,!1),v}function Z(e,n,t,i){return m(e,n,t,i),v(),Z}let nS=(e,n,t,i,r,o)=>(ss(!0),jh(i,r,function _1(){return ge.lFrame.currentNamespace}()));function fi(e,n,t){const i=R(),r=Ue(),o=e+Ae,s=r.firstCreatePass?function I3(e,n,t,i,r){const o=n.consts,s=os(o,i),a=Dc(n,e,8,"ng-container",s);return null!==s&&hf(a,s,!0),Q_(n,t,a,os(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,t):r.data[o];Wr(s,!0);const a=iS(r,i,s,e);return i[o]=a,wh()&&Uh(r,i,a,s),Rn(a,i),yh(s)&&(q_(r,i,s),W_(r,s,i)),null!=t&&K_(i,s),fi}function pi(){let e=En();const n=Ue();return Lm()?Fm():(e=e.parent,Wr(e,!1)),n.firstCreatePass&&(Dh(n,e),Om(e)&&n.queries.elementEnd(e)),pi}function bf(e,n,t){return fi(e,n,t),pi(),bf}let iS=(e,n,t,i)=>(ss(!0),a_(n[Ce],""));function ae(){return R()}function Ed(e){return!!e&&"function"==typeof e.then}function rS(e){return!!e&&"function"==typeof e.subscribe}function x(e,n,t,i){const r=R(),o=Ue(),s=En();return function sS(e,n,t,i,r,o,s){const a=yh(i),l=e.firstCreatePass&&TM(e),d=n[Ht],u=SM(n);let h=!0;if(3&i.type||s){const b=ui(i,n),w=s?s(b):b,S=u.length,D=s?A=>s(ft(A[i.index])):i.index;let P=null;if(!s&&a&&(P=function N3(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const s=r[o];if(s===t&&r[o+1]===i){const a=n[Wa],c=r[o+2];return a.length>c?a[c]:null}"string"==typeof s&&(o+=2)}return null}(e,n,r,i.index)),null!==P)(P.__ngLastListenerFn__||P).__ngNextListenerFn__=o,P.__ngLastListenerFn__=o,h=!1;else{o=cS(i,n,d,o,!1);const A=t.listen(w,r,o);u.push(o,A),l&&l.push(r,D,S,S+1)}}else o=cS(i,n,d,o,!1);const f=i.outputs;let g;if(h&&null!==f&&(g=f[r])){const b=g.length;if(b)for(let w=0;w<b;w+=2){const Y=n[g[w]][g[w+1]].subscribe(o),re=u.length;u.push(o,Y),l&&l.push(r,i.index,re,-(re+1))}}}(o,r,r[Ce],s,e,n,i),x}function aS(e,n,t,i){try{return zr(6,n,t),!1!==t(i)}catch(r){return EM(e,r),!1}finally{zr(7,n,t)}}function cS(e,n,t,i,r){return function o(s){if(s===Function)return i;
1yd(e.componentOffset>-1?Ti(e.index,n):n);let c=aS(n,t,i,s),l=o.__ngNextListenerFn__;for(;l;)c=aS(n,t,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function C(e=1){return function vF(e){return(ge.lFrame.contextLView=function bF(e,n){for(;e>0;)n=n[Ka],e--;return n}(e,ge.lFrame.contextLView))[Ht]}(e)}function A3(e,n){let t=null;const i=function ML(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let r=0;r<n.length;r++){const o=n[r];if("*"!==o){if(null===i?Mw(e,o,!0):OL(i,o))return r}else t=r}return t}function Dr(e){const n=R()[jt][An];if(!n.projection){const i=n.projection=rd(e?e.length:1,null),r=i.slice();let o=n.child;for(;null!==o;){const s=e?A3(o,e):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}function kn(e,n=0,t){const i=R(),r=Ue(),o=Dc(r,Ae+e,16,null,t||null);null===o.projection&&(o.projection=n),Fm(),(!i[Eo]||ec())&&32!=(32&o.flags)&&function LV(e,n,t){fD(n[Ce],0,n,t,d_(e,t,n),aD(t.parent||n[An],t,n))}(r,i,o)}function Cf(e,n,t){return wf(e,"",n,"",t),Cf}function wf(e,n,t,i,r){const o=R(),s=Sc(o,n,t,i);return s!==De&&ki(Ue(),kt(),o,e,s,o[Ce],r,!1),wf}function Df(e,n){return e<<17|n<<2}function us(e){return e>>17&32767}function dy(e){return 2|e}function qs(e){return(131068&e)>>2}function uy(e,n){return-131069&e|n<<2}function hy(e){return 1|e}function _S(e,n,t,i,r){const o=e[t+1],s=null===n;let a=i?us(o):qs(o),c=!1;for(;0!==a&&(!1===c||s);){const d=e[a+1];H3(e[a],n)&&(c=!0,e[a+1]=i?hy(d):dy(d)),a=i?us(d):qs(d)}c&&(e[t+1]=i?dy(o):hy(o))}function H3(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&lc(e,n)>=0}const ln={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function yS(e){return e.substring(ln.key,ln.keyEnd)}function vS(e,n){const t=ln.textEnd;return t===n?-1:(n=ln.keyEnd=function U3(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,ln.key=n,t),Nc(e,n,t))}function Nc(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function kd(e,n,t){return Mr(e,n,t,!1),kd}function ie(e,n){return Mr(e,n,null,!0),ie}function Xi(e){!function Sr(e,n,t,i){const r=Ue(),o=Io(2);r.firstUpdatePass&&SS(r,null,o,i);const s=R();if(t!==De&&Ln(s,o,t)){const a=r.data[Zn()];if(kS(a,i)&&!MS(r,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(t=dm(c,t||"")),ly(r,a,s,t,i)}else!function ej(e,n,t,i,r,o,s,a){r===De&&(r=qe);let c=0,l=0,d=0<r.length?r[0]:null,u=0<o.length?o[0]:null;for(;null!==d||null!==u;){const h=c<r.length?r[c+1]:void 0,f=l<o.length?o[l+1]:void 0;let b,g=null;d===u?(c+=2,l+=2,h!==f&&(g=u,b=f)):null===u||null!==d&&d<u?(c+=2,g=d):(l+=2,g=u,b=f),null!==g&&OS(e,n,t,i,g,b,s,a),d=c<r.length?r[c]:null,u=l<o.length?o[l]:null}}(r,a,s,s[Ce],s[o+1],s[o+1]=function J3(e,n,t){if(null==t||""===t)return qe;const i=[],r=ls(t);if(Array.isArray(r))for(let o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&e(i,o,r[o]);else"string"==typeof r&&n(i,r);return i}(e,n,t),i,o)}}(X3,Jr,e,!0)}function Jr(e,n){for(let t=function $3(e){return function CS(e){ln.key=0,ln.keyEnd=0,ln.value=0,ln.valueEnd=0,ln.textEnd=e.length}(e),vS(e,Nc(e,0,ln.textEnd))}(n);t>=0;t=vS(n,t))Ei(e,yS(n),!0)}function Mr(e,n,t,i){const r=R(),o=Ue(),s=Io(2);o.firstUpdatePass&&SS(o,e,s,i),n!==De&&Ln(r,s,n)&&OS(o,o.data[Zn()],r,r[Ce],e,r[s+1]=function tj(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=an(ls(e)))),e}(n,t),i,s)}function MS(e,n){return n>=e.expandoStartIndex}function SS(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[Zn()],s=MS(e,t);kS(o,i)&&null===n&&!s&&(n=!1),n=function q3(e,n,t,i){const r=function Bm(e){const n=ge.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=Id(t=fy(null,e,n,t,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==r)if(t=fy(r,e,n,t,i),null===o){let c=function K3(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==qs(i))return e[us(i)]}(e,n,i);void 0!==c&&Array.isArray(c)&&(c=fy(null,e,n,c[1],i),c=Id(c,n.attrs,i),function Z3(e,n,t,i){e[us(t?n.classBindings:n.styleBindings)]=i}(e,n,i,c))}else o=function Q3(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++)i=Id(i,e[o].hostAttrs,t);return Id(i,n.attrs,t)}(e,n,i)}return void 0!==o&&(i?n.residualClasses=o:n.residualStyles=o),t}(r,o,n,i),function V3(e,n,t,i,r,o){let s=o?n.classBindings:n.styleBindings,a=us(s),c=qs(s);e[i]=t;let d,l=!1;if(Array.isArray(t)?(d=t[1],(null===d||lc(t,d)>0)&&(l=!0)):d=t,r)if(0!==c){const h=us(e[a+1]);
1e[i+1]=Df(h,a),0!==h&&(e[h+1]=uy(e[h+1],i)),e[a+1]=function L3(e,n){return 131071&e|n<<17}(e[a+1],i)}else e[i+1]=Df(a,0),0!==a&&(e[a+1]=uy(e[a+1],i)),a=i;else e[i+1]=Df(c,0),0===a?a=i:e[c+1]=uy(e[c+1],i),c=i;l&&(e[i+1]=dy(e[i+1])),_S(e,d,i,!0),_S(e,d,i,!1),function B3(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&lc(o,n)>=0&&(t[i+1]=hy(t[i+1]))}(n,d,e,i,o),s=Df(a,c),o?n.classBindings=s:n.styleBindings=s}(r,o,n,t,s,i)}}function fy(e,n,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<s&&(o=n[a],i=Id(i,o.hostAttrs,r),o!==e);)a++;return null!==e&&(t.directiveStylingLast=a),i}function Id(e,n,t){const i=t?1:2;let r=-1;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?r=s:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ei(e,s,!!t||n[++o]))}return void 0===e?null:e}function X3(e,n,t){const i=String(n);""!==i&&!i.includes(" ")&&Ei(e,i,t)}function OS(e,n,t,i,r,o,s,a){if(!(3&n.type))return;const c=e.data,l=c[a+1],d=function F3(e){return 1==(1&e)}(l)?ES(c,n,t,r,qs(l),s):void 0;Mf(d)||(Mf(o)||function R3(e){return 2==(2&e)}(l)&&(o=ES(c,null,t,r,a,s)),function VV(e,n,t,i,r){if(n)r?e.addClass(t,i):e.removeClass(t,i);else{let o=-1===i.indexOf("-")?void 0:cs.DashCase;null==r?e.removeStyle(t,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=cs.Important),e.setStyle(t,i,r,o))}}(i,s,Ch(Zn(),t),r,o))}function ES(e,n,t,i,r,o){const s=null===n;let a;for(;r>0;){const c=e[r],l=Array.isArray(c),d=l?c[1]:c,u=null===d;let h=t[r+1];h===De&&(h=u?qe:void 0);let f=u?Qm(h,i):d===i?h:void 0;if(l&&!Mf(f)&&(f=Qm(c,i)),Mf(f)&&(a=f,s))return a;const g=e[r+1];r=s?us(g):qs(g)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(a=Qm(c,i))}return a}function Mf(e){return void 0!==e}function kS(e,n){return 0!=(e.flags&(n?8:16))}function I(e,n=""){const t=R(),i=Ue(),r=e+Ae,o=i.firstCreatePass?Dc(i,r,1,n,null):i.data[r],s=IS(i,t,o,n,e);t[r]=s,wh()&&Uh(i,t,s,o),Wr(o,!1)}let IS=(e,n,t,i,r)=>(ss(!0),function Hh(e,n){return e.createText(n)}(n[Ce],i));function Ie(e){return Ft("",e,""),Ie}function Ft(e,n,t){const i=R(),r=Sc(i,e,n,t);return r!==De&&Ro(i,Zn(),r),Ft}function py(e,n,t,i,r){const o=R(),s=Tc(o,e,n,t,i,r);return s!==De&&Ro(o,Zn(),s),py}const Rc="en-US";let ZS=Rc;function _y(e,n,t,i,r){if(e=me(e),Array.isArray(e))for(let o=0;o<e.length;o++)_y(e[o],n,t,i,r);else{const o=Ue(),s=R(),a=En();let c=zs(e)?e:me(e.provide);const l=AD(e),d=1048575&a.providerIndexes,u=a.directiveStart,h=a.providerIndexes>>20;if(zs(e)||!e.multi){const f=new Xl(l,r,_),g=vy(c,n,r?d:d+h,u);-1===g?(qm(Oh(a,s),o,c),yy(o,e,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(f),s.push(f)):(t[g]=f,s[g]=f)}else{const f=vy(c,n,d+h,u),g=vy(c,n,d,d+h),w=g>=0&&t[g];if(r&&!w||!r&&!(f>=0&&t[f])){qm(Oh(a,s),o,c);const S=function C$(e,n,t,i,r){const o=new Xl(e,t,_);return o.multi=[],o.index=n,o.componentProviders=0,CT(o,r,i&&!t),o}(r?b$:v$,t.length,r,i,l);!r&&w&&(t[g].providerFactory=S),yy(o,e,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(S),s.push(S)}else yy(o,e,f>-1?f:g,CT(t[r?g:f],l,!r&&i));!r&&i&&w&&t[g].componentProviders++}}}function yy(e,n,t,i){const r=zs(n),o=function pB(e){return!!e.useClass}(n);if(r||o){const c=(o?me(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const d=l.indexOf(t);-1===d?l.push(t,[i,c]):l[d+1].push(i,c)}else l.push(t,c)}}}function CT(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function vy(e,n,t,i){for(let r=t;r<i;r++)if(n[r]===e)return r;return-1}function v$(e,n,t,i){return by(this.multi,[])}function b$(e,n,t,i){const r=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Us(t,t[q],this.providerFactory.index,i);o=a.slice(0,s),by(r,o);for(let c=s;c<a.length;c++)o.push(a[c])}else o=[],by(r,o);return o}function by(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function Be(e,n=[]){return t=>{t.providersResolver=(i,r)=>function y$(e,n,t){const i=Ue();if(i.firstCreatePass){const r=Cr(e);_y(t,i.data,i.blueprint,r,!0),_y(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}class Zs{}class wT{}class Cy extends Zs{constructor(n,t,i){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new RM(this);const r=Si(n);this._bootstrapComponents=Ao(r.bootstrap),this._r3Injector=WD(n,t,[{provide:Zs,useValue:this},{provide:md,useValue:this.componentFactoryResolver},...i],an(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializer
1s(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class wy extends wT{constructor(n){super(),this.moduleType=n}create(n){return new Cy(this.moduleType,n,[])}}class DT extends Zs{constructor(n){super(),this.componentFactoryResolver=new RM(this),this.instance=null;const t=new mc([...n.providers,{provide:Zs,useValue:this},{provide:md,useValue:this.componentFactoryResolver}],n.parent||Jh(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Dy(e,n,t=null){return new DT({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let M$=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const i=ID(0,t.type),r=i.length>0?Dy([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,r)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=L({token:e,providedIn:"environment",factory:()=>new e(N(Jn))})}return e})();function In(e){e.getStandaloneInjector=n=>n.get(M$).getOrCreateStandaloneInjector(e)}function Fn(e,n,t,i){return xT(R(),Kn(),e,n,t,i)}function tr(e,n,t,i,r){return function PT(e,n,t,i,r,o,s){const a=n+t;return Ws(e,a,r,o)?Zr(e,a+2,s?i.call(s,r,o):i(r,o)):Vd(e,a+2)}(R(),Kn(),e,n,t,i,r)}function Fd(e,n,t,i,r,o){return function NT(e,n,t,i,r,o,s,a){const c=n+t;return function mf(e,n,t,i,r){const o=Ws(e,n,t,i);return Ln(e,n+2,r)||o}(e,c,r,o,s)?Zr(e,c+3,a?i.call(a,r,o,s):i(r,o,s)):Vd(e,c+3)}(R(),Kn(),e,n,t,i,r,o)}function Vd(e,n){const t=e[n];return t===De?void 0:t}function xT(e,n,t,i,r,o){const s=n+t;return Ln(e,s,r)?Zr(e,s+1,o?i.call(o,r):i(r)):Vd(e,s+1)}function Ii(e,n){const t=Ue();let i;const r=e+Ae;t.firstCreatePass?(i=function B$(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks??=[]).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=$s(i.type)),a=ci(_);try{const c=Th(!1),l=o();return Th(c),function T3(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,R(),r,l),l}finally{ci(a)}}function xi(e,n,t){const i=e+Ae,r=R(),o=Xa(r,i);return function Bd(e,n){return e[q].data[n].pure}(r,i)?xT(r,Kn(),n,o.transform,t,o):o.transform(t)}function U$(){return this._results[Symbol.iterator]()}class Sy{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new H)}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=Sy.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=U$)}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 i=this;i.dirty=!1;const r=function Qi(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function jF(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],o=n[i];if(t&&(r=t(r),o=t(o)),o!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function z$(e,n,t,i=!0){const r=n[q];if(function IV(e,n,t,i){const r=Tn+i,o=t.length;i>0&&(t[r-1][br]=n),i<o-Tn?(n[br]=t[r],P1(t,Tn+i,n)):(t.push(n),n[br]=null),n[Ct]=t;const s=n[zl];null!==s&&t!==s&&function xV(e,n){const t=e[Qa];n[jt]!==n[Ct][Ct][jt]&&(e[xw]=!0),null===t?e[Qa]=[n]:t.push(n)}(s,n);const a=n[Ur];null!==a&&a.insertView(e),n[Se]|=128}(r,n,e,t),i){const o=h_(t,e),s=n[Ce],a=Yh(s,e[Gr]);null!==a&&function OV(e,n,t,i,r,o){i[Rt]=r,i[An]=n,ld(e,i,t,1,r,o)}(r,e[An],s,n,a,o)}}let mt=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=K$}return e})();
1const W$=mt,q$=class extends W${constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,i){const r=function G$(e,n,t,i){const r=n.tView,a=df(e,r,t,4096&e[Se]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);a[zl]=e[n.index];const l=e[Ur];return null!==l&&(a[Ur]=l.createEmbeddedView(r)),ny(r,a,t),a}(this._declarationLView,this._declarationTContainer,n,{injector:t,hydrationInfo:i});return new Cd(r)}};function K$(){return kf(En(),R())}function kf(e,n){return 4&e.type?new q$(n,e,bc(e,n)):null}let ti=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=t4}return e})();function t4(){return $T(En(),R())}const n4=ti,HT=class extends n4{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return bc(this._hostTNode,this._hostLView)}get injector(){return new Qn(this._hostTNode,this._hostLView)}get parentInjector(){const n=Eh(this._hostTNode,this._hostLView);if(Gm(n)){const t=td(n,this._hostLView),i=ed(n);return new Qn(t[q].data[i+8],t)}return new Qn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=jT(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Tn}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(a,r,false),a}createComponent(n,t,i,r,o){const s=n&&!function id(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const b=t||{};a=b.index,i=b.injector,r=b.projectableNodes,o=b.environmentInjector||b.ngModuleRef}const c=s?n:new wd(Ye(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const w=(s?l:this.parentInjector).get(Jn,null);w&&(o=w)}Ye(c.componentType??{});const f=c.create(l,r,null,o);return this.insertImpl(f.hostView,a,false),f}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,i){const r=n._lView;if(function iF(e){return qn(e[Ct])}(r)){const c=this.indexOf(n);if(-1!==c)this.detach(c);else{const l=r[Ct],d=new HT(l,l[An],l[Ct]);d.detach(d.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return z$(a,r,s,!i),n.attachToViewContainerRef(),P1(Ty(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=jT(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=$h(this._lContainer,t);i&&(Ih(Ty(this._lContainer),t),c_(i[q],i))}detach(n){const t=this._adjustIndex(n,-1),i=$h(this._lContainer,t);return i&&null!=Ih(Ty(this._lContainer),t)?new Cd(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function jT(e){return e[8]}function Ty(e){return e[8]||(e[8]=[])}function $T(e,n){let t;const i=n[e.index];return qn(i)?t=i:(t=DM(i,n,null,e),n[e.index]=t,uf(n,t)),YT(t,n,e,i),new HT(t,e,n)}let YT=function UT(e,n,t,i){if(e[Gr])return;let r;r=8&t.type?ft(i):function r4(e,n){const t=e[Ce],i=t.createComment(""),r=ui(n,e);return Gs(t,Yh(t,r),i,function RV(e,n){return e.nextSibling(n)}(t,r),!1),i}(n,t),e[Gr]=r};class Oy{constructor(n){this.queryList=n,this.matches=null}clone(){return new Oy(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ey{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let o=0;o<i;o++){const s=t.getByIndex(o);r.push(this.queries[s.indexInDeclarationView].clone())}return new Ey(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let t=0;t<this.queries.length;t++)null!==KT(n,t).matches&&this.queries[t].setDirty()}}class GT{constructor(n,t,i=null){this.predicate=n,this.flags=t,this.read=i}}class ky{constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){const r=null!==t?t.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,null!==t?t.push(o):t=[o])}return null!==t?new ky(t):null}template(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Iy{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 Iy(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}
1matchTNode(n,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(n,t,a4(t,o)),this.matchTNodeWithReadOption(n,t,kh(t,n,o,!1,!1))}else i===mt?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,kh(t,n,i,!1,!1))}matchTNodeWithReadOption(n,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===we||r===ti||r===mt&&4&t.type)this.addMatch(t.index,-2);else{const o=kh(t,n,r,!1,!1);null!==o&&this.addMatch(t.index,o)}else this.addMatch(t.index,i)}}addMatch(n,t){null===this.matches?this.matches=[n,t]:this.matches.push(n,t)}}function a4(e,n){const t=e.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===n)return t[i+1];return null}function l4(e,n,t,i){return-1===t?function c4(e,n){return 11&e.type?bc(e,n):4&e.type?kf(e,n):null}(n,e):-2===t?function d4(e,n,t){return t===we?bc(n,e):t===mt?kf(n,e):t===ti?$T(n,e):void 0}(e,n,i):Us(e,e[q],t,n)}function zT(e,n,t,i){const r=n[Ur].queries[i];if(null===r.matches){const o=e.data,s=t.matches,a=[];for(let c=0;c<s.length;c+=2){const l=s[c];a.push(l<0?null:l4(n,o[l],s[c+1],t.metadata.read))}r.matches=a}return r.matches}function xy(e,n,t,i){const r=e.queries.getByIndex(t),o=r.matches;if(null!==o){const s=zT(e,n,r,t);for(let a=0;a<o.length;a+=2){const c=o[a];if(c>0)i.push(s[a/2]);else{const l=o[a+1],d=n[-c];for(let u=Tn;u<d.length;u++){const h=d[u];h[zl]===h[Ct]&&xy(h[q],h,l,i)}if(null!==d[Qa]){const u=d[Qa];for(let h=0;h<u.length;h++){const f=u[h];xy(f[q],f,l,i)}}}}}return i}function He(e){const n=R(),t=Ue(),i=u1();Hm(i+1);const r=KT(t,i);if(e.dirty&&function tF(e){return 4==(4&e[Se])}(n)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const o=r.crossesNgTemplate?xy(t,n,i,[]):zT(t,n,r,i);e.reset(o,RB),e.notifyOnChanges()}return!0}return!1}function nr(e,n,t){const i=Ue();i.firstCreatePass&&(qT(i,new GT(e,n,t),-1),2==(2&n)&&(i.staticViewQueries=!0)),WT(i,R(),n)}function _t(e,n,t,i){const r=Ue();if(r.firstCreatePass){const o=En();qT(r,new GT(n,t,i),o.index),function h4(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(r,e),2==(2&t)&&(r.staticContentQueries=!0)}WT(r,R(),t)}function je(){return function u4(e,n){return e[Ur].queries[n].queryList}(R(),u1())}function WT(e,n,t){const i=new Sy(4==(4&t));(function fH(e,n,t,i){const r=SM(n);r.push(t),e.firstCreatePass&&TM(e).push(i,r.length-1)})(e,n,i,i.destroy),null===n[Ur]&&(n[Ur]=new Ey),n[Ur].queries.push(new Oy(i))}function qT(e,n,t){null===e.queries&&(e.queries=new ky),e.queries.track(new Iy(n,t))}function KT(e,n){return e.queries.getByIndex(n)}function Vn(e,n){return kf(e,n)}const Fy=new K("Application Initializer");let Vy=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i}),this.appInits=$(Fy,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=r();if(Ed(o))t.push(o);else if(rS(o)){const s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});t.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hO=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Tr=new K("LocaleId",{providedIn:"root",factory:()=>$(Tr,Ne.Optional|Ne.SkipSelf)||function N4(){return typeof $localize<"u"&&$localize.locale||Rc}()});let Pf=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ot(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class L4{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let fO=(()=>{class e{compileModuleSync(t){return new wy(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=Ao(Si(t).declarations).reduce((s,a)=>{const c=Ye(a);return c&&s.push(new wd(c)),s},[]);return new L4(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const _O=new K(""),Af=new K("");let Yy,jy=(()=>{class e{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZ
1oneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Yy||(function rY(e){Yy=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ke.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{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(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.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,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(N(ke),N($y),N(Af))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})(),$y=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}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,i=!0){return Yy?.findTestabilityInTree(this,t,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),hs=null;const yO=new K("AllowMultipleToken"),Uy=new K("PlatformDestroyListeners"),Gy=new K("appBootstrapListener");class bO{constructor(n,t){this.name=n,this.token=t}}function wO(e,n,t=[]){const i=`Platform: ${n}`,r=new K(i);return(o=[])=>{let s=zy();if(!s||s.injector.get(yO,!1)){const a=[...t,...o,{provide:r,useValue:!0}];e?e(a):function aY(e){if(hs&&!hs.get(yO,!1))throw new E(400,!1);(function vO(){!function $L(e){Yw=e}(()=>{throw new E(600,!1)})})(),hs=e;const n=e.get(MO);(function CO(e){e.get(RD,null)?.forEach(t=>t())})(e)}(function DO(e=[],n){return Zt.create({name:n,providers:[{provide:S_,useValue:"platform"},{provide:Uy,useValue:new Set([()=>hs=null])},...e]})}(a,i))}return function lY(e){const n=zy();if(!n)throw new E(401,!1);return n}()}}function zy(){return hs?.get(MO)??null}let MO=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=function dY(e="zone.js",n){return"noop"===e?new QB:"zone.js"===e?new ke(n):e}(i?.ngZone,function SO(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function D$(e,n,t){return new Cy(e,n,t)}(t.moduleType,this.injector,function IO(e){return[{provide:ke,useFactory:e},{provide:fd,multi:!0,useFactory:()=>{const n=$(hY,{optional:!0});return()=>n.initialize()}},{provide:kO,useFactory:uY},{provide:JD,useFactory:XD}]}(()=>r)),s=o.injector.get(No,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:c=>{s.handleError(c)}});o.onDestroy(()=>{Rf(this._modules,o),a.unsubscribe()})}),function TO(e,n,t){try{const i=t();return Ed(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(s,r,()=>{const a=o.injector.get(Vy);
1return a.runInitializers(),a.donePromise.then(()=>(function QS(e){qi(e,"Expected localeId to be defined"),"string"==typeof e&&(ZS=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Tr,Rc)||Rc),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,i=[]){const r=OO({},i);return function oY(e,n,t){const i=new wy(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(Xr);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new E(-403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Uy,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)(N(Zt))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function OO(e,n){return Array.isArray(n)?n.reduce(OO,e):{...e,...n}}let Xr=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=$(kO),this.zoneIsStable=$(JD),this.componentTypes=[],this.components=[],this.isStable=$(Pf).hasPendingTasks.pipe(Wi(t=>t?le(!1):this.zoneIsStable),Bl(),aw()),this._injector=$(Jn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof jD;if(!this._injector.get(Vy).done)throw!r&&function za(e){const n=Ye(e)||Sn(e)||Wn(e);return null!==n&&n.standalone}(t),new E(405,!1);let s;s=r?t:this._injector.get(md).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function sY(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Zs),l=s.create(Zt.NULL,[],i||s.selector,a),d=l.location.nativeElement,u=l.injector.get(_O,null);return u?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Rf(this.components,l),u?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new E(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Rf(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const i=this._injector.get(Gy,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Rf(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new E(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Rf(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const kO=new K("",{providedIn:"root",factory:()=>$(No).handleError.bind(void 0)});function uY(){const e=$(ke),n=$(No);return t=>e.runOutsideAngular(()=>n.handleError(t))}let hY=(()=>{class e{constructor(){this.zone=$(ke),this.applicationRef=$(Xr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let Bn=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=gY}return e})();function gY(e){return function mY(e,n,t){if(js(e)&&!t){const i=Ti(e.index,n);return new Cd(i,i)}return 47&e.type?new Cd(n[jt],n):null}(En(),R(),16==(16&e))}class AO{constructor(){}supports(n){return gf(n)}create(n){return new wY(n)}}const CY=(e,n)=>n;class wY{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||CY}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex<LO(i,r,o)?t:i,a=LO(s,r,o),c=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(t=t._next,null==s.previousIndex)r++;else{o||(o=[]);const l=a-r,d=c-r;if(l!=d){for(let h=0;h<l;h++){const f=h<o.length?o[h]:o[h]=0,g=f+h;d<=g&&g<l&&(o[h]=f+1)}o[s.previousIndex]=d-l}}a!==c&&n(s,a,c)}}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=[]),!gf(n))throw new E(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,o,s,t=this._itHead,i=!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)?(i&&(t=this._verifyReinsertion(t,o,s,a)),Object.is(t.
vendor: 6,127 bytes, line 1
1item,o)||this._addIdentityChange(t,o)):(t=this._mismatch(t,o,s,a),i=!0),t=t._next}else r=0,function o3(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{const t=e[Symbol.iterator]();let i;for(;!(i=t.next()).done;)n(i.value)}}(n,a=>{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;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,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new DY(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new RO),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._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 RO),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 DY{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 MY{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class RO{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new MY,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.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 LO(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+n+r}class FO{constructor(){}supports(n){return n instanceof Map||iy(n)}create(){return new SY}}class SY{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||iy(n)))throw new E(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let t=this._mapHead;
1if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const i=n._prev;return t._next=n,t._prev=i,n._prev=t,i&&(i._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 r=this._records.get(n);this._maybeAddToChanges(r,t);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new TY(n);return this._records.set(n,i),i.currentValue=t,this._addToAdditions(i),i}_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(i=>t(n[i],i))}}class TY{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 VO(){return new Vf([new AO])}let Vf=(()=>{class e{static#e=this.\u0275prov=L({token:e,providedIn:"root",factory:VO});constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||VO()),deps:[[e,new Nh,new Ph]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new E(901,!1)}}return e})();function BO(){return new $d([new FO])}let $d=(()=>{class e{static#e=this.\u0275prov=L({token:e,providedIn:"root",factory:BO});constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||BO()),deps:[[e,new Nh,new Ph]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new E(901,!1)}}return e})();const kY=wO(null,"core",[]);let IY=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xr))};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})();function Vc(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function Jy(e,n){const t=Ye(e),i=n.elementInjector||Jh();return new wd(t).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let Xy=null;function fs(){return Xy}class UY{}const yt=new K("DocumentToken");let ev=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:function(){return $(zY)},providedIn:"platform"})}return e})();const GY=new K("Location Initialized");let zY=(()=>{class e extends ev{constructor(){super(),this._doc=$(yt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return fs().getBaseHref(this._doc)}onPopState(t){const i=fs().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=fs().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.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,i,r){this._history.pushState(t,i,r)}replaceState(t,i,r){this._history.replaceState(t,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function tv(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 qO(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 Lo(e){return e&&"?"!==e[0]?"?"+e:e}let Js=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:function(){return $(ZO)},providedIn:"root"})}return e})();const KO=new K("appBaseHref");let ZO=(()=>{class e extends Js{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??$(yt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.on
1HashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return tv(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Lo(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+Lo(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+Lo(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(i){return new(i||e)(N(ev),N(KO,8))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),WY=(()=>{class e extends Js{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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 i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=tv(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+Lo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+Lo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(i){return new(i||e)(N(ev),N(KO,8))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})(),nv=(()=>{class e{constructor(t){this._subject=new H,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function ZY(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(qO(QO(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Lo(i))}normalize(t){return e.stripTrailingSlash(function KY(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,QO(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Lo(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Lo(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}static#e=this.normalizeQueryParams=Lo;static#t=this.joinWithSlash=tv;static#n=this.stripTrailingSlash=qO;static#i=this.\u0275fac=function(i){return new(i||e)(N(Js))};static#r=this.\u0275prov=L({token:e,factory:function(){return function qY(){return new nv(N(Js))}()},providedIn:"root"})}return e})();function QO(e){return e.replace(/\/index.html$/,"")}
1function cE(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const fv=/\s+/,lE=[];let Ni=(()=>{class e{constructor(t,i,r,o){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=lE,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(fv):lE}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(fv):t}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const i of t)this._updateState(i,!0);else if(null!=t)for(const i of Object.keys(t))this._updateState(i,!!t[i]);this._applyStateDiff()}_updateState(t,i){const r=this.stateMap.get(t);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(t,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const i=t[0],r=t[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(t,i){(t=t.trim()).length>0&&t.split(fv).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(i){return new(i||e)(_(Vf),_($d),_(we),_(It))};static#t=this.\u0275dir=j({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return e})();class N5{constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let dn=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new N5(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),uE(a,r)}});for(let r=0,o=i.length;r<o;r++){const a=i.get(r).context;a.index=r,a.count=o,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{uE(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(_(ti),_(mt),_(Vf))};static#t=this.\u0275dir=j({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function uE(e,n){e.context.$implicit=n.item}let lt=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new A5,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){hE("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){hE("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}static#e=this.\u0275fac=function(i){return new(i||e)(_(ti),_(mt))};static#t=this.\u0275dir=j({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThe
1n:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class A5{constructor(){this.$implicit=null,this.ngIf=null}}function hE(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${an(n)}'.`)}class pv{constructor(n,t){this._viewContainerRef=n,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Gd=(()=>{class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const i of this._defaultViews)i.enforceState(t)}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=j({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return e})(),gv=(()=>{class e{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new pv(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(i){return new(i||e)(_(ti),_(mt),_(Gd,9))};static#t=this.\u0275dir=j({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return e})(),pE=(()=>{class e{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,o]=t.split("."),s=-1===r.indexOf("-")?void 0:cs.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static#e=this.\u0275fac=function(i){return new(i||e)(_(we),_($d),_(It))};static#t=this.\u0275dir=j({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return e})(),ps=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(i){return new(i||e)(_(ti))};static#t=this.\u0275dir=j({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Et]})}return e})();class F5{createSubscription(n,t){return zw(()=>n.subscribe({next:t,error:i=>{throw i}}))}dispose(n){zw(()=>n.unsubscribe())}}class V5{createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const B5=new V5,H5=new F5;let mv=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Ed(t))return B5;if(rS(t))return H5;throw function Er(e,n){return new E(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}static#e=this.\u0275fac=function(i){return new(i||e)(_(Bn,16))};static#t=this.\u0275pipe=li({name:"async",type:e,pure:!1,standalone:!0})}return e})(),kr=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})();const mE="browser";function _E(e){return e===mE}function yE(e){return"server"===e}let a8=(()=>{class e{static#e=this.\u0275prov=L({token:e,providedIn:"root",factory:()=>new c8(N(yt),window)})}return e})();class c8{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 l8(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);
1t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class vE{}class P8 extends UY{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Cv extends P8{static makeCurrent(){!function YY(e){Xy||(Xy=e)}(new Cv)}onAndCancel(n,t,i){return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function N8(){return Wd=Wd||document.querySelector("base"),Wd?Wd.getAttribute("href"):null}();return null==t?null:function A8(e){Jf=Jf||document.createElement("a"),Jf.setAttribute("href",e);const n=Jf.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Wd=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return cE(document.cookie,n)}}let Jf,Wd=null,L8=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();const wv=new K("EventManagerPlugins");let ME=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(o=>o.supports(t)),!i)throw new E(5101,!1);return this._eventNameToPlugin.set(t,i),i}static#e=this.\u0275fac=function(i){return new(i||e)(N(wv),N(ke))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();class SE{constructor(n){this._doc=n}}const Dv="ng-app-id";let TE=(()=>{class e{constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=yE(o),this.resetHostNodes()}addStyles(t){for(const i of t)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(t){for(const i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){const i=this.styleRef;i.get(t)?.elements?.forEach(r=>r.remove()),i.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Dv}="${this.appId}"]`);if(t?.length){const i=new Map;return t.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(t,i){const r=this.styleRef;if(r.has(t)){const o=r.get(t);return o.usage+=i,o.usage}return r.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===t)return r.delete(i),o.removeAttribute(Dv),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(Dv,this.appId),s}}addStyleToHost(t,i){const r=this.getStyleElement(t,i);t.appendChild(r);const o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||e)(N(yt),N(Xh),N(FD,8),N(Po))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();
1const Mv={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Sv=/%COMP%/g,H8=new K("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function EE(e,n){return n.map(t=>t.replace(Sv,e))}let Tv=(()=>{class e{constructor(t,i,r,o,s,a,c,l=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=yE(a),this.defaultRenderer=new Ov(t,s,c,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ki.ShadowDom&&(i={...i,encapsulation:Ki.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof IE?r.applyToHost(t):r instanceof Ev&&r.applyStyles(),r}getOrCreateRenderer(t,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case Ki.Emulated:o=new IE(c,l,i,this.appId,d,s,a,u);break;case Ki.ShadowDom:return new U8(c,l,t,i,s,a,this.nonce,u);default:o=new Ev(c,l,i,d,s,a,u)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||e)(N(ME),N(TE),N(Xh),N(H8),N(yt),N(Po),N(ke),N(FD))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();class Ov{constructor(n,t,i,r){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Mv[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(kE(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(kE(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new E(-5104,!1);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=Mv[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=Mv[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(cs.DashCase|cs.Important)?n.style.setProperty(t,i,r&cs.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&cs.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){if("string"==typeof n&&!(n=fs().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(i))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function kE(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class U8 extends Ov{constructor(n,t,i,r,o,s,a,c){super(n,o,s,c),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=EE(r.id,r.styles);for(const d of l){const u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ev extends Ov{constructor(n,t,i,r,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=c?EE(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}
1class IE extends Ev{constructor(n,t,i,r,o,s,a,c){const l=r+"-"+i.id;super(n,t,i,o,s,a,c,l),this.contentAttr=function j8(e){return"_ngcontent-%COMP%".replace(Sv,e)}(l),this.hostAttr=function $8(e){return"_nghost-%COMP%".replace(Sv,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}let G8=(()=>{class e extends SE{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}static#e=this.\u0275fac=function(i){return new(i||e)(N(yt))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();const xE=["alt","control","meta","shift"],z8={"\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"},W8={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let q8=(()=>{class e extends SE{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>fs().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),xE.forEach(l=>{const d=i.indexOf(l);d>-1&&(i.splice(d,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(t,i){let r=z8[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),xE.forEach(s=>{s!==r&&(0,W8[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(i){return new(i||e)(N(yt))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();const NE=[{provide:Po,useValue:mE},{provide:RD,useValue:function K8(){Cv.makeCurrent()},multi:!0},{provide:yt,useFactory:function Q8(){return function YV(e){g_=e}(document),document},deps:[]}],J8=wO(kY,"browser",NE),X8=new K(""),AE=[{provide:Af,useClass:class R8{addToWindow(n){ht.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new E(5103,!1);return o},ht.getAllAngularTestabilities=()=>n.getAllTestabilities(),ht.getAllAngularRootElements=()=>n.getAllRootElements(),ht.frameworkStabilizers||(ht.frameworkStabilizers=[]),ht.frameworkStabilizers.push(i=>{const r=ht.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(c){s=s||c,o--,0==o&&i(s)};r.forEach(c=>{c.whenStable(a)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?fs().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:_O,useClass:jy,deps:[ke,$y,Af]},{provide:jy,useClass:jy,deps:[ke,$y,Af]}],RE=[{provide:S_,useValue:"root"},{provide:No,useFactory:function Z8(){return new No},deps:[]},{provide:wv,useClass:G8,multi:!0,deps:[yt,ke,Po]},{provide:wv,useClass:q8,multi:!0,deps:[yt]},Tv,TE,ME,{provide:ds,useExisting:Tv},{provide:vE,useClass:L8,deps:[]},[]];let LE=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Xh,useValue:t.appId}]}}static#e=this.\u0275fac=function(i){return new(i||e)(N(X8,12))};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({providers:[...RE,...AE],imports:[kr,IY]})}return e})(),FE=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(i){return new(i||e)(N(yt))};static#t=this.\u0275prov=L({token:e,factory:function(i){let r=null;return r=i?new i:function tU(){return new FE(N(yt))}(),r},providedIn:"root"})}return e})();typeof window<"u"&&window;const{isArray:sU}=Array,{getPrototypeOf:aU,prototype:cU,keys:lU}=Object;function jE(e){if(1===e.length){const n=e[0];if(sU(n))return{args:n,keys:null};if(function dU(e){return e&&"object"==typeof e&&aU(e)===cU}(n)){const t=lU(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:uU}=Array;function Iv(e){return se(n=>function hU(e,n){return uU(n)?e(...n):e(n)}(e,n))}function $E(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}let YE=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(i){return new(i||e)(_(It),_(we))};static#t=this.\u0275dir=j({type:e})}return e})(),Xs=(()=>{class e extends YE{static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Lt(e)))(r||e)}}();static#t=this.\u0275dir=j({type:e,features:[Ke]})}return e})();const un=new K("NgValueAccessor"),gU={provide:un,useExisting:ye(()=>Xf),multi:!0},_U=new K("CompositionEventMode");let Xf=(()=>{class e extends YE{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function mU(){const e=fs()?fs().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}
1_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(i){return new(i||e)(_(It),_(we),_(_U,8))};static#t=this.\u0275dir=j({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){1&i&&x("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Be([gU]),Ke]})}return e})();function ms(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function GE(e){return null!=e&&"number"==typeof e.length}const hn=new K("NgValidators"),_s=new K("NgAsyncValidators"),yU=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ys{static min(n){return function zE(e){return n=>{if(ms(n.value)||ms(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t<e?{min:{min:e,actual:n.value}}:null}}(n)}static max(n){return function WE(e){return n=>{if(ms(n.value)||ms(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return qE(n)}static requiredTrue(n){return function KE(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function ZE(e){return ms(e.value)||yU.test(e.value)?null:{email:!0}}(n)}static minLength(n){return QE(n)}static maxLength(n){return JE(n)}static pattern(n){return XE(n)}static nullValidator(n){return null}static compose(n){return ok(n)}static composeAsync(n){return sk(n)}}function qE(e){return ms(e.value)?{required:!0}:null}function QE(e){return n=>ms(n.value)||!GE(n.value)?null:n.value.length<e?{minlength:{requiredLength:e,actualLength:n.value.length}}:null}function JE(e){return n=>GE(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}function XE(e){if(!e)return ep;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),i=>{if(ms(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}function ep(e){return null}function ek(e){return null!=e}function tk(e){return Ed(e)?sn(e):e}function nk(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function ik(e,n){return n.map(t=>t(e))}function rk(e){return e.map(n=>function vU(e){return!e.validate}(n)?n:t=>n.validate(t))}function ok(e){if(!e)return null;const n=e.filter(ek);return 0==n.length?null:function(t){return nk(ik(t,n))}}function xv(e){return null!=e?ok(rk(e)):null}function sk(e){if(!e)return null;const n=e.filter(ek);return 0==n.length?null:function(t){return function fU(...e){const n=sh(e),{args:t,keys:i}=jE(e),r=new W(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let c=s,l=s;for(let d=0;d<s;d++){let u=!1;rn(t[d]).subscribe($e(o,h=>{u||(u=!0,l--),a[d]=h},()=>c--,void 0,()=>{(!c||!u)&&(l||o.next(i?$E(i,a):a),o.complete())}))}});return n?r.pipe(Iv(n)):r}(ik(t,n).map(tk)).pipe(se(nk))}}function Pv(e){return null!=e?sk(rk(e)):null}function ak(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function ck(e){return e._rawValidators}function lk(e){return e._rawAsyncValidators}function Nv(e){return e?Array.isArray(e)?e:[e]:[]}function tp(e,n){return Array.isArray(e)?e.includes(n):e===n}function dk(e,n){const t=Nv(n);return Nv(e).forEach(r=>{tp(t,r)||t.push(r)}),t}function uk(e,n){return Nv(n).filter(t=>!tp(e,t))}class hk{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=xv(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Pv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class ii extends hk{get formDirective(){return null}get path(){return null}}class vs extends hk{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class fk{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}
1get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Hc=(()=>{class e extends fk{constructor(t){super(t)}static#e=this.\u0275fac=function(i){return new(i||e)(_(vs,2))};static#t=this.\u0275dir=j({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&ie("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[Ke]})}return e})(),qd=(()=>{class e extends fk{constructor(t){super(t)}static#e=this.\u0275fac=function(i){return new(i||e)(_(ii,10))};static#t=this.\u0275dir=j({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){2&i&&ie("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[Ke]})}return e})();const Kd="VALID",ip="INVALID",jc="PENDING",Zd="DISABLED";function Lv(e){return(rp(e)?e.validators:e)||null}function Fv(e,n){return(rp(n)?n.asyncValidators:e)||null}function rp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function gk(e,n,t){const i=e.controls;if(!(n?Object.keys(i):i).length)throw new E(1e3,"");if(!i[t])throw new E(1001,"")}function mk(e,n,t){e._forEachChild((i,r)=>{if(void 0===t[r])throw new E(1002,"")})}class op{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Kd}get invalid(){return this.status===ip}get pending(){return this.status==jc}get disabled(){return this.status===Zd}get enabled(){return this.status!==Zd}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(dk(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(dk(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(uk(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(uk(n,this._rawAsyncValidators))}hasValidator(n){return tp(this._rawValidators,n)}hasAsyncValidator(n){return tp(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=jc,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Zd,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>
1i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Kd,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Kd||this.status===jc)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Zd:Kd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=jc,this._hasOwnPendingAsyncValidator=!0;const t=tk(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((i,r)=>i&&i._find(r),this)}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?Zd:this.errors?ip:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jc)?jc:this._anyControlsHaveStatus(ip)?ip:Kd}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){rp(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function DU(e){return Array.isArray(e)?xv(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function MU(e){return Array.isArray(e)?Pv(e):e||null}(this._rawAsyncValidators)}}class bs extends op{constructor(n,t,i){super(Lv(t),Fv(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,i={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}
1),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){mk(this,0,n),Object.keys(n).forEach(i=>{gk(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,i)=>(n[i]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&n(i,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,i]of Object.entries(this.controls))if(this.contains(t)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,i,r)=>((i.enabled||this.disabled)&&(t[r]=i.value),t))}_reduceChildren(n,t){let i=n;return this._forEachChild((r,o)=>{i=t(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class _k extends bs{}const ea=new K("CallSetDisabledState",{providedIn:"root",factory:()=>Qd}),Qd="always";function sp(e,n){return[...n.path,e]}function Jd(e,n,t=Qd){Vv(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function TU(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&yk(e,n)})}(e,n),function EU(e,n){const t=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)}
1)}(e,n),function OU(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&yk(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function SU(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function ap(e,n,t=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),lp(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function cp(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Vv(e,n){const t=ck(e);null!==n.validator?e.setValidators(ak(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=lk(e);null!==n.asyncValidator?e.setAsyncValidators(ak(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();cp(n._rawValidators,r),cp(n._rawAsyncValidators,r)}function lp(e,n){let t=!1;if(null!==e){if(null!==n.validator){const r=ck(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const r=lk(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(t=!0,e.setAsyncValidators(o))}}}const i=()=>{};return cp(n._rawValidators,i),cp(n._rawAsyncValidators,i),t}function yk(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Hv(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function jv(e,n){if(!n)return null;let t,i,r;
1return Array.isArray(n),n.forEach(o=>{o.constructor===Xf?t=o:function xU(e){return Object.getPrototypeOf(e.constructor)===Xs}(o)?i=o:r=o}),r||i||t||null}function Ck(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function wk(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const eo=class extends op{constructor(n=null,t,i){super(Lv(t),Fv(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rp(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=wk(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Ck(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Ck(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){wk(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},LU={provide:vs,useExisting:ye(()=>Yv)},Sk=(()=>Promise.resolve())();let Yv=(()=>{class e extends vs{constructor(t,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new eo,this._registered=!1,this.name="",this.update=new H,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=jv(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Hv(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Jd(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Sk.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=0!==i&&Vc(i);Sk.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?sp(t,this._parent):[t]}static#e=this.\u0275fac=function(i){return new(i||e)(_(ii,9),_(hn,10),_(_s,10),_(un,10),_(Bn,8),_(ea,8))};static#t=this.\u0275dir=j({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Be([LU]),Ke,Et]})}return e})(),dp=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=j({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})(),Ok=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})();const Uv=new K("NgModelWithFormControlWarning"),$U={provide:ii,useExisting:ye(()=>ta)};let ta=(()=>{class e extends ii{constructor(t,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new H,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateV
1alidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(lp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const i=this.form.get(t.path);return Jd(i,t,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){ap(t.control||null,t,!1),function PU(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,function bk(e,n){e._syncPendingControls(),n.forEac
1h(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const i=t.control,r=this.form.get(t.path);i!==r&&(ap(i||null,t),(e=>e instanceof eo)(r)&&(Jd(r,t,this.callSetDisabledState),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const i=this.form.get(t.path);(function vk(e,n){Vv(e,n)})(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const i=this.form.get(t.path);i&&function kU(e,n){return lp(e,n)}(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vv(this.form,this),this._oldForm&&lp(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||e)(_(hn,10),_(_s,10),_(ea,8))};static#t=this.\u0275dir=j({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&x("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Be([$U]),Ke,Et]})}return e})();const GU={provide:vs,useExisting:ye(()=>$c)};let $c=(()=>{class e extends vs{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new H,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=jv(0,o)}ngOnChanges(t){this._added||this._setUpControl(),Hv(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return sp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(i){return new(i||e)(_(ii,13),_(hn,10),_(_s,10),_(un,10),_(Uv,8))};static#n=this.\u0275dir=j({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Be([GU]),Ke,Et]})}return e})();const zU={provide:un,useExisting:ye(()=>up),multi:!0};function Pk(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let up=(()=>{class e extends Xs{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const r=Pk(this._getOptionId(t),t);this.setProperty("value",r)}registerOnChange(t){this.onChange=i=>{this.value=this._getOptionValue(i),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),t))return i;return null}_getOptionValue(t){const i=function WU(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i):t}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Lt(e)))(r||e)}}();static#t=this.\u0275dir=j({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){1&i&&x("change",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Be([zU]),Ke]})}return e})(),Nk=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(Pk(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
1),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(i){return new(i||e)(_(we),_(It),_(up,9))};static#t=this.\u0275dir=j({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();const qU={provide:un,useExisting:ye(()=>Wv),multi:!0};function Ak(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let Wv=(()=>{class e extends Xs{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let i;if(this.value=t,Array.isArray(t)){const r=t.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(t){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a<s.length;a++){const l=this._getOptionValue(s[a].value);r.push(l)}}else{const s=i.options;for(let a=0;a<s.length;a++){const c=s[a];if(c.selected){const l=this._getOptionValue(c.value);r.push(l)}}}this.value=r,t(r)}}_registerOption(t){const i=(this._idCounter++).toString();return this._optionMap.set(i,t),i}_getOptionId(t){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,t))return i;return null}_getOptionValue(t){const i=function KU(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Lt(e)))(r||e)}}();static#t=this.\u0275dir=j({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,r){1&i&&x("change",function(s){return r.onChange(s.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Be([qU]),Ke]})}return e})(),Rk=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Ak(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Ak(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(i){return new(i||e)(_(we),_(It),_(Wv,9))};static#t=this.\u0275dir=j({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();function Lk(e){return"number"==typeof e?e:parseInt(e,10)}let na=(()=>{class e{constructor(){this._validator=ep}ngOnChanges(t){if(this.inputName in t){const i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):ep,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=j({type:e,features:[Et]})}return e})();const JU={provide:hn,useExisting:ye(()=>hp),multi:!0};let hp=(()=>{class e extends na{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Vc,this.createValidator=t=>qE}enabled(t){return t}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Lt(e)))(r||e)}}();static#t=this.\u0275dir=j({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){2&i&&X("required",r._enabled?"":null)},inputs:{required:"required"},features:[Be([JU]),Ke]})}return e})();const t6={provide:hn,useExisting:ye(()=>qv),multi:!0};let qv=(()=>{class e extends na{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>Lk(t),this.createValidator=t=>QE(t)}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Lt(e)))(r||e)}}();static#t=this.\u0275dir=j({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&X("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[Be([t6]),Ke]})}return e})();const n6={provide:hn,useExisting:ye(()=>Kv),multi:!0};let Kv=(()=>{class e extends na{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>Lk(t),this.createValidator=t=>JE(t)}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Lt(e)))(r||e)}}();static#t=this.\u0275dir=j({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&X("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Be([n6]),Ke]})}return e})();const r6={provide:hn,useExisting:ye(()=>Zv),multi:!0};let Zv=(()=>{class e extends na{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>XE(t)}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Lt(e)))(r||e)}}();static#t=this.\u0275dir=j({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&X("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},features:[Be([r6]),Ke]})}return e})(),$k=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[Ok]})}return e})();class Yk extends op{constructor(n,t,i){super(Lv(t),Fv(i,t)),this.controls=n,this._initOb
1servables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,i={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,t={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),t&&(this.controls.splice(r,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){mk(this,0,n),n.forEach((i,r)=>{gk(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,i)=>{n(t,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function Uk(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let o6=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,i=null){const r=this._reduceControls(t);let o={};return Uk(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new bs(r,o)}record(t,i=null){const r=this._reduceControls(t);return new _k(r,i)}control(t,i,r){let o={};return this.useNonNullable?(Uk(i)?o=i:(o.validators=i,o.asyncValidators=r),new eo(t,{...o,nonNullable:!0})):new eo(t,i,r)}array(t,i,r){const o=t.map(s=>this._createControl(s));return new Yk(o,i,r)}_reduceControls(t){const i={};return Object.keys(t).forEach(r=>{i[r]=this._createControl(t[r])}),i}_createControl(t){return t instanceof eo||t instanceof op?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qv=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:ea,useValue:t.callSetDisabledState??Qd}]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[$k]})}return e})(),Jv=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Uv,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:ea,useValue:t.callSetDisabledState??Qd}]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[$k]})}return e})();class Gk{}class s6{}const Bo="*";function Xv(e,n=null){return{type:4,styles:n,timings:e}}function zk(e,n=null){return{type:2,steps:e,options:n}}function Yc(e){return{type:6,styles:e,offset:null}}function Wk(e,n,t){return{type:0,name:e,styles:n,options:t}}function eb(e,n,t=null){return{type:1,expr:e,animation:n,options:t}}class eu{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>
1i()),t.length=0}}class qk{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}function Kk(e){return new E(3e3,!1)}function Cs(e){switch(e.length){case 0:return new eu;case 1:return e[0];default:return new qk(e)}}function Zk(e,n,t=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(c=>{const l=c.get("offset"),d=l==s,u=d&&a||new Map;c.forEach((h,f)=>{let g=f,b=h;if("offset"!==f)switch(g=e.normalizePropertyName(g,r),b){case"!":b=t.get(f);break;case Bo:b=i.get(f);break;default:b=e.normalizeStyleValue(f,g,b,r)}u.set(g,b)}),d||o.push(u),a=u,s=l}),r.length)throw function I6(e){return new E(3502,!1)}();return o}function nb(e,n,t,i){switch(n){case"start":e.onStart(()=>i(t&&ib(t,"start",e)));break;case"done":e.onDone(()=>i(t&&ib(t,"done",e)));break;case"destroy":e.onDestroy(()=>i(t&&ib(t,"destroy",e)))}}function ib(e,n,t){const o=rb(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),s=e._data;return null!=s&&(o._data=s),o}function rb(e,n,t,i,r="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Ai(e,n,t){let i=e.get(n);return i||e.set(n,i=t),i}function Qk(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const $6=(()=>typeof document>"u"?null:document.documentElement)();function ob(e){const n=e.parentNode||e.host||null;return n===$6?null:n}let ia=null,Jk=!1;function Xk(e,n){for(;n;){if(n===e)return!0;n=ob(n)}return!1}function eI(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const i=e.querySelector(n);return i?[i]:[]}let tI=(()=>{class e{validateStyleProperty(t){return function U6(e){ia||(ia=function G6(){return typeof document<"u"?document.body:null}()||{},Jk=!!ia.style&&"WebkitAppearance"in ia.style);let n=!0;return ia.style&&!function Y6(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in ia.style,!n&&Jk&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in ia.style)),n}(t)}matchesElement(t,i){return!1}containsElement(t,i){return Xk(t,i)}getParentElement(t){return ob(t)}query(t,i,r){return eI(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,s,a=[],c){return new eu(r,o)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})(),sb=(()=>{class e{static#e=this.NOOP=new tI}return e})();const z6=1e3,ab="ng-enter",fp="ng-leave",pp="ng-trigger",gp=".ng-trigger",iI="ng-animating",cb=".ng-animating";function Ho(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:lb(parseFloat(n[1]),n[2])}function lb(e,n){return"s"===n?e*z6:e}function mp(e,n,t){return e.hasOwnProperty("duration")?e:function q6(e,n,t){let r,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(Kk()),{duration:0,delay:0,easing:""};r=lb(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(o=lb(parseFloat(c),a[4]));const l=a[5];l&&(s=l)}else r=e;if(!t){let a=!1,c=n.length;r<0&&(n.push(function c6(){return new E(3100,!1)}()),a=!0),o<0&&(n.push(function l6(){return new E(3101,!1)}()),a=!0),a&&n.splice(c,0,Kk())}return{duration:r,delay:o,easing:s}}(e,n,t)}function tu(e,n={}){return Object.keys(e).forEach(t=>{n[t]=e[t]}),n}function rI(e){const n=new Map;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}function ws(e,n=new Map,t){if(t)for(let[i,r]of t)n.set(i,r);for(let[i,r]of e)n.set(i,r);return n}
1function to(e,n,t){n.forEach((i,r)=>{const o=ub(r);t&&!t.has(r)&&t.set(r,e.style[o]),e.style[o]=i})}function ra(e,n){n.forEach((t,i)=>{const r=ub(i);e.style[r]=""})}function nu(e){return Array.isArray(e)?1==e.length?e[0]:zk(e):e}const db=new RegExp("{{\\s*(.+?)\\s*}}","g");function sI(e){let n=[];if("string"==typeof e){let t;for(;t=db.exec(e);)n.push(t[1]);db.lastIndex=0}return n}function iu(e,n,t){const i=e.toString(),r=i.replace(db,(o,s)=>{let a=n[s];return null==a&&(t.push(function u6(e){return new E(3003,!1)}()),a=""),a.toString()});return r==i?e:r}function _p(e){const n=[];let t=e.next();for(;!t.done;)n.push(t.value),t=e.next();return n}const Q6=/-+([a-z0-9])/g;function ub(e){return e.replace(Q6,(...n)=>n[1].toUpperCase())}function Ri(e,n,t){switch(n.type){case 7:return e.visitTrigger(n,t);case 0:return e.visitState(n,t);case 1:return e.visitTransition(n,t);case 2:return e.visitSequence(n,t);case 3:return e.visitGroup(n,t);case 4:return e.visitAnimate(n,t);case 5:return e.visitKeyframes(n,t);case 6:return e.visitStyle(n,t);case 8:return e.visitReference(n,t);case 9:return e.visitAnimateChild(n,t);case 10:return e.visitAnimateRef(n,t);case 11:return e.visitQuery(n,t);case 12:return e.visitStagger(n,t);default:throw function h6(e){return new E(3004,!1)}()}}function aI(e,n){return window.getComputedStyle(e)[n]}const yp="*";function eG(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(i=>function tG(e,n,t){if(":"==e[0]){const c=function nG(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return n.push(function T6(e){return new E(3016,!1)}()),"* => *"}}(e,t);if("function"==typeof c)return void n.push(c);e=c}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function S6(e){return new E(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(cI(r,s));"<"==o[0]&&!(r==yp&&s==yp)&&n.push(cI(s,r))}(i,t,n)):t.push(e),t}const vp=new Set(["true","1"]),bp=new Set(["false","0"]);function cI(e,n){const t=vp.has(e)||bp.has(e),i=vp.has(n)||bp.has(n);return(r,o)=>{let s=e==yp||e==r,a=n==yp||n==o;return!s&&t&&"boolean"==typeof r&&(s=r?vp.has(e):bp.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?vp.has(n):bp.has(n)),s&&a}}const iG=new RegExp("s*:selfs*,?","g");function hb(e,n,t,i){return new rG(e).build(n,t,i)}class rG{constructor(n){this._driver=n}build(n,t,i){const r=new aG(t);return this._resetContextStyleTimingState(r),Ri(this,nu(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function p6(){return new E(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(d=>{c.name=d,o.push(this.visitState(c,t))}),c.name=l}else if(1==a.type){const c=this.visitTransition(a,t);i+=c.queryCount,r+=c.depCount,s.push(c)}else t.errors.push(function g6(){return new E(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,t){const i=this.visitStyle(n.styles,t),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{sI(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&(_p(o.values()),t.errors.push(function m6(e,n){return new E(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const i=Ri(this,nu(n.animation),t);return{type:1,matchers:eG(n.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:oa(n.options)}}visitSequence(n,t){return{type:2,steps:n.steps.map(i=>Ri(this,i,t)),options:oa(n.options)}}visitGroup(n,t){const i=t.currentTime;let r=0;const o=n.steps.map(s=>{t.currentTime=i;const a=Ri(this,s,t);return r=Math.max(r,t.currentTime),a}
1);return t.currentTime=r,{type:3,steps:o,options:oa(n.options)}}visitAnimate(n,t){const i=function lG(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return fb(mp(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=fb(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=mp(t,n);return fb(r.duration,r.delay,r.easing)}(n.timings,t.errors);t.currentAnimateTimings=i;let r,o=n.styles?n.styles:Yc({});if(5==o.type)r=this.visitKeyframes(o,t);else{let s=n.styles,a=!1;if(!s){a=!0;const l={};i.easing&&(l.easing=i.easing),s=Yc(l)}t.currentTime+=i.duration+i.delay;const c=this.visitStyle(s,t);c.isEmptyStep=a,r=c}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,t){const i=this._makeStyleAst(n,t);return this._validateStyleAst(i,t),i}_makeStyleAst(n,t){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Bo?i.push(a):t.errors.push(new E(3002,!1)):i.push(rI(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let c of a.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,c)=>{const l=t.collectedStyles.get(t.currentQuerySelector),d=l.get(c);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push(function y6(e,n,t,i,r){return new E(3010,!1)}()),u=!1),o=d.startTime),u&&l.set(c,{startTime:o,endTime:r}),t.options&&function Z6(e,n,t){const i=n.params||{},r=sI(e);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function d6(e){return new E(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function v6(){return new E(3011,!1)}()),i;let o=0;const s=[];let a=!1,c=!1,l=0;const d=n.steps.map(S=>{const D=this._makeStyleAst(S,t);let P=null!=D.offset?D.offset:function cG(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(D.styles),A=0;return null!=P&&(o++,A=D.offset=P),c=c||A<0||A>1,a=a||A<l,l=A,s.push(A),D});c&&t.errors.push(function b6(){return new E(3012,!1)}()),a&&t.errors.push(function C6(){return new E(3200,!1)}());const u=n.steps.length;let h=0;o>0&&o<u?t.errors.push(function w6(){return new E(3202,!1)}()):0==o&&(h=1/(u-1));const f=u-1,g=t.currentTime,b=t.currentAnimateTimings,w=b.duration;return d.forEach((S,D)=>{const P=h>0?D==f?1:h*D:s[D],A=P*w;t.currentTime=g+b.delay+A,b.duration=A,this._validateStyleAst(S,t),S.offset=P,i.styles.push(S)}),i}visitReference(n,t){return{type:8,animation:Ri(this,nu(n.animation),t),options:oa(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:9,options:oa(n.options)}}visitAnimateRef(n,t){return{type:10,animation:this.visitReference(n.animation,t),options:oa(n.options)}}visitQuery(n,t){const i=t.currentQuerySelector,r=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function oG(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(iG,"")),e=e.replace(/@\*/g,gp).replace(/@\w+/g,t=>gp+"-"+t.slice(1)).replace(/:animating/g,cb),[e,n]}(n.selector);t.currentQuerySelector=i.length?i+" "+o:o,Ai(t.collectedStyles,t.currentQuerySelector,new Map);const a=Ri(this,nu(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:oa(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function D6(){return new E(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:mp(n.timings,t.errors,!0);return{type:12,animation:Ri(this,nu(n.animation),t),timings:i,options:null}}}class aG{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function oa(e){return e?(e=tu(e)).params&&(e.params=function sG(e){return e?tu(e):null}(e.params)):e={},e}function fb(e,n,t){return{duration:e,delay:n,easing:t}}function pb(e,n,t,i,r,o,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Cp{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const hG=new RegExp(":enter","g"),pG=new RegExp(":leave","g");function gb(e,n,t,i,r,o=new Map,s=new Map,a,c,l=[]){return(new gG).buildKeyframes(e,n,t,i,r,o,s,a,c,l)}class gG{buildKeyframes(n,t,i,r,o,s,a,c,l,d=[]){l=l||new Cp;const u=new mb(n,t,l,r,o,d,[]);u.options=c;const h=c.delay?Ho(c.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,c),Ri(this,i,u);const f=u.timelines.filter(g=>g.containsAnimation());if(f.length&&a.size){let g;for(let b=f.length-1;b>=0;b--){const w=f[b];if(w.element===t){g=w;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,u.errors,c)}return f.length?f.map(g=>g.buildKeyframes()):[pb(t,[],[],[],0,h,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}
1visitAnimateChild(n,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const i=t.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,i),this.visitReference(n.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Ho(iu(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,t,i){let o=t.currentTimeline.currentTime;const s=null!=i.duration?Ho(i.duration):null,a=null!=i.delay?Ho(i.delay):null;return 0!==s&&n.forEach(c=>{const l=t.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),Ri(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const i=t.subContextCount;let r=t;const o=n.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=wp);const s=Ho(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Ri(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const i=[];let r=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?Ho(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);o&&a.delayNextStep(o),Ri(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const i=n.strValue;return mp(t.params?iu(i,t.params,t.errors):i,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const i=t.currentAnimateTimings=this._visitTiming(n.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(c=>{a.forwardTime((c.offset||0)*o),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=n}visitQuery(n,t){const i=t.currentTimeline.currentTime,r=n.options||{},o=r.delay?Ho(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=wp);let s=i;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((l,d)=>{t.currentQueryIndex=d;const u=t.createSubContext(n.options,l);o&&u.delayNextStep(o),l===t.element&&(c=u.currentTimeline),Ri(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const i=t.parentContext,r=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let c=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime}const d=t.currentTimeline;c&&d.delayNextStep(c);const u=d.currentTime;Ri(this,n.animation,t),t.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}}const wp={};class mb{constructor(n,t,i,r,o,s,a,c){this._driver=n,this.element=t,this.subInstru
1ctions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=wp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Dp(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Ho(i.duration)),null!=i.delay&&(r.delay=Ho(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=iu(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const i=n.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return n}createSubContext(n=null,t,i){const r=t||this.element,o=new mb(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=wp,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,i){const r={duration:t??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new mG(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(hG,"."+this._enterClassName)).replace(pG,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=i);0!==i&&(l=i<0?l.slice(l.length+i,l.length):l.slice(0,i)),a.push(...l)}return!o&&0==a.length&&s.push(function M6(e){return new E(3014,!1)}()),a}}class Dp{constructor(n,t,i,r){this._driver=n,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new Dp(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}
1applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||Bo),this._currentKeyframe.set(t,Bo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},s=function _G(e,n){const t=new Map;let i;return e.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)t.set(o,Bo)}else ws(r,t)}),t}(n,this._globalTimelineStyles);for(let[a,c]of s){const l=iu(c,o,i);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Bo),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}
1mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,c)=>{const l=ws(a,new Map,this._backFill);l.forEach((d,u)=>{"!"===d?n.add(u):d===Bo&&t.add(u)}),i||l.set("offset",c/this.duration),r.push(l)});const o=n.size?_p(n.values()):[],s=t.size?_p(t.values()):[];if(i){const a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return pb(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class mG extends Dp{constructor(n,t,i,r,o,s,a=!1){super(n,t,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=i+t,a=t/s,c=ws(n[0]);c.set("offset",0),o.push(c);const l=ws(n[0]);l.set("offset",uI(a)),o.push(l);const d=n.length-1;for(let u=1;u<=d;u++){let h=ws(n[u]);const f=h.get("offset");h.set("offset",uI((t+f*i)/s)),o.push(h)}i=s,t=0,r="",n=o}return pb(this.element,n,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function uI(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}class _b{}const yG=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class vG extends _b{normalizePropertyName(n,t){return ub(n)}normalizeStyleValue(n,t,i,r){let o="";const s=i.toString().trim();if(yG.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function f6(e,n){return new E(3005,!1)}())}return s+o}}function hI(e,n,t,i,r,o,s,a,c,l,d,u,h){return{type:0,element:e,triggerName:n,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:d,totalTime:u,errors:h}}const yb={};class fI{constructor(n,t,i){this._triggerName=n,this.ast=t,this._stateStyles=i}match(n,t,i,r){return function bG(e,n,t,i,r){return e.some(o=>o(n,t,i,r))}(this.ast.matchers,n,t,i,r)}buildStyles(n,t,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(t,i):new Map}build(n,t,i,r,o,s,a,c,l,d){const u=[],h=this.ast.options&&this.ast.options.params||yb,g=this.buildStyles(i,a&&a.params||yb,u),b=c&&c.params||yb,w=this.buildStyles(r,b,u),S=new Set,D=new Map,P=new Map,A="void"===r,Y={params:CG(b,h),delay:this.ast.options?.delay},re=d?[]:gb(n,t,this.ast.animation,o,s,g,w,Y,l,u);let de=0;if(re.forEach(Ze=>{de=Math.max(Ze.duration+Ze.delay,de)}),u.length)return hI(t,this._triggerName,i,r,A,g,w,[],[],D,P,de,u);re.forEach(Ze=>{const tt=Ze.element,Gt=Ai(D,tt,new Set);Ze.preStyleProps.forEach(Pt=>Gt.add(Pt));const Nn=Ai(P,tt,new Set);Ze.postStyleProps.forEach(Pt=>Nn.add(Pt)),tt!==t&&S.add(tt)});const Me=_p(S.values());return hI(t,this._triggerName,i,r,A,g,w,re,Me,D,P,de)}}function CG(e,n){const t=tu(n);for(const i in e)e.hasOwnProperty(i)&&null!=e[i]&&(t[i]=e[i]);return t}class wG{constructor(n,t,i){this.styles=n,this.defaultParams=t,this.normalizer=i}buildStyles(n,t){const i=new Map,r=tu(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=iu(s,r,t));const c=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,c,s,t),i.set(a,s)})}),i}}class MG{constructor(n,t,i){this.name=n,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new wG(r.style,r.options&&r.options.params||{},i))}),pI(this.states,"true","1"),pI(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new fI(n,r,this.states))}),this.fallbackTransition=function SG(e,n,t){return new fI(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,i,r){return this.transitionFactories.find(s=>s.match(n,t,i,r))||null}matchStyles(n,t,i){return this.fallbackTransition.buildStyles(n,t,i)}}function pI(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const TG=new Cp;class OG{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const i=[],o=hb(this._driver,t,i,[]);if(i.length)throw function x6(e){return new E(3503,!1)}();this._animations.set(n,o)}
1_buildPlayer(n,t,i){const r=n.element,o=Zk(this._normalizer,n.keyframes,t,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=gb(this._driver,t,o,ab,fp,new Map,new Map,i,TG,r),s.forEach(d=>{const u=Ai(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(r.push(function P6(){return new E(3300,!1)}()),s=[]),r.length)throw function N6(e){return new E(3504,!1)}();a.forEach((d,u)=>{d.forEach((h,f)=>{d.set(f,this._driver.computeStyle(u,f,Bo))})});const l=Cs(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function A6(e){return new E(3301,!1)}();return t}listen(n,t,i,r){const o=rb(t,"","","");return nb(this._getPlayer(n),i,o,r),()=>{}}command(n,t,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,t,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const gI="ng-animate-queued",vb="ng-animate-disabled",PG=[],mI={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},NG={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ir="__ng_removed";class bb{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const i=n&&n.hasOwnProperty("value");if(this.value=function FG(e){return e??null}(i?n.value:n),i){const o=tu(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const ru="void",Cb=new bb(ru);class AG{constructor(n,t,i){this.id=n,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+n,or(t,this._hostClassName)}listen(n,t,i,r){if(!this._triggers.has(t))throw function R6(e,n){return new E(3302,!1)}();if(null==i||0==i.length)throw function L6(e){return new E(3303,!1)}();if(!function VG(e){return"start"==e||"done"==e}(i))throw function F6(e,n){return new E(3400,!1)}();const o=Ai(this._elementListeners,n,[]),s={name:t,phase:i,callback:r};o.push(s);const a=Ai(this._engine.statesByElement,n,new Map);return a.has(t)||(or(n,pp),or(n,pp+"-"+t),a.set(t,Cb)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function V6(e){return new E(3401,!1)}();return t}trigger(n,t,i,r=!0){const o=this._getTrigger(t),s=new wb(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(or(n,pp),or(n,pp+"-"+t),this._engine.statesByElement.set(n,a=new Map));let c=a.get(t);const l=new bb(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(t,l),c||(c=Cb),l.value!==ru&&c.value===l.value){if(!function jG(e,n){const t=Object.keys(e),i=Object.keys(n);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const o=t[r];if(!n.hasOwnProperty(o)||e[o]!==n[o])return!1}return!0}(c.params,l.params)){const b=[],w=o.matchStyles(c.value,c.params,b),S=o.matchStyles(l.value,l.params,b);b.length?this._engine.reportError(b):this._engine.afterFlush(()=>{ra(n,w),to(n,S)})}return}const h=Ai(this._engine.playersByElement,n,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==t&&b.queued&&b.destroy()});let f=o.matchTransition(c.value,l.value,n,l.params),g=!1;if(!f){if(!r)return;f=o.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:f,fromState:c,toState:l,player:s,isFallbackTransition:g}),g||(or(n,gI),s.onStart(()=>{Uc(n,gI)})),s.onDone(()=>{let b=this.players.indexOf(s);b>=0&&this.players.splice(b,1);const w=this._engine.playersByElement.get(n);if(w){let S=w.indexOf(s);S>=0&&w.splice(S,1)}}),this.players.push(s),h.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const i=this._engine.driver.query(n,gp,!0);i.forEach(r=>{if(r[Ir])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,t,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){const d=this.trigger(n,l,ru,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),i&&Cs(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(t&&i){const r=new Set;t.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const c=this._triggers.get(s).fallbackTransition,l=i.get(s)||Cb,d=new bb(ru),u=new wb(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:c,fromState:l,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,t){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,t);else{const o=n[Ir];(!o||o===mI)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,t))}}insertNode(n,t){or(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(i=>
1{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const c=rb(o,i.triggerName,i.fromState.value,i.toState.value);c._data=n,nb(i.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class RG{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,i){this.bodyNode=n,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,t){const i=new AG(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const c=r.get(a);if(c){const l=i.indexOf(c);i.splice(l+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(t,n),n}register(n,t){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,t)),i}registerTrigger(n,t,i){let r=this._namespaceLookup[n];r&&r.register(t,i)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(n,t,i,r){if(Mp(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(n,t,i,r){if(!Mp(t))return;const o=t[Ir];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),or(n,vb)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Uc(n,vb))}removeNode(n,t,i){if(Mp(t)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(t,i):this.markElementAsRemoved(n,t,!1,i);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(n,t,i,r,o){this.collectedLeaveElements.push(t),t[Ir]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,i,r,o){return Mp(t)?this._fetchNamespace(n).listen(t,i,r,o):()=>{}}_buildInstruction(n,t,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,gp,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,cb,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(i=>
1{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Cs(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[Ir];if(t&&t.setForRemoval){if(n[Ir]=mI,t.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(vb)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)or(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Cs(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function B6(e){return new E(3402,!1)}()}_flushAnimations(n,t){const i=new Cp,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,d=new Set;this.disabledNodes.forEach(z=>{d.add(z);const ne=this.driver.query(z,".ng-animate-queued",!0);for(let ce=0;ce<ne.length;ce++)d.add(ne[ce])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=vI(h,this.collectedEnterElements),g=new Map;let b=0;f.forEach((z,ne)=>{const ce=ab+b++;g.set(ne,ce),z.forEach(xe=>or(xe,ce))});const w=[],S=new Set,D=new Set;for(let z=0;z<this.collectedLeaveElements.length;z++){const ne=this.collectedLeaveElements[z],ce=ne[Ir];ce&&ce.setForRemoval&&(w.push(ne),S.add(ne),ce.hasAnimation?this.driver.query(ne,".ng-star-inserted",!0).forEach(xe=>S.add(xe)):D.add(ne))}const P=new Map,A=vI(h,Array.from(S));A.forEach((z,ne)=>{const ce=fp+b++;P.set(ne,ce),z.forEach(xe=>or(xe,ce))}),n.push(()=>{f.forEach((z,ne)=>{const ce=g.get(ne);z.forEach(xe=>Uc(xe,ce))}),A.forEach((z,ne)=>{const ce=P.get(ne);z.forEach(xe=>Uc(xe,ce))}
1),w.forEach(z=>{this.processLeaveNode(z)})});const Y=[],re=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(t).forEach(ce=>{const xe=ce.player,Nt=ce.element;if(Y.push(xe),this.collectedEnterElements.length){const zt=Nt[Ir];if(zt&&zt.setForMove){if(zt.previousTriggersValues&&zt.previousTriggersValues.has(ce.triggerName)){const oi=zt.previousTriggersValues.get(ce.triggerName),Un=this.statesByElement.get(ce.element);if(Un&&Un.has(ce.triggerName)){const Pl=Un.get(ce.triggerName);Pl.value=oi,Un.set(ce.triggerName,Pl)}}return void xe.destroy()}}const vi=!u||!this.driver.containsElement(u,Nt),vn=P.get(Nt),ji=g.get(Nt),rt=this._buildInstruction(ce,i,ji,vn,vi);if(rt.errors&&rt.errors.length)return void re.push(rt);if(vi)return xe.onStart(()=>ra(Nt,rt.fromStyles)),xe.onDestroy(()=>to(Nt,rt.toStyles)),void r.push(xe);if(ce.isFallbackTransition)return xe.onStart(()=>ra(Nt,rt.fromStyles)),xe.onDestroy(()=>to(Nt,rt.toStyles)),void r.push(xe);const Br=[];rt.timelines.forEach(zt=>{zt.stretchStartingKeyframe=!0,this.disabledNodes.has(zt.element)||Br.push(zt)}),rt.timelines=Br,i.append(Nt,rt.timelines),s.push({instruction:rt,player:xe,element:Nt}),rt.queriedElements.forEach(zt=>Ai(a,zt,[]).push(xe)),rt.preStyleProps.forEach((zt,oi)=>{if(zt.size){let Un=c.get(oi);Un||c.set(oi,Un=new Set),zt.forEach((Pl,Ha)=>Un.add(Ha))}}),rt.postStyleProps.forEach((zt,oi)=>{let Un=l.get(oi);Un||l.set(oi,Un=new Set),zt.forEach((Pl,Ha)=>Un.add(Ha))})});if(re.length){const z=[];re.forEach(ne=>{z.push(function H6(e,n){return new E(3505,!1)}())}),Y.forEach(ne=>ne.destroy()),this.reportError(z)}const de=new Map,Me=new Map;s.forEach(z=>{const ne=z.element;i.has(ne)&&(Me.set(ne,ne),this._beforeAnimationBuild(z.player.namespaceId,z.instruction,de))}),r.forEach(z=>{const ne=z.element;this._getPreviousPlayers(ne,!1,z.namespaceId,z.triggerName,null).forEach(xe=>{Ai(de,ne,[]).push(xe),xe.destroy()})});const Ze=w.filter(z=>CI(z,c,l)),tt=new Map;yI(tt,this.driver,D,l,Bo).forEach(z=>{CI(z,c,l)&&Ze.push(z)});const Nn=new Map;f.forEach((z,ne)=>{yI(Nn,this.driver,new Set(z),c,"!")}),Ze.forEach(z=>{const ne=tt.get(z),ce=Nn.get(z);tt.set(z,new Map([...ne?.entries()??[],...ce?.entries()??[]]))});const Pt=[],go=[],mo={};s.forEach(z=>{const{element:ne,player:ce,instruction:xe}=z;if(i.has(ne)){if(d.has(ne))return ce.onDestroy(()=>to(ne,xe.toStyles)),ce.disabled=!0,ce.overrideTotalTime(xe.totalTime),void r.push(ce);let Nt=mo;if(Me.size>1){let vn=ne;const ji=[];for(;vn=vn.parentNode;){const rt=Me.get(vn);if(rt){Nt=rt;break}ji.push(vn)}ji.forEach(rt=>Me.set(rt,Nt))}const vi=this._buildAnimation(ce.namespaceId,xe,de,o,Nn,tt);if(ce.setRealPlayer(vi),Nt===mo)Pt.push(ce);else{const vn=this.playersByElement.get(Nt);vn&&vn.length&&(ce.parentPlayer=Cs(vn)),r.push(ce)}}else ra(ne,xe.fromStyles),ce.onDestroy(()=>to(ne,xe.toStyles)),go.push(ce),d.has(ne)&&r.push(ce)}),go.forEach(z=>{const ne=o.get(z.element);if(ne&&ne.length){const ce=Cs(ne);z.setRealPlayer(ce)}}),r.forEach(z=>{z.parentPlayer?z.syncPlayerEvents(z.parentPlayer):z.destroy()});for(let z=0;z<w.length;z++){const ne=w[z],ce=ne[Ir];if(Uc(ne,fp),ce&&ce.hasAnimation)continue;let xe=[];if(a.size){let vi=a.get(ne);vi&&vi.length&&xe.push(...vi);let vn=this.driver.query(ne,cb,!0);for(let ji=0;ji<vn.length;ji++){let rt=a.get(vn[ji]);rt&&rt.length&&xe.push(...rt)}}const Nt=xe.filter(vi=>!vi.destroyed);Nt.length?BG(this,ne,Nt):this.processLeaveNode(ne)}return w.length=0,Pt.forEach(z=>{this.players.push(z),z.onDone(()=>{z.destroy();const ne=this.players.indexOf(z);this.players.splice(ne,1)}),z.play()}),Pt}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,i,r,o){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const c=!o||o==ru;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,t,i){const o=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const l=c.element,d=l!==o,u=Ai(i,l,[]);this._getPreviousPlayers(l,d,s,a,t.toState).forEach(f=>{const g=f.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),f.destroy(),u.push(f)})}ra(o,t.fromStyles)}_buildAnimation(n,t,i,r,o,s){const a=t.triggerName,c=t.element,l=[],d=new Set,u=new Set,h=t.timelines.map(g=>{const b=g.element;d.add(b);const w=b[Ir];
1if(w&&w.removedBeforeQueried)return new eu(g.duration,g.delay);const S=b!==c,D=function HG(e){const n=[];return bI(e,n),n}((i.get(b)||PG).map(de=>de.getRealPlayer())).filter(de=>!!de.element&&de.element===b),P=o.get(b),A=s.get(b),Y=Zk(this._normalizer,g.keyframes,P,A),re=this._buildPlayer(g,Y,D);if(g.subTimeline&&r&&u.add(b),S){const de=new wb(n,a,b);de.setRealPlayer(re),l.push(de)}return re});l.forEach(g=>{Ai(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>function LG(e,n,t){let i=e.get(n);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&e.delete(n)}return i}(this.playersByQueriedElement,g.element,g))}),d.forEach(g=>or(g,iI));const f=Cs(h);return f.onDestroy(()=>{d.forEach(g=>Uc(g,iI)),to(c,t.toStyles)}),u.forEach(g=>{Ai(r,g,[]).push(f)}),f}_buildPlayer(n,t,i){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,i):new eu(n.duration,n.delay)}}class wb{constructor(n,t,i){this.namespaceId=n,this.triggerName=t,this.element=i,this._player=new eu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>nb(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){Ai(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function Mp(e){return e&&1===e.nodeType}function _I(e,n){const t=e.style.display;return e.style.display=n??"none",t}function yI(e,n,t,i,r){const o=[];t.forEach(c=>o.push(_I(c)));const s=[];i.forEach((c,l)=>{const d=new Map;c.forEach(u=>{const h=n.computeStyle(l,u,r);d.set(u,h),(!h||0==h.length)&&(l[Ir]=NG,s.push(l))}),e.set(l,d)});let a=0;return t.forEach(c=>_I(c,o[a++])),s}function vI(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let c=o.get(a);if(c)return c;const l=a.parentNode;return c=t.has(l)?l:r.has(l)?1:s(l),o.set(a,c),c}return n.forEach(a=>{const c=s(a);1!==c&&t.get(c).push(a)}),t}function or(e,n){e.classList?.add(n)}function Uc(e,n){e.classList?.remove(n)}function BG(e,n,t){Cs(t).onDone(()=>e.processLeaveNode(n))}function bI(e,n){for(let t=0;t<e.length;t++){const i=e[t];i instanceof qk?bI(i.players,n):n.push(i)}}function CI(e,n,t){const i=t.get(e);if(!i)return!1;let r=n.get(e);return r?i.forEach(o=>r.add(o)):n.set(e,i),t.delete(e),!0}class Sp{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new RG(n,t,i),this._timelineEngine=new OG(n,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,t,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const c=[],d=hb(this._driver,o,c,[]);if(c.length)throw function k6(e,n){return new E(3404,!1)}();a=function DG(e,n,t){return new MG(e,n,t)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,r,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}
1onInsert(n,t,i,r){this._transitionEngine.insertNode(n,t,i,r)}onRemove(n,t,i){this._transitionEngine.removeNode(n,t,i)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,i,r){if("@"==i.charAt(0)){const[o,s]=Qk(i);this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(n,t,i,r)}listen(n,t,i,r,o){if("@"==i.charAt(0)){const[s,a]=Qk(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(n,t,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let YG=(()=>{class e{static#e=this.initialStylesByElement=new WeakMap;constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&to(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(to(this._element,this._initialStyles),this._endStyles&&(to(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ra(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ra(this._element,this._endStyles),this._endStyles=null),to(this._element,this._initialStyles),this._state=3)}}return e})();function Db(e){let n=null;return e.forEach((t,i)=>{(function UG(e){return"display"===e||"position"===e})(i)&&(n=n||new Map,n.set(i,t))}),n}class wI{constructor(n,t,i,r){this.element=n,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(n,t,i){return n.animate(this._convertKeyframesToObject(t),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:aI(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(i=>
1i()),t.length=0}}class GG{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,t){return!1}containsElement(n,t){return Xk(n,t)}getParentElement(n){return ob(n)}query(n,t,i){return eI(n,t,i)}computeStyle(n,t,i){return window.getComputedStyle(n)[t]}animate(n,t,i,r,o,s=[]){const c={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(c.easing=o);const l=new Map,d=s.filter(f=>f instanceof wI);(function J6(e,n){return 0===e||0===n})(i,r)&&d.forEach(f=>{f.currentSnapshot.forEach((g,b)=>l.set(b,g))});let u=function K6(e){return e.length?e[0]instanceof Map?e:e.map(n=>rI(n)):[]}(t).map(f=>ws(f));u=function X6(e,n,t){if(t.size&&n.length){let i=n[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;o<n.length;o++){let s=n[o];r.forEach(a=>s.set(a,aI(e,a)))}}return n}(n,u,l);const h=function $G(e,n){let t=null,i=null;return Array.isArray(n)&&n.length?(t=Db(n[0]),n.length>1&&(i=Db(n[n.length-1]))):n instanceof Map&&(t=Db(n)),t||i?new YG(e,t,i):null}(n,u);return new wI(n,u,c,h)}}let zG=(()=>{class e extends Gk{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Ki.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?zk(t):t;return DI(this._renderer,null,i,"register",[r]),new WG(i,this._renderer)}static#e=this.\u0275fac=function(i){return new(i||e)(N(ds),N(yt))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();class WG extends s6{constructor(n,t){super(),this._id=n,this._renderer=t}create(n,t){return new qG(this._id,n,t||{},this._renderer)}}class qG{constructor(n,t,i,r){this.id=n,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,t){return this._renderer.listen(this.element,`@@${this.id}:${n}`,t)}_command(n,...t){return DI(this._renderer,this.element,this.id,n,t)}
1onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function DI(e,n,t,i,r){return e.setProperty(n,`@@${t}:${i}`,r)}const MI="@.disabled";let KG=(()=>{class e{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(t,i){const o=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let d=this._rendererCache.get(o);return d||(d=new SI("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,d)),d}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const c=d=>{Array.isArray(d)?d.forEach(c):this.engine.registerTrigger(s,a,t,d.name,d)};return i.data.animation.forEach(c),new ZG(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(i){return new(i||e)(N(ds),N(Sp),N(ke))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();class SI{constructor(n,t,i,r){this.namespaceId=n,this.delegate=t,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,i,r=!0){this.delegate.insertBefore(n,t,i),this.engine.onInsert(this.namespaceId,t,n,r)}removeChild(n,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,i,r){this.delegate.setAttribute(n,t,i,r)}removeAttribute(n,t,i){this.delegate.removeAttribute(n,t,i)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,i,r){this.delegate.setStyle(n,t,i,r)}removeStyle(n,t,i){this.delegate.removeStyle(n,t,i)}setProperty(n,t,i){"@"==t.charAt(0)&&t==MI?this.disableAnimations(n,!!i):this.delegate.setProperty(n,t,i)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,i){return this.delegate.listen(n,t,i)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class ZG extends SI{constructor(n,t,i,r,o){super(t,i,r,o),this.factory=n,this.namespaceId=t}setProperty(n,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==MI?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,t.slice(1),i):this.delegate.setProperty(n,t,i)}listen(n,t,i){if("@"==t.charAt(0)){const r=function QG(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function JG(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,t,i)}}let XG=(()=>{class e extends Sp{constructor(t,i,r,o){super(t.body,i,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||e)(N(yt),N(sb),N(_b),N(Xr))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();const TI=[{provide:Gk,useClass:zG},{provide:_b,useFactory:function ez(){return new vG}},{provide:Sp,useClass:XG},{provide:ds,useFactory:function tz(e,n,t){return new KG(e,n,t)},deps:[Tv,Sp,ke]}],Mb=[{provide:sb,useFactory:()=>new GG},{provide:LD,useValue:"BrowserAnimations"},...TI],OI=[{provide:sb,useClass:tI},{provide:LD,useValue:"NoopAnimations"},...TI];let nz=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?OI:Mb}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({providers:Mb,imports:[LE]})}return e})();function Op(...e){const n=Vl(e),t=sh(e),{args:i,keys:r}=jE(e);if(0===i.length)return sn([],n);const o=new W(function rz(e,n,t=ee){return i=>{EI(n,()=>{const{length:r}=e,o=new Array(r);let s=r,a=r;for(let c=0;c<r;c++)EI(n,()=>{const l=sn(e[c],n);let d=!1;l.subscribe($e(i,u=>{o[c]=u,d||(d=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}
1))},i)},i)}}(i,n,r?s=>$E(r,s):ee));return t?o.pipe(Iv(t)):o}function EI(e,n,t){e?So(t,e,n):n()}const Ep=si(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function ou(...e){return function oz(){return Ua(1)}()(sn(e,Vl(e)))}function kI(e){return new W(n=>{rn(e()).subscribe(n)})}function Gc(e,n){const t=Pe(e)?e:()=>e,i=r=>r.error(t());return new W(n?r=>n.schedule(i,0,r):i)}function Sb(){return ot((e,n)=>{let t=null;e._refCount++;const i=$e(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class II extends W{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,zi(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Qe;const t=this.getSubject();n.add(this.source.subscribe($e(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Qe.EMPTY)}return n}refCount(){return Sb()(this)}}function Ut(e){return e<=0?()=>ai:ot((n,t)=>{let i=0;n.subscribe($e(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function Ge(e,n){return ot((t,i)=>{let r=0;t.subscribe($e(i,o=>e.call(n,o,r++)&&i.next(o)))})}function kp(e){return ot((n,t)=>{let i=!1;n.subscribe($e(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function PI(e=sz){return ot((n,t)=>{let i=!1;n.subscribe($e(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function sz(){return new Ep}function sa(e,n){const t=arguments.length>=2;return i=>i.pipe(e?Ge((r,o)=>e(r,o,i)):ee,Ut(1),t?kp(n):PI(()=>new Ep))}
1function zc(e,n){return Pe(n)?on(e,n,1):on(e,1)}function Cn(e,n,t){const i=Pe(e)||n||t?{next:e,error:n,complete:t}:e;return i?ot((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe($e(o,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),o.next(c)},()=>{var c;a=!1,null===(c=i.complete)||void 0===c||c.call(i),o.complete()},c=>{var l;a=!1,null===(l=i.error)||void 0===l||l.call(i,c),o.error(c)},()=>{var c,l;a&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):ee}function no(e){return ot((n,t)=>{let o,i=null,r=!1;i=n.subscribe($e(t,void 0,void 0,s=>{o=rn(e(s,no(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function NI(e,n){return ot(function az(e,n,t,i,r){return(o,s)=>{let a=t,c=n,l=0;o.subscribe($e(s,d=>{const u=l++;c=a?e(c,d,u):(a=!0,d),i&&s.next(c)},r&&(()=>{a&&s.next(c),s.complete()})))}}(e,n,arguments.length>=2,!0))}function Tb(e){return e<=0?()=>ai:ot((n,t)=>{let i=[];n.subscribe($e(t,r=>{i.push(r),e<i.length&&i.shift()},()=>{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function su(e){return ot((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function wt(e){return ot((n,t)=>{rn(e).subscribe($e(t,()=>t.complete(),Hr)),!t.closed&&n.subscribe(t)})}const Oe="primary",au=Symbol("RouteTitle");class lz{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 Wc(e){return new lz(e)}function dz(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.length<e.length))return null;const r={};for(let o=0;o<i.length;o++){const s=i[o],a=e[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function io(e,n){const t=e?Object.keys(e):void 0,i=n?Object.keys(n):void 0;if(!t||!i||t.length!=i.length)return!1;let r;for(let o=0;o<t.length;o++)if(r=t[o],!RI(e[r],n[r]))return!1;return!0}function RI(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;const t=[...e].sort(),i=[...n].sort();return t.every((r,o)=>i[o]===r)}return e===n}function LI(e){return e.length>0?e[e.length-1]:null}function Ds(e){return function iz(e){return!!e&&(e instanceof W||Pe(e.lift)&&Pe(e.subscribe))}(e)?e:Ed(e)?sn(Promise.resolve(e)):le(e)}const hz={exact:function BI(e,n,t){if(!aa(e.segments,n.segments)||!Ip(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!BI(e.children[i],n.children[i],t))return!1;return!0},subset:HI},FI={exact:function fz(e,n){return io(e,n)},subset:function pz(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>RI(e[t],n[t]))},ignored:()=>!0};function VI(e,n,t){return hz[t.paths](e.root,n.root,t.matrixParams)&&FI[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function HI(e,n,t){return jI(e,n,n.segments,t)}function jI(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!aa(r,t)||n.hasChildren()||!Ip(r,t,i))}if(e.segments.length===t.length){if(!aa(e.segments,t)||!Ip(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!HI(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(aa(e.segments,r)&&Ip(e.segments,r,i)&&e.children[Oe])&&jI(e.children[Oe],n,o,i)}}function Ip(e,n,t){return n.every((i,r)=>FI[t](e[r].parameters,i.parameters))}class qc{constructor(n=new ct([],{}),t={},i=null){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Wc(this.queryParams)),this._queryParamMap}toString(){return _z.serialize(this)}}class ct{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(i=>
1i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xp(this)}}class cu{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Wc(this.parameters)),this._parameterMap}toString(){return UI(this)}}function aa(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let lu=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:function(){return new Ob},providedIn:"root"})}return e})();class Ob{parse(n){const t=new Ez(n);return new qc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${du(n.root,!0)}`,i=function bz(e){const n=Object.keys(e).map(t=>{const i=e[t];return Array.isArray(i)?i.map(r=>`${Pp(t)}=${Pp(r)}`).join("&"):`${Pp(t)}=${Pp(i)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function yz(e){return encodeURI(e)}(n.fragment)}`:""}`}}const _z=new Ob;function xp(e){return e.segments.map(n=>UI(n)).join("/")}function du(e,n){if(!e.hasChildren())return xp(e);if(n){const t=e.children[Oe]?du(e.children[Oe],!1):"",i=[];return Object.entries(e.children).forEach(([r,o])=>{r!==Oe&&i.push(`${r}:${du(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function mz(e,n){let t=[];return Object.entries(e.children).forEach(([i,r])=>{i===Oe&&(t=t.concat(n(r,i)))}),Object.entries(e.children).forEach(([i,r])=>{i!==Oe&&(t=t.concat(n(r,i)))}),t}(e,(i,r)=>r===Oe?[du(e.children[Oe],!1)]:[`${r}:${du(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Oe]?`${xp(e)}/${t[0]}`:`${xp(e)}/(${t.join("//")})`}}function $I(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Pp(e){return $I(e).replace(/%3B/gi,";")}function Eb(e){return $I(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Np(e){return decodeURIComponent(e)}function YI(e){return Np(e.replace(/\+/g,"%20"))}function UI(e){return`${Eb(e.path)}${function vz(e){return Object.keys(e).map(n=>`;${Eb(n)}=${Eb(e[n])}`).join("")}(e.parameters)}`}const Cz=/^[^\/()?;#]+/;function kb(e){const n=e.match(Cz);return n?n[0]:""}const wz=/^[^\/()?;=#]+/,Mz=/^[^=?&#]+/,Tz=/^[^&#]+/;class Ez{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ct([],{}):new ct([],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 i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[Oe]=new ct(n,t)),i}parseSegment(){const n=kb(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(n),new cu(Np(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function Dz(e){const n=e.match(wz);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=kb(this.remaining);r&&(i=r,this.capture(i))}n[Np(t)]=Np(i)}parseQueryParam(n){const t=function Sz(e){const n=e.match(Mz);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function Oz(e){const n=e.match(Tz);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=YI(t),o=YI(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=kb(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new E(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Oe);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[Oe]:new ct([],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 E(4011,!1)}}function GI(e){return e.segments.length>0?new ct([],{[Oe]:e}):e}function zI(e){const n={};for(const i of Object.keys(e.children)){const o=zI(e.children[i]);if(i===Oe&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function kz(e){if(1===e.numberOfChildren&&e.children[Oe]){const n=e.children[Oe];return new ct(e.segments.concat(n.segments),n.children)}return e}(new ct(e.segments,n))}function ca(e){return e instanceof qc}function WI(e){let n;const r=GI(function t(o){const s={};for(const c of o.children){const l=t(c);
1s[c.outlet]=l}const a=new ct(o.url,s);return o===e&&(n=a),a}(e.root));return n??r}function qI(e,n,t,i){let r=e;for(;r.parent;)r=r.parent;if(0===n.length)return Ib(r,r,r,t,i);const o=function xz(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ZI(!0,0,e);let n=0,t=!1;const i=e.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?t=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new ZI(t,n,i)}(n);if(o.toRoot())return Ib(r,r,new ct([],{}),t,i);const s=function Pz(e,n,t){if(e.isAbsolute)return new Rp(n,!0,0);if(!t)return new Rp(n,!1,NaN);if(null===t.parent)return new Rp(t,!0,0);const i=Ap(e.commands[0])?0:1;return function Nz(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new E(4005,!1);r=i.segments.length}return new Rp(i,!1,r-o)}(t,t.segments.length-1+i,e.numberOfDoubleDots)}(o,r,e),a=s.processChildren?hu(s.segmentGroup,s.index,o.commands):QI(s.segmentGroup,s.index,o.commands);return Ib(r,s.segmentGroup,a,t,i)}function Ap(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function uu(e){return"object"==typeof e&&null!=e&&e.outlets}function Ib(e,n,t,i,r){let s,o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`}),s=e===n?t:KI(e,n,t);const a=GI(zI(s));return new qc(a,o,r)}function KI(e,n,t){const i={};return Object.entries(e.children).forEach(([r,o])=>{i[r]=o===n?t:KI(o,n,t)}),new ct(e.segments,i)}class ZI{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&Ap(i[0]))throw new E(4003,!1);const r=i.find(uu);if(r&&r!==LI(i))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Rp{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function QI(e,n,t){if(e||(e=new ct([],{})),0===e.segments.length&&e.hasChildren())return hu(e,n,t);const i=function Rz(e,n,t){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=t.length)return o;const s=e.segments[r],a=t[i];if(uu(a))break;const c=`${a}`,l=i<t.length-1?t[i+1]:null;if(r>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!XI(c,l,s))return o;i+=2}else{if(!XI(c,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const o=new ct(e.segments.slice(0,i.pathIndex),{});return o.children[Oe]=new ct(e.segments.slice(i.pathIndex),e.children),hu(o,0,r)}return i.match&&0===r.length?new ct(e.segments,{}):i.match&&!e.hasChildren()?xb(e,n,t):i.match?hu(e,0,r):xb(e,n,t)}function hu(e,n,t){if(0===t.length)return new ct(e.segments,{});{const i=function Az(e){return uu(e[0])?e[0].outlets:{[Oe]:e}}(t),r={};if(Object.keys(i).some(o=>o!==Oe)&&e.children[Oe]&&1===e.numberOfChildren&&0===e.children[Oe].segments.length){const o=hu(e.children[Oe],n,t);return new ct(e.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=QI(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new ct(e.segments,r)}}function xb(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r<t.length;){const o=t[r];if(uu(o)){const c=Lz(o.outlets);return new ct(i,c)}if(0===r&&Ap(t[0])){i.push(new cu(e.segments[n].path,JI(t[0]))),r++;continue}const s=uu(o)?o.outlets[Oe]:`${o}`,a=r<t.length-1?t[r+1]:null;s&&a&&Ap(a)?(i.push(new cu(s,JI(a))),r+=2):(i.push(new cu(s,{})),r++)}return new ct(i,{})}function Lz(e){const n={};return Object.entries(e).forEach(([t,i])=>{"string"==typeof i&&(i=[i]),null!==i&&(n[t]=xb(new ct([],{}),0,i))}),n}function JI(e){const n={};return Object.entries(e).forEach(([t,i])=>n[t]=`${i}`),n}function XI(e,n,t){return e==t.path&&io(n,t.parameters)}const fu="imperative";class ro{constructor(n,t){this.id=n,this.url=t}}class Lp extends ro{constructor(n,t,i="imperative",r=null){super(n,t),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ms extends ro{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class pu extends ro{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Kc extends ro{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=16}}class Fp extends ro{constructor(n,t,i,r){super(n,t),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ex extends ro{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fz extends ro{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Vz extends ro{constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Bz extends ro{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hz extends ro{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jz{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $z{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Yz{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Uz{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gz{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zz{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tx{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Pb{}class Nb{constructor(n){this.url=n}}class Wz{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new gu,this.attachRef=null}}let gu=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);
1return i||(i=new Wz,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class nx{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=Ab(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Ab(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Rb(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Rb(n,this._root).map(t=>t.value)}}function Ab(e,n){if(e===n.value)return n;for(const t of n.children){const i=Ab(e,t);if(i)return i}return null}function Rb(e,n){if(e===n.value)return[n];for(const t of n.children){const i=Rb(e,t);if(i.length)return i.unshift(n),i}return[]}class jo{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Zc(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class ix extends nx{constructor(n,t){super(n),this.snapshot=t,Lb(this,n)}toString(){return this.snapshot.toString()}}function rx(e,n){const t=function qz(e,n){const s=new Vp([],{},{},"",{},Oe,n,null,{});return new sx("",new jo(s,[]))}(0,n),i=new Ot([new cu("",{})]),r=new Ot({}),o=new Ot({}),s=new Ot({}),a=new Ot(""),c=new oo(i,r,s,a,o,Oe,n,t.root);return c.snapshot=t.root,new ix(new jo(c,[]),t)}class oo{constructor(n,t,i,r,o,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(se(l=>l[au]))??le(void 0),this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(se(n=>Wc(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(se(n=>Wc(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ox(e,n="emptyOnly"){const t=e.pathFromRoot;let i=0;if("always"!==n)for(i=t.length-1;i>=1;){const r=t[i],o=t[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function Kz(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(i))}class Vp{get title(){return this.data?.[au]}constructor(n,t,i,r,o,s,a,c,l){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}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=Wc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Wc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class sx extends nx{constructor(n,t){super(t),this.url=n,Lb(this,t)}toString(){return ax(this._root)}}function Lb(e,n){n.value._routerState=e,n.children.forEach(t=>Lb(e,t))}function ax(e){const n=e.children.length>0?` { ${e.children.map(ax).join(", ")} } `:"";return`${e.value}${n}`}function Fb(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,io(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),io(n.params,t.params)||e.paramsSubject.next(t.params),function uz(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!io(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.urlSubject.next(t.url),io(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Vb(e,n){const t=io(e.params,n.params)&&function gz(e,n){return aa(e,n)&&e.every((t,i)=>io(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Vb(e.parent,n.parent))}let Bp=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Oe,this.activateEvents=new H,this.deactivateEvents=new H,this.attachEvents=new H,this.detachEvents=new H,this.parentContexts=$(gu),this.location=$(ti),this.changeDetector=$(Bn),this.environmentInjector=$(Jn),this.inputBinder=$(Hp,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:i,previousValue:r}=t.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=t;
1const r=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Zz(t,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=j({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Et]})}return e})();class Zz{constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i}get(n,t){return n===oo?this.route:n===gu?this.childContexts:this.parent.get(n,t)}}const Hp=new K("");let cx=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:i}=t,r=Op([i.queryParams,i.params,i.data]).pipe(Wi(([o,s,a],c)=>(a={...o,...s,...a},0===c?le(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(t);const s=function $Y(e){const n=Ye(e);if(!n)return null;const t=new wd(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,r)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();function mu(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function Jz(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return mu(e,i,r);return mu(e,i)})}(e,n,t);return new jo(i,r)}{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=>mu(e,a)),s}}const i=function Xz(e){return new oo(new Ot(e.url),new Ot(e.params),new Ot(e.queryParams),new Ot(e.fragment),new Ot(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(o=>mu(e,o));return new jo(i,r)}}const Bb="ngNavigationCancelingError";function lx(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=ca(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=dx(!1,0,n);return r.url=t,r.navigationBehaviorOptions=i,r}function dx(e,n,t){const i=new Error("NavigationCancelingError: "+(e||""));return i[Bb]=!0,i.cancellationCode=n,t&&(i.url=t),i}function ux(e){return e&&e[Bb]}let hx=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["ng-component"]],standalone:!0,features:[In],decls:1,vars:0,template:function(i,r){1&i&&Z(0,"router-outlet")},dependencies:[Bp],encapsulation:2})}return e})();function Hb(e){const n=e.children&&e.children.map(Hb),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Oe&&(t.component=hx),t}function xr(e){return e.outlet||Oe}function _u(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class aW{constructor(n,t,i,r,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),Fb(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=Zc(t);
1n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=Zc(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=Zc(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,t,i){const r=Zc(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new zz(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Uz(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(Fb(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),Fb(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=_u(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class fx{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class jp{constructor(n,t){this.component=n,this.route=t}}function cW(e,n,t){const i=e._root;return yu(i,n?n._root:null,t,[i.value])}function Qc(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function cL(e){return null!==lh(e)}(e)?n.get(e):e:i}function yu(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Zc(n);return e.children.forEach(s=>{(function dW(e,n,t,i,r={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 c=function uW(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!aa(e.url,n.url);case"pathParamsOrQueryParamsChange":return!aa(e.url,n.url)||!io(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Vb(e,n)||!io(e.queryParams,n.queryParams);default:return!Vb(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new fx(i)):(o.data=s.data,o._resolvedData=s._resolvedData),yu(e,n,o.component?a?a.children:null:t,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new jp(a.outlet.component,s))}else s&&vu(n,a,r),r.canActivateChecks.push(new fx(i)),yu(e,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>vu(a,t.getContext(s),r)),r}function vu(e,n,t){const i=Zc(e),r=e.value;Object.entries(i).forEach(([o,s])=>{vu(s,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new jp(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function bu(e){return"function"==typeof e}function px(e){return e instanceof Ep||"EmptyError"===e?.name}const $p=Symbol("INITIAL_VALUE");
1function Jc(){return Wi(e=>Op(e.map(n=>n.pipe(Ut(1),function xI(...e){const n=Vl(e);return ot((t,i)=>{(n?ou(e,t,n):ou(e,t)).subscribe(i)})}($p)))).pipe(se(n=>{for(const t of n)if(!0!==t){if(t===$p)return $p;if(!1===t||t instanceof qc)return t}return!0}),Ge(n=>n!==$p),Ut(1)))}function gx(e){return function Q(...e){return _e(e)}(Cn(n=>{if(ca(n))throw lx(0,n)}),se(n=>!0===n))}class Yp{constructor(n){this.segmentGroup=n||null}}class mx{constructor(n){this.urlTree=n}}function Xc(e){return Gc(new Yp(e))}function _x(e){return Gc(new mx(e))}class xW{constructor(n,t){this.urlSerializer=n,this.urlTree=t}noMatchError(n){return new E(4002,!1)}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return le(i);if(r.numberOfChildren>1||!r.children[Oe])return Gc(new E(4e3,!1));r=r.children[Oe]}}applyRedirectCommands(n,t,i){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i)}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new qc(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=t[a]}else i[r]=o}),i}createSegmentGroup(n,t,i,r){const o=this.createSegments(n,t.segments,i,r);let s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,i,r)}),new ct(o,s)}createSegments(n,t,i,r){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new E(4001,!1);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}}const jb={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function PW(e,n,t,i,r){const o=$b(e,n,t);return o.matched?(i=function tW(e,n){return e.providers&&!e._injector&&(e._injector=Dy(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,i),function EW(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?le(r.map(s=>{const a=Qc(s,e);return Ds(function _W(e){return e&&bu(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(Jc(),gx()):le(!0)}(i,n,t).pipe(se(s=>!0===s?o:{...jb}))):le(o)}function $b(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...jb}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||dz)(t,e,n);if(!r)return{...jb};const o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function yx(e,n,t,i){return t.length>0&&function RW(e,n,t){return t.some(i=>Up(e,n,i)&&xr(i)!==Oe)}(e,t,i)?{segmentGroup:new ct(n,AW(i,new ct(t,e.children))),slicedSegments:[]}:0===t.length&&function LW(e,n,t){return t.some(i=>Up(e,n,i))}(e,t,i)?{segmentGroup:new ct(e.segments,NW(e,0,t,i,e.children)),slicedSegments:t}:{segmentGroup:new ct(e.segments,e.children),slicedSegments:t}}function NW(e,n,t,i,r){const o={};for(const s of i)if(Up(e,t,s)&&!r[xr(s)]){const a=new ct([],{});o[xr(s)]=a}return{...r,...o}}function AW(e,n){const t={};t[Oe]=n;for(const i of e)if(""===i.path&&xr(i)!==Oe){const r=new ct([],{});t[xr(i)]=r}return t}function Up(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class HW{constructor(n,t,i,r,o,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new xW(this.urlSerializer,this.urlTree)}noMatchError(n){return new E(4002,!1)}recognize(){const n=yx(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Oe).pipe(no(t=>{if(t instanceof mx)return this.allowRedirects=!1,this.urlTree=t.urlTree,this.match(t.urlTree);throw t instanceof Yp?this.noMatchError(t):t}),se(t=>{const i=new Vp([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Oe,this.rootComponentType,null,{}),r=new jo(i,t),o=new sx("",r),s=function Iz(e,n,t=null,i=null){return qI(WI(e),n,t,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,Oe).pipe(no(i=>{throw i instanceof Yp?this.noMatchError(i):i}))}inheritParamsAndData(n){const t=n.value,i=ox(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),n.children.forEac
1h(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i):this.processSegment(n,t,i,i.segments,r,!0)}processChildren(n,t,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return sn(r).pipe(zc(o=>{const s=i.children[o],a=function oW(e,n){const t=e.filter(i=>xr(i)===n);return t.push(...e.filter(i=>xr(i)!==n)),t}(t,o);return this.processSegmentGroup(n,a,s,o)}),NI((o,s)=>(o.push(...s),o)),kp(null),function cz(e,n){const t=arguments.length>=2;return i=>i.pipe(e?Ge((r,o)=>e(r,o,i)):ee,Tb(1),t?kp(n):PI(()=>new Ep))}(),on(o=>{if(null===o)return Xc(i);const s=vx(o);return function jW(e){e.sort((n,t)=>n.value.outlet===Oe?-1:t.value.outlet===Oe?1:n.value.outlet.localeCompare(t.value.outlet))}(s),le(s)}))}processSegment(n,t,i,r,o,s){return sn(t).pipe(zc(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,i,r,o,s).pipe(no(c=>{if(c instanceof Yp)return le(null);throw c}))),sa(a=>!!a),no(a=>{if(px(a))return function VW(e,n,t){return 0===n.length&&!e.children[t]}(i,r,o)?le([]):Xc(i);throw a}))}processSegmentAgainstRoute(n,t,i,r,o,s,a){return function FW(e,n,t,i){return!!(xr(e)===i||i!==Oe&&Up(n,t,e))&&("**"===e.path||$b(n,e,t).matched)}(i,r,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,r,t,i,o,s):Xc(r):Xc(r)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,i,r){const o=this.applyRedirects.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?_x(o):this.applyRedirects.lineralizeSegments(i,o).pipe(on(s=>{const a=new ct(s,{});return this.processSegment(n,t,a,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s){const{matched:a,consumedSegments:c,remainingSegments:l,positionalParamSegments:d}=$b(t,r,o);if(!a)return Xc(t);const u=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?_x(u):this.applyRedirects.lineralizeSegments(r,u).pipe(on(h=>this.processSegment(n,i,t,h.concat(l),s,!1)))}matchSegmentAgainstRoute(n,t,i,r,o,s){let a;if("**"===i.path){const c=r.length>0?LI(r).parameters:{};a=le({snapshot:new Vp(r,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bx(i),xr(i),i.component??i._loadedComponent??null,i,Cx(i)),consumedSegments:[],remainingSegments:[]}),t.children={}}else a=PW(t,i,r,n).pipe(se(({matched:c,consumedSegments:l,remainingSegments:d,parameters:u})=>c?{snapshot:new Vp(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bx(i),xr(i),i.component??i._loadedComponent??null,i,Cx(i)),consumedSegments:l,remainingSegments:d}:null));return a.pipe(Wi(c=>null===c?Xc(t):this.getChildConfig(n=i._injector??n,i,r).pipe(Wi(({routes:l})=>{const d=i._loadedInjector??n,{snapshot:u,consumedSegments:h,remainingSegments:f}=c,{segmentGroup:g,slicedSegments:b}=yx(t,h,f,l);if(0===b.length&&g.hasChildren())return this.processChildren(d,l,g).pipe(se(S=>null===S?null:[new jo(u,S)]));if(0===l.length&&0===b.length)return le([new jo(u,[])]);const w=xr(i)===o;return this.processSegment(d,l,g,b,w?Oe:o,!0).pipe(se(S=>[new jo(u,S)]))}))))}getChildConfig(n,t,i){return t.children?le({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?le({routes:t._loadedRoutes,injector:t._loadedInjector}):function OW(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?le(!0):le(r.map(s=>{const a=Qc(s,e);return Ds(function fW(e){return e&&bu(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(Jc(),gx())}(n,t,i).pipe(on(r=>r?this.configLoader.loadChildren(n,t).pipe(Cn(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function IW(e){return Gc(dx(!1,3))}())):le({routes:[],injector:n})}}function $W(e){const n=e.value.routeConfig;return n&&""===n.path}function vx(e){const n=[],t=new Set;for(const i of e){if(!$W(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=vx(i.children);n.push(new jo(i.value,r))}return n.filter(i=>!t.has(i))}function bx(e){return e.data||{}}function Cx(e){return e.resolve||{}}function UW(e,n){return on(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return le(t);let o=0;return sn(r).pipe(zc(s=>function GW(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!wx(r)&&(o[au]=r.title),function zW(e,n,t,i){const r=function WW(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return le({});const o={};return sn(r).pipe(on(s=>function qW(e,n,t,i){const r=_u(n)??i,o=Qc(e,r);return Ds(o.resolve?o.resolve(n,t):r.runInContext(()=>o(n,t)))}(e[s],n,t,i).pipe(sa(),Cn(a=>{o[s]=a}))),Tb(1),function AI(e){return se(()=>e)}(o),no(s=>px(s)?ai:Gc(s)))}(o,e,n,i).pipe(se(s=>(e._resolvedData=s,e.data=ox(e,t).resolve,r&&wx(r)&&(e.data[au]=r.title),null)))}
1(s.route,i,e,n)),Cn(()=>o++),Tb(1),on(s=>o===r.length?le(t):ai))})}function wx(e){return"string"==typeof e.title||null===e.title}function Yb(e){return Wi(n=>{const t=e(n);return t?sn(t).pipe(se(()=>n)):le(n)})}const el=new K("ROUTES");let Ub=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=$(fO)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return le(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=Ds(t.loadComponent()).pipe(se(Dx),Cn(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),su(()=>{this.componentLoaders.delete(t)})),r=new II(i,()=>new fe).pipe(Sb());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return le({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function KW(e,n,t,i){return Ds(e.loadChildren()).pipe(se(Dx),on(r=>r instanceof wT||Array.isArray(r)?le(r):sn(n.compileModuleAsync(r))),se(r=>{i&&i(e);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(t).injector,s=o.get(el,[],{optional:!0,self:!0}).flat()),{routes:s.map(Hb),injector:o}}))}(i,this.compiler,t,this.onLoadEndListener).pipe(su(()=>{this.childrenLoaders.delete(i)})),s=new II(o,()=>new fe).pipe(Sb());return this.childrenLoaders.set(i,s),s}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Dx(e){return function ZW(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Gp=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new fe,this.transitionAbortSubject=new fe,this.configLoader=$(Ub),this.environmentInjector=$(Jn),this.urlSerializer=$(lu),this.rootContexts=$(gu),this.inputBindingEnabled=null!==$(Hp,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>le(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new $z(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new jz(r))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:i})}setupNavigations(t,i,r){return this.transitions=new Ot({id:0,currentUrlTree:i,currentRawUrl:i,currentBrowserUrl:i,extractedUrl:t.urlHandlingStrategy.extract(i),urlAfterRedirects:t.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:fu,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ge(o=>0!==o.id),se(o=>({...o,extractedUrl:t.urlHandlingStrategy.extract(o.rawUrl)})),Wi(o=>{this.currentTransition=o;let s=!1,a=!1;return le(o).pipe(Cn(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Wi(c=>{const l=c.currentBrowserUrl.toString(),d=!t.navigated||c.extractedUrl.toString()!==l||l!==c.currentUrlTree.toString();if(!d&&"reload"!==(c.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const h="";return this.events.next(new Kc(c.id,this.urlSerializer.serialize(c.rawUrl),h,0)),c.resolve(null),ai}if(t.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return le(c).pipe(Wi(h=>{const f=this.transitions?.getValue();return this.events.next(new Lp(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?ai:Promise.resolve(h)}),function YW(e,n,t,i,r,o){return on(s=>function BW(e,n,t,i,r,o,s="emptyOnly"){return new HW(e,n,t,i,r,s,o).recognize()}(e,n,t,i,s.extractedUrl,r,o).pipe(se(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Cn(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects};const f=new ex(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(d&&t.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:h,extractedUrl:f,source:g,restoredState:b,extras:w}=c,S=new Lp(h,this.urlSerializer.serialize(f),g,b);this.events.next(S);const D=rx(0,this.rootComponentType).snapshot;return this.currentTransition=o={...c,targetSnapshot:D,urlAfterRedirects:f,extras:{...w,skipLocationChange:!1,replaceUrl:!1}},le(o)}{const h="";return this.events.next(new Kc(c.id,this.urlSerializer.serialize(c.extractedUrl),h,1)),c.resolve(null),ai}}),Cn(c=>{const l=new Fz(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}
1),se(c=>(this.currentTransition=o={...c,guards:cW(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},o)),function vW(e,n){return on(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?le({...t,guardsResult:!0}):function bW(e,n,t,i){return sn(e).pipe(on(r=>function TW(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?le(o.map(a=>{const c=_u(n)??r,l=Qc(a,c);return Ds(function mW(e){return e&&bu(e.canDeactivate)}(l)?l.canDeactivate(e,n,t,i):c.runInContext(()=>l(e,n,t,i))).pipe(sa())})).pipe(Jc()):le(!0)}(r.component,r.route,t,n,i)),sa(r=>!0!==r,!0))}(s,i,r,e).pipe(on(a=>a&&function hW(e){return"boolean"==typeof e}(a)?function CW(e,n,t,i){return sn(n).pipe(zc(r=>ou(function DW(e,n){return null!==e&&n&&n(new Yz(e)),le(!0)}(r.route.parent,i),function wW(e,n){return null!==e&&n&&n(new Gz(e)),le(!0)}(r.route,i),function SW(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function lW(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=>kI(()=>le(s.guards.map(c=>{const l=_u(s.node)??t,d=Qc(c,l);return Ds(function gW(e){return e&&bu(e.canActivateChild)}(d)?d.canActivateChild(i,e):l.runInContext(()=>d(i,e))).pipe(sa())})).pipe(Jc())));return le(o).pipe(Jc())}(e,r.path,t),function MW(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return le(!0);const r=i.map(o=>kI(()=>{const s=_u(n)??t,a=Qc(o,s);return Ds(function pW(e){return e&&bu(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(sa())}));return le(r).pipe(Jc())}(e,r.route,t))),sa(r=>!0!==r,!0))}(i,o,e,n):le(a)),se(a=>({...t,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Cn(c=>{if(o.guardsResult=c.guardsResult,ca(c.guardsResult))throw lx(0,c.guardsResult);const l=new Vz(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),Ge(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",3),!1)),Yb(c=>{if(c.guards.canActivateChecks.length)return le(c).pipe(Cn(l=>{const d=new Bz(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),Wi(l=>{let d=!1;return le(l).pipe(UW(t.paramsInheritanceStrategy,this.environmentInjector),Cn({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",2)}}))}),Cn(l=>{const d=new Hz(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Yb(c=>{const l=d=>{const u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(Cn(h=>{d.component=h}),se(()=>{})));for(const h of d.children)u.push(...l(h));return u};return Op(l(c.targetSnapshot.root)).pipe(kp(),Ut(1))}),Yb(()=>this.afterPreactivation()),se(c=>{const l=function Qz(e,n,t){const i=mu(e,n._root,t?t._root:void 0);return new ix(i,n)}(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o={...c,targetRouterState:l},o}),Cn(()=>{this.events.next(new Pb)}),((e,n,t,i)=>se(r=>(new aW(n,r.targetRouterState,r.currentRouterState,t,i).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Ut(1),Cn({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ms(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),t.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),wt(this.transitionAbortSubject.pipe(Cn(c=>{throw c}))),su(()=>{s||a||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),no(c=>{if(a=!0,ux(c))this.events.next(new pu(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),function eW(e){return ux(e)&&ca(e.url)}(c)?this.events.next(new Nb(c.url)):o.resolve(!1);else{this.events.next(new Fp(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(t.errorHandler(c))}catch(l){o.reject(l)}}return ai}))}))}cancelNavigationTransition(t,i,r){const o=new pu(t.id,this.urlSerializer.serialize(t.extractedUrl),i,r);this.events.next(o),t.resolve(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Mx(e){return e!==fu}let Sx=(()=>{class e{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Oe);return i}getResolvedTitleForRoute(t){return t.data[au]}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:function(){return $(QW)},providedIn:"root"})}return e})(),QW=(()=>{class e extends Sx{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||e)(N(FE))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),JW=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:function(){return $(e9)},providedIn:"root"})}return e})();class XW{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}
1shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let e9=(()=>{class e extends XW{static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Lt(e)))(r||e)}}();static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const zp=new K("",{providedIn:"root",factory:()=>({})});let t9=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:function(){return $(n9)},providedIn:"root"})}return e})(),n9=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Cu=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Cu||{});function Tx(e,n){e.events.pipe(Ge(t=>t instanceof Ms||t instanceof pu||t instanceof Fp||t instanceof Kc),se(t=>t instanceof Ms||t instanceof Kc?Cu.COMPLETE:t instanceof pu&&(0===t.code||1===t.code)?Cu.REDIRECTING:Cu.FAILED),Ge(t=>t!==Cu.REDIRECTING),Ut(1)).subscribe(()=>{n()})}function i9(e){throw e}function r9(e,n,t){return n.parse("/")}const o9={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},s9={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Jt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=$(hO),this.isNgZoneEnabled=!1,this._events=new fe,this.options=$(zp,{optional:!0})||{},this.pendingTasks=$(Pf),this.errorHandler=this.options.errorHandler||i9,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||r9,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=$(t9),this.routeReuseStrategy=$(JW),this.titleStrategy=$(Sx),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=$(el,{optional:!0})?.flat()??[],this.navigationTransitions=$(Gp),this.urlSerializer=$(lu),this.location=$(nv),this.componentInputBindingEnabled=!!$(Hp,{optional:!0}),this.eventsSubscription=new Qe,this.isNgZoneEnabled=$(ke)instanceof ke&&ke.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new qc,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=rx(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(i=>{try{const{currentTransition:r}=this.navigationTransitions;if(null===r)return void(Ox(i)&&this._events.next(i));if(i instanceof Lp)Mx(r.source)&&(this.browserUrlTree=r.extractedUrl);else if(i instanceof Kc)this.rawUrlTree=r.rawUrl;else if(i instanceof ex){if("eager"===this.urlUpdateStrategy){if(!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl);this.setBrowserUrl(o,r)}this.browserUrlTree=r.urlAfterRedirects}}else if(i instanceof Pb)this.currentUrlTree=r.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r),this.browserUrlTree=r.urlAfterRedirects);else if(i instanceof pu)0!==i.code&&1!==i.code&&(this.navigated=!0),(3===i.code||2===i.code)&&this.restoreHistory(r);else if(i instanceof Nb){const o=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),s={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Mx(r.source)};this.scheduleNavigation(o,fu,null,s,{resolve:r.resolve,reject:r.reject,promise:r.promise})}i instanceof Fp&&this.restoreHistory(r,!0),i instanceof Ms&&(this.navigated=!0),Ox(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),fu,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,i,t.state)},0)}))}navigateToSyncWithBrowser(t,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const a=this.parseUrl(t);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Hb),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s;let u,d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}null!==d&&(d=this.removeEmptyProps(d));try{u=WI(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),u=this.currentUrlTree.root}return qI(u,t,d,l??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=ca(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,fu,null,i)}navigate(t,i={skipLocationChange:!1}){return function a9(e){for(let n=0;n<e.length;n++)if(null==e[n])throw new E(4008,!1)}(t),this.navigateByUrl(this.createUrlTree(t,i),i)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let i;try{i=this.urlSerializer.parse(t)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return i}isActive(t,i){let r;if(r=!0===i?{...o9}:!1===i?{...s9}:i,ca(t))return VI(this.currentUrlTree,t,r);const o=this.parseUrl(t);return VI(this.currentUrlTree,o,r)}removeEmptyProps(t){return Object.keys(t).reduce((i,r)=>{const o=t[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((u,h)=>{a=u,c=h});const d=this.pendingTasks.add();return Tx(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(u=>Promise.reject(u))}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ox(e){return!(e instanceof Pb||e instanceof Nb)}let wu=(()=>{class e{constructor(t,i,r,o,s,a){this.router=t,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new fe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=t.events.subscribe(l=>{l instanceof Ms&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function OD(e,n,t){return function uB(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?TD:Kh}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,t,i):r.removeAttribute(o,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(i){return new(i||e)(_(Jt),_(oo),as("tabindex"),_(It),_(we),_(Js))};static#t=this.\u0275dir=j({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){1&i&&x("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&i&&X("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Vc],skipLocationChange:["skipLocationChange","skipLocationChange",Vc],replaceUrl:["replaceUrl","replaceUrl",Vc],routerLink:"routerLink"},standalone:!0,features:[jM,Et]})}return e})(),Ex=(()=>{class e{get isActive(){return this._isActive}constructor(t,i,r,o,s){this.router=t,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new H,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof Ms&&this.update()})}ngAfterContentInit(){le(this.links.changes,le(null)).pipe(Ua()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=sn(t).pipe(Ua()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(t){const i=Array.isArray(t)?t:t.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const t=this.hasActiveLinks();this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.classes.forEac
1h(i=>{t?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const i=function c9(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&t.isActive(r.urlTree,i)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static#e=this.\u0275fac=function(i){return new(i||e)(_(Jt),_(we),_(It),_(Bn),_(wu,8))};static#t=this.\u0275dir=j({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(1&i&&_t(o,wu,5),2&i){let s;He(s=je())&&(r.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Et]})}return e})();class kx{}let l9=(()=>{class e{constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ge(t=>t instanceof Ms),zc(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=Dy(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return sn(r).pipe(Ua())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):le(null);const o=r.pipe(on(s=>null===s?le(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?sn([o,this.loader.loadComponent(i)]).pipe(Ua()):o})}static#e=this.\u0275fac=function(i){return new(i||e)(N(Jt),N(fO),N(Jn),N(kx),N(Ub))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Gb=new K("");let Ix=(()=>{class e{constructor(t,i,r,o,s={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Lp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ms?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Kc&&0===t.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof tx&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new tx(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){!function pM(){throw new Error("invalid")}()};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();function $o(e,n){return{\u0275kind:e,\u0275providers:n}}function Px(){const e=$(Zt);return n=>{const t=e.get(Xr);if(n!==t.components[0])return;const i=e.get(Jt),r=e.get(Nx);1===e.get(zb)&&i.initialNavigation(),e.get(Ax,null,Ne.Optional)?.setUpPreloading(),e.get(Gb,null,Ne.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const Nx=new K("",{factory:()=>new fe}),zb=new K("",{providedIn:"root",factory:()=>1}),Ax=new K("");function f9(e){return $o(0,[{provide:Ax,useExisting:l9},{provide:kx,useExisting:e}])}const Rx=new K("ROUTER_FORROOT_GUARD"),g9=[nv,{provide:lu,useClass:Ob},Jt,gu,{provide:oo,useFactory:function xx(e){return e.routerState.root},deps:[Jt]},Ub,[]];function m9(){return new bO("Router",Jt)}let Wb=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[g9,[],{provide:el,multi:!0,useValue:t},{provide:Rx,useFactory:b9,deps:[[Jt,new Ph,new Nh]]},{provide:zp,useValue:i||{}},i?.useHash?{provide:Js,useClass:WY}:{provide:Js,useClass:ZO},{provide:Gb,useFactory:()=>{const e=$(a8),n=$(ke),t=$(zp),i=$(Gp),r=$(lu);return t.scrollOffset&&e.setOffset(t.scrollOffset),new Ix(r,i,e,n,t)}},i?.preloadingStrategy?f9(i.preloadingStrategy).\u0275providers:[],{provide:bO,multi:!0,useFactory:m9},i?.initialNavigation?C9(i):[],i?.bindToComponentInputs?$o(8,[cx,{provide:Hp,useExisting:cx}]).\u0275providers:[],[{provide:Lx,useFactory:Px},{provide:Gy,multi:!0,useExisting:Lx}]]}}static forChild(t){return{ngModule:e,providers:[{provide:el,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(i){return new(i||e)(N(Rx,8))};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})();function b9(e){return"guarded"}function C9(e){return["disabled"===e.initialNavigation?$o(3,[{provide:Fy,multi:!0,useFactory:()=>{const n=$(Jt);return()=>{n.setUpLocationChangeListener()}}},{provide:zb,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?$o(2,[{provide:zb,useValue:0},{provide:Fy,multi:!0,deps:[Zt],useFactory:n=>{const t=n.get(GY,Promise.resolve());return()=>t.then(()=>new Promise(i=>{const r=n.get(Jt),o=n.get(Nx);Tx(r,()=>{i(!0)}),n.get(Gp).afterPreactivation=()=>(i(!0),o.closed?le(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const Lx=new K("");function Fx(e,n,t,i,r,o,s){try{var a=e[o](s),c=a.value}catch(l){return void t(l)}a.done?n(c):Promise.resolve(c).then(i,r)}function Vx(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function s(c){Fx(o,i,r,s,a,"next",c)}function a(c){Fx(o,i,r,s,a,"throw",c)}s(void 0)})}}function Yo(e){e||(function af(e){if(!uw()&&!function gL(){return Ga}())throw new E(-203,!1)}(),e=$(wr));const n=new W(t=>e.onDestroy(t.next.bind(t)));return t=>t.pipe(wt(n))}const nl_AUTH="bridge/auth/api/2.0";class Zp{}class Qp{}class sr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),o=r.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEac
1h((t,i)=>{this.setHeaderEntries(i,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,i])=>{this.setHeaderEntries(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 sr?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 sr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof sr?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 i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,t);const r=("a"===n.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);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)}}setHeaderEntries(n,t){const i=(Array.isArray(t)?t:[t]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class B9{encodeKey(n){return Kx(n)}encodeValue(n){return Kx(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const j9=/%(\d[a-f0-9])/gi,$9={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Kx(e){return encodeURIComponent(e).replace(j9,(n,t)=>$9[t]??n)}function Jp(e){return`${e}`}class Ts{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new B9,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function H9(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],c=t.get(s)||[];c.push(a),t.set(s,c)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const i=n.fromObject[t],r=Array.isArray(i)?i.map(Jp):[Jp(i)];this.map.set(t,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Ts({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Jp(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Jp(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class Y9{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}
1keys(){return this.map.keys()}}function Zx(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Qx(e){return typeof Blob<"u"&&e instanceof Blob}function Jx(e){return typeof FormData<"u"&&e instanceof FormData}class Mu{constructor(n,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function U9(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new sr),this.context||(this.context=new Y9),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+s}}else this.params=new Ts,this.urlWithParams=t}serializeBody(){return null===this.body?null:Zx(this.body)||Qx(this.body)||Jx(this.body)||function G9(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ts?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Jx(this.body)?null:Qx(this.body)?this.body.type||null:Zx(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ts?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const t=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,a=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let c=n.headers||this.headers,l=n.params||this.params;const d=n.context??this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((u,h)=>u.set(h,n.setHeaders[h]),c)),n.setParams&&(l=Object.keys(n.setParams).reduce((u,h)=>u.set(h,n.setParams[h]),l)),new Mu(t,i,o,{params:l,headers:c,context:d,reportProgress:a,responseType:r,withCredentials:s})}}var rl=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(rl||{});class Jb{constructor(n,t=200,i="OK"){this.headers=n.headers||new sr,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Xb extends Jb{constructor(n={}){super(n),this.type=rl.ResponseHeader}clone(n={}){return new Xb({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ol extends Jb{constructor(n={}){super(n),this.type=rl.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ol({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Xx extends Jb{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function e0(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let t0=(()=>{class e{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof Mu)o=t;else{let c,l;c=r.headers instanceof sr?r.headers:new sr(r.headers),r.params&&(l=r.params instanceof Ts?r.params:new Ts({fromObject:r.params}
1)),o=new Mu(t,i,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=le(o).pipe(zc(c=>this.handler.handle(c)));if(t instanceof Mu||"events"===r.observe)return s;const a=s.pipe(Ge(c=>c instanceof ol));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(se(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(se(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(se(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(se(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new Ts).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,e0(r,i))}post(t,i,r={}){return this.request("POST",t,e0(r,i))}put(t,i,r={}){return this.request("PUT",t,e0(r,i))}static#e=this.\u0275fac=function(i){return new(i||e)(N(Zp))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();function nP(e,n){return n(e)}function W9(e,n){return(t,i)=>n.intercept(t,{handle:r=>e(r,i)})}const K9=new K(""),Su=new K(""),iP=new K("");function Z9(){let e=null;return(n,t)=>{null===e&&(e=($(K9,{optional:!0})??[]).reduceRight(W9,nP));const i=$(Pf),r=i.add();return e(n,t).pipe(su(()=>i.remove(r)))}}let rP=(()=>{class e extends Zp{constructor(t,i){super(),this.backend=t,this.injector=i,this.chain=null,this.pendingTasks=$(Pf)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Su),...this.injector.get(iP,[])]));this.chain=r.reduceRight((o,s)=>function q9(e,n,t){return(i,r)=>t.runInContext(()=>n(i,o=>e(o,r)))}(o,s,this.injector),nP)}const i=this.pendingTasks.add();return this.chain(t,r=>this.backend.handle(r)).pipe(su(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||e)(N(Qp),N(Jn))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();const e7=/^\)\]\}',?\n/;let sP=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new E(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?sn(i.\u0275loadImpl()):le(null)).pipe(Wi(()=>new W(o=>{const s=i.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((b,w)=>s.setRequestHeader(b,w.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const b=t.detectContentTypeHeader();null!==b&&s.setRequestHeader("Content-Type",b)}if(t.responseType){const b=t.responseType.toLowerCase();s.responseType="json"!==b?b:"text"}const a=t.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const b=s.statusText||"OK",w=new sr(s.getAllResponseHeaders()),S=function t7(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return c=new Xb({headers:w,status:s.status,statusText:b,url:S}),c},d=()=>{let{headers:b,status:w,statusText:S,url:D}=l(),P=null;204!==w&&(P=typeof s.response>"u"?s.responseText:s.response),0===w&&(w=P?200:0);let A=w>=200&&w<300;if("json"===t.responseType&&"string"==typeof P){const Y=P;P=P.replace(e7,"");try{P=""!==P?JSON.parse(P):null}catch(re){P=Y,A&&(A=!1,P={error:re,text:P})}}A?(o.next(new ol({body:P,headers:b,status:w,statusText:S,url:D||void 0})),o.complete()):o.error(new Xx({error:P,headers:b,status:w,statusText:S,url:D||void 0}))},u=b=>{const{url:w}=l(),S=new Xx({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:w||void 0});o.error(S)};let h=!1;const f=b=>{h||(o.next(l()),h=!0);let w={type:rl.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(w.total=b.total),"text"===t.responseType&&s.responseText&&(w.partialText=s.responseText),o.next(w)},g=b=>{let w={type:rl.UploadProgress,loaded:b.loaded};b.lengthComputable&&(w.total=b.total),o.next(w)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),t.reportProgress&&(s.addEventListener("progress",f),null!==a&&s.upload&&s.upload.addEventListener("progress",g)),s.send(a),o.next({type:rl.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),t.reportProgress&&(s.removeEventListener("progress",f),null!==a&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||e)(N(vE))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();const n0=new K("XSRF_ENABLED"),aP=new K("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),cP=new K("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class lP{}let o7=(()=>{class e{constructor(t,i,r){this.doc=t,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=cE(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||e)(N(yt),N(Po),N(aP))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac})}return e})();function s7(e,n){const t=e.url.toLowerCase();if(!$(n0)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const i=$(lP).getToken(),r=$(cP);return null!=i&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,i)}
1)),n(e)}var Os=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Os||{});function a7(...e){const n=[t0,sP,rP,{provide:Zp,useExisting:rP},{provide:Qp,useExisting:sP},{provide:Su,useValue:s7,multi:!0},{provide:n0,useValue:!0},{provide:lP,useClass:o7}];for(const t of e)n.push(...t.\u0275providers);return function w_(e){return{\u0275providers:e}}(n)}const dP=new K("LEGACY_INTERCEPTOR_FN");function c7(){return function la(e,n){return{\u0275kind:e,\u0275providers:n}}(Os.LegacyInterceptors,[{provide:dP,useFactory:Z9},{provide:Su,useExisting:dP,multi:!0}])}let uP=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({providers:[a7(c7())]})}return e})();const eg_featureFlags={},hP=e=>{let n="";if(e)for(const t in e){const r=e[t];n&&r?n+=`&${t}=${r}`:r&&(n+=`?${t}=${r}`)}return n},fP=(e,n,t,i)=>{if("object"==typeof n)for(const r in n)"object"==typeof n[r]?fP(e,n[r],"-",i+t+r):e[i+t+r]=n[r]};let Tu=(()=>{class e{constructor(t){this.http=t,this._baseUrl="https://www.nightsbridge.com"}buildDefaultHeaders(){return new sr({"Content-Type":"application/json"})}handleErrorResponse(t){return 403===t.status?(window.location.href=t.error?.redirecturl??"/unauthorised",ai):404===t.status?(window.location.href="/not-found",ai):Gc(()=>t)}getRequest(t,i){let r="string"==typeof t?t:t.join("/");r=this._baseUrl+"/"+r;const o=hP(i),s=i?r+o:r,a=this.buildDefaultHeaders();return this.http.get(s,{headers:a}).pipe(se(c=>c),no(c=>this.handleErrorResponse(c)))}deleteRequest(t,i){let r="string"==typeof t?t:t.join("/");r=this._baseUrl+"/"+r;const o=hP(i),s=i?r+o:r,a=this.buildDefaultHeaders();return this.http.delete(s,{headers:a}).pipe(se(c=>c),no(c=>this.handleErrorResponse(c)))}postRequest(t,i={},r=!1){let o="string"==typeof t?t:t.join("/");o=this._baseUrl+"/"+o;const s=this.buildDefaultHeaders();return this.http.post(o,i,{headers:s,withCredentials:r}).pipe(se(a=>a),no(a=>this.handleErrorResponse(a)))}putRequest(t,i={}){let r="string"==typeof t?t:t.join("/");r=this._baseUrl+"/"+r;const o=this.buildDefaultHeaders();return this.http.put(r,i,{headers:o}).pipe(se(s=>s))}static#e=this.\u0275fac=function(i){return new(i||e)(N(t0))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const r0="nb.mfa.session";let tg=(()=>{class e{constructor(){this.session$=new Ot(this.readStoredSession())}get session(){return this.session$.value}setSession(t){this.writeStoredSession(t),this.session$.next(t)}clearSession(){this.writeStoredSession(null),this.session$.next(null)}readStoredSession(){try{const t=sessionStorage.getItem(r0);return t?JSON.parse(t):null}catch{return null}}writeStoredSession(t){try{t?sessionStorage.setItem(r0,JSON.stringify(t)):sessionStorage.removeItem(r0)}catch{return}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const pP={foreground:"color-success-secondary",background:"color-success",text:"color-success-text"},o0={foreground:"color-info-secondary",background:"color-info",text:"color-info-text"},gP={foreground:"color-danger",background:"color-danger-secondary",text:"color-danger-text"},mP=new Map([["A",pP],["P",pP],["H",o0],["D",o0],["W",o0],["R",gP],["U",gP]]);function y7(e,n){if(1&e&&(m(0,"div",3),Z(1,"cui-payment-status-symbol",4),m(2,"div",5)(3,"span",6),I(4),v(),I(5),v()()),2&e){const t=C();let i,r;y("ngClass",null==(i=t.paymentStatusMap.get(t.statusSymbol))?null:i.background),p(1),y("statusSymbol",t.statusSymbol),p(1),y("ngClass",null==(r=t.paymentStatusMap.get(t.statusSymbol))?null:r.text),p(2),Ie(t.prefix),p(1),Ft(" ",t.statusMessage," ")}}function v7(e,n){if(1&e&&(m(0,"div",7),I(1),v()),2&e){const t=C();p(1),Ie(t.suffix)}}let b7=(()=>{class e{constructor(){this.paymentStatusMap=mP,this.statusSymbol="P"}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["cui-payment-status-pill"]],inputs:{statusSymbol:"statusSymbol",statusMessage:"statusMessage",prefix:"prefix",suffix:"suffix"},decls:3,vars:2,consts:[[1,"pill","d-sm-flex","align-items-center","justify-self-start"],["class","d-flex rounded-pill p-1 text-black mb-2 mb-sm-0",3,"ngClass",4,"ngIf"],["class","ms-sm-2",4,"ngIf"],[1,"d-flex","rounded-pill","p-1","text-black","mb-2","mb-sm-0",3,"ngClass"],[3,"statusSymbol"],[1,"mx-2","fs-14","fs-sm-6",3,"ngClass"],[1,"fw-bold","d-none","d-sm-inline"],[1,"ms-sm-2"]],template:function(i,r){1&i&&(m(0,"div",0),M(1,y7,6,5,"div",1),M(2,v7,2,1,"div",2),v()),2&i&&(p(1),y("ngIf","Unknown"!==r.statusMessage&&r.statusSymbol),p(1),y("ngIf",r.suffix))},encapsulation:2})}return e})(),C7=(()=>{class e{constructor(){this.paymentStatusMap=mP,this.statusSymbol="P"}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["cui-payment-status-symbol"]],inputs:{statusSymbol:"statusSymbol"},decls:2,vars:2,consts:[[1,"d-inline-flex","align-items-center","justify-content-center","rounded-circle","text-white","p-2","fs-12","ic-24","align-self-center",3,"ngClass"]],template:function(i,r){if(1&i&&(m(0,"span",0),I(1),v()),2&i){let o;y("ngClass",null==(o=r.paymentStatusMap.get(r.statusSymbol))?null:o.foreground),p(1),Ie(r.statusSymbol)}},dependencies:[Ni],encapsulation:2})}return e})();const w7=["*"];let D7=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["cui-info-bar"]],ngContentSelectors:w7,decls:2,vars:0,consts:[[1,"info-card","px-3","pt-sm","pb-sm","text-primary","rounded"]],template:function(i,r){1&i&&(Dr(),m(0,"div",0),kn(1),v())},styles:[".color-primary[_ngcontent-%COMP%]{background-color:#00236f}.color-primary-light[_ngcontent-%COMP%]{background-color:#f5f8fe}.color-tertiary[_ngcontent-%COMP%]{background-color:#bdebfb}.color-primary-light-text[_ngcontent-%COMP%]{color:#f5f8fe}.color-primary-text[_ngcontent-%COMP%]{color:#fff}.color-secondary[_ngcontent-%COMP%]{background-color:#e8efff}.color-secondary-text[_ngcontent-%COMP%]{color:#00236f}.color-warning[_ngcontent-%COMP%]{background-color:#cca5fd}.color-warning-text[_ngcontent-%COMP%]{color:#250569}.color-warning-secondary[_ngcontent-%COMP%]{background-color:#fce3ff}.color-warning-secondary-text[_ngcontent-%COMP%]{color:#930188}.color-info[_ngcontent-%COMP%]{background-color:#ffe18e}.color-info-light[_ngcontent-%COMP%]{background-color:#ffe1b5}.color-info-secondary[_ngcontent-%COMP%]{background-color:#ffc142}.color-info-text[_ngcontent-%COMP%]{color:#663904}.color-danger[_ngcontent-%COMP%]{background-color:#ba1a1a}.color-danger-text[_ngcontent-%COMP%]{color:#410002}.color-danger-secondary[_ngcontent-%COMP%]{background-color:#ff8080}.color-danger-secondary-text[_ngcontent-%COMP%]{color:#861816}.color-danger-tertiary[_ngcontent-%COMP%]{background-color:#f0dee0}.color-danger-tertiary-text[_ngcontent-%COMP%]{color:#ba1a1a}.color-success-primary-text[_ngcontent-%COMP%]{color:#007235}.color-success[_ngcontent-%COMP%]{background-color:#b0f3b7}.color-success-secondary[_ngcontent-%COMP%]{background-color:#0eb551}.color-success-secondary-text[_ngcontent-%COMP%]{color:#0eb551}.color-success-text[_ngcontent-%COMP%]{color:#014420}.color-brand[_ngcontent-%COMP%]{background-color:#0ea7da}.color-brand-secondary[_ngcontent-%COMP%]{background-color:#5fc6e8}.color-neutral[_ngcontent-%COMP%]{background-color:#f5f7fb}.color-neutral-tertiary[_ngcontent-%COMP%]{color:#919396}.color-neutral-text[_ngcontent-%COMP%]{color:#fff;fill:#fff}.color-outline[_ngcontent-%COMP%]{background-color:#e7e9ed}.color-outline-text[_ngcontent-%COMP%]{color:#e7e9ed}.border-neutral[_ngcontent-%COMP%]{border-color:#e7e9ed}.color-error-primary[_ngcontent-%COMP%]{background-color:#b50e0e}.color-error-primary-light[_ngcontent-%COMP%]{background-color:#ed6565}.color-error-primary-light-text[_ngcontent-%COMP%]{color:#ed6565}.color-error-primary-text[_ngcontent-%COMP%]{color:#b50e0e}.color-error-secondary-light[_ngcontent-%COMP%]{background-color:#fff5f4}.color-error-secondary[_ngcontent-%COMP%]{background-color:#ffdad6}.color-error-tertiary[_ngcontent-%COMP%]{background-color:#ffe5e5}.color-violet[_ngcontent-%COMP%]{background-color:#f0e4ff}.color-violet-secondary[_ngcontent-%COMP%]{background-color:#9753eb}.color-violet-text[_ngcontent-%COMP%]{color:#480670}.color-mono-primary-text[_ngcontent-%COMP%]{color:#888b9c}.color-mono-secondary-text[_ngcontent-%COMP%]{color:#23252b}.color-mono-tertiary-text[_ngcontent-%COMP%]{color:#191a1d}.color-navy[_ngcontent-%COMP%]{background-color:#c4d5fe}.info-card[_ngcontent-%COMP%]{border:solid 1px #C4D5FE;background-color:#e8efff}"]})}return e})();function S7(e,n){1&e&&bf(0)}function T7(e,n){1&e&&bf(0)}_r(304);const O7=function(e){return{"mx-2":e}};function E7(e,n){if(1&e&&(m(0,"div",5),$t(),m(1,"svg",6),Z(2,"use"),v()()),2&e){const t=C().icon,i=C();y("ngClass",Fn(2,O7,"icon"!==i.type)),p(2),X("href","assets/images/sprite.svg#"+t,null,"xlink")}}
1function k7(e,n){1&e&&M(0,E7,3,4,"div",4),2&e&&y("ngIf",n.icon)}const _P=function(e){return{icon:e}},I7=["*"];let da=(()=>{class e{constructor(){this.mode="primary",this.type="filled",this.sizing="",this.theme="light",this.label="",this.aria="",this.classes="",this.name="",this.disabled=!1,this.onClick=new H}get class(){const t=["btn"];switch(this.sizing.length&&t.push(`btn-${this.sizing}`),this.type){case"text":break;case"icon":this.label="",t.push("btn-icon");break;case"close":this.aria="close",this.label="",this.leadingIcon="add",t.push(`${t.pop()}-close`);break;case"outlined":{let r="btn-";r+="light"===this.theme?"outline-primary":"outline-light",t.push(r);break}case"tonal":t.push("primary"===this.mode?"btn-secondary":`btn-${this.mode}`);break;default:t.push("light"===this.theme?"btn-primary":"btn-light")}return t.join(" ")}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["cui-button"]],inputs:{mode:"mode",type:"type",sizing:"sizing",leadingIcon:"leadingIcon",trailingIcon:"trailingIcon",theme:"theme",label:"label",aria:"aria",classes:"classes",name:"name",disabled:"disabled"},outputs:{onClick:"onClick"},ngContentSelectors:I7,decls:8,vars:15,consts:[["type","button",3,"ngClass","id","name","disabled","click"],[1,"d-flex","align-items-center","justify-content-center"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["icon",""],["class","d-flex",3,"ngClass",4,"ngIf"],[1,"d-flex",3,"ngClass"],[1,"ic"]],template:function(i,r){if(1&i&&(Dr(),m(0,"button",0),x("click",function(s){return r.onClick.emit(s)}),m(1,"span",1),M(2,S7,1,0,"ng-container",2),I(3),kn(4),M(5,T7,1,0,"ng-container",2),v()(),M(6,k7,1,1,"ng-template",null,3,Vn)),2&i){const o=Xn(7);Xi(r.classes),y("ngClass",r.class)("id",r.name)("name",r.name)("disabled",r.disabled),p(2),y("ngTemplateOutlet",o)("ngTemplateOutletContext",Fn(11,_P,r.leadingIcon)),p(1),Ft(" ",r.label," "),p(2),y("ngTemplateOutlet",o)("ngTemplateOutletContext",Fn(13,_P,r.trailingIcon))}},dependencies:[Ni,lt,ps],styles:[".color-primary[_ngcontent-%COMP%]{background-color:#00236f}.color-primary-light[_ngcontent-%COMP%]{background-color:#f5f8fe}.color-tertiary[_ngcontent-%COMP%]{background-color:#bdebfb}.color-primary-light-text[_ngcontent-%COMP%]{color:#f5f8fe}.color-primary-text[_ngcontent-%COMP%]{color:#fff}.color-secondary[_ngcontent-%COMP%]{background-color:#e8efff}.color-secondary-text[_ngcontent-%COMP%]{color:#00236f}.color-warning[_ngcontent-%COMP%]{background-color:#cca5fd}.color-warning-text[_ngcontent-%COMP%]{color:#250569}.color-warning-secondary[_ngcontent-%COMP%]{background-color:#fce3ff}.color-warning-secondary-text[_ngcontent-%COMP%]{color:#930188}.color-info[_ngcontent-%COMP%]{background-color:#ffe18e}.color-info-light[_ngcontent-%COMP%]{background-color:#ffe1b5}.color-info-secondary[_ngcontent-%COMP%]{background-color:#ffc142}.color-info-text[_ngcontent-%COMP%]{color:#663904}.color-danger[_ngcontent-%COMP%]{background-color:#ba1a1a}.color-danger-text[_ngcontent-%COMP%]{color:#410002}.color-danger-secondary[_ngcontent-%COMP%]{background-color:#ff8080}.color-danger-secondary-text[_ngcontent-%COMP%]{color:#861816}.color-danger-tertiary[_ngcontent-%COMP%]{background-color:#f0dee0}.color-danger-tertiary-text[_ngcontent-%COMP%]{color:#ba1a1a}.color-success-primary-text[_ngcontent-%COMP%]{color:#007235}.color-success[_ngcontent-%COMP%]{background-color:#b0f3b7}.color-success-secondary[_ngcontent-%COMP%]{background-color:#0eb551}.color-success-secondary-text[_ngcontent-%COMP%]{color:#0eb551}.color-success-text[_ngcontent-%COMP%]{color:#014420}.color-brand[_ngcontent-%COMP%]{background-color:#0ea7da}.color-brand-secondary[_ngcontent-%COMP%]{background-color:#5fc6e8}.color-neutral[_ngcontent-%COMP%]{background-color:#f5f7fb}.color-neutral-tertiary[_ngcontent-%COMP%]{color:#919396}.color-neutral-text[_ngcontent-%COMP%]{color:#fff;fill:#fff}.color-outline[_ngcontent-%COMP%]{background-color:#e7e9ed}.color-outline-text[_ngcontent-%COMP%]{color:#e7e9ed}.border-neutral[_ngcontent-%COMP%]{border-color:#e7e9ed}.color-error-primary[_ngcontent-%COMP%]{background-color:#b50e0e}.color-error-primary-light[_ngcontent-%COMP%]{background-color:#ed6565}.color-error-primary-light-text[_ngcontent-%COMP%]{color:#ed6565}.color-error-primary-text[_ngcontent-%COMP%]{color:#b50e0e}.color-error-secondary-light[_ngcontent-%COMP%]{background-color:#fff5f4}.color-error-secondary[_ngcontent-%COMP%]{background-color:#ffdad6}.color-error-tertiary[_ngcontent-%COMP%]{background-color:#ffe5e5}.color-violet[_ngcontent-%COMP%]{background-color:#f0e4ff}.color-violet-secondary[_ngcontent-%COMP%]{background-color:#9753eb}.color-violet-text[_ngcontent-%COMP%]{color:#480670}.color-mono-primary-text[_ngcontent-%COMP%]{color:#888b9c}.color-mono-secondary-text[_ngcontent-%COMP%]{color:#23252b}.color-mono-tertiary-text[_ngcontent-%COMP%]{color:#191a1d}.color-navy[_ngcontent-%COMP%]{background-color:#c4d5fe}.btn[_ngcontent-%COMP%]{width:100%;height:100%;cursor:pointer}.btn-close[_ngcontent-%COMP%]{border-radius:50%;padding:0;width:40px;height:40px;color:#00236f;background:#F5F8FE none;transform:rotate(45deg);font-size:30px;line-height:40px}.btn-close[_ngcontent-%COMP%]:focus{box-shadow:none}.btn-icon[_ngcontent-%COMP%]{border-radius:50%;color:#00236f;font-size:24px;padding:8px}"]})}return e})(),yP=(()=>{class e{constructor(){this.isLoading=!1,this.isLoadingSubject=ne
1w Ot(this.isLoading),this.isLoading$=this.isLoadingSubject.asObservable(),this.guids=[]}setIsLoading(t){this.isLoading=t,this.isLoadingSubject.next(t)}decodeBase64ToFile(t,i){return Vx(function*(){const r=`data:${i}; base64,${t}`,s=yield(yield fetch(r)).blob();return new File([s],"",{type:i})})()}isObjectEmpty(t){return 0===Object.keys(t).length}get guid(){let t=self.crypto.randomUUID();for(;this.guids.includes(t);)t=self.crypto.randomUUID();return this.guids.push(t),t}getLoginKey(){return localStorage.getItem("loginKey")}buildDefaultHeaders(){const t=this.getLoginKey();return t||this.redirectToLogin(),new sr({"Content-Type":"application/json",Authorization:`Basic ${t}`})}redirectToLogin(){localStorage.clear()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const x7=["input"],vP=function(e){return{"ic-active":e}};function P7(e,n){if(1&e){const t=ae();m(0,"span",8),x("click",function(r){return V(t),B(C().leadingIconClick.emit(r))}),$t(),m(1,"svg",9),Z(2,"use"),v()()}if(2&e){const t=C();p(1),y("ngClass",Fn(2,vP,t.focused)),p(1),X("href",t.leadingIcon,null,"xlink")}}function N7(e,n){if(1&e&&(m(0,"option",13),I(1),v()),2&e){const t=n.$implicit,i=C(2);y("ngValue",t.value)("selected",t.value===i.value),p(1),Ft("",t.label," ")}}function A7(e,n){if(1&e){const t=ae();m(0,"select",10,3),x("ngModelChange",function(r){return V(t),B(C().value=r)})("ngModelChange",function(r){return V(t),B(C().onValueChange(r))}),m(2,"option",11),I(3),v(),M(4,N7,2,3,"option",12),v()}if(2&e){const t=C();y("ngClass",t.inputClass)("id",t.name||t.id)("name",t.name||t.id)("ngModel",t.value),X("aria-label",t.aria),p(3),Ie(t.placeholder),p(1),y("ngForOf",t.dropdownOptions)}}function R7(e,n){if(1&e){const t=ae();m(0,"input",15,16),x("ngModelChange",function(r){return V(t),B(C(2).value=r)})("ngModelChange",function(r){return V(t),B(C(2).onValueChange(r))})("focus",function(){return V(t),B(C(2).focused=!0)})("blur",function(){return V(t),B(C(2).focused=!1)})("click",function(r){return V(t),B(C(2).activateOnClick(r))}),v()}if(2&e){const t=C(2);y("type",t.type)("ngClass",t.inputClass)("id",t.name||t.id)("name",t.name||t.id)("autocomplete",t.autocomplete)("ngModel",t.value)("required",t.required)("readOnly",t.readonly)("pattern",t.pattern)("minlength",t.minLength)("maxlength",t.maxLength)("placeholder",t.placeholder),X("aria-label",t.aria)}}function L7(e,n){if(1&e&&M(0,R7,3,13,"input",14),2&e){const t=C(),i=Xn(6);y("ngIf","checkbox"!==t.type&&"radio"!==t.type)("ngIfElse",i)}}function F7(e,n){if(1&e){const t=ae();m(0,"input",18,3),x("change",function(r){return V(t),B(C(2).change(r))}),v()}if(2&e){const t=C(2);y("type",t.type)("ngClass",t.inputClass)("id",t.name||t.id)("name",t.name||t.id)("autocomplete",t.autocomplete)("checked",t.value)("required",t.required)("readOnly",t.readonly)("disabled",t.disabled),X("aria-label",t.aria)}}function V7(e,n){if(1&e&&M(0,F7,2,10,"input",17),2&e){const t=C(),i=Xn(8);y("ngIf","radio"!==t.type)("ngIfElse",i)}}function B7(e,n){if(1&e){const t=ae();m(0,"input",19,3),x("change",function(r){return V(t),B(C().change(r))})("click",function(r){return V(t),B(C().checkReadonly(r))}),v()}if(2&e){const t=C();y("type",t.type)("ngClass",t.inputClass)("id",t.name||t.id)("name",t.name||t.id)("autocomplete",t.autocomplete)("checked",t.value===t.selected)("required",t.required)("readOnly",t.readonly),X("aria-label",t.aria)}}function H7(e,n){if(1&e){const t=ae();m(0,"span",20),x("click",function(r){return V(t),B(C().trailingIconClick.emit(r))}),$t(),m(1,"svg",21),Z(2,"use"),v()()}if(2&e){const t=C();p(1),y("ngClass",Fn(2,vP,t.focused)),p(1),X("href",t.trailingIcon,null,"xlink")}}const j7=function(e,n,t){return{"is-invalid":e,"ic-leading":n,"read-only":t}},$7=["*"];let s0=(()=>{class e{constructor(t){this.commonService=t,this.id=this.commonService.guid,this.errors=[],this.dropdownOptions=[],this.value="",this.label="",this.placeholder="",this.leadingIcon="",this.trailingIcon="",this.minLength=null,this.maxLength=null,this.required=!1,this.pattern="",this.submitted=!1,this.focused=!1,this.active=!1,this.autocomplete=!1,this.type="text",this.sizing="",this.aria="",this.classes="",this.readonly=!1,this.disabled=!1,this.onClick=new H,this.leadingIconClick=new H,this.trailingIconClick=new H,this.onChange=i=>{},this.onTouch=i=>{}
1,this.String=String}ngAfterViewInit(){this.focused&&this.elementRef.nativeElement.focus()}writeValue(t){this.value=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.disabled=t}registerOnTouched(t){this.onTouch=t}onValueChange(t){this.value=t,this.onChange(this.value),this.onTouch()}activateOnClick(t){this.active=!0,this.onClick.emit(t)}change(t){("checkbox"===this.type||"radio"===this.type)&&this.onValueChange(t.target.checked)}checkReadonly(t){this.readonly&&t.preventDefault()}get class(){const t=[];switch(this.type){case"checkbox":t.push("form-check");break;case"select":t.push("form-floating");break;default:t.push("input-field position-relative w-100")}return t.join(",").concat(` ${this.classes}`)}get inputClass(){const t=[];switch(this.sizing.length&&t.push(`form-control-${this.sizing}`),this.type){case"checkbox":t.push("form-check-input");break;case"radio":t.push("form-control","radio-input");break;default:t.push("form-control")}return this.active&&t.push("active"),t.join(" ")}get labelClass(){const t=[];switch(this.type){case"checkbox":t.push("form-check-label");break;case"radio":t.push("radio-label");break;case"select":t.push("control-label");break;default:t.push("floating-label","position-absolute")}return t.join(" ")}static#e=this.\u0275fac=function(i){return new(i||e)(_(yP))};static#t=this.\u0275cmp=ue({type:e,selectors:[["cui-input"]],viewQuery:function(i,r){if(1&i&&nr(x7,5),2&i){let o;He(o=je())&&(r.elementRef=o.first)}},inputs:{dropdownOptions:"dropdownOptions",name:"name",value:"value",label:"label",placeholder:"placeholder",leadingIcon:"leadingIcon",trailingIcon:"trailingIcon",minLength:"minLength",maxLength:"maxLength",required:"required",pattern:"pattern",submitted:"submitted",focused:"focused",active:"active",autocomplete:"autocomplete",selected:"selected",type:"type",sizing:"sizing",aria:"aria",classes:"classes",readonly:"readonly",disabled:"disabled"},outputs:{onClick:"onClick",leadingIconClick:"leadingIconClick",trailingIconClick:"trailingIconClick"},features:[Be([{provide:un,useExisting:ye(()=>e),multi:!0}])],ngContentSelectors:$7,decls:13,vars:14,consts:[[3,"ngClass"],["class","d-flex ic-container",3,"click",4,"ngIf"],[3,"ngClass","id","name","ngModel","ngModelChange",4,"ngIf","ngIfElse"],["input",""],["checkbox",""],["radio",""],["class","d-flex ic-container trailingIcon",3,"click",4,"ngIf"],[3,"for","ngClass"],[1,"d-flex","ic-container",3,"click"],[1,"ic","ic-20","align-self-center",3,"ngClass"],[3,"ngClass","id","name","ngModel","ngModelChange"],["disabled","","selected",""],[3,"ngValue","selected",4,"ngFor","ngForOf"],[3,"ngValue","selected"],[3,"type","ngClass","id","name","autocomplete","ngModel","required","readOnly","pattern","minlength","maxlength","placeholder","ngModelChange","focus","blur","click",4,"ngIf","ngIfElse"],[3,"type","ngClass","id","name","autocomplete","ngModel","required","readOnly","pattern","minlength","maxlength","placeholder","ngModelChange","focus","blur","click"],["input","","inputFieldId","ngModel"],[3,"type","ngClass","id","name","autocomplete","checked","required","readOnly","disabled","change",4,"ngIf","ngIfElse"],[3,"type","ngClass","id","name","autocomplete","checked","required","readOnly","disabled","change"],[3,"type","ngClass","id","name","autocomplete","checked","required","readOnly","change","click"],[1,"d-flex","ic-container","trailingIcon",3,"click"],[1,"ic","ic-20","align-self-center","color-mono-primary-text",3,"ngClass"]],template:function(i,r){if(1&i&&(Dr(),m(0,"div",0),M(1,P7,3,4,"span",1),M(2,A7,5,7,"select",2),M(3,L7,1,2,"ng-template",null,3,Vn),M(5,V7,1,2,"ng-template",null,4,Vn),M(7,B7,2,9,"ng-template",null,5,Vn),M(9,H7,3,4,"span",6),m(10,"label",7),I(11),kn(12),v(
1)()),2&i){const o=Xn(4);Xi(r.class),y("ngClass",Fd(10,j7,r.submitted&&r.errors,r.leadingIcon,r.readonly)),p(1),y("ngIf",r.leadingIcon),p(1),y("ngIf","select"===r.type)("ngIfElse",o),p(7),y("ngIf",r.trailingIcon),p(1),y("for",r.name||r.id)("ngClass",r.labelClass),p(1),Ft("",r.label," ")}},dependencies:[Ni,dn,lt,Nk,Rk,Xf,up,Hc,hp,qv,Kv,Zv,Yv],styles:['.color-primary[_ngcontent-%COMP%]{background-color:#00236f}.color-primary-light[_ngcontent-%COMP%]{background-color:#f5f8fe}.color-tertiary[_ngcontent-%COMP%]{background-color:#bdebfb}.color-primary-light-text[_ngcontent-%COMP%]{color:#f5f8fe}.color-primary-text[_ngcontent-%COMP%]{color:#fff}.color-secondary[_ngcontent-%COMP%]{background-color:#e8efff}.color-secondary-text[_ngcontent-%COMP%]{color:#00236f}.color-warning[_ngcontent-%COMP%]{background-color:#cca5fd}.color-warning-text[_ngcontent-%COMP%]{color:#250569}.color-warning-secondary[_ngcontent-%COMP%]{background-color:#fce3ff}.color-warning-secondary-text[_ngcontent-%COMP%]{color:#930188}.color-info[_ngcontent-%COMP%]{background-color:#ffe18e}.color-info-light[_ngcontent-%COMP%]{background-color:#ffe1b5}.color-info-secondary[_ngcontent-%COMP%]{background-color:#ffc142}.color-info-text[_ngcontent-%COMP%]{color:#663904}.color-danger[_ngcontent-%COMP%]{background-color:#ba1a1a}.color-danger-text[_ngcontent-%COMP%]{color:#410002}.color-danger-secondary[_ngcontent-%COMP%]{background-color:#ff8080}.color-danger-secondary-text[_ngcontent-%COMP%]{color:#861816}.color-danger-tertiary[_ngcontent-%COMP%]{background-color:#f0dee0}.color-danger-tertiary-text[_ngcontent-%COMP%]{color:#ba1a1a}.color-success-primary-text[_ngcontent-%COMP%]{color:#007235}.color-success[_ngcontent-%COMP%]{background-color:#b0f3b7}.color-success-secondary[_ngcontent-%COMP%]{background-color:#0eb551}.color-success-secondary-text[_ngcontent-%COMP%]{color:#0eb551}.color-success-text[_ngcontent-%COMP%]{color:#014420}.color-brand[_ngcontent-%COMP%]{background-color:#0ea7da}.color-brand-secondary[_ngcontent-%COMP%]{background-color:#5fc6e8}.color-neutral[_ngcontent-%COMP%]{background-color:#f5f7fb}.color-neutral-tertiary[_ngcontent-%COMP%]{color:#919396}.color-neutral-text[_ngcontent-%COMP%]{color:#fff;fill:#fff}.color-outline[_ngcontent-%COMP%]{background-color:#e7e9ed}.color-outline-text[_ngcontent-%COMP%]{color:#e7e9ed}.border-neutral[_ngcontent-%COMP%]{border-color:#e7e9ed}.color-error-primary[_ngcontent-%COMP%]{background-color:#b50e0e}.color-error-primary-light[_ngcontent-%COMP%]{background-color:#ed6565}.color-error-primary-light-text[_ngcontent-%COMP%]{color:#ed6565}.color-error-primary-text[_ngcontent-%COMP%]{color:#b50e0e}.color-error-secondary-light[_ngcontent-%COMP%]{background-color:#fff5f4}.color-error-secondary[_ngcontent-%COMP%]{background-color:#ffdad6}.color-error-tertiary[_ngcontent-%COMP%]{background-color:#ffe5e5}.color-violet[_ngcontent-%COMP%]{background-color:#f0e4ff}.color-violet-secondary[_ngcontent-%COMP%]{background-color:#9753eb}.color-violet-text[_ngcontent-%COMP%]{color:#480670}.color-mono-primary-text[_ngcontent-%COMP%]{color:#888b9c}.color-mono-secondary-text[_ngcontent-%COMP%]{color:#23252b}.color-mono-tertiary-text[_ngcontent-%COMP%]{color:#191a1d}.color-navy[_ngcontent-%COMP%]{background-color:#c4d5fe}.input-field[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{padding:1rem .75rem .38rem;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.input-field[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus-visible{border:solid 1px #00236F;background-color:#fff;box-shadow:none}.input-field[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]::placeholder{color:#888b9c}.input-field[_ngcontent-%COMP%] .form-control-sm[_ngcontent-%COMP%]{height:40px!important;min-height:unset;padding:1rem .75rem .38rem .5rem}.input-field[_ngcontent-%COMP%] .form-control-sm[_ngcontent-%COMP%] + .floating-label[_ngcontent-%COMP%]{padding:.75rem .75rem .38rem .25rem}.input-field[_ngcontent-%COMP%] .form-control-lg[_ngcontent-%COMP%]{padding:1rem .75rem .38rem 1rem}.input-field[_ngcontent-%COMP%] .form-control-lg[_ngcontent-%COMP%] + .floating-label[_ngcontent-%COMP%]{padding:1rem .75rem .38rem}.input-field[_ngcontent-%COMP%] .floating-label[_ngcontent-%COMP%]{color:#23252b;transform:scale(.85) translateY(-8px) translate(8px);transform-origin:0 0;padding:.75rem .75rem .38rem .5rem;top:0;font-size:12px;font-style:normal;font-weight:400;line-height:135%}.input-field[_ngcontent-%COMP%] .ic-container[_ngcontent-%COMP%]{position:absolute;top:50%;left:12px;transform:translateY(-50%);pointer-events:none}.input-field[_ngcontent-%COMP%] .ic-active[_ngcontent-%COMP%]{color:#00236f}.input-field.ic-leading[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{padding:16px 12px 6px 36px}.input-field.ic-leading[_ngcontent-%COMP%] .floating-label[_ngcontent-%COMP%]{padding:16px 12px 6px 36px!important}.input-field[_ngcontent-%COMP%] .radio-input[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;position:relative;padding:.375rem;border:2px solid #00236F;background-color:#fff;width:20px;height:20px;margin-right:8px;border-radius:50%;cursor:pointer}.input-field[_ngcontent-%COMP%] .radio-input[_ngcontent-%COMP%]:before{content:"";position:absolute;transition:opacity .2s ease-in-out;transform:translate(-50%,-50%);top:50%;left:50%;border-radius:50%;width:10px;height:10px;background-color:#00236f;opacity:0}
1.input-field[_ngcontent-%COMP%] .radio-input[_ngcontent-%COMP%]:checked:before{opacity:1}.input-field[_ngcontent-%COMP%] .radio-input[_ngcontent-%COMP%]:not(:checked){border-color:#888b9c}.radio-label[_ngcontent-%COMP%]{display:inline}select.form-control[_ngcontent-%COMP%]{padding-bottom:0!important;padding-top:16px!important}.trailingIcon[_ngcontent-%COMP%]{position:absolute;right:18px;top:22px}']})}return e})();const Y7={PAYMENT_BOOKING_DETAILS:"dashboard-payment-booking-details",SETTINGS_OTP:"settings-otp",SETTINGS_MANAGE_GROUPS:"settings-manage-groups",SETTINGS_REMOTE_ACCESS:"settings-remote-access",BOOKING_ENGINE_CLIENT_LOGIN:"web-info-client-login",BOOKING_ENGINE_ROOM_TYPE_GROUPS:"web-info-room-type-groups"};let U7=(()=>{class e{constructor(t,i){this.http=t,this.commonService=i,this.ScopeList=Y7,this.user={},this.userSubject=new Ot(this.user),this.user$=this.userSubject.asObservable(),this.featureFlags=eg_featureFlags,this.featureFlagsSubject=new Ot(this.featureFlags),this.featureFlags$=this.featureFlagsSubject.asObservable(),this.scopes=((e,n)=>{const t=[];for(const i in e)"object"==typeof e[i]?fP(t,e[i],"-",i):t[i]=e[i];return t})(this.featureFlags),this.bbInfoSource=new Ot({}),this.bbInfo$=this.bbInfoSource.asObservable()}userAccessControl(t){if(Array.isArray(t)){for(const i of t)if(Object.keys(this.scopes).includes(i)&&!this.scopes[i])return!1}else if(Object.keys(this.scopes).includes(t)&&!this.scopes[t])return!1;return!0}setBBInfo(t){this.bbInfoSource.next(t)}setUserData(t){const i=t.bridgeITV2LoginUrl+localStorage.getItem("loginKey")+"?bookingid=";this.user={...t,bookingUrl:i},this.userSubject.next(this.user)}setFeatureFlagsForUser(t){this.featureFlags={...this.featureFlags,...t},this.featureFlagsSubject.next(this.featureFlags)}static#e=this.\u0275fac=function(i){return new(i||e)(N(t0),N(yP))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function G7(e,n){if(1&e&&($t(),m(0,"svg",6),Z(1,"use"),v()),2&e){const t=C().$implicit;p(1),X("href","assets/images/sprite.svg#"+t.icon,null,"xlink")}}const z7=function(e){return{"d-none d-sm-flex":e}};function W7(e,n){if(1&e&&(m(0,"a",2)(1,"div",3),M(2,G7,2,1,"svg",4),m(3,"div",5),I(4),v()()()),2&e){const t=n.$implicit;y("routerLink",t.link)("ngClass",Fn(4,z7,!t.mobile)),p(2),y("ngIf",t.icon),p(2),Ft(" ",t.label," ")}}let q7=(()=>{class e{constructor(t){this.userService=t}ngOnInit(){this.tabs=this.tabs?.filter(t=>{const i=(e=>e.split("/").filter(t=>""!==t).join("-"))(t.link);return this.userService.userAccessControl(i)})}static#e=this.\u0275fac=function(i){return new(i||e)(_(U7))};static#t=this.\u0275cmp=ue({type:e,selectors:[["cui-nav-tabs"]],inputs:{tabs:"tabs"},decls:2,vars:1,consts:[["role","navigation",1,"nav","nav-pills","flex-wrap","gap-2","gap-md-3"],["class","p-2 flex-1 nav-link d-flex justify-content-start h-98","routerLinkActive","active",3,"routerLink","ngClass",4,"ngFor","ngForOf"],["routerLinkActive","active",1,"p-2","flex-1","nav-link","d-flex","justify-content-start","h-98",3,"routerLink","ngClass"],[1,"d-flex","flex-column","flex-sm-row","align-items-center","gap-1","gap-md-0","w-100","justify-content-center"],["class","ic ic-24 ic-sm-32",4,"ngIf"],[1,"label","text-center","d-md-block","fw-medium","ms-1","me-2","fs-14","fs-sm-6"],[1,"ic","ic-24","ic-sm-32"]],template:function(i,r){1&i&&(m(0,"nav",0),M(1,W7,5,6,"a",1),v()),2&i&&(p(1),y("ngForOf",r.tabs))},dependencies:[Ni,dn,lt,wu,Ex],styles:[".color-primary[_ngcontent-%COMP%]{background-color:#00236f}.color-primary-light[_ngcontent-%COMP%]{background-color:#f5f8fe}.color-tertiary[_ngcontent-%COMP%]{background-color:#bdebfb}.color-primary-light-text[_ngcontent-%COMP%]{color:#f5f8fe}.color-primary-text[_ngcontent-%COMP%]{color:#fff}.color-secondary[_ngcontent-%COMP%]{background-color:#e8efff}.color-secondary-text[_ngcontent-%COMP%]{color:#00236f}.color-warning[_ngcontent-%COMP%]{background-color:#cca5fd}.color-warning-text[_ngcontent-%COMP%]{color:#250569}.color-warning-secondary[_ngcontent-%COMP%]{background-color:#fce3ff}.color-warning-secondary-text[_ngcontent-%COMP%]{color:#930188}.color-info[_ngcontent-%COMP%]{background-color:#ffe18e}.color-info-light[_ngcontent-%COMP%]{background-color:#ffe1b5}.color-info-secondary[_ngcontent-%COMP%]{background-color:#ffc142}.color-info-text[_ngcontent-%COMP%]{color:#663904}.color-danger[_ngcontent-%COMP%]{background-color:#ba1a1a}.color-danger-text[_ngcontent-%COMP%]{color:#410002}.color-danger-secondary[_ngcontent-%COMP%]{background-color:#ff8080}.color-danger-secondary-text[_ngcontent-%COMP%]{color:#861816}.color-danger-tertiary[_ngcontent-%COMP%]{background-color:#f0dee0}.color-danger-tertiary-text[_ngcontent-%COMP%]{color:#ba1a1a}.color-success-primary-text[_ngcontent-%COMP%]{color:#007235}.color-success[_ngcontent-%COMP%]{background-color:#b0f3b7}.color-success-secondary[_ngcontent-%COMP%]{background-color:#0eb551}.color-success-secondary-text[_ngcontent-%COMP%]{color:#0eb551}.color-success-text[_ngcontent-%COMP%]{color:#014420}.color-brand[_ngcontent-%COMP%]{background-color:#0ea7da}.color-brand-secondary[_ngcontent-%COMP%]{background-color:#5fc6e8}.color-neutral[_ngcontent-%COMP%]{background-color:#f5f7fb}.color-neutral-tertiary[_ngcontent-%COMP%]{color:#919396}.color-neutral-text[_ngcontent-%COMP%]{color:#fff;fill:#fff}.color-outline[_ngcontent-%COMP%]{background-color:#e7e9ed}.color-outline-text[_ngcontent-%COMP%]{color:#e7e9ed}.border-neutral[_ngcontent-%COMP%]{border-color:#e7e9ed}.color-error-primary[_ngcontent-%COMP%]{background-color:#b50e0e}.color-error-primary-light[_ngcontent-%COMP%]{background-color:#ed6565}.color-error-primary-light-text[_ngcontent-%COMP%]{color:#ed6565}.color-error-primary-text[_ngcontent-%COMP%]{color:#b50e0e}.color-error-secondary-light[_ngcontent-%COMP%]{background-color:#fff5f4}.color-error-secondary[_ngcontent-%COMP%]{background-color:#ffdad6}.color-error-tertiary[_ngcontent-%COMP%]{background-color:#ffe5e5}.color-violet[_ngcontent-%COMP%]{background-color:#f0e4ff}.color-violet-secondary[_ngcontent-%COMP%]{background-color:#9753eb}.color-violet-text[_ngcontent-%COMP%]{color:#480670}.color-mono-primary-text[_ngcontent-%COMP%]{color:#888b9c}.color-mono-secondary-text[_ngcontent-%COMP%]{color:#23252b}.color-mono-tertiary-text[_ngcontent-%COMP%]{color:#191a1d}.color-navy[_ngcontent-%COMP%]{background-color:#c4d5fe}.max-wh-40[_ngcontent-%COMP%]{max-width:40px;max-height:40px}.max-h[_ngcontent-%COMP%]{max-height:16px}.max-h-48[_ngcontent-%COMP%]{max-height:48px}.min-h-48[_ngcontent-%COMP%]{min-height:48px}.min-w-400[_ngcontent-%COMP%]{min-width:440px!important}.min-w-265[_ngcontent-%COMP%]{min-width:265px!important}.min-w-170[_ngcontent-%COMP%]{min-width:170px!important}.min-w-120[_ngcontent-%COMP%]{min-width:120px!important}.min-w-80[_ngcontent-%COMP%]{min-width:80px!important}.max-w-80[_ngcontent-%COMP%]{max-width:80px!important}.max-w-24[_ngcontent-%COMP%]{max-width:24rem}.max-w-29[_ngcontent-%COMP%]{max-width:29rem}.max-w-8[_ngcontent-%COMP%]{max-width:8rem}.h-48[_ngcontent-%COMP%]{height:3rem}.h-80[_ngcontent-%COMP%]{height:80px}.h-98[_ngcontent-%COMP%]{height:6.125rem}.h-64[_ngcontent-%COMP%]{height:64px}.h-45[_ngcontent-%COMP%]{height:45px!important}.h-50vh[_ngcontent-%COMP%]{height:50vh}@media (min-width: 600px){.h-sm-80[_ngcontent-%COMP%]{height:80px!important}}@media (min-width: 600px){.h-sm-500[_ngcontent-%COMP%]{height:500px!important}}.w-24[_ngcontent-%COMP%]{width:24px}.w-80[_ngcontent-%COMP%]{width:80px}.w-66[_ngcontent-%COMP%]{width:66px}.max-content[_ngcontent-%COMP%]{width:max-content}.lh-25[_ngcontent-%COMP%]{line-height:25px}.lh-24[_ngcontent-%COMP%]{line-height:24px}.lh-21[_ngcontent-%COMP%]{line-height:21px}.lh-150[_ngcontent-%COMP%]{line-height:150%}.ls-tight[_ngcontent-%COMP%]{letter-spacing:-.5px}.mx-n3[_ngcontent-%COMP%]{margin-left:-1rem;margin-right:-1rem}.white-space-pre-line[_ngcontent-%COMP%]{white-space:pre-line}
1.fw-medium[_ngcontent-%COMP%]{font-weight:500}@media (min-width: 600px){.fw-sm-bold[_ngcontent-%COMP%]{font-weight:700}}.fw-semi-bold[_ngcontent-%COMP%]{font-weight:600}.flex-auto[_ngcontent-%COMP%]{flex:auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-1[_ngcontent-%COMP%]{flex:1}.flex-2[_ngcontent-%COMP%]{flex:2}.flex-3[_ngcontent-%COMP%]{flex:3}.justify-self-start[_ngcontent-%COMP%]{justify-self:start}.vertical-align-sub[_ngcontent-%COMP%]{vertical-align:sub!important}.row-gap-3[_ngcontent-%COMP%]{row-gap:1rem}.column-gap-2[_ngcontent-%COMP%]{column-gap:.5rem}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.text-align-right[_ngcontent-%COMP%]{text-align:right}.text-align-center[_ngcontent-%COMP%]{text-align:center}.float-right[_ngcontent-%COMP%]{float:right}.indent-li[_ngcontent-%COMP%]{margin-left:20px}.position-relative[_ngcontent-%COMP%]{position:relative}.nav[_ngcontent-%COMP%]{--bs-nav-link-padding-y: 6px;--bs-nav-link-padding-x: 6px}@media (max-width: 599.98px){.nav[_ngcontent-%COMP%]{justify-content:center}}.nav-pills[_ngcontent-%COMP%]{--bs-nav-pills-border-radius: 12px}@media (min-width: 600px){.nav-pills[_ngcontent-%COMP%]{--bs-nav-pills-border-radius: 100px}}.nav-link[_ngcontent-%COMP%]{border:solid 1px;border-color:#e7e9ed;background-color:#fff;max-width:15rem}.nav-link.active[_ngcontent-%COMP%]{border:var(--primary)}@media (min-width: 600px){.nav-link[_ngcontent-%COMP%]{height:64px}}.active[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex!important;justify-content:center}.active[_ngcontent-%COMP%] .rounded-pill-icon[_ngcontent-%COMP%]{margin:3px}@media (max-width: 899.98px){.nav[_ngcontent-%COMP%]{--bs-nav-link-padding-y: 3px;--bs-nav-link-padding-x: 3px}.gap-1[_ngcontent-%COMP%]{gap:.2rem!important}}"]})}return e})();var ng=function(e){return e.SUCCESS="Password Successfully Updated",e.INVALID_KEY="Your reset password link has expired, please try again",e}(ng||{}),ig=function(e){return e.SUCCESS="check",e.ERROR="close",e}(ig||{}),rg=function(e){return e.SUCCESS="success",e.FAIL="fail",e}(rg||{}),sl=function(e){return e.SEND_OTP="Send OTP to your default contact method (email or SMS)",e.OTP_SENT="an OTP has been sent to your default and/or selected contact method, if you haven't received it, you can try sending another OTP once the timer expires.",e.PROMPT="How should we send your one-time pin (OTP)?",e.NO_DETAILS="We don't have your details. Ask your Admin to update.",e.BOOKING_CONTACT="Pin goes to Booking Notification details. To change this, have Admin update your user details.",e.BOOKING_CONTACT_INFO="Pin goes to Booking Notification details.",e.BOOKING_CONTACT_WARNING="To change this, have Admin update your user details.",e.SENDING_METHOD_PREFIX="We sent your one-time-pin via",e.WRONG_PIN_TITLE="Wrong pin, sorry",e.WRONG_PIN_DESCRIPTION="Please type in the current OTP.",e.SUBMIT_VERIFY="Verify",e.SUBMIT_RETRY="Try Again",e.INACTIVE_ACCOUNT="Please contact us: Your account seems to be inactive",e}(sl||{}),og=function(e){return e.EMAIL="EMAIL",e.SMS="SMS",e}(og||{}),Ou=function(e){return e.EMAIL_NOT_CONFIGURED="We don't have your user email",e.PHONE_NOT_CONFIGURED="We don't have your user mobile number",e.BOOKING_EMAIL="Send to Booking Email",e.BOOKING_SMS="Send to Booking SMS",e}(Ou||{});let Z7=(()=>{class e{constructor(t){this.route=t,this.menu=[]}ngOnInit(){this.route.data.subscribe(t=>{t.menu&&(this.menu=t.menu)})}static#e=this.\u0275fac=function(i){return new(i||e)(_(oo))};static#t=this.\u0275cmp=ue({type:e,selectors:[["nb-ui-tabbed-page"]],inputs:{menu:"menu"},decls:7,vars:1,consts:[[1,"d-flex","gap-4","flex-column-reverse","flex-lg-row","w-100"],[1,"mb-4","flex-2"],[1,"mb-4"],[3,"tabs"]],template:function(i,r){1&i&&(fi(0),m(1,"main",0)(2,"div",1)(3,"div",2),Z(4,"cui-nav-tabs",3),v(),m(5,"div"),Z(6,"router-outlet"),v()()(),pi()),2&i&&(p(4),y("tabs",r.menu))},styles:[".nbm-tooltip{pointer-events:all!important}@media (max-width: 899.98px){.card-header[_ngcontent-%COMP%]{--bs-card-cap-padding-y: 5px;--bs-card-cap-padding-x: 2px}}.color-primary[_ngcontent-%COMP%]{background-color:#00236f}.color-primary-light[_ngcontent-%COMP%]{background-color:#f5f8fe}.color-tertiary[_ngcontent-%COMP%]{background-color:#bdebfb}.color-primary-light-text[_ngcontent-%COMP%]{color:#f5f8fe}.color-primary-text[_ngcontent-%COMP%]{color:#fff}.color-secondary[_ngcontent-%COMP%]{background-color:#e8efff}.color-secondary-text[_ngcontent-%COMP%]{color:#00236f}.color-warning[_ngcontent-%COMP%]{background-color:#cca5fd}.color-warning-text[_ngcontent-%COMP%]{color:#250569}.color-warning-secondary[_ngcontent-%COMP%]{background-color:#fce3ff}.color-warning-secondary-text[_ngcontent-%COMP%]{color:#930188}.color-info[_ngcontent-%COMP%]{background-color:#ffe18e}.color-info-light[_ngcontent-%COMP%]{background-color:#ffe1b5}.color-info-secondary[_ngcontent-%COMP%]{background-color:#ffc142}.color-info-text[_ngcontent-%COMP%]{color:#663904}.color-danger[_ngcontent-%COMP%]{background-color:#ba1a1a}.color-danger-text[_ngcontent-%COMP%]{color:#410002}.color-danger-secondary[_ngcontent-%COMP%]{background-color:#ff8080}.color-danger-secondary-text[_ngcontent-%COMP%]{color:#861816}.color-danger-tertiary[_ngcontent-%COMP%]{background-color:#f0dee0}.color-danger-tertiary-text[_ngcontent-%COMP%]{color:#ba1a1a}.color-success-primary-text[_ngcontent-%COMP%]{color:#007235}.color-success[_ngcontent-%COMP%]{background-color:#b0f3b7}.color-success-secondary[_ngcontent-%COMP%]{background-color:#0eb551}.color-success-secondary-text[_ngcontent-%COMP%]{color:#0eb551}.color-success-text[_ngcontent-%COMP%]{color:#014420}.color-brand[_ngcontent-%COMP%]{background-color:#0ea7da}.color-brand-secondary[_ngcontent-%COMP%]{background-color:#5fc6e8}.color-neutral[_ngcontent-%COMP%]{background-color:#f5f7fb}.color-neutral-tertiary[_ngcontent-%COMP%]{color:#919396}.color-neutral-text[_ngcontent-%COMP%]{color:#fff;fill:#fff}.color-outline[_ngcontent-%COMP%]{background-color:#e7e9ed}.color-outline-text[_ngcontent-%COMP%]{color:#e7e9ed}.border-neutral[_ngcontent-%COMP%]{border-color:#e7e9ed}.color-error-primary[_ngcontent-%COMP%]{background-color:#b50e0e}.color-error-primary-light[_ngcontent-%COMP%]{background-color:#ed6565}.color-error-primary-light-text[_ngcontent-%COMP%]{color:#ed6565}.color-error-primary-text[_ngcontent-%COMP%]{color:#b50e0e}.color-error-secondary-light[_ngcontent-%COMP%]{background-color:#fff5f4}.color-error-secondary[_ngcontent-%COMP%]{background-color:#ffdad6}.color-error-tertiary[_ngcontent-%COMP%]{background-color:#ffe5e5}.color-violet[_ngcontent-%COMP%]{background-color:#f0e4ff}.color-violet-secondary[_ngcontent-%COMP%]{background-color:#9753eb}.color-violet-text[_ngcontent-%COMP%]{color:#480670}.color-mono-primary-text[_ngcontent-%COMP%]{color:#888b9c}.color-mono-secondary-text[_ngcontent-%COMP%]{color:#23252b}.color-mono-tertiary-text[_ngcontent-%COMP%]{color:#191a1d}.color-navy[_ngcontent-%COMP%]{background-color:#c4d5fe}.max-wh-40[_ngcontent-%COMP%]{max-width:40px;max-height:40px}.max-h[_ngcontent-%COMP%]{max-height:16px}.max-h-48[_ngcontent-%COMP%]{max-height:48px}.min-h-48[_ngcontent-%COMP%]{min-height:48px}.min-w-400[_ngcontent-%COMP%]{min-width:440px!important}.min-w-265[_ngcontent-%COMP%]{min-width:265px!important}.min-w-170[_ngcontent-%COMP%]{min-width:170px!important}.min-w-120[_ngcontent-%COMP%]{min-width:120px!important}.min-w-80[_ngcontent-%COMP%]{min-width:80px!important}.max-w-80[_ngcontent-%COMP%]{max-width:80px!important}.max-w-24[_ngcontent-%COMP%]{max-width:24rem}.max-w-29[_ngcontent-%COMP%]{max-width:29rem}.max-w-8[_ngcontent-%COMP%]{max-width:8rem}.h-48[_ngcontent-%COMP%]{height:3rem}.h-80[_ngcontent-%COMP%]{height:80px}.h-98[_ngcontent-%COMP%]{height:6.125rem}.h-64[_ngcontent-%COMP%]{height:64px}.h-45[_ngcontent-%COMP%]{height:45px!important}.h-50vh[_ngcontent-%COMP%]{height:50vh}@media (min-width: 600px){.h-sm-80[_ngcontent-%COMP%]{height:80px!important}}@media (min-width: 600px){.h-sm-500[_ngcontent-%COMP%]{height:500px!important}}.w-24[_ngcontent-%COMP%]{width:24px}.w-80[_ngcontent-%COMP%]{width:80px}.w-66[_ngcontent-%COMP%]{width:66px}.max-content[_ngcontent-%COMP%]{width:max-content}.lh-25[_ngcontent-%COMP%]{line-height:25px}.lh-24[_ngcontent-%COMP%]{line-height:24px}.lh-21[_ngcontent-%COMP%]{line-height:21px}.lh-150[_ngcontent-%COMP%]{line-height:150%}.ls-tight[_ngcontent-%COMP%]{letter-spacing:-.5px}.mx-n3[_ngcontent-%COMP%]{margin-left:-1rem;margin-right:-1rem}.white-space-pre-line[_ngcontent-%COMP%]{white-space:pre-line}
1.fw-medium[_ngcontent-%COMP%]{font-weight:500}@media (min-width: 600px){.fw-sm-bold[_ngcontent-%COMP%]{font-weight:700}}.fw-semi-bold[_ngcontent-%COMP%]{font-weight:600}.flex-auto[_ngcontent-%COMP%]{flex:auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-1[_ngcontent-%COMP%]{flex:1}.flex-2[_ngcontent-%COMP%]{flex:2}.flex-3[_ngcontent-%COMP%]{flex:3}.justify-self-start[_ngcontent-%COMP%]{justify-self:start}.vertical-align-sub[_ngcontent-%COMP%]{vertical-align:sub!important}.row-gap-3[_ngcontent-%COMP%]{row-gap:1rem}.column-gap-2[_ngcontent-%COMP%]{column-gap:.5rem}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.text-align-right[_ngcontent-%COMP%]{text-align:right}.text-align-center[_ngcontent-%COMP%]{text-align:center}.float-right[_ngcontent-%COMP%]{float:right}.indent-li[_ngcontent-%COMP%]{margin-left:20px}.position-relative[_ngcontent-%COMP%]{position:relative}.nav[_ngcontent-%COMP%]{--bs-nav-link-padding-y: 6px;--bs-nav-link-padding-x: 6px}.nav-pills[_ngcontent-%COMP%]{--bs-nav-pills-border-radius: 16px}@media (min-width: 600px){.nav-pills[_ngcontent-%COMP%]{--bs-nav-pills-border-radius: 100px}}.nav-link[_ngcontent-%COMP%]{height:98px;border:solid 1px;border-color:#e7e9ed;background-color:#fff}.nav-link.active[_ngcontent-%COMP%]{border:var(--primary)}@media (min-width: 600px){.nav-link[_ngcontent-%COMP%]{height:64px}}.active[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex!important;justify-content:center}.active[_ngcontent-%COMP%] .rounded-pill-icon[_ngcontent-%COMP%]{margin:3px}@media (max-width: 899.98px){.nav[_ngcontent-%COMP%]{--bs-nav-link-padding-y: 3px;--bs-nav-link-padding-x: 3px}.gap-1[_ngcontent-%COMP%]{gap:.2rem!important}}"]})}return e})(),ua=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-help-section"]],decls:18,vars:0,consts:[[1,"d-flex","flex-column","flex-sm-row","w-100","max-w-29","my-3","justify-content-between"],[1,"fw-bold"],[1,"d-flex","align-items-center","gap-1"],[1,"fw-semibold"],["href","mailto:[email protected]"],[1,"w-100","max-w-29"],[1,"mb-1"],[1,"me-1"],[1,"ic","medium-icon","align-self-center","ic-24"],["href","assets/images/sprite.svg#chat"],[1,"fw-bold","vertical-align-middle"]],template:function(i,r){1&i&&(m(0,"section",0)(1,"span",1),I(2,"Do you have a question?"),v(),m(3,"div",2)(4,"span",3),I(5,"Email:"),v(),m(6,"a",4),I(7,"[email protected]"),v()()(),m(8,"cui-info-bar",5)(9,"div",6)(10,"span",7),$t(),m(11,"svg",8),Z(12,"use",9),v()(),Oi(),m(13,"span",10),I(14,"Or try our chatbox"),v()(),m(15,"div")(16,"span"),I(17," Look in the bottom-right corner of this page "),v()()())},dependencies:[D7]})}return e})();function Q7(e,n){1&e&&(m(0,"div",18)(1,"span",19),$t(),m(2,"svg",20),Z(3,"use",21),v()(),Oi(),m(4,"span",22),I(5,"BBID or Password is incorrect"),v()())}function J7(e,n){1&e&&(m(0,"div",23),I(1," BBID is required. "),v())}function X7(e,n){1&e&&($t(),Oi(),m(0,"div",23),I(1," Password is required. "),v())}const eq=function(e,n){return{"color-mono-primary-text":e,"color-secondary-text":n}};let nq=(()=>{class e{constructor(t,i,r,o){this.httpService=t,this.destroyRef=i,this.router=r,this.mfaSessionService=o,this.loginForm=new bs({username:new eo("",[ys.required]),password:new eo("",[ys.required])}),this.hidePassword=!0,this.submitted=!1,this.invalidLogin=!1,this.loading=!1,this.hidden=!0,this.type="password"}ngOnInit(){this.loginForm.valueChanges.subscribe(()=>{this.invalidLogin=!1})}handleKeyboardEvent(t){"Enter"===t.key&&this.login()}login(t){var i=this;return Vx(function*(){t?.preventDefault(),i.loading=!0,i.invalidLogin=!1;try{i.submitted=!0,i.loginForm.valid&&(yield function tq(e){return new Promise(n=>setTimeout(n,e))}(500),i.httpService.postRequest([nl_AUTH,"login"],i.loginForm.value,!0).pipe(Yo(i.destroyRef)).subscribe({next:o=>{o.success?o.mfarequired?(i.mfaSessionService.setSession({bbid:o.bbid,username:o.username,mfatypes:o.mfatypes,token:o.token,usingbookingcontactfallback:o.usingbookingcontactfallback}),i.resetForm(),i.router.navigate(["/request-otp"])):(i.resetForm(),i.invalidLogin=!1,window.location.href=o.redirecturl):(i.resetForm(),i.invalidLogin=!0)},error:o=>{i.resetForm(),i.invalidLogin=!0}}))}finally{i.loading=!1}})()}resetForm(){this.loginForm.reset(),this.submitted=!1}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}forgotPassword(){this.loginForm.get("username")?.value?this.router.navigate(["/forgot-password"],{queryParams:{bbid:this.loginForm.get("username")?.value}}):this.router.navigate(["/forgot-password"])}showHidePassword(){this.hidden=!this.hidden,this.type="password"===this.type?"text":"password"}static#e=this.\u0275fac=function(i){return new(i||e)(_(Tu),_(wr),_(Jt),_(tg))};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-login"]],hostBindings:function(i,r){1&i&&x("keypress",function(s){return r.handleKeyboardEvent(s)},0,eM)},decls:29,vars:16,consts:[[1,"d-flex","flex-column","gap-1","justify-content-center","align-items-center","min-vh-100","p-3"],["src","assets/logo.png","alt","NightsBridge logo",1,"h-64","mb-3"],[1,"card","w-100","max-w-29","p-2"],[1,"card-body",3,"formGroup","keydown.enter"],[1,"fw-bold","text-primary","fs-24"],["class","alert color-error-secondary color-error-primary-text fw-semibold","role","alert",4,"ngIf"],[1,"d-flex","flex-column","gap-3","mt-3"],[1,"mb-1"],["formControlName","username","data-testid","bbi
1d"],["class","color-error-primary-text fs-14","role","alert",4,"ngIf"],[1,"position-relative","w-100","max-h-48","my-1"],["id","password","formControlName","password","data-testid","password",3,"type"],["tooltipClass","tooltip__container","tabindex","-1",1,"btn-show-hide","mx-2","mt-2",3,"click"],["aria-hidden","true",1,"ic","ic-20","align-self-center",3,"ngClass"],[1,"d-flex","justify-content-end","gap-2","mt-4","mb-2x","min-h-48"],["type","outlined",1,"flex-1",3,"onClick"],["classes","px-4",1,"flex-1",3,"disabled","onClick"],[1,"w-100","max-w-29"],["role","alert",1,"alert","color-error-secondary","color-error-primary-text","fw-semibold"],[1,"me-1"],["aria-hidden","true",1,"ic","medium-icon","align-self-center","color-error-primary-text","ic-24"],["href","assets/images/sprite.svg#alert-01"],[1,"fw-semibold","vertical-align-middle"],["role","alert",1,"color-error-primary-text","fs-14"]],template:function(i,r){if(1&i&&(m(0,"div",0),Z(1,"img",1),m(2,"section",2)(3,"form",3),x("keydown.enter",function(s){return r.login(s)}),m(4,"span",4),I(5,"Log in"),v(),M(6,Q7,6,0,"div",5),m(7,"section",6)(8,"div")(9,"label",7),I(10,"Enter your BBID"),v(),Z(11,"cui-input",8),M(12,J7,2,0,"div",9),v(),m(13,"div")(14,"label"),I(15,"Enter your password"),v(),m(16,"div",10),Z(17,"cui-input",11),m(18,"button",12),x("click",function(){return r.showHidePassword()}),$t(),m(19,"svg",13),Z(20,"use"),v()()(),M(21,X7,2,0,"div",9),v()(),Oi(),m(22,"section",14)(23,"cui-button",15),x("onClick",function(){return r.forgotPassword()}),I(24,"Forgot password?"),v(),m(25,"cui-button",16),x("onClick",function(){return r.login()}),I(26,"Login"),v()()()(),m(27,"div",17),Z(28,"app-help-section"),v()()),2&i){let o,s;p(3),y("formGroup",r.loginForm),X("data-state",r.invalidLogin?"error":"idle"),p(3),y("ngIf",r.invalidLogin),p(6),y("ngIf",r.submitted&&(null==(o=r.loginForm.get("username"))||null==o.errors?null:o.errors.required)),p(5),y("type",r.type),p(2),y("ngClass",tr(13,eq,r.hidden,!r.hidden)),p(1),X("href","assets/images/sprite.svg#"+(r.hidden?"eye-slash-fill":"eye-fill"),null,"xlink"),p(1),y("ngIf",r.submitted&&(null==(s=r.loginForm.get("password"))||null==s.errors?null:s.errors.required)),p(4),ie("spinner",r.loading),y("disabled",r.loading||r.loginForm.invalid),X("data-state",r.loading?"loading":r.loginForm.invalid?"disabled":"idle")("aria-busy",!!r.loading||null)}},dependencies:[Ni,lt,dp,Hc,qd,ta,$c,s0,da,ua],styles:[".color-primary[_ngcontent-%COMP%]{background-color:#00236f}.color-primary-light[_ngcontent-%COMP%]{background-color:#f5f8fe}.color-tertiary[_ngcontent-%COMP%]{background-color:#bdebfb}.color-primary-light-text[_ngcontent-%COMP%]{color:#f5f8fe}.color-primary-text[_ngcontent-%COMP%]{color:#fff}.color-secondary[_ngcontent-%COMP%]{background-color:#e8efff}.color-secondary-text[_ngcontent-%COMP%]{color:#00236f}.color-warning[_ngcontent-%COMP%]{background-color:#cca5fd}.color-warning-text[_ngcontent-%COMP%]{color:#250569}.color-warning-secondary[_ngcontent-%COMP%]{background-color:#fce3ff}.color-warning-secondary-text[_ngcontent-%COMP%]{color:#930188}.color-info[_ngcontent-%COMP%]{background-color:#ffe18e}.color-info-light[_ngcontent-%COMP%]{background-color:#ffe1b5}.color-info-secondary[_ngcontent-%COMP%]{background-color:#ffc142}.color-info-text[_ngcontent-%COMP%]{color:#663904}.color-danger[_ngcontent-%COMP%]{background-color:#ba1a1a}.color-danger-text[_ngcontent-%COMP%]{color:#410002}.color-danger-secondary[_ngcontent-%COMP%]{background-color:#ff8080}.color-danger-secondary-text[_ngcontent-%COMP%]{color:#861816}.color-danger-tertiary[_ngcontent-%COMP%]{background-color:#f0dee0}.color-danger-tertiary-text[_ngcontent-%COMP%]{color:#ba1a1a}.color-success-primary-text[_ngcontent-%COMP%]{color:#007235}.color-success[_ngcontent-%COMP%]{background-color:#b0f3b7}.color-success-secondary[_ngcontent-%COMP%]{background-color:#0eb551}.color-success-secondary-text[_ngcontent-%COMP%]{color:#0eb551}.color-success-text[_ngcontent-%COMP%]{color:#014420}.color-brand[_ngcontent-%COMP%]{background-color:#0ea7da}.color-brand-secondary[_ngcontent-%COMP%]{background-color:#5fc6e8}.color-neutral[_ngcontent-%COMP%]{background-color:#f5f7fb}.color-neutral-tertiary[_ngcontent-%COMP%]{color:#919396}.color-neutral-text[_ngcontent-%COMP%]{color:#fff;fill:#fff}.color-outline[_ngcontent-%COMP%]{background-color:#e7e9ed}.color-outline-text[_ngcontent-%COMP%]{color:#e7e9ed}.border-neutral[_ngcontent-%COMP%]{border-color:#e7e9ed}.color-error-primary[_ngcontent-%COMP%]{background-color:#b50e0e}.color-error-primary-light[_ngcontent-%COMP%]{background-color:#ed6565}.color-error-primary-light-text[_ngcontent-%COMP%]{color:#ed6565}.color-error-primary-text[_ngcontent-%COMP%]{color:#b50e0e}.color-error-secondary-light[_ngcontent-%COMP%]{background-color:#fff5f4}.color-error-secondary[_ngcontent-%COMP%]{background-color:#ffdad6}.color-error-tertiary[_ngcontent-%COMP%]{background-color:#ffe5e5}.color-violet[_ngcontent-%COMP%]{background-color:#f0e4ff}.color-violet-secondary[_ngcontent-%COMP%]{background-color:#9753eb}.color-violet-text[_ngcontent-%COMP%]{color:#480670}.color-mono-primary-text[_ngcontent-%COMP%]{color:#888b9c}.color-mono-secondary-text[_ngcontent-%COMP%]{color:#23252b}.color-mono-tertiary-text[_ngcontent-%COMP%]{color:#191a1d}.color-navy[_ngcontent-%COMP%]{background-color:#c4d5fe}[_nghost-%COMP%] cui-input .input-field input.form-control{background-color:#fbfcfe!important;border-color:#e7e9ed!important;padding:.8rem!important}.btn-show-hide[_ngcontent-%COMP%]{padding-top:4px!important}"]})}return e})(),sg=(()=>{class e{constructor(){this.toasts=[]}show(t,i,r={}){this.toasts.push({header:t,body:i,...r})}remove(t){this.toasts=this.toasts.filter(i=>i!=t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function iq(e,n){1&e&&(m(0,"div",14)(1,"span",15),$t(),m(2,"svg",16),Z(3,"use",17),v()(),Oi(),m(4,"span",18),I(5,"BBID is incorrect"),v()())}function rq(e,n){1&e&&(m(0,"div",19),I(1," BBID is required. "),v())}let oq=(()=>{class e{constructor(t,i,r,o,s){this._http=t,this._destoryRef=i,this._router=r,this._route=o,this._toastService=s,this.bbid="",this.submitted=!1,this.btnDisabled=!0,this.invalidForgotPassword=!1,this.forgotPasswordForm=new bs({bbid:new eo("",[ys.required])})}ngOnInit(){this._route.queryParams.subscribe(t=>{this.bbid=t.bbid,this.forgotPasswordForm.get("bbid")?.setValue(this.bbid),this.handleFormV
1alidity()}),this.forgotPasswordForm.valueChanges.subscribe(()=>{this.handleFormValidity()})}handleFormValidity(){this.btnDisabled=!this.forgotPasswordForm.get("bbid")?.value,this.invalidForgotPassword=!1}sendConfirmation(){if(this.forgotPasswordForm.valid){this.submitted=!0;let t=this.forgotPasswordForm.get("bbid")?.value;this._http.postRequest(["bridge/loginmanagement/api/1.0","forgot-password","reset",String(t)]).pipe(Yo(this._destoryRef)).subscribe({next:()=>{this.resetForm(),this._toastService.show("Successful","Your reset link has been emailed to you",{classname:"toast-success",delay:4e3}),this.invalidForgotPassword=!1},error:()=>{this.resetForm(),this.invalidForgotPassword=!0}})}}resetForm(){this.forgotPasswordForm.reset(),this.submitted=!1}backToLogin(){this._router.navigate(["/"])}static#e=this.\u0275fac=function(i){return new(i||e)(_(Tu),_(wr),_(Jt),_(oo),_(sg))};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-forgot-password"]],decls:20,vars:6,consts:[[1,"d-flex","flex-column","gap-1","justify-content-center","align-items-center","min-vh-100","p-3"],["src","assets/logo.png","alt","NightsBridge logo",1,"h-64","mb-3"],[1,"card","w-100","max-w-29","p-2"],[1,"card-body",3,"formGroup"],[1,"fw-bold","text-primary","fs-24"],["class","mt-3 alert color-error-secondary color-error-primary-text fw-semibold","role","alert",4,"ngIf"],[1,"d-flex","flex-column","gap-3","mt-3"],[1,"mb-1"],["id","bbid","type","text","formControlName","bbid"],["class","color-error-primary-text fs-14","role","alert",4,"ngIf"],[1,"d-flex","justify-content-end","gap-2","mt-4","mb-2x"],["type","outlined",1,"flex-1","h-48",3,"onClick"],["classes","px-4",1,"flex-1","h-48",3,"disabled","onClick"],[1,"w-100","max-w-29"],["role","alert",1,"mt-3","alert","color-error-secondary","color-error-primary-text","fw-semibold"],[1,"me-1"],["aria-hidden","true",1,"ic","medium-icon","align-self-center","color-error-primary-text","ic-24"],["href","assets/images/sprite.svg#alert-01"],[1,"fw-bold","vertical-align-middle"],["role","alert",1,"color-error-primary-text","fs-14"]],template:function(i,r){if(1&i&&(m(0,"div",0),Z(1,"img",1),m(2,"section",2)(3,"form",3)(4,"span",4),I(5,"Forgot Password"),v(),M(6,iq,6,0,"div",5),m(7,"section",6)(8,"div")(9,"label",7),I(10,"Enter your BBID"),v(),Z(11,"cui-input",8),M(12,rq,2,0,"div",9),v()(),m(13,"section",10)(14,"cui-button",11),x("onClick",function(){return r.backToLogin()}),I(15,"Back"),v(),m(16,"cui-button",12),x("onClick",function(){return r.sendConfirmation()}),I(17,"Submit"),v()()()(),m(18,"div",13),Z(19,"app-help-section"),v()()),2&i){let o;p(3),y("formGroup",r.forgotPasswordForm),X("data-state",r.invalidForgotPassword?"error":"idle"),p(3),y("ngIf",r.invalidForgotPassword),p(6),y("ngIf",(null==(o=r.forgotPasswordForm.get("bbid"))?null:o.touched)&&r.btnDisabled&&(null==(o=r.forgotPasswordForm.get("bbid"))||null==o.errors?null:o.errors.required)),p(4),y("disabled",r.btnDisabled),X("data-state",r.btnDisabled?"disabled":"idle")}},dependencies:[lt,dp,Hc,qd,ta,$c,s0,da,ua],styles:[".color-primary[_ngcontent-%COMP%]{background-color:#00236f}.color-primary-light[_ngcontent-%COMP%]{background-color:#f5f8fe}.color-tertiary[_ngcontent-%COMP%]{background-color:#bdebfb}.color-primary-light-text[_ngcontent-%COMP%]{color:#f5f8fe}.color-primary-text[_ngcontent-%COMP%]{color:#fff}.color-secondary[_ngcontent-%COMP%]{background-color:#e8efff}.color-secondary-text[_ngcontent-%COMP%]{color:#00236f}.color-warning[_ngcontent-%COMP%]{background-color:#cca5fd}.color-warning-text[_ngcontent-%COMP%]{color:#250569}.color-warning-secondary[_ngcontent-%COMP%]{background-color:#fce3ff}.color-warning-secondary-text[_ngcontent-%COMP%]{color:#930188}.color-info[_ngcontent-%COMP%]{background-color:#ffe18e}.color-info-light[_ngcontent-%COMP%]{background-color:#ffe1b5}.color-info-secondary[_ngcontent-%COMP%]{background-color:#ffc142}.color-info-text[_ngcontent-%COMP%]{color:#663904}.color-danger[_ngcontent-%COMP%]{background-color:#ba1a1a}.color-danger-text[_ngcontent-%COMP%]{color:#410002}.color-danger-secondary[_ngcontent-%COMP%]{background-color:#ff8080}.color-danger-secondary-text[_ngcontent-%COMP%]{color:#861816}.color-danger-tertiary[_ngcontent-%COMP%]{background-color:#f0dee0}.color-danger-tertiary-text[_ngcontent-%COMP%]{color:#ba1a1a}.color-success-primary-text[_ngcontent-%COMP%]{color:#007235}.color-success[_ngcontent-%COMP%]{background-color:#b0f3b7}.color-success-secondary[_ngcontent-%COMP%]{background-color:#0eb551}.color-success-secondary-text[_ngcontent-%COMP%]{color:#0eb551}.color-success-text[_ngcontent-%COMP%]{color:#014420}.color-brand[_ngcontent-%COMP%]{background-color:#0ea7da}.color-brand-secondary[_ngcontent-%COMP%]{background-color:#5fc6e8}.color-neutral[_ngcontent-%COMP%]{background-color:#f5f7fb}.color-neutral-tertiary[_ngcontent-%COMP%]{color:#919396}.color-neutral-text[_ngcontent-%COMP%]{color:#fff;fill:#fff}.color-outline[_ngcontent-%COMP%]{background-color:#e7e9ed}.color-outline-text[_ngcontent-%COMP%]{color:#e7e9ed}.border-neutral[_ngcontent-%COMP%]{border-color:#e7e9ed}.color-error-primary[_ngcontent-%COMP%]{background-color:#b50e0e}.color-error-primary-light[_ngcontent-%COMP%]{background-color:#ed6565}.color-error-primary-light-text[_ngcontent-%COMP%]{color:#ed6565}.color-error-primary-text[_ngcontent-%COMP%]{color:#b50e0e}.color-error-secondary-light[_ngcontent-%COMP%]{background-color:#fff5f4}.color-error-secondary[_ngcontent-%COMP%]{background-color:#ffdad6}.color-error-tertiary[_ngcontent-%COMP%]{background-color:#ffe5e5}.color-violet[_ngcontent-%COMP%]{background-color:#f0e4ff}.color-violet-secondary[_ngcontent-%COMP%]{background-color:#9753eb}.color-violet-text[_ngcontent-%COMP%]{color:#480670}.color-mono-primary-text[_ngcontent-%COMP%]{color:#888b9c}.color-mono-secondary-text[_ngcontent-%COMP%]{color:#23252b}.color-mono-tertiary-text[_ngcontent-%COMP%]{color:#191a1d}.color-navy[_ngcontent-%COMP%]{background-color:#c4d5fe}[_nghost-%COMP%] cui-input .input-field input.form-control{background-color:#fbfcfe!important;border-color:#e7e9ed!important;padding:.8rem!important}"]})}return e})();function sq(e,n){if(1&e&&(m(0,"div",13),$t(),m(1,"svg",14),Z(2,"use"),v()()),2&e){const t=C();p(2),X("href","assets/images/sprite.svg#"+t.iconName)}}function aq(e,n){if(1&e&&(m(0,"div",15),$t(),m(1,"svg",16),Z(2,"use"),v()()),2&e){const t=C();p(2),X("href","assets/images/sprite.svg#"+t.iconName)}}let cq=(()=>{class e{constructor(t,i){this.router=t,this.route=i}
1ngOnInit(){this.message=this.route.snapshot.queryParamMap.get("message"),this.iconName=this.route.snapshot.queryParamMap.get("iconName"),this.currentStatus=this.route.snapshot.queryParamMap.get("currentStatus")}backToLogin(){this.router.navigate(["/"])}static#e=this.\u0275fac=function(i){return new(i||e)(_(Jt),_(oo))};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-user-response"]],decls:16,vars:3,consts:[[1,"d-flex","flex-column","gap-1","justify-content-center","align-items-center","vh-100"],["src","assets/logo.png","alt","...",1,"h-64","mb-3"],[1,"card","w-100","max-w-29","p-2"],[1,"card-body"],[1,"d-flex","flex-column","align-items-center","gap-3"],["class","fw-bold lh-24 ico-container mt-2 color-success",4,"ngIf"],["class","fw-bold lh-24 ico-container mt-2 color-error-secondary",4,"ngIf"],[1,"fw-semibold","text-primary","lh-24","mb-4","text-align-center"],[1,"d-flex","justify-content-center","gap-2","mt-4","mb-2x"],["classes","px-4",3,"onClick"],[1,"ic","medium-icon","align-self-center","color-primary-text","ic-12","mx-2"],["href","assets/images/sprite.svg#left-single-arrow"],[1,"w-100","max-w-29"],[1,"fw-bold","lh-24","ico-container","mt-2","color-success"],[1,"ic-12","ico-design","ico-design__status-success"],[1,"fw-bold","lh-24","ico-container","mt-2","color-error-secondary"],[1,"ic-12","ico-design","ico-design__status-failure"]],template:function(i,r){1&i&&(m(0,"div",0),Z(1,"img",1),m(2,"section",2)(3,"div",3)(4,"section",4),M(5,sq,3,1,"div",5),M(6,aq,3,1,"div",6),m(7,"span",7),I(8),v()(),m(9,"section",8)(10,"cui-button",9),x("onClick",function(){return r.backToLogin()}),$t(),m(11,"svg",10),Z(12,"use",11),v(),I(13," Back to Login "),v()()()(),Oi(),m(14,"div",12),Z(15,"app-help-section"),v()()),2&i&&(p(5),y("ngIf","success"==r.currentStatus),p(1),y("ngIf","fail"==r.currentStatus),p(2),Ie(r.message))},dependencies:[lt,da,ua],styles:[".color-primary[_ngcontent-%COMP%]{background-color:#00236f}.color-primary-light[_ngcontent-%COMP%]{background-color:#f5f8fe}.color-tertiary[_ngcontent-%COMP%]{background-color:#bdebfb}.color-primary-light-text[_ngcontent-%COMP%]{color:#f5f8fe}.color-primary-text[_ngcontent-%COMP%]{color:#fff}.color-secondary[_ngcontent-%COMP%]{background-color:#e8efff}.color-secondary-text[_ngcontent-%COMP%]{color:#00236f}.color-warning[_ngcontent-%COMP%]{background-color:#cca5fd}.color-warning-text[_ngcontent-%COMP%]{color:#250569}.color-warning-secondary[_ngcontent-%COMP%]{background-color:#fce3ff}.color-warning-secondary-text[_ngcontent-%COMP%]{color:#930188}.color-info[_ngcontent-%COMP%]{background-color:#ffe18e}.color-info-light[_ngcontent-%COMP%]{background-color:#ffe1b5}.color-info-secondary[_ngcontent-%COMP%]{background-color:#ffc142}.color-info-text[_ngcontent-%COMP%]{color:#663904}.color-danger[_ngcontent-%COMP%]{background-color:#ba1a1a}.color-danger-text[_ngcontent-%COMP%]{color:#410002}.color-danger-secondary[_ngcontent-%COMP%]{background-color:#ff8080}.color-danger-secondary-text[_ngcontent-%COMP%]{color:#861816}.color-danger-tertiary[_ngcontent-%COMP%]{background-color:#f0dee0}.color-danger-tertiary-text[_ngcontent-%COMP%]{color:#ba1a1a}.color-success-primary-text[_ngcontent-%COMP%]{color:#007235}.color-success[_ngcontent-%COMP%]{background-color:#b0f3b7}.color-success-secondary[_ngcontent-%COMP%]{background-color:#0eb551}.color-success-secondary-text[_ngcontent-%COMP%]{color:#0eb551}.color-success-text[_ngcontent-%COMP%]{color:#014420}.color-brand[_ngcontent-%COMP%]{background-color:#0ea7da}.color-brand-secondary[_ngcontent-%COMP%]{background-color:#5fc6e8}.color-neutral[_ngcontent-%COMP%]{background-color:#f5f7fb}.color-neutral-tertiary[_ngcontent-%COMP%]{color:#919396}.color-neutral-text[_ngcontent-%COMP%]{color:#fff;fill:#fff}.color-outline[_ngcontent-%COMP%]{background-color:#e7e9ed}.color-outline-text[_ngcontent-%COMP%]{color:#e7e9ed}.border-neutral[_ngcontent-%COMP%]{border-color:#e7e9ed}.color-error-primary[_ngcontent-%COMP%]{background-color:#b50e0e}.color-error-primary-light[_ngcontent-%COMP%]{background-color:#ed6565}.color-error-primary-light-text[_ngcontent-%COMP%]{color:#ed6565}.color-error-primary-text[_ngcontent-%COMP%]{color:#b50e0e}.color-error-secondary-light[_ngcontent-%COMP%]{background-color:#fff5f4}.color-error-secondary[_ngcontent-%COMP%]{background-color:#ffdad6}.color-error-tertiary[_ngcontent-%COMP%]{background-color:#ffe5e5}.color-violet[_ngcontent-%COMP%]{background-color:#f0e4ff}.color-violet-secondary[_ngcontent-%COMP%]{background-color:#9753eb}.color-violet-text[_ngcontent-%COMP%]{color:#480670}.color-mono-primary-text[_ngcontent-%COMP%]{color:#888b9c}.color-mono-secondary-text[_ngcontent-%COMP%]{color:#23252b}.color-mono-tertiary-text[_ngcontent-%COMP%]{color:#191a1d}.color-navy[_ngcontent-%COMP%]{background-color:#c4d5fe}.ico-design[_ngcontent-%COMP%]{margin-left:10px;margin-top:11px;padding:7px!important;height:60px!important;width:60px!important;border-radius:50%;background-color:#ffffff4d!important}.ico-design__status-success[_ngcontent-%COMP%]{border:1px solid #0EB551;fill:#0eb551}.ico-design__status-failure[_ngcontent-%COMP%]{border:1px solid #B50E0E;fill:#b50e0e}.ico-container[_ngcontent-%COMP%]{width:80px;height:80px;border-radius:50%}"]}
1)}return e})();function lq(e,n){1&e&&($t(),Oi(),m(0,"div",17),I(1," Password is required. "),v())}function dq(e,n){1&e&&($t(),Oi(),m(0,"div",17),I(1," Confirm password is required. "),v())}function uq(e,n){1&e&&($t(),Oi(),m(0,"div",17),I(1," Password must match "),v())}const bP=function(e,n){return{"color-mono-primary-text":e,"color-secondary-text":n}},hq=function(){return["/forgot-password"]};let fq=(()=>{class e{passwordMatchValidator(t){return t.get("newPassword")?.value===t.get("confirmNewPassword")?.value?null:{mismatch:!0}}constructor(t,i,r,o,s){this._http=t,this.destoryRef=i,this.router=r,this.route=o,this._toastService=s,this.newPasswordHidden=!0,this.confirmPasswordHidden=!0,this.newPasswordType="password",this.confirmPasswordType="password",this.resetPasswordForm=new bs({newPassword:new eo("",[ys.required]),confirmNewPassword:new eo("",[ys.required])},{validators:this.passwordMatchValidator}),this.btnActive=!1,this.forgotPasswordTokenBody={},this.submitted=!1,this.invalidForgotPassword=!1}ngOnInit(){this.route.paramMap.subscribe(t=>{this.forgotpasswordtoken=t.get("forgotpasswordtoken")}),this.resetPasswordForm.valueChanges.subscribe(()=>{this.btnActive=this.resetPasswordForm.valid}),this.validateToken()}buildResetpasswordTokenBody(){this.forgotPasswordTokenBody.newpassword=this.resetPasswordForm.get("newPassword").value,this.forgotPasswordTokenBody.forgotpasswordtoken=this.forgotpasswordtoken}validateToken(){this.buildResetpasswordTokenBody(),this._http.postRequest(["bridge/loginmanagement/api/1.0","forgot-password","validate"],this.forgotPasswordTokenBody).pipe(Yo(this.destoryRef)).subscribe({next:t=>{t.keyvalid||this.router.navigate(["/user-response"],{queryParams:{message:ng.INVALID_KEY,iconName:ig.ERROR,currentStatus:rg.FAIL}}),this.forgotPasswordTokenBody={},this.invalidForgotPassword=!1},error:()=>{this.invalidForgotPassword=!0}})}resetPassword(){this.submitted=!0,this.buildResetpasswordTokenBody(),this.resetPasswordForm.valid&&this._http.postRequest(["bridge/loginmanagement/api/1.0","forgot-password","reset-password"],this.forgotPasswordTokenBody).pipe(Yo(this.destoryRef)).subscribe({next:t=>{t.success?this.router.navigate(["/user-response"],{queryParams:{message:ng.SUCCESS,iconName:ig.SUCCESS,currentStatus:rg.SUCCESS}}):t.linkexpired?this.router.navigate(["/user-response"],{queryParams:{message:ng.INVALID_KEY,iconName:ig.ERROR,currentStatus:rg.FAIL}}):this._toastService.show("Error",t.message,{classname:"toast-error",delay:4e3}),this.forgotPasswordTokenBody={},this.invalidForgotPassword=!1},error:()=>{this.forgotPasswordTokenBody={},this.invalidForgotPassword=!0}})}showHidePassword(t){t?(this.newPasswordHidden=!this.newPasswordHidden,this.newPasswordType="password"===this.newPasswordType?"text":"password"):(this.confirmPasswordHidden=!this.confirmPasswordHidden,this.confirmPasswordType="password"===this.confirmPasswordType?"text":"password")}static#e=this.\u0275fac=function(i){return new(i||e)(_(Tu),_(wr),_(Jt),_(oo),_(sg))};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-reset-password"]],decls:33,vars:20,consts:[[1,"d-flex","flex-column","gap-1","justify-content-center","align-items-center","min-vh-100","p-3"],["src","assets/logo.png","alt","NightsBridge logo",1,"h-64","mb-3"],[1,"card","w-100","max-w-29","p-2"],[1,"card-body",3,"formGroup"],[1,"fw-bold","text-primary","fs-24"],[1,"d-flex","flex-column","gap-3","mt-3"],[1,"mb-1"],[1,"position-relative","w-100","max-h-48","mb-1"],["id","newPassword","formControlName","newPassword",3,"type"],["tooltipClass","tooltip__container","tabindex","-1",1,"btn-show-hide","mx-2","mt-2",3,"click"],["aria-hidden","true",1,"ic","ic-20","align-self-center",3,"ngClass"],["class","color-error-primary-text fs-14","role","alert",4,"ngIf"],["id","confirmNewPassword","formControlName","confirmNewPassword",3,"type"],[1,"d-flex","justify-content-end","gap-2","mt-4","mb-2x"],["type","outlined",1,"flex-1","h-48",3,"routerLink"],["classes","px-4",1,"flex-1","h-48",3,"disabled","onClick"],[1,"w-100","max-w-29"],["role","alert",1,"color-error-primary-text","fs-14"]],template:function(i,r){if(1&i&&(m(0,"div",0),Z(1,"img",1),m(2,"section",2)(3,"form",3)(4,"span",4),I(5,"Reset password"),v(),m(6,"section",5)(7,"div")(8,"label",6),I(9,"Enter your password"),v(),m(10,"div",7),Z(11,"cui-input",8),m(12,"button",9),x("click",function(){return r.showHidePassword(!0)}),$t(),m(13,"svg",10),Z(14,"use"),v()()(),M(15,lq,2,0,"div",11),v(),Oi(),m(16,"div")(17,"label",6),I(18,"Confirm Password"),v(),m(19,"div",7),Z(20,"cui-input",12),m(21,"button",9),x("click",function(){return r.showHidePassword(!1)}),$t(),m(22,"svg",10),Z(23,"use"),v()()(),M(24,dq,2,0,"div",11),M(25,uq,2,0,"div",11),v()(),Oi(),m(26,"section",13)(27,"cui-button",14),I(28,"Back"),v(),m(29,"cui-button",15),x("onClick",function(){return r.resetPassword()}),I(30,"Reset"),v()()()(),m(31,"div",16),Z(32,"app-help-section"),v()()),2&i){let o,s;p(3),y("formGroup",r.resetPasswordForm),p(8),y("type",r.newPasswordType),p(2),y("ngClass",tr(13,bP,r.newPasswordHidden,!r.newPasswordHidden)),p(1),X("href","assets/images/sprite.svg#"+(r.newPasswordHidden?"eye-slash-fill":"eye-fill"),null,"xlink"),p(1),y("ngIf",(null==(o=r.resetPasswordForm.get("newPassword"))||null==o.errors?null:o.errors.required)&&r.resetPasswordForm.controls.newPassword.dirty),p(5),y("type",r.confirmPasswordType),p(2),y("ngClass",tr(16,bP,r.confirmPasswordHidden,!r.confirmPasswordHidden)),p(1),X("href","assets/images/sprite.svg#"+(r.confirmPasswordHidden?"eye-slash-fill":"eye-fill"),null,"xlink"),p(1),y("ngIf",(null==(s=r.resetPasswordForm.get("confirmNewPassword"))||null==s.errors?null:s.errors.required)&&r.resetPasswordForm.controls.confirmNewPassword.dirty),p(1),y("ngIf",(null==r.resetPasswordForm||null==r.resetPasswordForm.errors?null:r.resetPasswordForm.errors.mismatch)&&(null==r.resetPasswordForm?null:r.resetPasswordForm.touched)),p(2),y("routerLink",function IT(e,n,t){const i=Kn()+e,r=R();
1return r[i]===De?Zr(r,i,t?n.call(t):n()):function Md(e,n){return e[n]}(r,i)}(19,hq)),p(2),y("disabled",!r.btnActive),X("data-state",r.btnActive?"idle":"disabled")}},dependencies:[Ni,lt,dp,Hc,qd,ta,$c,s0,da,wu,ua],styles:[".color-primary[_ngcontent-%COMP%]{background-color:#00236f}.color-primary-light[_ngcontent-%COMP%]{background-color:#f5f8fe}.color-tertiary[_ngcontent-%COMP%]{background-color:#bdebfb}.color-primary-light-text[_ngcontent-%COMP%]{color:#f5f8fe}.color-primary-text[_ngcontent-%COMP%]{color:#fff}.color-secondary[_ngcontent-%COMP%]{background-color:#e8efff}.color-secondary-text[_ngcontent-%COMP%]{color:#00236f}.color-warning[_ngcontent-%COMP%]{background-color:#cca5fd}.color-warning-text[_ngcontent-%COMP%]{color:#250569}.color-warning-secondary[_ngcontent-%COMP%]{background-color:#fce3ff}.color-warning-secondary-text[_ngcontent-%COMP%]{color:#930188}.color-info[_ngcontent-%COMP%]{background-color:#ffe18e}.color-info-light[_ngcontent-%COMP%]{background-color:#ffe1b5}.color-info-secondary[_ngcontent-%COMP%]{background-color:#ffc142}.color-info-text[_ngcontent-%COMP%]{color:#663904}.color-danger[_ngcontent-%COMP%]{background-color:#ba1a1a}.color-danger-text[_ngcontent-%COMP%]{color:#410002}.color-danger-secondary[_ngcontent-%COMP%]{background-color:#ff8080}.color-danger-secondary-text[_ngcontent-%COMP%]{color:#861816}.color-danger-tertiary[_ngcontent-%COMP%]{background-color:#f0dee0}.color-danger-tertiary-text[_ngcontent-%COMP%]{color:#ba1a1a}.color-success-primary-text[_ngcontent-%COMP%]{color:#007235}.color-success[_ngcontent-%COMP%]{background-color:#b0f3b7}.color-success-secondary[_ngcontent-%COMP%]{background-color:#0eb551}.color-success-secondary-text[_ngcontent-%COMP%]{color:#0eb551}.color-success-text[_ngcontent-%COMP%]{color:#014420}.color-brand[_ngcontent-%COMP%]{background-color:#0ea7da}.color-brand-secondary[_ngcontent-%COMP%]{background-color:#5fc6e8}.color-neutral[_ngcontent-%COMP%]{background-color:#f5f7fb}.color-neutral-tertiary[_ngcontent-%COMP%]{color:#919396}.color-neutral-text[_ngcontent-%COMP%]{color:#fff;fill:#fff}.color-outline[_ngcontent-%COMP%]{background-color:#e7e9ed}.color-outline-text[_ngcontent-%COMP%]{color:#e7e9ed}.border-neutral[_ngcontent-%COMP%]{border-color:#e7e9ed}.color-error-primary[_ngcontent-%COMP%]{background-color:#b50e0e}.color-error-primary-light[_ngcontent-%COMP%]{background-color:#ed6565}.color-error-primary-light-text[_ngcontent-%COMP%]{color:#ed6565}.color-error-primary-text[_ngcontent-%COMP%]{color:#b50e0e}.color-error-secondary-light[_ngcontent-%COMP%]{background-color:#fff5f4}.color-error-secondary[_ngcontent-%COMP%]{background-color:#ffdad6}.color-error-tertiary[_ngcontent-%COMP%]{background-color:#ffe5e5}.color-violet[_ngcontent-%COMP%]{background-color:#f0e4ff}.color-violet-secondary[_ngcontent-%COMP%]{background-color:#9753eb}.color-violet-text[_ngcontent-%COMP%]{color:#480670}.color-mono-primary-text[_ngcontent-%COMP%]{color:#888b9c}.color-mono-secondary-text[_ngcontent-%COMP%]{color:#23252b}.color-mono-tertiary-text[_ngcontent-%COMP%]{color:#191a1d}.color-navy[_ngcontent-%COMP%]{background-color:#c4d5fe}[_nghost-%COMP%] cui-input .input-field input.form-control{background-color:#fbfcfe!important;border-color:#e7e9ed!important;padding:.8rem!important}.btn-show-hide[_ngcontent-%COMP%]{padding-top:4px!important}"]})}return e})(),pq=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-not-found"]],decls:2,vars:0,template:function(i,r){1&i&&(m(0,"p"),I(1,"not-found works!"),v())},encapsulation:2})}return e})(),gq=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-unauthorised"]],decls:2,vars:0,template:function(i,r){1&i&&(m(0,"p"),I(1,"Unauthorised"),v())},encapsulation:2})}return e})(),mq=(()=>{class e{constructor(t){this.router=t,this.INACTIVE_ACCOUNT=sl.INACTIVE_ACCOUNT}backToLogin(){this.router.navigate(["/"])}static#e=this.\u0275fac=function(i){return new(i||e)(_(Jt))};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-login"]],decls:32,vars:1,consts:[[1,"d-flex","flex-column","gap-1","justify-content-center","align-items-center","min-vh-100","p-3"],["src","assets/logo.png","alt","NightsBridge logo",1,"h-64","mb-3"],[1,"card","w-100","max-w-29","p-2"],[1,"card-body"],[1,"fw-bold","text-primary","lh-24"],[1,"d-flex","flex-column","gap-1","mt-3"],[1,"d-flex","flex-row","align-items-center"],[1,"fw-bold"],[1,"fw-normal"],[1,"d-flex","justify-content-end","gap-2","mt-4","mb-2x","min-h-48"],["type","outlined","data-state","idle",3,"onClick"],[1,"w-100","max-w-29"]],template:function(i,r){1&i&&(m(0,"div",0),Z(1,"img",1),m(2,"section",2)(3,"div",3)(4,"span",4),I(5),v(),m(6,"div",5)(7,"div",6)(8,"span",7),I(9,"Phone 1:"),v(),m(10,"span",8),I(11,"+27 (0) 87 195 3189"),v()(),m(12,"div",6)(13,"span",7),I(14,"Phone 2:"),v(),m(15,"span",8),I(16,"+27 (0) 87 943 6035"),v()(),m(17,"div",6)(18,"span",7),I(19,"Email:"),v(),m(20,"span",8),I(21,"[email protected]"),v()(),m(22,"div",6)(23,"span",7),I(24,"Chat:"),v(),m(25,"span",8),I(26,"Use icon bottom right"),v()()(),m(27,"section",9)(28,"cui-button",10),x("onClick",function(){return r.backToLogin()}),I(29,"Back to Login Page"),v()()()(),m(30,"div",11),Z(31,"app-help-section"),v()()),2&i&&(p(5),Ie(r.INACTIVE_ACCOUNT))},dependencies:[da,ua],encapsulation:2})}return e})(),CP=(()=>{class e{constructor(t,i){this.router=t,this.mfaSessionService=i}canActivate(){return!!this.mfaSessionService.session||this.router.parseUrl("/")}static#e=this.\u0275fac=function(i){return new(i||e)(N(Jt),N(tg))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();
1const a0=[{description:"Email",value:"EMAIL",icon:"email-outlined"},{description:"SMS",value:"SMS",icon:"sms"}],wP=[],DP=()=>{let e=self.crypto.randomUUID();for(;wP.includes(e);)e=self.crypto.randomUUID();return wP.push(e),e};function yq(e,n){if(1&e&&(m(0,"label",5),I(1),v()),2&e){const t=C();y("for",t.name||t.id),p(1),Ft(" ",t.label," ")}}let vq=(()=>{class e{constructor(){this.id=DP(),this.label="",this.required=!1,this.disabled=!1,this.onLabel="Yes",this.offLabel="No",this.removeBorder=!1,this.onTextColor="var(--cui-white)",this.offTextColor="var(--cui-primary)",this.switchWidth="3.1rem",this.switchHeight="1.5rem",this.switchTextSize="var(--cui-fs-12)",this.checked=!1,this.onClick=new H,this.onChange=()=>{},this.onTouched=()=>{}}getIconUrl(t){return t?`url('${t}')`:void 0}getClassList(){const t=[];return this.checked&&!this.disabled&&!this.removeBorder&&t.push("color-primary"),this.customClass&&t.push(this.customClass),this.removeBorder&&t.push("no-border"),t.join(" ")}getInputClassList(){const t=[];return this.inputClass&&t.push(this.inputClass),this.removeBorder&&t.push("card-switch-padding"),t.join(" ")}onToggle(t){const i=t.target.checked;this.checked=i,this.onChange(i),this.onTouched()}writeValue(t){this.checked=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ue({type:e,selectors:[["cui-switch"]],inputs:{name:"name",label:"label",required:"required",disabled:"disabled",onIcon:"onIcon",offIcon:"offIcon",onIconDisabled:"onIconDisabled",offIconDisabled:"offIconDisabled",onLabel:"onLabel",offLabel:"offLabel",onColor:"onColor",offColor:"offColor",customClass:"customClass",inputClass:"inputClass",removeBorder:"removeBorder",onTextColor:"onTextColor",offTextColor:"offTextColor",switchWidth:"switchWidth",switchHeight:"switchHeight",switchTextSize:"switchTextSize",checked:"checked"},outputs:{onClick:"onClick"},standalone:!0,features:[Be([{provide:un,useExisting:ye(()=>e),multi:!0}]),In],decls:5,vars:24,consts:[[1,"d-flex","align-items-center"],["class","form-check-label me-2",3,"for",4,"ngIf"],[1,"form-check","form-switch",3,"ngClass"],["type","checkbox",1,"form-check-input",3,"id","name","checked","required","disabled","ngClass","change","click"],["input",""],[1,"form-check-label","me-2",3,"for"]],template:function(t,i){1&t&&(m(0,"div",0),M(1,yq,2,2,"label",1),m(2,"span",2)(3,"input",3,4),x("change",function(o){return i.onToggle(o)})("click",function(o){return i.onClick.emit(o)}),v()()()),2&t&&(p(1),y("ngIf",i.label),p(1),y("ngClass",i.getClassList()),p(1),kd("background-color",i.checked?i.onColor:i.offColor)("color",i.checked?i.onTextColor:i.offTextColor)("width",i.switchWidth)("height",i.switchHeight)("font-size",i.switchTextSize)("--switch-on-icon",i.getIconUrl(i.disabled?i.onIconDisabled:i.onIcon))("--switch-off-icon",i.getIconUrl(i.disabled?i.offIconDisabled:i.offIcon)),y("id",i.name||i.id)("name",i.name||i.id)("checked",i.checked)("required",i.required)("disabled",i.disabled)("ngClass",i.getInputClassList()),X("data-on-label",i.onLabel)("data-off-label",i.offLabel))},dependencies:[kr,Ni,lt],styles:["[_nghost-%COMP%]{--switch-padding: 4px;--switch-on-icon: var(--cui-switch-on-icon, url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23FFFFFF'/%3e%3c/svg%3e\"));--switch-off-icon: var(--cui-switch-off-icon, url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2300236F'/%3e%3c/svg%3e\"))}.form-switch[_ngcontent-%COMP%]{border:solid var(--cui-primary) 1px;overflow:auto;width:-moz-fit-content;width:fit-content;border-radius:50px;padding:0}.form-switch.disabled[_ngcontent-%COMP%]{border-color:var(--cui-monotone-2)}.form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]{width:var(--switch-width);height:var(--switch-height);padding:var(--switch-padding);margin:0;position:relative;background-color:var(--cui-white);background-image:var(--switch-off-icon);border:none;cursor:pointer}.form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:checked{background-color:var(--cui-primary);background-image:var(--switch-on-icon)}.form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:after{content:attr(data-off-label);line-height:normal;position:absolute;right:5px;top:50%;transform:translateY(-50%);transition:all .2s ease-in-out}.form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:checked:after{content:attr(data-on-label);left:6px;right:auto}.form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:focus{box-shadow:none}.form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:disabled{--switch-off-icon: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23E7E9ED'/%3e%3c/svg%3e\");background-image:var(--switch-off-icon);opacity:1;cursor:not-allowed}.form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:disabled:after{color:var(--cui-monotone-4)}.form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:disabled:checked{background-color:var(--cui-monotone-2);background-image:var(--switch-on-icon)}.form-switch[_ngcontent-%COMP%] .form-check-input.card-switch-padding[_ngcontent-%COMP%]{background-size:43%;background-position:7%}.form-switch[_ngcontent-%COMP%] .form-check-input.card-switch-padding[_ngcontent-%COMP%]:checked{background-position:93%}.form-switch[_ngcontent-%COMP%] .form-check-input.card-switch-padding[_ngcontent-%COMP%]:after{right:14px}.form-switch[_ngcontent-%COMP%] .form-check-input.card-switch-padding[_ngcontent-%COMP%]:checked:after{left:12px;right:auto}.form-switch[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:disabled ~ .form-check-label[_ngcontent-%COMP%]{color:var(--cui-monotone-4)}.form-switch[_ngcontent-%COMP%]:has(.form-check-input:disabled){border-color:var(--cui-monotone-2)}.form-check-label[_ngcontent-%COMP%]{font-size:var(--cui-fs-14);color:var(--cui-monotone-5)}.no-border[_ngcontent-%COMP%]{border:none!important}"]}),e})();const bq=["cardActions"];function Cq(e,n){if(1&e){const t=ae();m(0,"div",6)(1,"input",7),x("change",function(r){return V(t),B(C().onInputChange(r))}),v()()}if(2&e){const t=C();p(1),y("id",t.id)("type",t.type)("checked",t.selected)("name",t.name)("value",t.value)("disabled",t.disabled)}}function wq(e,n){if(1&e&&(m(0,"span",15),I(1),v()),2&e){const t=C(2);p(1),Ie(t.subtitle)}}const Dq=function(e){return{selected:e}},c0=function(e,n){return{width:e,height:n}};function Mq(e,n){if(1&e){const t=ae();fi(0),m(1,"div",8),$t(),m(2,"svg",9),Z(3,"use"),v()(),Oi(),m(4,"div",10)(5,"span",11),I(6),v(),M(7,wq,2,1,"span",12),v(),m(8,"div",13)(9,"input",14),x("change",function(r){return V(t),B(C().onInputChange(r))}),v()(),pi()}if(2&e){const t=C();p(1),y("ngClass",Fn(11,Dq,t.selected)),p(1),y("ngStyle",tr(13,c0,t.iconSize,t.iconSize)),p(1),X("href","assets/images/sprite.svg#"+t.iconSrc),p(3),Ie(t.cardTitle),p(1),y("ngIf",t.subtitle),p(2),y("id",t.id)("type",t.type)("checked",t.selected)("name",t.name)("value",t.value)("disabled",t.disabled)}}function Sq(e,n){if(1&e&&Z(0,"img",22),2&e){const t=C(3);y("src",t.iconSrc,Kh)("alt",t.iconAlt)("ngStyle",tr(3,c0,t.iconSize,t.iconSize))}}function Tq(e,n){if(1&e&&(fi(0),M(1,Sq,1,6,"img",21),pi()),2&e){const t=C(2);p(1),y("ngIf","leading"===t.iconPosition&&t.iconSrc)}}function Oq(e,n){if(1&e){const t=ae();m(0,"div",26)(1,"input",7),x("change",function(r){return V(t),B(C(3).onSelectableCornerCheckboxChanged(r))}),v()()}if(2&e){const t=C(3);p(1),y("id",t.id)("type",t.type)("checked",t.selected)("name",t.name)("value",t.value)("disabled",t.disabled)}}
1function Eq(e,n){if(1&e&&(m(0,"div",23)(1,"span",24),I(2),v(),M(3,Oq,2,6,"div",25),v()),2&e){const t=C(2);p(1),y("ngClass",t.showSwitch?"card-title-switch":"card-title"),p(1),Ft(" ",t.cardTitle," "),p(1),y("ngIf",t.isSelectableCorner&&t.type)}}const kq=function(e){return{collapsed:e}};function Iq(e,n){if(1&e&&(m(0,"span")(1,"span",28),I(2),v()()),2&e){const t=C(3);p(1),y("ngClass",Fn(2,kq,!t.isExpanded)),p(1),Ft(" ",t.isExpanded?t.fullText:t.truncatedText," ")}}function xq(e,n){if(1&e&&(m(0,"span"),I(1),v()),2&e){const t=C(3);p(1),Ie(t.subtitle)}}function Pq(e,n){if(1&e&&(m(0,"span",27),M(1,Iq,3,4,"span",3),M(2,xq,2,1,"span",3),v()),2&e){const t=C(2);y("ngClass",t.showSwitch?"card-subtitle-switch":"card-subtitle"),p(1),y("ngIf",t.showSwitch),p(1),y("ngIf",!t.showSwitch)}}function Nq(e,n){if(1&e&&Z(0,"img",30),2&e){const t=C(3);y("src",t.iconSrc,Kh)("alt",t.iconAlt)("ngStyle",tr(3,c0,t.iconSize,t.iconSize))}}function Aq(e,n){if(1&e&&(fi(0),M(1,Nq,1,6,"img",29),pi()),2&e){const t=C(2);p(1),y("ngIf","trailing"===t.iconPosition&&t.iconSrc)}}const Rq=function(e){return{color:e}};function Lq(e,n){if(1&e){const t=ae();m(0,"span",31),x("click",function(){return V(t),B(C(2).toggleExpanded())}),I(1),v()}if(2&e){const t=C(2);y("ngStyle",Fn(2,Rq,t.switchState?"var(--toggle-button-on-color)":"var(--toggle-button-off-color)")),p(1),Ft(" ",t.isExpanded?"Read less":"Read more"," ")}}const Fq=function(e){return{"icon-card-layout":e}};function Vq(e,n){if(1&e&&(m(0,"div",16),M(1,Tq,2,1,"ng-container",3),m(2,"div",17),M(3,Eq,4,3,"div",18),M(4,Pq,3,3,"span",19),v(),M(5,Aq,2,1,"ng-container",3),M(6,Lq,2,4,"span",20),kn(7,2),kn(8,3),v()),2&e){const t=C();y("ngClass",Fn(6,Fq,"icon-card"===t.variant)),p(1),y("ngIf","icon-card"===t.variant),p(2),y("ngIf",t.cardTitle),p(1),y("ngIf",t.subtitle),p(1),y("ngIf","icon-card"===t.variant),p(1),y("ngIf",t.showSwitch&&t.truncatedText)}}function Bq(e,n){if(1&e){const t=ae();m(0,"div",32)(1,"cui-switch",33),x("change",function(r){return V(t),B(C().onSwitchChange(r))}),v()()}if(2&e){const t=C();p(1),y("checked",t.switchState)("onColor","var(--switch-on-color)")("offColor","var(--switch-off-color)")("onTextColor",t.switchOnTextColor)("offTextColor",t.switchOffTextColor)("removeBorder",t.showSwitch)}}const Hq=[[["",8,"card-header"]],[["",8,"card-footer"]],"*",[["","card-actions",""]]],jq=function(e){return{"justify-content-between":e}},$q=[".card-header",".card-footer","*","[card-actions]"];let MP=(()=>{class e{constructor(t){this.cdr=t,this.id=DP(),this.classes="",this.variant="standard",this.name="",this.selected=!1,this.size="sm",this.disabled=!1,this.showSwitch=!1,this.switchOnBackgroundColor="var(--card-bg-on-color)",this.iconAlt="Card Icon",this.iconSize="2.5rem",this.iconPosition="leading",this.selectionChange=new H,this.cardClasses="",this.switchState=!1,this.isExpanded=!1,this.maxLength=50,this.truncatedText="",this.fullText="",this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this.switchState=this.switchState||!1,this.updateTextState()}ngOnChanges(t){(t.variant||t.classes||t.selected||t.disabled||t.size||t.mode)&&this.updateCardClasses(),t.selected&&this.cdr.markForCheck()}get isSelectable(){return"selectable"===this.variant}get isSelectableCorner(){return"selectable-corner"===this.variant}get isSelectableIcon(){return"selectable-icon"===this.variant}get cardState(){return this.disabled?"disabled":this.selected||this.showSwitch&&this.switchState?"active":"idle"}toggleExpanded(){this.isExpanded=!this.isExpanded}updateTextState(){if((this.subtitle??"").length>this.maxLength){const t=this.subtitle.lastIndexOf(" ",this.maxLength);this.truncatedText=this.subtitle.substring(0,-1!==t?t:this.maxLength),this.fullText=this.subtitle??""}else this.fullText=this.subtitle??""}updateCardClasses(){const t=new Set([this.variant,`size-${this.size}`,`mode-${this.mode}`]);this.classes&&this.classes.split(" ").forEach(i=>t.add(i.trim())),this.isSelectable&&(t.add("selectable"),this.selected&&t.add("selected")),this.isSelectableCorner&&(t.add("selectable-corner"),this.selected&&t.add("selected")),this.isSelectableIcon&&(t.add("selectable-icon"),this.selected&&t.add("selected")),this.disabled&&t.add("disabled"),this.cardClasses=Array.from(t).join(" "),this.cdr.markForCheck()}getCardStyles(){const t={},i="var(--stroke-width-s)";return this.disabled?(t.border=`${i} solid var(--card-outline-disabled)`,t):(this.isSelectableCorner&&this.selected&&(t.border=`${i} solid var(--card-outline-selected)`),this.showSwitch&&(t["background-color"]=this.switchState?this.switchOnBackgroun
1dColor??"":"var(--card-bg-off-color)",t.border="none"),t)}onCardClick(t){!this.isSelectable&&!this.isSelectableIcon||this.disabled||("icon-card"===this.variant||this.isSelectableIcon)&&this.cardActionsRef&&this.cardActionsRef.nativeElement.contains(t.target)||(!this.type||!(t.target instanceof HTMLInputElement))&&this.toggleSelection()}onSwitchChange(t){const i=t.target.checked;this.switchState=i,this.onChange(i),this.onTouched(),this.selectionChange.emit(i)}onSelectableCornerCheckboxChanged(t){const i=t.target.checked;this.selected=i,this.selectionChange.emit(i)}onInputChange(t){this.updateSelection(t.target.checked)}toggleSelection(){this.updateSelection(!this.selected)}updateSelection(t){if(this.selected!==t){this.selected=t;const i="radio"===this.type?t?this.value:null:t;this.onChange(i),this.onTouched(),this.selectionChange.emit(i),this.updateCardClasses()}}writeValue(t){if(this.showSwitch)this.switchState=!!t;else{const i="radio"===this.type?this.value===t:!!t;this.selected!==i&&(this.selected=i,this.updateCardClasses())}this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this.updateCardClasses()}}return e.\u0275fac=function(t){return new(t||e)(_(Bn))},e.\u0275cmp=ue({type:e,selectors:[["cui-card"]],contentQueries:function(t,i,r){if(1&t&&_t(r,bq,5,we),2&t){let o;He(o=je())&&(i.cardActionsRef=o.first)}},inputs:{cardTitle:"cardTitle",subtitle:"subtitle",tooltipText:"tooltipText",classes:"classes",variant:"variant",type:"type",value:"value",name:"name",selected:"selected",size:"size",mode:"mode",disabled:"disabled",showSwitch:"showSwitch",switchOnTextColor:"switchOnTextColor",switchOffTextColor:"switchOffTextColor",switchWidth:"switchWidth",switchHeight:"switchHeight",switchTextSize:"switchTextSize",switchOnBackgroundColor:"switchOnBackgroundColor",iconSrc:"iconSrc",iconAlt:"iconAlt",iconSize:"iconSize",iconPosition:"iconPosition"},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[Be([{provide:un,useExisting:ye(()=>e),multi:!0}]),Et,In],ngContentSelectors:$q,decls:8,vars:13,consts:[["data-part","root",1,"card",3,"ngClass","ngStyle","click"],["data-part","body","data-gap","0","data-align","center","data-wrap","nowrap",1,"card-body","cluster",3,"ngClass"],["data-part","control","class","form-check mb-0",4,"ngIf"],[4,"ngIf"],["class","card-container stack","data-part","content","data-gap","0",3,"ngClass",4,"ngIf"],["class","card-switch-container","data-part","switch",4,"ngIf"],["data-part","control",1,"form-check","mb-0"],["data-part","input",1,"form-check-input",3,"id","type","checked","name","value","disabled","change"],["data-part","selectable-bubble",1,"selectable-icon-bubble",3,"ngClass"],["data-part","icon",1,"card-icon",3,"ngStyle"],["data-part","text","data-gap","0","data-align","start",1,"stack","ms-3"],["data-part","title",1,"mb-0","card-title"],["class","mb-0 card-subtitle","data-part","subtitle",4,"ngIf"],["data-part","control",1,"ms-auto"],["data-part","input",1,"form-check-input","selectable-icon-input",3,"id","type","checked","name","value","disabled","change"],["data-part","subtitle",1,"mb-0","card-subtitle"],["data-part","content","data-gap","0",1,"card-container","stack",3,"ngClass"],["data-part","text",1,"title-subtitle-container"],["class","cluster","data-part","header","data-gap","0","data-align","center","data-justify","between","data-wrap","nowrap",4,"ngIf"],["class","mb-0","data-
1part","subtitle",3,"ngClass",4,"ngIf"],["class","toggle-button","data-part","toggle",3,"ngStyle","click",4,"ngIf"],["class","card-icon me-2 mb-0","data-part","icon",3,"src","alt","ngStyle",4,"ngIf"],["data-part","icon",1,"card-icon","me-2","mb-0",3,"src","alt","ngStyle"],["data-part","header","data-gap","0","data-align","center","data-justify","between","data-wrap","nowrap",1,"cluster"],["data-part","title",1,"mb-0",3,"ngClass"],["data-part","control",4,"ngIf"],["data-part","control"],["data-part","subtitle",1,"mb-0",3,"ngClass"],[3,"ngClass"],["class","card-icon ms-2 mb-0","data-part","icon",3,"src","alt","ngStyle",4,"ngIf"],["data-part","icon",1,"card-icon","ms-2","mb-0",3,"src","alt","ngStyle"],["data-part","toggle",1,"toggle-button",3,"ngStyle","click"],["data-part","switch",1,"card-switch-container"],["onIcon","assets/images/icons/switch-yes.svg","offIcon","assets/images/icons/card-no-switch.svg","switchWidth","var(--card-switch-width)","switchHeight","var(--card-switch-height)","switchTextSize","var(--card-toggle-text-size)",3,"checked","onColor","offColor","onTextColor","offTextColor","removeBorder","change"]],template:function(t,i){1&t&&(Dr(Hq),m(0,"div",0),x("click",function(o){return i.onCardClick(o)}),kn(1),m(2,"div",1),M(3,Cq,2,6,"div",2),M(4,Mq,10,16,"ng-container",3),M(5,Vq,9,8,"div",4),M(6,Bq,2,6,"div",5),v(),kn(7,1),v()),2&t&&(y("ngClass",i.cardClasses)("ngStyle",i.getCardStyles()),X("data-state",i.cardState)("data-size",i.size)("data-variant",i.variant)("data-mode",i.mode||null),p(2),y("ngClass",Fn(11,jq,i.showSwitch)),p(1),y("ngIf",i.isSelectable&&i.type),p(1),y("ngIf",i.isSelectableIcon&&i.type),p(1),y("ngIf",!i.isSelectableIcon),p(1),y("ngIf",i.showSwitch))},dependencies:[kr,Ni,lt,pE,vq],styles:[".card-container[_ngcontent-%COMP%], [data-part=content][_ngcontent-%COMP%]{flex:var(--card-container-flex);display:flex;width:100%;flex-direction:column;justify-content:flex-start}.card-container.icon-card-layout[_ngcontent-%COMP%], [data-part=content].icon-card-layout[_ngcontent-%COMP%]{flex-direction:row!important;align-items:center}.card-container.icon-card-layout[_ngcontent-%COMP%] .title-subtitle-container[_ngcontent-%COMP%]:has(.card-subtitle), [data-part=content].icon-card-layout[_ngcontent-%COMP%] .title-subtitle-container[_ngcontent-%COMP%]:has(.card-subtitle){display:flex;flex-direction:column;justify-content:center;margin-right:auto}.card-container.icon-card-layout[_ngcontent-%COMP%] .title-subtitle-container[_ngcontent-%COMP%]:has(.card-subtitle) div.d-flex.align-items-center.justify-content-between[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%], [data-part=content].icon-card-layout[_ngcontent-%COMP%] .title-subtitle-container[_ngcontent-%COMP%]:has(.card-subtitle) div.d-flex.align-items-center.justify-content-between[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{margin-top:var(--card-icon-offset)}.card[_ngcontent-%COMP%], [data-part=root][_ngcontent-%COMP%]{--bs-card-border-radius: var(--card-border-radius)}.card.size-sm[_ngcontent-%COMP%], .card[data-size=sm][_ngcontent-%COMP%], [data-part=root].size-sm[_ngcontent-%COMP%], [data-part=root][data-size=sm][_ngcontent-%COMP%]{--bs-card-spacer-y: var(--card-padding-y-sm);--bs-card-spacer-x: var(--card-padding-x)}.card.size-sm[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(.form-check), .card[data-size=sm][_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(.form-check), [data-part=root].size-sm[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(.form-check), [data-part=root][data-size=sm][_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(.form-check){font-size:var(--card-body-text-size-sm)}.card.size-lg[_ngcontent-%COMP%], .card[data-size=lg][_ngcontent-%COMP%], [data-part=root].size-lg[_ngcontent-%COMP%], [data-part=root][data-size=lg][_ngcontent-%COMP%]{--bs-card-spacer-y: var(--card-padding-y-lg);--bs-card-spacer-x: var(--card-padding-x)}.card.size-lg[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(.form-check), .card[data-size=lg][_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(.form-check), [data-part=root].size-lg[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(.form-check), [data-part=root][data-size=lg][_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(.form-check){font-size:var(--card-body-text-size-lg)}.card.selectable[_ngcontent-%COMP%], .card[data-variant=selectable][_ngcontent-%COMP%], [data-part=root].selectable[_ngcontent-%COMP%], [data-part=root][data-variant=selectable][_ngcontent-%COMP%]{cursor:pointer}.card.selectable[_ngcontent-%COMP%]:hover, .card[data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root].selectable[_ngcontent-%COMP%]:hover, [data-part=root][data-variant=selectable][_ngcontent-%COMP%]:hover{border-color:var(--card-outline-hover);background-color:var(--card-surface-hover)}.card.selectable.selected[_ngcontent-%COMP%], .card.selectable[data-state=active][_ngcontent-%COMP%], .card[data-variant=selectable].selected[_ngcontent-%COMP%], .card[data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root].selectable.selected[_ngcontent-%COMP%], [data-part=root].selectable[data-state=active][_ngcontent-%COMP%], [data-part=root][data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root][data-variant=selectable][data-state=active][_ngcontent-%COMP%]{background-color:var(--card-surface-selected);border-color:var(--card-outline-selected)}.card.mode-primary[_ngcontent-%COMP%], .card[data-mode=primary][_ngcontent-%COMP%], [data-part=root].mode-primary[_ngcontent-%COMP%], [data-part=root][data-mode=primary][_ngcontent-%COMP%]{border-color:var(--card-mode-primary-border)}.card.mode-primary[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%], .card[data-mode=primary][_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%], [data-part=root].mode-primary[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%], [data-part=root][data-mode=primary][_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{color:var(--card-mode-primary-text)}.card.mode-primary.selectable[_ngcontent-%COMP%]:hover, .card.mode-primary.selectable.selected[_ngcontent-%COMP%], .card.mode-primary.selectable[data-state=active][_ngcontent-%COMP%], .card.mode-primary[data-variant=selectable][_ngcontent-%COMP%]:hover, .card.mode-primary[data-variant=selectable].selected[_ngcontent-%COMP%], .card.mode-primary[data-variant=selectable][data-state=active][_ngcontent-%COMP%], .card[data-mode=primary].selectable[_ngcontent-%COMP%]:hover, .card[data-mode=primary].selectable.selected[_ngcontent-%COMP%], .card[data-mode=primary].selectable[data-state=active][_ngcontent-%COMP%], .card[data-mode=primary][data-variant=selectable][_ngcontent-%COMP%]:hover, .card[data-mode=primary][data-variant=selectable].selected[_ngcontent-%COMP%], .card[data-mode=primary][data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root].mode-primary.selectable[_ngcontent-%COMP%]:hover, [data-part=root].mode-primary.selectable.selected[_ngcontent-%COMP%], [data-part=root].mode-primary.selectable[data-state=active][_ngcontent-%COMP%], [data-part=root].mode-primary[data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root].mode-primary[data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root].mode-primary[data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=primary].selectable[_ngcontent-%COMP%]:hover, [data-part=root][data-mode=primary].selectable.selected[_ngcontent-%COMP%], [data-part=root][data-mode=primary].selectable[data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=primary][data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root][data-mode=primary][data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root][data-mode=primary][data-variant=selectable][data-state=active][_ngcontent-%COMP%]{background-color:var(--card-mode-primary-surface)}.card.mode-secondary[_ngcontent-%COMP%], .card[data-mode=secondary][_ngcontent-%COMP%], [data-part=root].mode-secondary[_ngcontent-%COMP%], [data-part=root][data-mode=secondary][_ngcontent-%COMP%]{border-color:var(--card-mode-secondary-border)}.card.mode-secondary.selectable[_ngcontent-%COMP%]:hover, .card.mode-secondary.selectable.selected[_ngcontent-%COMP%], .card.mode-secondary.selectable[data-state=active][_ngcontent-%COMP%], .card.mode-secondary[data-variant=selectable][_ngcontent-%COMP%]:hover, .card.mode-secondary[data-variant=selectable].selected[_ngcontent-%COMP%], .card.mode-secondary[data-variant=selectable][data-state=active][_ngcontent-%COMP%], .card[data-mode=secondary].selectable[_ngcontent-%COMP%]:hover, .card[data-mode=secondary].selectable.selected[_ngcontent-%COMP%], .card[data-mode=secondary].selectable[data-state=active][_ngcontent-%COMP%], .card[data-mode=secondary][data-variant=selectable][_ngcontent-%COMP%]:hover, .card[data-mode=secondary][data-variant=selectable].selected[_ngcontent-%COMP%], .card[data-mode=secondary][data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root].mode-secondary.selectable[_ngcontent-%COMP%]:hover, [data-part=root].mode-secondary.selectable.selected[_ngcontent-%COMP%], [data-part=root].mode-secondary.selectable[data-state=active][_ngcontent-%COMP%], [data-part=root].mode-secondary[data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root].mode-secondary[data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root].mode-secondary[data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=secondary].selectable[_ngcontent-%COMP%]:hover, [data-part=root][data-mode=secondary].selectable.selected[_ngcontent-%COMP%], [data-part=root][data-mode=secondary].selectable[data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=secondary][data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root][data-mode=secondary][data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root][data-mode=secondary][data-variant=selectable][data-state=active][_ngcontent-%COMP%]{background-color:var(--card-mode-secondary-surface)}.card.mode-success[_ngcontent-%COMP%], .card[data-mode=success][_ngcontent-%COMP%], [data-part=root].mode-success[_ngcontent-%COMP%], [data-part=root][data-mode=success][_ngcontent-%COMP%]{border-color:var(--card-mode-success-border)}.card.mode-success.selectable[_ngcontent-%COMP%]:hover, .card.mode-success.selectable.selected[_ngcontent-%COMP%], .card.mode-success.selectable[data-state=active][_ngcontent-%COMP%], .card.mode-success[data-variant=selectable][_ngcontent-%COMP%]:hover, .card.mode-success[data-variant=selectable].selected[_ngcontent-%COMP%], .card.mode-success[data-variant=selectable][data-state=active][_ngcontent-%COMP%], .card[data-mode=success].selectable[_ngcontent-%COMP%]:hover, .card[data-mode=success].selectable.selected[_ngcontent-%COMP%], .card[data-mode=success].selectable[data-state=active][_ngcontent-%COMP%], .card[data-mode=success][data-variant=selectable][_ngcontent-%COMP%]:hover, .card[data-mode=success][data-variant=selectable].selected[_ngcontent-%COMP%], .card[data-mode=success][data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root].mode-success.selectable[_ngcontent-%COMP%]:hover, [data-part=root].mode-success.selectable.selected[_ngcontent-%COMP%], [data-part=root].mode-success.selectable[data-state=active][_ngcontent-%COMP%], [data-part=root].mode-success[data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root].mode-success[data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root].mode-success[data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=success].selectable[_ngcontent-%COMP%]:hover, [data-part=root][data-mode=success].selectable.selected[_ngcontent-%COMP%], [data-part=root][data-mode=success].selectable[data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=success][data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root][data-mode=success][data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root][data-mode=success][data-variant=selectable][data-state=active][_ngcontent-%COMP%]{background-color:var(--card-mode-success-surface)}.card.mode-danger[_ngcontent-%COMP%], .card[data-mode=danger][_ngcontent-%COMP%], [data-part=root].mode-danger[_ngcontent-%COMP%], [data-part=root][data-mode=danger][_ngcontent-%COMP%]{border-color:var(--card-mode-danger-border)}.card.mode-danger.selectable[_ngcontent-%COMP%]:hover, .card.mode-danger.selectable.selected[_ngcontent-%COMP%], .card.mode-danger.selectable[data-state=active][_ngcontent-%COMP%], .card.mode-danger[data-variant=selectable][_ngcontent-%COMP%]:hover, .card.mode-danger[data-variant=selectable].selected[_ngcontent-%COMP%], .card.mode-danger[data-variant=selectable][data-state=active][_ngcontent-%COMP%], .card[data-mode=danger].selectable[_ngcontent-%COMP%]:hover, .card[data-mode=danger].selectable.selected[_ngcontent-%COMP%], .card[data-mode=danger].selectable[data-state=active][_ngcontent-%COMP%], .card[data-mode=danger][data-variant=selectable][_ngcontent-%COMP%]:hover, .card[data-mode=danger][data-variant=selectable].selected[_ngcontent-%COMP%], .card[data-mode=danger][data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root].mode-danger.selectable[_ngcontent-%COMP%]:hover, [data-part=root].mode-danger.selectable.selected[_ngcontent-%COMP%], [data-part=root].mode-danger.selectable[data-state=active][_ngcontent-%COMP%], [data-part=root].mode-danger[data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root].mode-danger[data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root].mode-danger[data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=danger].selectable[_ngcontent-%COMP%]:hover, [data-part=root][data-mode=danger].selectable.selected[_ngcontent-%COMP%], [data-part=root][data-mode=danger].selectable[data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=danger][data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root][data-mode=danger][data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root][data-mode=danger][data-variant=selectable][data-state=active][_ngcontent-%COMP%]{background-color:var(--card-mode-danger-surface)}.card.mode-warning[_ngcontent-%COMP%], .card[data-mode=warning][_ngcontent-%COMP%], [data-part=root].mode-warning[_ngcontent-%COMP%], [data-part=root][data-mode=warning][_ngcontent-%COMP%]{border-color:var(--card-mode-warning-border)}.card.mode-warning.selectable[_ngcontent-%COMP%]:hover, .card.mode-warning.selectable.selected[_ngcontent-%COMP%], .card.mode-warning.selectable[data-state=active][_ngcontent-%COMP%], .card.mode-warning[data-variant=selectable][_ngcontent-%COMP%]:hover, .card.mode-warning[data-variant=selectable].selected[_ngcontent-%COMP%], .card.mode-warning[data-variant=selectable][data-state=active][_ngcontent-%COMP%], .card[data-mode=warning].selectable[_ngcontent-%COMP%]:hover, .card[data-mode=warning].selectable.selected[_ngcontent-%COMP%], .card[data-mode=warning].selectable[data-state=active][_ngcontent-%COMP%], .card[data-mode=warning][data-variant=selectable][_ngcontent-%COMP%]:hover, .card[data-mode=warning][data-variant=selectable].selected[_ngcontent-%COMP%], .card[data-mode=warning][data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root].mode-warning.selectable[_ngcontent-%COMP%]:hover, [data-part=root].mode-warning.selectable.selected[_ngcontent-%COMP%], [data-part=root].mode-warning.selectable[data-state=active][_ngcontent-%COMP%], [data-part=root].mode-warning[data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root].mode-warning[data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root].mode-warning[data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=warning].selectable[_ngcontent-%COMP%]:hover, [data-part=root][data-mode=warning].selectable.selected[_ngcontent-%COMP%], [data-part=root][data-mode=warning].selectable[data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=warning][data-variant=selectable][_ngcontent-%COMP
1%]:hover, [data-part=root][data-mode=warning][data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root][data-mode=warning][data-variant=selectable][data-state=active][_ngcontent-%COMP%]{background-color:var(--card-mode-warning-surface)}.card.mode-info[_ngcontent-%COMP%], .card[data-mode=info][_ngcontent-%COMP%], [data-part=root].mode-info[_ngcontent-%COMP%], [data-part=root][data-mode=info][_ngcontent-%COMP%]{border-color:var(--card-mode-info-border)}.card.mode-info.selectable[_ngcontent-%COMP%]:hover, .card.mode-info.selectable.selected[_ngcontent-%COMP%], .card.mode-info.selectable[data-state=active][_ngcontent-%COMP%], .card.mode-info[data-variant=selectable][_ngcontent-%COMP%]:hover, .card.mode-info[data-variant=selectable].selected[_ngcontent-%COMP%], .card.mode-info[data-variant=selectable][data-state=active][_ngcontent-%COMP%], .card[data-mode=info].selectable[_ngcontent-%COMP%]:hover, .card[data-mode=info].selectable.selected[_ngcontent-%COMP%], .card[data-mode=info].selectable[data-state=active][_ngcontent-%COMP%], .card[data-mode=info][data-variant=selectable][_ngcontent-%COMP%]:hover, .card[data-mode=info][data-variant=selectable].selected[_ngcontent-%COMP%], .card[data-mode=info][data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root].mode-info.selectable[_ngcontent-%COMP%]:hover, [data-part=root].mode-info.selectable.selected[_ngcontent-%COMP%], [data-part=root].mode-info.selectable[data-state=active][_ngcontent-%COMP%], [data-part=root].mode-info[data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root].mode-info[data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root].mode-info[data-variant=selectable][data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=info].selectable[_ngcontent-%COMP%]:hover, [data-part=root][data-mode=info].selectable.selected[_ngcontent-%COMP%], [data-part=root][data-mode=info].selectable[data-state=active][_ngcontent-%COMP%], [data-part=root][data-mode=info][data-variant=selectable][_ngcontent-%COMP%]:hover, [data-part=root][data-mode=info][data-variant=selectable].selected[_ngcontent-%COMP%], [data-part=root][data-mode=info][data-variant=selectable][data-state=active][_ngcontent-%COMP%]{background-color:var(--card-mode-info-surface)}.card.disabled[_ngcontent-%COMP%], .card[data-state=disabled][_ngcontent-%COMP%], [data-part=root].disabled[_ngcontent-%COMP%], [data-part=root][data-state=disabled][_ngcontent-%COMP%]{cursor:default}.card.disabled[_ngcontent-%COMP%]:hover, .card.disabled.selected[_ngcontent-%COMP%], .card[data-state=disabled][_ngcontent-%COMP%]:hover, .card[data-state=disabled].selected[_ngcontent-%COMP%], [data-part=root].disabled[_ngcontent-%COMP%]:hover, [data-part=root].disabled.selected[_ngcontent-%COMP%], [data-part=root][data-state=disabled][_ngcontent-%COMP%]:hover, [data-part=root][data-state=disabled].selected[_ngcontent-%COMP%]{background-color:var(--card-surface-disabled);border:var(--card-outline-disabled)}.card.disabled[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%], .card.disabled[_ngcontent-%COMP%] .card-subtitle[_ngcontent-%COMP%], .card.disabled[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%], .card[data-state=disabled][_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%], .card[data-state=disabled][_ngcontent-%COMP%] .card-subtitle[_ngcontent-%COMP%], .card[data-state=disabled][_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%], [data-part=root].disabled[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%], [data-part=root].disabled[_ngcontent-%COMP%] .card-subtitle[_ngcontent-%COMP%], [data-part=root].disabled[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%], [data-part=root][data-state=disabled][_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%], [data-part=root][data-state=disabled][_ngcontent-%COMP%] .card-subtitle[_ngcontent-%COMP%], [data-part=root][data-state=disabled][_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{color:var(--card-text-disabled)}.card.selectable-corner[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%], .card[data-variant=selectable-corner][_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%], [data-part=root].selectable-corner[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%], [data-part=root][data-variant=selectable-corner][_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]{width:var(--card-check-size);height:var(--card-check-size);border-color:var(--card-check-border);cursor:pointer}.card.selectable-corner[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:disabled, .card[data-variant=selectable-corner][_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:disabled, [data-part=root].selectable-corner[_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:disabled, [data-part=root][data-variant=selectable-corner][_ngcontent-%COMP%] .form-check-input[_ngcontent-%COMP%]:disabled{background-color:var(--card-check-disabled-bg);border-color:var(--card-check-disabled-border)}.card-title[_ngcontent-%COMP%], [data-part=title].card-title[_ngcontent-%COMP%]{font-size:var(--card-title-text-size);font-weight:var(--card-title-text-weight);color:var(--card-title-text-color)}.card-subtitle[_ngcontent-%COMP%], [data-part=subtitle].card-subtitle[_ngcontent-%COMP%]{font-size:var(--card-subtitle-text-size);font-weight:var(--card-subtitle-text-weight);color:var(--card-subtitle-text-color)}.card-title-switch[_ngcontent-%COMP%], [data-part=title].card-title-switch[_ngcontent-%COMP%]{font-size:var(--card-title-switch-text-size);font-weight:var(--card-title-switch-text-weight);color:var(--card-switch-text-color)}.card-subtitle-switch[_ngcontent-%COMP%], [data-part=subtitle].card-subtitle-switch[_ngcontent-%COMP%]{font-size:var(--card-subtitle-switch-text-size);font-weight:var(--card-subtitle-switch-text-weight);color:var(--card-switch-text-color)}.form-check-input[_ngcontent-%COMP%]:checked, [data-part=input][_ngcontent-%COMP%]:checked{background-color:var(--card-check-selected-bg);border-color:var(--card-check-selected-border)}.form-check-input[_ngcontent-%COMP%]:checked:disabled, [data-part=input][_ngcontent-%COMP%]:checked:disabled{background-color:var(--card-check-disabled-bg);border-color:var(--card-check-disabled-border)}.form-check-input[_ngcontent-%COMP%]:focus, [data-part=input][_ngcontent-%COMP%]:focus{box-shadow:none}.card-switch-container[_ngcontent-%COMP%], [data-part=switch][_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:auto;margin-bottom:auto}.card-switch-height-40[_ngcontent-%COMP%]{height:var(--card-switch-height)}.toggle-button[_ngcontent-%COMP%], [data-part=toggle][_ngcontent-%COMP%]{font-size:var(--card-toggle-text-size);cursor:pointer;text-decoration:underline;font-weight:var(--card-toggle-text-weight)}.card-icon[_ngcontent-%COMP%], [data-part=icon][_ngcontent-%COMP%]{object-fit:contain;flex-shrink:0}.card.selectable-icon[_ngcontent-%COMP%], .card[data-variant=selectable-icon][_ngcontent-%COMP%]{cursor:pointer}.card.selectable-icon[_ngcontent-%COMP%]:hover, .card[data-variant=selectable-icon][_ngcontent-%COMP%]:hover{border-color:var(--card-outline-hover);background-color:var(--card-surface-hover)}.card.selectable-icon.selected[_ngcontent-%COMP%], .card.selectable-icon[data-state=active][_ngcontent-%COMP%], .card[data-variant=selectable-icon].selected[_ngcontent-%COMP%], .card[data-variant=selectable-icon][data-state=active][_ngcontent-%COMP%]{background-color:var(--card-surface-selected);border-color:var(--card-outline-selected)}.card.selectable-icon.disabled[_ngcontent-%COMP%], .card.selectable-icon[data-state=disabled][_ngcontent-%COMP%], .card[data-variant=selectable-icon].disabled[_ngcontent-%COMP%], .card[data-variant=selectable-icon][data-state=disabled][_ngcontent-%COMP%]{cursor:default}.card.selectable-icon.disabled[_ngcontent-%COMP%]:hover, .card.selectable-icon[data-state=disabled][_ngcontent-%COMP%]:hover, .card[data-variant=selectable-icon].disabled[_ngcontent-%COMP%]:hover, .card[data-variant=selectable-icon][data-state=disabled][_ngcontent-%COMP%]:hover{background-color:var(--card-surface-disabled);border-color:var(--card-outline-disabled)}.card.selectable-icon.disabled[_ngcontent-%COMP%] .selectable-icon-bubble[_ngcontent-%COMP%], .card.selectable-icon[data-state=disabled][_ngcontent-%COMP%] .selectable-icon-bubble[_ngcontent-%COMP%], .card[data-variant=selectable-icon].disabled[_ngcontent-%COMP%] .selectable-icon-bubble[_ngcontent-%COMP%], .card[data-variant=selectable-icon][data-state=disabled][_ngcontent-%COMP%] .selectable-icon-bubble[_ngcontent-%COMP%]{background-color:var(--card-icon-bubble-bg-disabled)}.card.selectable-icon.disabled[_ngcontent-%COMP%] .selectable-icon-bubble[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%], .card.selectable-icon[data-state=disabled][_ngcontent-%COMP%] .selectable-icon-bubble[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%], .card[data-variant=selectable-icon].disabled[_ngcontent-%COMP%] .selectable-icon-bubble[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%], .card[data-variant=selectable-icon][data-state=disabled][_ngcontent-%COMP%] .selectable-icon-bubble[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{filter:none;opacity:var(--card-icon-disabled-opacity)}.card.selectable-icon.disabled[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%], .card.selectable-icon.disabled[_ngcontent-%COMP%] .card-subtitle[_ngcontent-%COMP%], .card.selectable-icon[data-state=disabled][_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%], .card.selectable-icon[data-state=disabled][_ngcontent-%COMP%] .card-subtitle[_ngcontent-%COMP%], .card[data-variant=selectable-icon].disabled[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%], .card[data-variant=selectable-icon].disabled[_ngcontent-%COMP%] .card-subtitle[_ngcontent-%COMP%], .card[data-variant=selectable-icon][data-state=disabled][_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%], .card[data-variant=selectable-icon][data-state=disabled][_ngcontent-%COMP%] .card-subtitle[_ngcontent-%COMP%]{color:var(--card-text-disabled)}.card.selectable-icon.disabled[_ngcontent-%COMP%] .selectable-icon-input[_ngcontent-%COMP%], .card.selectable-icon[data-state=disabled][_ngcontent-%COMP%] .selectable-icon-input[_ngcontent-%COMP%], .card[data-variant=selectable-icon].disabled[_ngcontent-%COMP%] .selectable-icon-input[_ngcontent-%COMP%], .card[data-variant=selectable-icon][data-state=disabled][_ngcontent-%COMP%] .selectable-icon-input[_ngcontent-%COMP%]{opacity:var(--card-icon-disabled-opacity)}.selectable-icon-bubble[_ngcontent-%COMP%], [data-part=selectable-bubble][_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:var(--card-icon-bubble-size);height:var(--card-icon-bubble-size);border-radius:50%;background-color:var(--card-icon-bubble-bg);flex-shrink:0}.selectable-icon-bubble[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%], [data-part=selectable-bubble][_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{width:var(--card-icon-size);height:var(--card-icon-size);object-fit:contain}.selectable-icon-bubble.selected[_ngcontent-%COMP%], [data-part=selectable-bubble].selected[_ngcontent-%COMP%]{background-color:var(--card-icon-bubble-bg-selected)}.selectable-icon-bubble.selected[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%], [data-part=selectable-bubble].selected[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{filter:var(--card-icon-selected-filter)}.selectable-icon-input[_ngcontent-%COMP%]{width:var(--card-icon-size);height:var(--card-icon-size);flex-shrink:0}"],changeDetection:0}),e})();function Yq(e,n){if(1&e&&(m(0,"span",15),I(1),v()),2&e){const t=C();p(1),Ie(t.OTP.PROMPT)}}function Uq(e,n){if(1&e&&(m(0,"span",16),I(1),v()),2&e){const t=C();p(1),Ie(t.OTP.NO_DETAILS)}}
1function Gq(e,n){if(1&e&&(fi(0),m(1,"span",17),I(2),v(),m(3,"span",18),I(4),v(),pi()),2&e){const t=C();p(2),Ie(t.OTP.BOOKING_CONTACT_INFO),p(2),Ie(t.OTP.BOOKING_CONTACT_WARNING)}}function zq(e,n){if(1&e){const t=ae();m(0,"cui-card",19),x("selectionChange",function(){const o=V(t).$implicit;return B(C().onOptionSelected(o.value))}),v()}if(2&e){const t=n.$implicit,i=C();y("selected",i.selectedOption===t.value)("disabled",i.isCardDisabled(t))("iconSrc",t.icon)("cardTitle",t.description)("subtitle",i.getSubtitle(t))}}let Wq=(()=>{class e{constructor(t,i,r,o,s,a){this.mfaSessionService=t,this.router=i,this.http=r,this.destroyRef=o,this.cdr=s,this.toastService=a,this.selectedOption="",this.ALL_MFA_METHODS=a0,this.OTP=sl}ngOnInit(){const t=this.mfaSessionService.session;if(t){if(this.session=t,!this.isBookingContactMode){const i=a0.filter(r=>!this.isCardDisabled(r));1===i.length&&(this.selectedOption=i[0].value)}}else this.router.navigate(["/"])}get hasMfaTypes(){return Array.isArray(this.session?.mfatypes)&&this.session.mfatypes.length>0}get optionSelected(){return!!this.selectedOption}get isBookingContactMode(){return!0===this.session?.usingbookingcontactfallback}isCardDisabled(t){return!(!this.session||!Array.isArray(this.session.mfatypes)||this.session.mfatypes.some(i=>i.value===t.value))}getSubtitle(t){return this.isCardDisabled(t)?t.value===og.EMAIL?Ou.EMAIL_NOT_CONFIGURED:Ou.PHONE_NOT_CONFIGURED:this.isBookingContactMode?t.value===og.EMAIL?Ou.BOOKING_EMAIL:Ou.BOOKING_SMS:"Send code to user "+(t.value===og.EMAIL?"email":"phone")}sendOTP(){this.http.postRequest([nl_AUTH,"mfa/send"],{username:this.session.username,token:this.session.token,mfatype:this.selectedOption}).pipe(Yo(this.destroyRef)).subscribe({next:()=>{this.router.navigate(["/validate-otp",{sendingMethod:this.selectedOption}])},error:i=>{this.toastService.show("Error",i.error.error.message,{classname:"toast-error",delay:5e3})}})}onOptionSelected(t){this.selectedOption===t?(this.selectedOption="",this.cdr.detectChanges(),this.selectedOption=t):this.selectedOption=t}backToLogin(){this.mfaSessionService.clearSession(),this.router.navigate(["/"])}static#e=this.\u0275fac=function(i){return new(i||e)(_(tg),_(Jt),_(Tu),_(wr),_(Bn),_(sg))};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-request-otp"]],decls:20,vars:6,consts:[[1,"d-flex","flex-column","gap-1","justify-content-center","align-items-center","min-vh-100","p-3"],["src","assets/logo.png","alt","NightsBridge logo",1,"h-64"],[1,"card","w-100","max-w-29","p-2","align-items-center","mt-3"],[1,"card-body","w-100"],[1,"d-flex","flex-column","align-items-center","gap-2","mb-4"],[1,"fw-bold","text-primary","fs-24"],["class","fw-normal color-mono-tertiary-text","data-testid","prompt",4,"ngIf"],["class","fw-normal color-error-primary-text","role","alert","data-testid","noDetails",4,"ngIf"],[4,"ngIf"],[1,"d-flex","flex-column"],["data-testid","mfaMethod","class","mb-3","type","radio","variant","selectable-icon","iconSize","1.4rem","name","preferredContactRadio",3,"selected","disabled","iconSrc","cardTitle","subtitle","selectionChange",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","gap-2","mt-2","min-h-48"],["classes","px-4","type","outlined","data-testid","backToLogin",1,"flex-1",3,"onClick"],["classes","px-4","data-testid","sendOtp",1,"flex-1",3,"disabled","onClick"],[1,"w-100","max-w-29"],["data-testid","prompt",1,"fw-normal","color-mono-tertiary-text"],["role","alert","data-testid","noDetails",1,"fw-normal","color-error-primary-text"],["data-testid","bookingContact",1,"fw-normal","color-mono-tertiary-text","text-center"],["role","alert",1,"fw-normal","color-error-primary-text","text-center"],["data-testid","mfaMethod","type","radio","variant","selectable-icon","iconSize","1.4rem","name","preferredContactRadio",1,"mb-3",3,"selected","disabled","iconSrc","cardTitle","subtitle","selectionChange"]],template:function(i,r){1&i&&(m(0,"div",0),Z(1,"img",1),m(2,"section",2)(3,"div",3)(4,"div",4)(5,"span",5),I(6,"Verify it's you"),v(),M(7,Yq,2,1,"span",6),M(8,Uq,2,1,"span",7),M(9,Gq,5,2,"ng-container",8),v(),m(10,"div")(11,"div",9),M(12,zq,1,5,"cui-card",10),v(),m(13,"section",11)(14,"cui-button",12),x("onClick",function(){return r.backToLogin()}),I(15,"Back to Login"),v(),m(16,"cui-button",13),x("onClick",function(){return r.sendOTP()}),I(17,"Send OTP"),v()()()()(),m(18,"div",14),Z(19,"app-help-section"),v()()),2&i&&(p(7),y("ngIf",!r.isBookingContactMode&&r.hasMfaTypes),p(1),y("ngIf",!r.isBookingContactMode&&!r.hasMfaTypes),p(1),y("ngIf",r.isBookingContactMode),p(3),y("ngForOf",r.ALL_MFA_METHODS),p(4),y("disabled",!r.optionSelected),X("data-state",r.optionSelected?"idle":"disabled"))},dependencies:[dn,lt,da,ua,MP],styles:["[_nghost-%COMP%] cui-card.mfa-subtitle [data-part=subtitle]{color:var(--cui-error-1)}[_nghost-%COMP%] cui-card .card-subtitle{font-size:16px!important}"]})}return e})();const qq=["otpBox"];function Kq(e,n){if(1&e){const t=ae();m(0,"input",2,3),x("input",function(r){const s=V(t).index;return B(C().onInput(r,s))})("keydown",function(r){const s=V(t).index;return B(C().onKeyDown(r,s))})("paste",function(r){const s=V(t).index;return B(C().pasteCode(r,s))}),v()}if(2&e){const t=n.$implicit,i=n.index,r=C();y("disabled",r.isDisabled)("value",t),X("data-state",r.isDisabled?"disabled":r.hasError?"error":"idle")("aria-invalid",!!r.hasError||null)("aria-label","Digit "+(i+1)+" of "+r.length)("autocomplete",0===i?"one-time-code":"off")}}let SP=(()=>{class e{constructor(){this.length=6,this.hasError=!1,this.otpCompleted=new H,this.otpCodes=[],this.isDisabled=!1,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this.otpCodes=new Array(this.length).fill("")}trackByIndex(t){return t}writeValue(t){if(t)for(this.otpCodes=t.split("").slice(0,this.length);this.otpCodes.length<this.length;)this.otpCodes.push("");else this.otpCodes=new Array(this.length).fill("")}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.isDisabled=t}onInput(t,i){const o=(t.target.value||"").replace(/\D/g,"");if(!o){const s=!!this.otpCodes[i];return this.setBoxValue(i,""),this.emitValue(),void(!s&&i>0&&this.focusBox(i-1))}o.length>1?this.fillFrom(i,o):(this.setBoxValue(i,o),this.emitValue(),i<this.length-1&&this.focusBox(i+1))}onKeyDown(t,i){const r=t.key;if(!t.ctrlKey&&!t.metaKey){if("Backspace"===r)return void(this.otpCodes[i]||(t.preventDefault(),i>0&&(this.setBoxValue(i-1,""),this.emitValue(),this.focusBox(i-1))));if("ArrowLeft"===r)return t.preventDefault(),void(i>0&&this.focusBox(i-1));if("ArrowRight"===r)return t.preventDefault(),void(i<this.length-1&&this.focusBox(i+1));"Tab"===r||"Delete"===r||1===r.length&&!/^\d$/.test(r)&&t.preventDefault()}}pasteCode(t,i=0){t.preventDefault();const o=(t.clipboardData?.getData("text")||"").replace(/\D/g,"");o&&this.fillFrom(i,o)}onFocusOut(t){const i=t.relatedTarget;this.otpBoxes.toArray().some(o=>o.nativeElement===i)||this.onTouched()}fillFrom(t,i){const r=i.slice(0,this.length-t);for(let o=0;o<r.length;o++)this.setBoxValue(t+o,r[o]);this.emitValue(),this.focusBox(Math.min(t+r.length,this.length-1))}setBoxValue(t,i){this.otpCodes[t]=i;const r=this.otpBoxes?.toArray()[t];r&&r.nativeElement.value!==i&&(r.nativeElement.value=i)}focusBox(t){const i=this.otpBoxes.toArray();i[t]&&(i[t].nativeElement.focus(),i[t].nativeElement.select())}emitValue(){const t=this.otpCodes.join("");this.onChange(t),t.length===this.length&&!this.otpCodes.includes("")&&this.otpCompleted.emit(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ue({type:e,selectors:[["cui-otp-input"]],viewQuery:function(t,i){if(1&t&&nr(qq,5),2&t){let r;He(r=je())&&(i.otpBoxes=r)}},inputs:{length:"length",hasError:"hasError"},outputs:{otpCompleted:"otpCompleted"},standalone:!0,features:[Be([{provide:un,useExisting:ye(()=>e),multi:!0}]),In],decls:2,vars:2,consts:[["data-gap","2","data-wrap","nowrap","data-align","center",1,"otp-input","cluster",3,"focusout"],["type","text","inputmode","numeric","maxlength","1","class","otp-input__box",3,"disabled","value","input","keydown","paste",4,"ngFor","ngForOf","ngForTrackBy"],["type","text","inputmode","numeric","maxlength","1",1,"otp-input__box",3,"disabled","value","input","keydown","paste"],["otpBox",""]],template:function(t,i){1&t&&(m(0,"div",0),x("focusout",function(o){return i.onFocusOut(o)}),M(1,Kq,2,6,"input",1),v()),2&t&&(p(1),y("ngForOf",i.otpCodes)("ngForTrackBy",i.trackByIndex))},dependencies:[dn],styles:["[_nghost-%COMP%]{display:block}
1.otp-input__box[_ngcontent-%COMP%]{inline-size:var(--otp-input-size);block-size:var(--otp-input-size);padding:0;text-align:center;font-family:var(--otp-input-font-family);font-weight:var(--otp-input-font-weight);font-size:var(--otp-input-font-size);line-height:var(--otp-input-line-height);letter-spacing:var(--otp-input-letter-spacing);color:var(--otp-input-text);background-color:var(--otp-input-bg);border:var(--otp-input-border-width) solid var(--otp-input-border-resting);border-radius:var(--otp-input-radius);outline:none;transition:border-color .15s ease-in-out,background-color .15s ease-in-out}.otp-input__box[_ngcontent-%COMP%]:hover{background-color:var(--otp-input-bg-hover);border-color:var(--otp-input-border-hover)}.otp-input__box[_ngcontent-%COMP%]:focus{background-color:var(--otp-input-bg-focus);border-color:var(--otp-input-border-focus)}.otp-input__box[_ngcontent-%COMP%]:disabled{opacity:var(--otp-input-disabled-opacity);background-color:var(--otp-input-bg-disabled);border-color:var(--otp-input-border-disabled);pointer-events:none}.otp-input__box[data-state=error][_ngcontent-%COMP%]{border-color:var(--otp-input-border-error);background-color:var(--otp-input-bg)}.otp-input__box[data-state=error][_ngcontent-%COMP%]:hover{background-color:var(--otp-input-bg-error-hover);border-color:var(--otp-input-border-error)}"]}),e})();function Zq(e,n){if(1&e&&($t(),m(0,"svg",10),Z(1,"use"),v()),2&e){const t=C(2);p(1),X("href",t.iconToUse,null,"xlink")}}function Qq(e,n){if(1&e&&(fi(0),I(1),pi()),2&e){const t=C(2);p(1),Ie(t.description)}}function Jq(e,n){if(1&e&&(m(0,"div",4)(1,"div",5),M(2,Zq,2,1,"svg",6),m(3,"span",7),I(4),v(),m(5,"span",8),kn(6),M(7,Qq,2,1,"ng-container",3),v()(),m(8,"div",9),kn(9,1),v()()),2&e){const t=C();p(2),y("ngIf",t.variant===t.notificationVariants.inlineIcon&&t.showIcon),p(2),Ie(t.notificationTitle),p(3),y("ngIf",t.description)}}function Xq(e,n){if(1&e&&($t(),m(0,"svg",14),Z(1,"use"),v()),2&e){const t=C(2);y("ngClass",t.variant===t.notificationVariants.tonalAlert||t.variant===t.notificationVariants.borderedError?"ic ic-24":"ic ic-20"),p(1),X("href",t.iconToUse,null,"xlink")}}function eK(e,n){if(1&e&&(fi(0),I(1),pi()),2&e){const t=C(3);p(1),Ie(t.description)}}function tK(e,n){if(1&e&&(m(0,"div",15),kn(1,2),M(2,eK,2,1,"ng-container",3),v()),2&e){const t=C(2);p(2),y("ngIf",t.description)}}function nK(e,n){if(1&e&&(fi(0),m(1,"div",11),M(2,Xq,2,2,"svg",12),m(3,"div",7),I(4),v()(),M(5,tK,3,1,"div",13),pi()),2&e){const t=C();p(2),y("ngIf",t.showIcon),p(2),Ie(t.notificationTitle),p(1),y("ngIf",t.showDescription)}}const iK=[[["","description",""]],[["","right",""]],"*"],rK=function(e,n){return[e,n]},oK=function(e,n,t){return{"flex-column":e,"align-items-start":n,"align-items-center":t}},sK=["[description]","[right]","*"],aK={standard:"standard",minimal:"minimal",compact:"compact",inline:"inline",inlineIcon:"inline-icon",tonalAlert:"tonal-alert",borderedError:"bordered-error"};let TP=(()=>{class e{constructor(){this.notificationVariants=aK,this.type="alert",this.variant="standard",this.typeToIcon={modified:"edit",cancelled:"cancelled",removed:"remove",split:"split-screen",double:"copy",informative:"nights",error:"error-outlined",alert:"alert-02",positive:"check",warning:"warning"}}get showIcon(){return this.variant===this.notificationVariants.standard||this.variant===this.notificationVariants.compact||this.variant===this.notificationVariants.inlineIcon||this.variant===this.notificationVariants.tonalAlert||this.variant===this.notificationVariants.borderedError}get showDescription(){return this.variant!==this.notificationVariants.compact}get iconToUse(){return this.iconName?`assets/images/sprite.svg#${this.iconName}`:this.typeToIcon[this.type]?`assets/images/sprite.svg#${this.typeToIcon[this.type]}`:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ue({type:e,selectors:[["cui-inline-notification"]],inputs:{type:"type",variant:"variant",notificationTitle:"notificationTitle",description:"description",iconName:"iconName"},standalone:!0,features:[In],ngContentSelectors:sK,decls:4,vars:11,consts:[[1,"notification",3,"ngClass"],[1,"d-flex",3,"ngClass"],["class","d-flex flex-wrap justify-content-between align-items-center w-100",4,"ngIf"],[4,"ngIf"],[1,"d-flex","flex-wrap","justify-content-between","align-items-center","w-100"],[1,"d-flex","align-items-center","gap-1"],["class","ic ic-20",4,"ngIf"],[1,"notification-title"],[1,"notification-description"],[1,"d-flex","align-items-center","gap-2"],[1,"ic","ic-20"],[1,"d-flex","align-items-center"],[3,"ngClass",4,"ngIf"],["class","notification-description text-monotone-5 mt-1",4,"ngIf"],[3,"ngClass"],[1,"n
1otification-description","text-monotone-5","mt-1"]],template:function(t,i){1&t&&(Dr(iK),m(0,"div",0)(1,"div",1),M(2,Jq,10,3,"div",2),M(3,nK,6,3,"ng-container",3),v()()),2&t&&(y("ngClass",tr(4,rK,i.type,i.variant)),p(1),y("ngClass",Fd(7,oK,i.variant===i.notificationVariants.standard||i.variant===i.notificationVariants.minimal||i.variant===i.notificationVariants.compact,i.variant===i.notificationVariants.inline||i.variant===i.notificationVariants.tonalAlert||i.variant===i.notificationVariants.borderedError,i.variant===i.notificationVariants.inlineIcon)),p(1),y("ngIf",i.variant===i.notificationVariants.inline||i.variant===i.notificationVariants.inlineIcon),p(1),y("ngIf",i.variant!==i.notificationVariants.inline&&i.variant!==i.notificationVariants.inlineIcon))},dependencies:[kr,Ni,lt],styles:[".notification[_ngcontent-%COMP%]{padding:var(--pad-2xs) var(--pad-s);border-radius:var(--radius-m)}.notification[_ngcontent-%COMP%] .notification-title[_ngcontent-%COMP%]{font:var(--text-style-b1-long-bold);font-family:inherit;letter-spacing:var(--text-style-b1-long-letter-spacing)}.notification[_ngcontent-%COMP%] .notification-description[_ngcontent-%COMP%]{font:var(--text-style-b2-long-regular);font-family:inherit;letter-spacing:var(--text-style-b2-long-letter-spacing)}.notification.modified[_ngcontent-%COMP%]{background-color:var(--surface-violet-medium);color:var(--content-secondary-violet)}.notification.cancelled[_ngcontent-%COMP%]{background-color:var(--surface-honey-strong);color:var(--content-secondary-honey)}.notification.removed[_ngcontent-%COMP%]{background-color:var(--surface-coral-strong);color:var(--content-secondary-coral-inverse)}.notification.split[_ngcontent-%COMP%]{background-color:var(--surface-blush-medium);color:var(--content-secondary-blush)}.notification.double[_ngcontent-%COMP%]{background-color:var(--surface-error-inverse);color:var(--content-functional-error)}.notification.informative[_ngcontent-%COMP%]{background-color:var(--surface-aqua);color:var(--content-body-brand)}.notification.warning[_ngcontent-%COMP%], .notification.error[_ngcontent-%COMP%]{background-color:var(--surface-error-inverse);color:var(--content-functional-error)}.notification.alert[_ngcontent-%COMP%]{background-color:var(--surface-alert-inverse);color:var(--content-functional-alert-default)}.notification.positive[_ngcontent-%COMP%]{background-color:var(--surface-success-inverse);color:var(--content-functional-success-default)}.notification.standard[_ngcontent-%COMP%]{min-height:var(--size-48)}.notification.minimal[_ngcontent-%COMP%]{min-height:calc(var(--size-48) + var(--space-xs))}.notification.compact[_ngcontent-%COMP%]{padding:var(--pad-xs);min-height:var(--size-40)}.notification.tonal-alert[_ngcontent-%COMP%]{background-color:var(--cui-alert-2)!important;border:var(--stroke-width-s) solid var(--surface-honey-medium);color:var(--content-secondary-honey)}.notification.bordered-error[_ngcontent-%COMP%]{background-color:var(--surface-mono-01);border:var(--stroke-width-s) solid var(--input-outline-error);color:var(--content-body-default)}"]}),e})();function cK(e,n){if(1&e&&(m(0,"div",13),Z(1,"cui-inline-notification",14),v()),2&e){const t=C();p(1),y("notificationTitle",t.OTP.WRONG_PIN_TITLE)("description",t.OTP.WRONG_PIN_DESCRIPTION)}}const lK=[{path:"",component:nq,title:"NightsBridge | Login"},{path:"login",redirectTo:"",pathMatch:"full",title:"NightsBridge | Login"},{path:"forgot-password",component:oq,title:"NightsBridge | Forgot Password"},{path:"user-response",component:cq,title:"NightsBridge | User Response"},{path:"reset-password/:forgotpasswordtoken",component:fq,title:"NightsBridge | Reset Password"},{path:"not-found",component:pq,title:"NightsBridge | 404 - Not Found"},{path:"unauthorised",component:gq,title:"NightsBridge | Unauthorised"},{path:"inactive",component:mq,title:"NightsBridge | Inactive"},{path:"request-otp",component:Wq,canActivate:[CP],title:"NightsBridge | Verify Identity"},{path:"validate-otp",component:(()=>{class e{constructor(t,i,r,o,s){this.mfaSessionService=t,this.router=i,this.http=r,this.destroyRef=o,this.fb=s,this.otpMessageSent=sl.OTP_SENT,this.newOTPMessage=sl.SEND_OTP,this.MfaOptionsVisible=!0,this.showError=!1,this.OTP=sl}ngOnInit(){const t=this.mfaSessionService.session;t?(this.session=t,this.initializeForm()):this.router.navigate(["/"])}initializeForm(){this.otpForm=this.fb.group({otpCode:["",[ys.required,ys.minLength(5),ys.maxLength(5)]]})}get sendingMethodLabel(){return a0.find(t=>t.value===this.sendingMethod)?.description??this.sendingMethod??""}
1validateOTP(){const t={bbid:this.session.bbid,username:this.session.username,mfatype:this.sendingMethod,token:this.session.token,mfacode:this.otpForm.get("otpCode")?.value,trustdevice:!0};this.http.postRequest([nl_AUTH,"mfa/verify"],t,!0).pipe(Yo(this.destroyRef)).subscribe({next:r=>{r.success&&r.redirecturl?(this.showError=!1,this.mfaSessionService.clearSession(),this.redirectTo(r.redirecturl)):this.showError=!0},error:r=>{401===r.status&&(this.showError=!0,this.otpForm.get("otpCode")?.reset())}})}backToRequestOtp(){this.router.navigate(["/request-otp"])}redirectTo(t){window.location.href=t}static#e=this.\u0275fac=function(i){return new(i||e)(_(tg),_(Jt),_(Tu),_(wr),_(o6))};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-validate-otp"]],inputs:{sendingMethod:"sendingMethod"},decls:19,vars:11,consts:[[1,"d-flex","flex-column","gap-1","justify-content-center","align-items-center","min-vh-100","p-3"],["src","assets/logo.png","alt","NightsBridge logo",1,"h-64","mb-3"],[1,"card","w-100","max-w-29","p-2","align-items-center"],[1,"card-body","w-100"],[1,"d-flex","flex-column","align-items-center","gap-3","mb-4",3,"formGroup"],[1,"fw-bold","text-primary","fs-24"],["data-testid","sendingMethod",1,"fw-normal","color-mono-tertiary-text"],["class","w-100",4,"ngIf"],["formControlName","otpCode","data-testid","otpInput",3,"hasError","length"],[1,"d-flex","flex-row","align-items-center","gap-2","mt-2"],["classes","px-4","type","outlined","data-testid","goBackToRequestOtp",1,"h-48","flex-1",3,"disabled","onClick"],["classes","px-4","data-testid","submitOtp",1,"h-48","flex-1",3,"disabled","onClick"],[1,"w-100","max-w-29"],[1,"w-100"],["type","error","variant","standard","data-testid","wrongOtp","role","alert",1,"w-100",3,"notificationTitle","description"]],template:function(i,r){if(1&i&&(m(0,"div",0),Z(1,"img",1),m(2,"section",2)(3,"div",3)(4,"div",4)(5,"span",5),I(6,"Enter your OTP"),v(),m(7,"span",6),I(8),v(),M(9,cK,2,2,"div",7),Z(10,"cui-otp-input",8),v(),m(11,"div")(12,"div",9)(13,"cui-button",10),x("onClick",function(){return r.backToRequestOtp()}),I(14,"Go Back"),v(),m(15,"cui-button",11),x("onClick",function(){return r.validateOTP()}),I(16),v()()()()(),m(17,"div",12),Z(18,"app-help-section"),v()()),2&i){let o,s,a;p(4),y("formGroup",r.otpForm),X("data-state",r.showError?"error":"idle"),p(4),py("",r.OTP.SENDING_METHOD_PREFIX," ",r.sendingMethodLabel,"."),p(1),y("ngIf",r.showError),p(1),y("hasError",(null==(o=r.otpForm.get("otpCode"))?null:o.invalid)&&(null==(o=r.otpForm.get("otpCode"))?null:o.touched)||r.showError)("length",5),p(3),y("disabled",!1),p(2),y("disabled",5!==(null==(s=r.otpForm.get("otpCode"))||null==s.value?null:s.value.length)),X("data-state",5!==(null==(a=r.otpForm.get("otpCode"))||null==a.value?null:a.value.length)?"disabled":"idle"),p(1),Ie(r.showError?r.OTP.SUBMIT_RETRY:r.OTP.SUBMIT_VERIFY)}},dependencies:[lt,Hc,qd,ta,$c,da,ua,SP,TP],encapsulation:2})}return e})(),canActivate:[CP],title:"NightsBridge | Verify Identity"},{path:"**",redirectTo:"not-found"}];let dK=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[Wb.forRoot(lK,{bindToComponentInputs:!0}),Wb]})}return e})();const uK=["addListener","removeListener"],hK=["addEventListener","removeEventListener"],fK=["on","off"];function fn(e,n,t,i){if(Pe(t)&&(i=t,t=void 0),i)return fn(e,n,t).pipe(Iv(i));const[r,o]=function mK(e){return Pe(e.addEventListener)&&Pe(e.removeEventListener)}(e)?hK.map(s=>a=>e[s](n,a,t)):function pK(e){return Pe(e.addListener)&&Pe(e.removeListener)}(e)?uK.map(OP(e,n)):function gK(e){return Pe(e.on)&&Pe(e.off)}(e)?fK.map(OP(e,n)):[];if(!r&&om(e))return on(s=>fn(s,n,t))(rn(e));if(!r)throw new TypeError("Invalid event target");return new W(s=>{const a=(...c)=>s.next(1<c.length?c:c[0]);return r(a),()=>o(a)})}function OP(e,n){return t=>i=>e[t](n,i)}class _K extends Qe{constructor(n,t){super()}schedule(n,t=0){return this}}const ag={setInterval(e,n,...t){const{delegate:i}=ag;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=ag;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};
1class l0 extends _K{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return ag.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&ag.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Ci(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}const EP={now:()=>(EP.delegate||Date).now(),delegate:void 0};class Eu{constructor(n,t=Eu.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}Eu.now=EP.now;class d0 extends Eu{constructor(n,t=Eu.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}const yK=new d0(l0);function u0(e=0,n,t=yK){let i=-1;return null!=n&&(rw(n)?t=n:i=n),new W(r=>{let o=function vK(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}const{isArray:bK}=Array;function IP(e){return 1===e.length&&bK(e[0])?e[0]:e}function h0(...e){const n=sh(e),t=IP(e);return t.length?new W(i=>{let r=t.map(()=>[]),o=t.map(()=>!1);i.add(()=>{r=o=null});for(let s=0;!i.closed&&s<t.length;s++)rn(t[s]).subscribe($e(i,a=>{if(r[s].push(a),r.every(c=>c.length)){const c=r.map(l=>l.shift());i.next(n?n(...c):c),r.some((l,d)=>!l.length&&o[d])&&i.complete()}},()=>{o[s]=!0,!r[s].length&&i.complete()}));return()=>{r=o=null}}):ai}function f0(...e){const n=sh(e);return ot((t,i)=>{const r=e.length,o=new Array(r);let s=e.map(()=>!1),a=!1;for(let c=0;c<r;c++)rn(e[c]).subscribe($e(i,l=>{o[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(ee))&&(s=null))},Hr));t.subscribe($e(i,c=>{if(a){const l=[c,...o];i.next(n?n(...l):l)}}))})}Math,Math,Math;const KP=["*"],uQ=["dialog"];function qQ(e,n){if(1&e&&(m(0,"strong",3),I(1),v()),2&e){const t=C();p(1),Ie(t.header)}}function KQ(e,n){}function ZQ(e,n){if(1&e){const t=ae();m(0,"div",4),M(1,KQ,0,0,"ng-template",5),m(2,"button",6),x("click",function(){return V(t),B(C().hide())}),v()()}if(2&e){const t=C(),i=Xn(1);p(1),y("ngTemplateOutlet",t.contentHeaderTpl||i)}}function pa(e){return"string"==typeof e}function ga(e){return null!=e}function ul(e){return(e||document.body).getBoundingClientRect()}const eN={animation:!0,transitionTimerDelayMs:5},oJ=()=>{},{transitionTimerDelayMs:sJ}=eN,Ru=new Map,Hn=(e,n,t,i)=>{let r=i.context||{};const o=Ru.get(n);if(o)switch(i.runningTransition){case"continue":return ai;case"stop":e.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),Ru.delete(n)}const s=t(n,i.animation,r)||oJ;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return e.run(()=>s()),le(void 0).pipe(function iJ(e){return n=>new W(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 fe,c=new fe,l=a.pipe(function wK(...e){return n=>ou(n,le(...e))}(!0));Ru.set(n,{transition$:a,complete:()=>{c.next(),c.complete()},context:r});const d=function rJ(e){const{transitionDelay:n,transitionDuration:t}=window.getComputedStyle(e);return 1e3*(parseFloat(n)+parseFloat(t))}(n);return e.runOutsideAngular(()=>{const u=fn(n,"transitionend").pipe(wt(l),Ge(({target:f})=>f===n));(function xP(...e){return 1===(e=IP(e)).length?rn(e[0]):new W(function CK(e){return n=>{let t=[];for(let i=0;t&&!n.closed&&i<e.length;i++)t.push(rn(e[i]).subscribe($e(n,r=>{if(t){for(let o=0;o<t.length;o++)o!==i&&t[o].unsubscribe();t=null}n.next(r)})))}}(e))})(u0(d+sJ).pipe(wt(l)),u,c).pipe(wt(l)).subscribe(()=>{Ru.delete(n),e.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};let Lu=(()=>{class e{constructor(){this.animation=eN.animation}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),dN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),fN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),pN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})();var dt=function(e){return e[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",e}(dt||{});typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const CN=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not
1([tabindex="-1"])'].join(", ");function wN(e){const n=Array.from(e.querySelectorAll(CN)).filter(t=>-1!==t.tabIndex);return[n[0],n[n.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let RN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),VN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})();class ba{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}let oX=(()=>{class e{constructor(t,i){this._el=t,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(Ut(1)).subscribe(()=>{Hn(this._zone,this._el.nativeElement,(t,i)=>{i&&ul(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Hn(this._zone,this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(i){return new(i||e)(_(we),_(ke))};static#t=this.\u0275cmp=ue({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,r){2&i&&(Xi("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),ie("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[In],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return e})();class BN{update(n){}close(n){}dismiss(n){}}const sX=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],aX=["animation","backdropClass"];class cX{_applyWindowOptions(n,t){sX.forEach(i=>{ga(t[i])&&(n[i]=t[i])})}_applyBackdropOptions(n,t){aX.forEach(i=>{ga(t[i])&&(n[i]=t[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(wt(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(wt(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(n,t,i,r){this._windowCmptRef=n,this._contentRef=t,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new fe,this._dismissed=new fe,this._hidden=new fe,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}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();!function QP(e){return e&&e.then}(t)?!1!==t&&this._dismiss(n):t.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),t=this._backdropCmptRef?this._backdropCmptRef.instance.hide():le(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),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:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),h0(n,t).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var F0=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}(F0||{});let lX=(()=>{class e{constructor(t,i,r){this._document=t,this._elRef=i,this._zone=r,this._closed$=new fe,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new H,this.shown=new fe,this.hidden=new fe}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":pa(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Ut(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=h0(Hn(this._zone,t,()=>t.classList.remove("show"),i),Hn(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const t={animation:this.animation,runningTransition:"continue"};h0(Hn(this._zone,this._elRef.nativeElement,(o,s)=>{s&&ul(o),o.classList.add("show")},t),Hn(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(()=>{fn(t,"keydown").pipe(wt(this._closed$),Ge(r=>r.which===dt.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(F0.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;fn(this._dialogEl.nativeElement,"mousedown").pipe(wt(this._closed$),Cn(()=>i=!1),Wi(()=>fn(t,"mouseup").pipe(wt(this._closed$),Ut(1))),Ge(({target:r})=>t===r)).subscribe(()=>{i=!0}),fn(t,"click").pipe(wt(this._closed$)).subscribe(({target:r})=>{t===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(F0.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const i=t.querySelector("[ngbAutofocus]"),r=wN(t)[0];(i||r||t).focus()}}_restoreFocus(){const t=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&t.contains(i)?i:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Hn(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(i){return new(i||e)(_(yt),_(we),_(ke))};static#t=this.\u0275cmp=ue({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(i,r){if(1&i&&nr(uQ,7),2&i){let o;He(o=je())&&(r._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(i,r){2&i&&(X("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),Xi("modal d-block"+(r.windowClass?" "+r.windowClass:"")),ie("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[In],ngContentSelectors:KP,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(i,r){1&i&&(Dr(),m(0,"div",0,1)(2,"div",2),kn(3),v()()),2&i&&Xi("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(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})}return e})(),dX=(()=>{class e{constructor(t){this._document=t}
1hide(){const t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(t>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+t}px`}return r.overflow="hidden",()=>{t>0&&(r.paddingRight=s),r.overflow=o}}static#e=this.\u0275fac=function(i){return new(i||e)(N(yt))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),uX=(()=>{class e{constructor(t,i,r,o,s,a,c){this._applicationRef=t,this._injector=i,this._environmentInjector=r,this._document=o,this._scrollBar=s,this._rendererFactory=a,this._ngZone=c,this._activeWindowCmptHasChanged=new fe,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new H,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((e,n,t,i=!1)=>{e.runOutsideAngular(()=>{const r=fn(n,"focusin").pipe(wt(t),se(o=>o.target));fn(n,"keydown").pipe(wt(t),Ge(o=>o.which===dt.Tab),f0(r)).subscribe(([o,s])=>{const[a,c]=wN(n);(s===a||s===n)&&o.shiftKey&&(c.focus(),o.preventDefault()),s===c&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&fn(n,"click").pipe(wt(t),f0(r),se(o=>o[1])).subscribe(o=>o.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}_restoreScrollBar(){const t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,i,r){const o=r.container instanceof HTMLElement?r.container:ga(r.container)?this._document.querySelector(r.container):this._document.body,s=this._rendererFactory.createRenderer(null,null);if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const a=new BN,c=(t=r.injector||t).get(Jn,null)||this._environmentInjector,l=this._getContentRef(t,c,i,a,r);let d=!1!==r.backdrop?this._attachBackdrop(o):void 0,u=this._attachWindowComponent(o,l.nodes),h=new cX(u,l,d,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(u),h.hidden.pipe(Ut(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=f=>{h.close(f)},a.dismiss=f=>{h.dismiss(f)},a.update=f=>{h.update(f)},h.update(r),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),u.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(i=>i.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let i=Jy(oX,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}
1_attachWindowComponent(t,i){let r=Jy(lX,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),t.appendChild(r.location.nativeElement),r}_getContentRef(t,i,r,o,s){return r?r instanceof mt?this._createFromTemplateRef(r,o):pa(r)?this._createFromString(r):this._createFromComponent(t,i,r,o,s):new ba([])}_createFromTemplateRef(t,i){const o=t.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new ba([o.rootNodes],o)}_createFromString(t){const i=this._document.createTextNode(`${t}`);return new ba([[i]])}_createFromComponent(t,i,r,o,s){const c=Jy(r,{environmentInjector:i,elementInjector:Zt.create({providers:[{provide:BN,useValue:o}],parent:t})}),l=c.location.nativeElement;return s.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new ba([[l]],c.hostView,c)}_setAriaHidden(t){const i=t.parentElement;i&&t!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==t&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,i)=>{t?i.setAttribute("aria-hidden",t):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const i=()=>{const r=this._modalRefs.indexOf(t);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(i,i)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const i=this._windowCmpts.indexOf(t);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(i){return new(i||e)(N(Xr),N(Zt),N(Jn),N(yt),N(dX),N(ds),N(ke))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hX=(()=>{class e{constructor(t){this._ngbConfig=t,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}static#e=this.\u0275fac=function(i){return new(i||e)(N(Lu))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fX=(()=>{class e{constructor(t,i,r){this._injector=t,this._modalStack=i,this._config=r}open(t,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,t,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(i){return new(i||e)(N(Zt),N(uX),N(hX))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),HN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({providers:[fX]})}return e})(),YN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),QN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),JN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),XN=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),eA=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),tA=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),nA=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})();const EX=(e,n)=>{const{classList:t}=e;
1if(n)return t.add("fade"),ul(e),t.add("show","showing"),()=>{t.remove("showing")};t.add("show")},kX=({classList:e})=>(e.add("showing"),()=>{e.remove("show","showing")});let IX=(()=>{class e{constructor(t){this._ngbConfig=t,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}static#e=this.\u0275fac=function(i){return new(i||e)(N(Lu))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xX=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275dir=j({type:e,selectors:[["","ngbToastHeader",""]],standalone:!0})}return e})(),PX=(()=>{class e{constructor(t,i,r,o){this.ariaLive=t,this._zone=r,this._element=o,this.contentHeaderTpl=null,this.shown=new H,this.hidden=new H,null==this.ariaLive&&(this.ariaLive=i.ariaLive),this.delay=i.delay,this.autohide=i.autohide,this.animation=i.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(Ut(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(t){"autohide"in t&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const t=Hn(this._zone,this._element.nativeElement,kX,{animation:this.animation,runningTransition:"stop"});return t.subscribe(()=>{this.hidden.emit()}),t}show(){const t=Hn(this._zone,this._element.nativeElement,EX,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>{this.shown.emit()}),t}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}static#e=this.\u0275fac=function(i){return new(i||e)(as("aria-live"),_(IX),_(ke),_(we))};static#t=this.\u0275cmp=ue({type:e,selectors:[["ngb-toast"]],contentQueries:function(i,r,o){if(1&i&&_t(o,xX,7,mt),2&i){let s;He(s=je())&&(r.contentHeaderTpl=s.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(i,r){2&i&&(X("aria-live",r.ariaLive),ie("fade",r.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[Et,In],ngContentSelectors:KP,decls:5,vars:1,consts:function(){let t;return t=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",t,1,"btn-close",3,"click"]]},template:function(i,r){1&i&&(Dr(),M(0,qQ,2,1,"ng-template",null,0,Vn),M(2,ZQ,3,1,"ng-template",1),m(3,"div",2),kn(4),v()),2&i&&(p(2),y("ngIf",r.contentHeaderTpl||r.header))},dependencies:[lt,ps],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2})}return e})(),iA=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),rA=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})();new K("live announcer delay",{providedIn:"root",factory:function NX(){return 100}});let oA=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})(),sA=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({})}return e})();const RX=[lN,dN,fN,pN,RN,VN,HN,YN,sA,QN,JN,XN,eA,tA,nA,iA,rA,oA];let B0=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[RX,lN,dN,fN,pN,RN,VN,HN,YN,sA,QN,JN,XN,eA,tA,nA,iA,rA,oA]})}return e})();function LX(e,n){if(1&e){const t=ae();m(0,"ngb-toast",1),x("hidden",function(){const o=V(t).$implicit;return B(C().toastService.remove(o))}),I(1),v()}if(2&e){const t=n.$implicit;Xi(t.classname),y("header",t.header)("autohide",!0)("delay",t.delay||5e3),p(1),Ie(t.body)}}let FX=(()=>{class e{constructor(t){this.toastService=t}static#e=this.\u0275fac=function(i){return new(i||e)(_(sg))};static#t=this.\u0275cmp=ue({type:e,selectors:[["dash-toasts"]],decls:1,vars:1,consts:[[3,"class","header","autohide","delay","hidden",4,"ngFor","ngForOf"],[3,"header","autohide","delay","hidden"]],template:function(i,r){1&i&&M(0,LX,2,6,"ngb-toast",0),2&i&&y("ngForOf",r.toastService.toasts)},dependencies:[dn,PX],styles:[".color-primary[_ngcontent-%COMP%]{background-color:#00236f}.color-primary-light[_ngcontent-%COMP%]{background-color:#f5f8fe}.color-tertiary[_ngcontent-%COMP%]{background-color:#bdebfb}.color-primary-light-text[_ngcontent-%COMP%]{color:#f5f8fe}.color-primary-text[_ngcontent-%COMP%]{color:#fff}.color-secondary[_ngcontent-%COMP%]{background-color:#e8efff}.color-secondary-text[_ngcontent-%COMP%]{color:#00236f}.color-warning[_ngcontent-%COMP%]{background-color:#cca5fd}.color-warning-text[_ngcontent-%COMP%]{color:#250569}.color-warning-secondary[_ngcontent-%COMP%]{background-color:#fce3ff}.color-warning-secondary-text[_ngcontent-%COMP%]{color:#930188}.color-info[_ngcontent-%COMP%]{background-color:#ffe18e}.color-info-light[_ngcontent-%COMP%]{background-color:#ffe1b5}.color-info-secondary[_ngcontent-%COMP%]{background-color:#ffc142}.color-info-text[_ngcontent-%COMP%]{color:#663904}.color-danger[_ngcontent-%COMP%]{background-color:#ba1a1a}.color-danger-text[_ngcontent-%COMP%]{color:#410002}.color-danger-secondary[_ngcontent-%COMP%]{background-color:#ff8080}.color-danger-secondary-text[_ngcontent-%COMP%]{color:#861816}.color-danger-tertiary[_ngcontent-%COMP%]{background-color:#f0dee0}.color-danger-tertiary-text[_ngcontent-%COMP%]{color:#ba1a1a}.color-success-primary-text[_ngcontent-%COMP%]{color:#007235}.color-success[_ngcontent-%COMP%]{background-color:#b0f3b7}.color-success-secondary[_ngcontent-%COMP%]{background-color:#0eb551}.color-success-secondary-text[_ngcontent-%COMP%]{color:#0eb551}.color-success-text[_ngcontent-%COMP%]{color:#014420}.color-brand[_ngcontent-%COMP%]{background-color:#0ea7da}.color-brand-secondary[_ngcontent-%COMP%]{background-color:#5fc6e8}.color-neutral[_ngcontent-%COMP%]{background-color:#f5f7fb}.color-neutral-tertiary[_ngcontent-%COMP%]{color:#919396}.color-neutral-text[_ngcontent-%COMP%]{color:#fff;fill:#fff}.color-outline[_ngcontent-%COMP%]{background-color:#e7e9ed}.color-outline-text[_ngcontent-%COMP%]{color:#e7e9ed}.border-neutral[_ngcontent-%COMP%]{border-color:#e7e9ed}.color-error-primary[_ngcontent-%COMP%]{background-color:#b50e0e}.color-error-primary-light[_ngcontent-%COMP%]{background-color:#ed6565}.color-error-primary-light-text[_ngcontent-%COMP%]{color:#ed6565}.color-error-primary-text[_ngcontent-%COMP%]{color:#b50e0e}.color-error-secondary-light[_ngcontent-%COMP%]{background-color:#fff5f4}.color-error-secondary[_ngcontent-%COMP%]{background-color:#ffdad6}.color-error-tertiary[_ngcontent-%COMP%]{background-color:#ffe5e5}.color-violet[_ngcontent-%COMP%]{background-color:#f0e4ff}.color-violet-secondary[_ngcontent-%COMP%]{background-color:#9753eb}.color-violet-text[_ngcontent-%COMP%]{color:#480670}.color-mono-primary-text[_ngcontent-%COMP%]{color:#888b9c}.color-mono-secondary-text[_ngcontent-%COMP%]{color:#23252b}.color-mono-tertiary-text[_ngcontent-%COMP%]{color:#191a1d}.color-navy[_ngcontent-%COMP%]{background-color:#c4d5fe}[_nghost-%COMP%]{position:fixed;inset:1em 0 auto auto;margin:.5em;z-index:1200} .toast-success{background-color:#b0f3b7;border-color:#0eb551;color:#014420} .toast-success .toast-header{background-color:#b0f3b7;color:#014420;border-bottom:none;font-size:1rem;line-height:20px;padding-bottom:0} .toast-success .toast-body{background-color:#b0f3b7;font-size:.875rem;line-height:20px;padding-top:.4rem;border-radius:8px} .toast-error{background-color:#ffdad6;border-color:#b50e0e;color:#b50e0e} .toast-error .toast-header{background-color:#ffdad6;color:#b50e0e;border-bottom:none;font-size:1rem;line-height:20px;padding-bottom:0} .toast-error .toast-body{background-color:#ffdad6;font-size:.875rem;line-height:20px;padding-top:.4rem;border-radius:8px}"]})}return e})(),VX=(()=>{class e{constructor(){this.title="NightsBridge",window.Intercom("boot",{app_id:"wipcuwr0"})}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["app-root"]],decls:2,vars:0,consts:[["aria-live","polite","aria-atomic","true"]],template:function(i,r){1&i&&Z(0,"dash-toasts",0)(1,"router-outlet")},dependencies:[FX,Bp]})}return e})();function Ca(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ri(e){return"string"==typeof e}function Mg(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function ks(e){return e&&e.getTime&&!isNaN(e.getTime())}function wa(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Da(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Mt(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function jn(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Ma(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function aA(e){return void 0===e}function Re(e){const n=+e;let t=0;return 0!==n&&isFinite(n)&&(t=Ca(n)),t}const ju={}
1,cA={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function $n(e,n){const t=e.toLowerCase();let i=e;t in cA&&(i=cA[t]),ju[t]=ju[`${t}s`]=ju[n]=i}function lA(e){return ri(e)?ju[e]||ju[e.toLowerCase()]:void 0}const Rr=0,Go=1,co=2,gn=3,Lr=4,zo=5,Sa=6,$X=7,YX=8;function Wo(e,n,t){const i=`${Math.abs(e)}`;return(e>=0?t?"+":"":"-")+Math.pow(10,Math.max(0,n-i.length)).toString().substr(1)+i}const H0={},gl={},dA=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function ve(e,n,t,i){e&&(gl[e]=i),n&&(gl[n[0]]=function(){return Wo(i.apply(null,arguments),n[1],n[2])}),t&&(gl[t]=function(r,o){return o.locale.ordinal(i.apply(null,arguments),e)})}function GX(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Sg(e,n,t){const i=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(i.getUTCFullYear())&&i.setUTCFullYear(e),i}function Tg(e,n=0,t=1,i=0,r=0,o=0,s=0){const a=new Date(e,n,t,i,r,o,s);return e<100&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function Le(e,n=!1){return n?e.getUTCHours():e.getHours()}function ml(e,n=!1){return n?e.getUTCMinutes():e.getMinutes()}function j0(e,n=!1){return n?e.getUTCSeconds():e.getSeconds()}function qo(e,n=!1){return n?e.getUTCMilliseconds():e.getMilliseconds()}function lo(e,n=!1){return n?e.getUTCDay():e.getDay()}function Ta(e,n=!1){return n?e.getUTCDate():e.getDate()}function Fe(e,n=!1){return n?e.getUTCMonth():e.getMonth()}function xt(e,n=!1){return n?e.getUTCFullYear():e.getFullYear()}function _l(e,n){return!(!e||!n)&&yl(e,n)&&Fe(e)===Fe(n)}function yl(e,n){return!(!e||!n)&&xt(e)===xt(n)}function Is(e,n){return!(!e||!n)&&yl(e,n)&&_l(e,n)&&Ta(e)===Ta(n)}const uA=/\d/,Bi=/\d\d/,hA=/\d{3}/,$0=/\d{4}/,Og=/[+-]?\d{6}/,vt=/\d\d?/,fA=/\d\d\d\d?/,pA=/\d\d\d\d\d\d?/,Eg=/\d{1,3}/,Y0=/\d{1,4}/,kg=/[+-]?\d{1,6}/,QX=/\d+/,Ig=/[+-]?\d+/,xg=/Z|[+-]\d\d(?::?\d\d)?/gi,XX=/[+-]?\d+(\.\d{1,3})?/,$u=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Pg={};function oe(e,n,t){Pg[e]=wa(n)?n:function(i,r){return i&&t?t:n}}function eee(e,n){return jn(Pg,e)?Pg[e](!1,n):new RegExp(function tee(e){return Oa(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(n,t,i,r,o)=>t||i||r||o))}(e))}function Oa(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const U0={};function bt(e,n){const t=ri(e)?[e]:e;let i=n;if(Da(n)&&(i=function(r,o,s){return o[n]=Re(r),s}),Mt(t)&&wa(i)){let r;for(r=0;r<t.length;r++)U0[t[r]]=i}}function Yu(e,n){bt(e,function(t,i,r,o){return r._w=r._w||{},n(t,r._w,r,o)})}function nee(e,n,t){return null!=n&&jn(U0,e)&&U0[e](n,t._a,t,e),t}const iee={};function Yn(e,n){iee[e]=n}function We(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function G0(e,n){return n.locale.getFullYear?n.locale.getFullYear(e,n.isUTC).toString():xt(e,n.isUTC).toString()}function z0(e){return Re(e)+(Re(e)>68?1900:2e3)}function Uu(e){return W0(e)?366:365}function W0(e){return e%4==0&&e%100!=0||e%400==0}function Ng(e,n){if(isNaN(e)||isNaN(n))return NaN;const t=function BX(e,n){return(e%n+n)%n}(n,12);return 1===t?W0(e+(n-t)/12)?29:28:31-t%7%2}const cee={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function wn(e,n){const t=Object.assign({},cee,n),i=e.getFullYear()+(t.year||0),r=e.getMonth()+(t.month||0);let o=e.getDate()+(t.day||0);return t.month&&!t.day&&(o=Math.min(o,Ng(i,r))),Tg(i,r,o,e.getHours()+(t.hour||0),e.getMinutes()+(t.minute||0),e.getSeconds()+(t.seconds||0))}function vl(e,n){return Da(n)?n:e}function Ea(e,n,t){const i=Math.min(Ta(e),Ng(xt(e),n));return t?e.setUTCMonth(n,i):e.setMonth(n,i),e}function q0(e,n,t){return t?e.setUTCDate(n):e.setDate(n),e}function Ko(e){return new Date(e.getTime())}function Zo(e,n,t){const i=Ko(e);switch(n){case"year":Ea(i,0,t);case"quarter":case"month":q0(i,1,t);case"week":case"isoWeek":case"day":case"date":!function uee(e,n,t){t?e.setUTCHours(n):e.setHours(n)}(i,0,t);case"hours":!function hee(e,n,t){t?e.setUTCMinutes(n):e.setMinutes(n)}(i,0,t);case"minutes":!function fee(e,n,t){t?e.setUTCSeconds(n):e.setSeconds(n)}(i,0,t);case"seconds":!function pee(e,n,t){t?e.setUTCMilliseconds(n):e.setMilliseconds(n)}(i,0,t)}return"week"===n&&function Ote(e,n,t={}){fo(e,n-aC(e,t.locale,t.isUTC),"day")}(i,0,{isUTC:t}),"isoWeek"===n&&function Ete(e,n,t={}){const i=function Tte(e,n=mn()){return ri(e)?n.weekdaysParse(e)%7||7:Da(e)&&isNaN(e)?null:e}(n,t.locale);Ku(e,function Xt(e,n){return lo(e,n)}(e)%7?i:i-7)}(i,1),"quarter"===n&&Ea(i,3*Math.floor(Fe(i,t)/3),t),i}function Ag(e,n,t){let i=n;return"date"===i&&(i="day"),function Dte(e,n,t,i){return jA(e,sC(n,t),-1,i)}(fo(Zo(e,i,t),1,"isoWeek"===i?"week":i,t),1,"milliseconds",t)}function K0(e,n){const t=+Zo(e,"day",n),i=+Zo(e,"year",n);return Math.round((t-i)/864e5)+1}function Rg(e,n,t){const i=n-t+7;return-(Sg(e,0,i).getUTCDay()-n+7)%7+i-1}function bl(e,n,t,i){const r=Rg(xt(e,i),n,t),o=Math.floor((K0(e,i)-r-1)/7)+1;let s,a;return o<1?(a=xt(e,i)-1,s=o+ka(a,n,t)):o>ka(xt(e,i),n,t)?(s=o-ka(xt(e,i),n,t),a=xt(e,i)+1):(a=xt(e,i),s=o),{week:s,year:a}}function ka(e,n,t){const i=Rg(e,n,t),r=Rg(e+1,n,t);return(Uu(e)-i+r)/7}const mA=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_A="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),yee="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yA="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),vee="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vA={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},wee=$u,Dee=$u;class bA{constructor(n){n&&this.set(n)}set(n){let t;for(t in n){if(!n.hasOwnProperty(t))continue;const i=n[t];this[wa(i)?t:`_${t}`]=i}this._config=n}calendar(n,t,i){const r=this._calendar[n]||this._calendar.sameElse;return wa(r)?r.call(null,t,i):r}longDateFormat(n){const t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(r){return r.slice(1)}),this._longDateFormat[n])}get invalidDate(){return this._invalidDate}set invalidDate(n){this._invalidDate=n}ordinal(n,t){return this._ordinal.replace("%d",n.toString(10))}preparse(n,t){return n}getFullYear(n,t=!1){return xt(n,t)}postformat(n){return n}relativeTime(n,t,i,r){const o=this._relativeTime[i];return wa(o)?o(n,t,i,r):o.replace(/%d/i,n.toString(10))}pastFuture(n,t){const i=this._relativeTime[n>0?"future":"past"];return wa(i)?i(t):i.replace(/%s/i,t)}months(n,t,i=!1){if(!n)return Mt(this._months)?this._months:this._months.standalone;if(Mt(this._months))return this._months[Fe(n,i)];const r=(this._months.isFormat||mA).test(t)?"format":"standalone";return this._months[r][Fe(n,i)]}monthsShort(n,t,i=!1){if(!n)return Mt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(Mt(this._monthsShort))return this._monthsShort[Fe(n,i)];const r=mA.test(t)?"format":"standalone";return this._monthsShort[r][Fe(n,i)]}
1monthsParse(n,t,i){let r,o,s;if(this._monthsParseExact)return this.handleMonthStrictParse(n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(r=new Date(Date.UTC(2e3,s)),i&&!this._longMonthsParse[s]){const a=this.months(r,"",!0).replace(".",""),c=this.monthsShort(r,"",!0).replace(".","");this._longMonthsParse[s]=new RegExp(`^${a}$`,"i"),this._shortMonthsParse[s]=new RegExp(`^${c}$`,"i")}if(!i&&!this._monthsParse[s]&&(o=`^${this.months(r,"",!0)}|^${this.monthsShort(r,"",!0)}`,this._monthsParse[s]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[s].test(n)||i&&"MMM"===t&&this._shortMonthsParse[s].test(n)||!i&&this._monthsParse[s].test(n))return s}}monthsRegex(n){return this._monthsParseExact?(jn(this,"_monthsRegex")||this.computeMonthsParse(),n?this._monthsStrictRegex:this._monthsRegex):(jn(this,"_monthsRegex")||(this._monthsRegex=Dee),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(n){return this._monthsParseExact?(jn(this,"_monthsRegex")||this.computeMonthsParse(),n?this._monthsShortStrictRegex:this._monthsShortRegex):(jn(this,"_monthsShortRegex")||(this._monthsShortRegex=wee),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}week(n,t){return bl(n,this._week.dow,this._week.doy,t).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(n,t,i){if(!n)return Mt(this._weekdays)?this._weekdays:this._weekdays.standalone;if(Mt(this._weekdays))return this._weekdays[lo(n,i)];const r=this._weekdays.isFormat.test(t)?"format":"standalone";return this._weekdays[r][lo(n,i)]}weekdaysMin(n,t,i){return n?this._weekdaysMin[lo(n,i)]:this._weekdaysMin}weekdaysShort(n,t,i){return n?this._weekdaysShort[lo(n,i)]:this._weekdaysShort}weekdaysParse(n,t,i){let r,o;if(this._weekdaysParseExact)return this.handleWeekStrictParse(n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){const s=Ku(new Date(Date.UTC(2e3,1)),r,null,!0);if(i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp(`^${this.weekdays(s,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[r]=new RegExp(`^${this.weekdaysShort(s,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[r]=new RegExp(`^${this.weekdaysMin(s,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[r]||(o=`^${this.weekdays(s,"",!0)}|^${this.weekdaysShort(s,"",!0)}|^${this.weekdaysMin(s,"",!0)}`,this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),!(Mt(this._fullWeekdaysParse)&&Mt(this._shortWeekdaysParse)&&Mt(this._minWeekdaysParse)&&Mt(this._weekdaysParse)))return;if(i&&"dddd"===t&&this._fullWeekdaysParse[r].test(n))return r;if(i&&"ddd"===t&&this._shortWeekdaysParse[r].test(n))return r;if(i&&"dd"===t&&this._minWeekdaysParse[r].test(n))return r;if(!i&&this._weekdaysParse[r].test(n))return r}}weekdaysRegex(n){return this._weekdaysParseExact?(jn(this,"_weekdaysRegex")||this.computeWeekdaysParse(),n?this._weekdaysStrictRegex:this._weekdaysRegex):(jn(this,"_weekdaysRegex")||(this._weekdaysRegex=$u),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(n){return this._weekdaysParseExact?(jn(this,"_weekdaysRegex")||this.computeWeekdaysParse(),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(jn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$u),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(n){return this._weekdaysParseExact?(jn(this,"_weekdaysRegex")||this.computeWeekdaysParse(),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(jn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$u),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(n){return"p"===n.toLowerCase().charAt(0)}meridiem(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}formatLongDate(n){this._longDateFormat=this._longDateFormat?this._longDateFormat:vA;const t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,r=>r.slice(1)),this._longDateFormat[n])}
1handleMonthStrictParse(n,t,i){const r=n.toLocaleLowerCase();let o,s,a;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)a=new Date(2e3,o),this._shortMonthsParse[o]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===t?(s=this._shortMonthsParse.indexOf(r),-1!==s?s:null):(s=this._longMonthsParse.indexOf(r),-1!==s?s:null):"MMM"===t?(s=this._shortMonthsParse.indexOf(r),-1!==s?s:(s=this._longMonthsParse.indexOf(r),-1!==s?s:null)):(s=this._longMonthsParse.indexOf(r),-1!==s?s:(s=this._shortMonthsParse.indexOf(r),-1!==s?s:null))}handleWeekStrictParse(n,t,i){let r;const o=n.toLocaleLowerCase();if(!this._weekdaysParse){let s;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s){const a=Ku(new Date(Date.UTC(2e3,1)),s,null,!0);this._minWeekdaysParse[s]=this.weekdaysMin(a).toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a).toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase()}}if(Mt(this._weekdaysParse)&&Mt(this._shortWeekdaysParse)&&Mt(this._minWeekdaysParse))return i?"dddd"===t?(r=this._weekdaysParse.indexOf(o),-1!==r?r:null):"ddd"===t?(r=this._shortWeekdaysParse.indexOf(o),-1!==r?r:null):(r=this._minWeekdaysParse.indexOf(o),-1!==r?r:null):"dddd"===t?(r=this._weekdaysParse.indexOf(o),-1!==r||(r=this._shortWeekdaysParse.indexOf(o),-1!==r)?r:(r=this._minWeekdaysParse.indexOf(o),-1!==r?r:null)):"ddd"===t?(r=this._shortWeekdaysParse.indexOf(o),-1!==r||(r=this._weekdaysParse.indexOf(o),-1!==r)?r:(r=this._minWeekdaysParse.indexOf(o),-1!==r?r:null)):(r=this._minWeekdaysParse.indexOf(o),-1!==r||(r=this._weekdaysParse.indexOf(o),-1!==r)?r:(r=this._shortWeekdaysParse.indexOf(o),-1!==r?r:null))}computeMonthsParse(){const n=[],t=[],i=[];let r,o;for(o=0;o<12;o++)r=new Date(2e3,o),n.push(this.monthsShort(r,"")),t.push(this.months(r,"")),i.push(this.months(r,"")),i.push(this.monthsShort(r,""));for(n.sort(Ia),t.sort(Ia),i.sort(Ia),o=0;o<12;o++)n[o]=Oa(n[o]),t[o]=Oa(t[o]);for(o=0;o<24;o++)i[o]=Oa(i[o]);this._monthsRegex=new RegExp(`^(${i.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${t.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${n.join("|")})`,"i")}computeWeekdaysParse(){const n=[],t=[],i=[],r=[];let o;for(o=0;o<7;o++){const s=Ku(new Date(Date.UTC(2e3,1)),o,null,!0),a=this.weekdaysMin(s),c=this.weekdaysShort(s),l=this.weekdays(s);n.push(a),t.push(c),i.push(l),r.push(a),r.push(c),r.push(l)}for(n.sort(Ia),t.sort(Ia),i.sort(Ia),r.sort(Ia),o=0;o<7;o++)t[o]=Oa(t[o]),i[o]=Oa(i[o]),r[o]=Oa(r[o]);this._weekdaysRegex=new RegExp(`^(${r.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${i.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${t.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${n.join("|")})`,"i")}}function Ia(e,n){return n.length-e.length}const CA={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:vA,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_ee,monthsShort:_A,week:{dow:0,doy:6},weekdays:yee,weekdaysMin:vee,weekdaysShort:yA,meridiemParse:/[ap]\.?m?\.?/i};function Mee(e,n,t){const i=Math.min(e.length,n.length),r=Math.abs(e.length-n.length);let s,o=0;for(s=0;s<i;s++)(t&&e[s]!==n[s]||!t&&Re(e[s])!==Re(n[s]))&&o++;return o+r}function Lg(e,n){ve(null,[e,e.length,!1],null,n)}function wA(e,n){return Q0(e,n.locale).toString()}function DA(e){return MA(e).toString()}function Q0(e,n=mn(),t){return bl(e,n.firstDayOfWeek(),n.firstDayOfYear(),t).year}function MA(e,n){return bl(e,1,4,n).year}function TA(e,n){ve(e,null,null,function(t,i){let r=function Pa(e,n={}
1){return n._isUTC?n._offset||0:function OA(e){return 15*-Math.round(e.getTimezoneOffset()/15)}(e)}(t,{_isUTC:i.isUTC,_offset:i.offset}),o="+";return r<0&&(r=-r,o="-"),o+Wo(~~(r/60),2)+n+Wo(~~r%60,2)})}const Aee=/([\+\-]|\d\d)/gi;const Dn={},Gu={};let zu;function EA(e){return e&&e.toLowerCase().replace("_","-")}function IA(e){return Dn[e]||console.error(`Khronos locale error: please load locale "${e}" before using it`),Dn[e]}function X0(e,n){let t;return e&&(aA(n)?t=mn(e):ri(e)&&(t=xA(e,n)),t&&(zu=t)),zu&&zu._abbr}function xA(e,n){if(null===n)return delete Dn[e],zu=mn("en"),null;if(!n)return;let t=CA;if(n.abbr=e,null!=n.parentLocale){if(null==Dn[n.parentLocale])return Gu[n.parentLocale]||(Gu[n.parentLocale]=[]),Gu[n.parentLocale].push({name:e,config:n}),null;t=Dn[n.parentLocale]._config}return Dn[e]=new bA(function kA(e,n){const t=Object.assign({},e);for(const i in n)jn(n,i)&&(Ma(e[i])&&Ma(n[i])?(t[i]={},Object.assign(t[i],e[i]),Object.assign(t[i],n[i])):null!=n[i]?t[i]=n[i]:delete t[i]);for(const i in e)jn(e,i)&&!jn(n,i)&&Ma(e[i])&&(t[i]=Object.assign({},t[i]));return t}(t,n)),Gu[e]&&Gu[e].forEach(function(i){xA(i.name,i.config)}),X0(e),Dn[e]}function mn(e){return function Hee(){Dn.en||(X0("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(e){const n=e%10;return e+(1===Re(e%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),function See(){ve("w",["ww",2,!1],"wo",function(e,n){return function xa(e,n=mn(),t){return n.week(e,t)}(e,n.locale).toString(10)}),ve("W",["WW",2,!1],"Wo",function(e){return function Z0(e,n){return bl(e,1,4,n).week}(e).toString(10)}),$n("week","w"),$n("isoWeek","W"),Yn("week",5),Yn("isoWeek",5),oe("w",vt),oe("ww",vt,Bi),oe("W",vt),oe("WW",vt,Bi),Yu(["w","ww","W","WW"],function(e,n,t,i){return n[i.substr(0,1)]=Re(e),t})}(),function Tee(){ve(null,["gg",2,!1],null,function(e,n){return(Q0(e,n.locale)%100).toString()}),ve(null,["GG",2,!1],null,function(e){return(MA(e)%100).toString()}),Lg("gggg",wA),Lg("ggggg",wA),Lg("GGGG",DA),Lg("GGGGG",DA),$n("weekYear","gg"),$n("isoWeekYear","GG"),Yn("weekYear",1),Yn("isoWeekYear",1),oe("G",Ig),oe("g",Ig),oe("GG",vt,Bi),oe("gg",vt,Bi),oe("GGGG",Y0,$0),oe("gggg",Y0,$0),oe("GGGGG",kg,Og),oe("ggggg",kg,Og),Yu(["gggg","ggggg","GGGG","GGGGG"],function(e,n,t,i){return n[i.substr(0,2)]=Re(e),t}),Yu(["gg","GG"],function(e,n,t,i){return n[i]=z0(e),t})}(),function see(){ve("Y",null,null,function(e,n){const t=xt(e,n.isUTC);return t<=9999?t.toString(10):`+${t}`}),ve(null,["YY",2,!1],null,function(e,n){return(xt(e,n.isUTC)%100).toString(10)}),ve(null,["YYYY",4,!1],null,G0),ve(null,["YYYYY",5,!1],null,G0),ve(null,["YYYYYY",6,!0],null,G0),$n("year","y"),Yn("year",1),oe("Y",Ig),oe("YY",vt,Bi),oe("YYYY",Y0,$0),oe("YYYYY",kg,Og),oe("YYYYYY",kg,Og),bt(["YYYYY","YYYYYY"],Rr),bt("YYYY",function(e,n,t){return n[Rr]=2===e.length?z0(e):Re(e),t}),bt("YY",function(e,n,t){return n[Rr]=z0(e),t}),bt("Y",function(e,n,t){return n[Rr]=parseInt(e,10),t})}(),function Eee(){ve("z",null,null,function(e,n){return n.isUTC?"UTC":""}),ve("zz",null,null,function(e,n){return n.isUTC?"Coordinated Universal Time":""})}(),function kee(){ve("X",null,null,function(e){return function WX(e){return Math.floor(e.valueOf()/1e3)}(e).toString(10)}),ve("x",null,null,function(e){return e.valueOf().toString(10)}),oe("x",Ig),oe("X",XX),bt("X",function(e,n,t){return t._d=new Date(1e3*parseFloat(e)),t}),bt("x",function(e,n,t){return t._d=new Date(Re(e)),t})}(),function Iee(){ve("s",["ss",2,!1],null,function(e,n){return j0(e,n.isUTC).toString(10)}),$n("second","s"),Yn("second",15),oe("s",vt),oe("ss",vt,Bi),bt(["s","ss"],zo)}(),function xee(){ve("Q",null,"Qo",function(e,n){return function Pee(e,n=!1){return Math.ceil((Fe(e,n)+1)/3)}(e,n.isUTC).toString(10)}),$n("quarter","Q"),Yn("quarter",7),oe("Q",uA),bt("Q",function(e,n,t){return n[Go]=3*(Re(e)-1),t})}(),function Nee(){TA("Z",":"),TA("ZZ",""),oe("Z",xg),oe("ZZ",xg),bt(["Z","ZZ"],function(e,n,t){return t._useUTC=!0,t._tzm=function J0(e,n){const t=(n||"").match(e);if(null===t)return null;const r=t[t.length-1].match(Aee)||["-","0","0"],o=60*parseInt(r[1],10)+Re(r[2]);return 0===o?0:"+"===r[0]?o:-o}(xg,e),t})}(),function aee(){ve("M",["MM",2,!1],"Mo",function(e,n){return(Fe(e,n.isUTC)+1).toString(10)}),ve("MMM",null,null,function(e,n){return n.locale.monthsShort(e,n.format,n.isUTC)}),ve("MMMM",null,null,function(e,n){return n.locale.months(e,n.format,n.isUTC)}),$n("month","M"),Yn("month",8),oe("M",vt),oe("MM",vt,Bi),oe("MMM",function(e,n){return n.monthsShortRegex(e)}),oe("MMMM",function(e,n){return n.monthsRegex(e)}),bt(["M","MM"],function(e,n,t){return n[Go]=Re(e)-1,t}),bt(["MMM","MMMM"],function(e,n,t,i){const r=t._locale.monthsParse(e,i,t._strict);return null!=r?n[Go]=r:We(t).invalidMonth=!!e,t})}(),function Lee(){ve("m",["mm",2,!1],null,function(e,n){return ml(e,n.isUTC).toString(10)}),$n("minute","m"),Yn("minute",14),oe("m",vt),oe("mm",vt,Bi),bt(["m","mm"],Lr)}(),function Fee(){let e;for(ve("S",null,null,function(t,i){return(~~(qo(t,i.isUTC)/100)).toString(10)}),ve(null,["SS",2,!1],null,function(t,i){return(~~(qo(t,i.isUTC)/10)).toString(10)}),ve(null,["SSS",3,!1],null,function(t,i){return qo(t,i.isUTC).toString(10)}),ve(null,["SSSS",4,!1],null,function(t,i){return(10*qo(t,i.isUTC)).toString(10)}),ve(null,["SSSSS",5,!1],null,function(t,i){return(100*qo(t,i.isUTC)).toString(10)}),ve(null,["SSSSSS",6,!1],null,function(t,i){return(1e3*qo(t,i.isUTC)).toString(10)}),ve(null,["SSSSSSS",7,!1],null,function(t,i){return(1e4*qo(t,i.isUTC)).toString(10)}),ve(null,["SSSSSSSS",8,!1],null,function(t,i){return(1e5*qo(t,i.isUTC)).toString(10)}),ve(null,["SSSSSSSSS",9,!1],null,function(t,i){return(1e6*qo(t,i.isUTC)).toString(10)}),$n("millisecond","ms"),Yn("millisecond",16),oe("S",Eg,uA),oe("SS",Eg,Bi),oe("SSS",Eg,hA),e="SSSS";e.length<=9;e+="S")oe(e,QX);function n(t,i,r){return i[Sa]=Re(1e3*parseFloat(`0.${t}`)),r}for(e="S";e.length<=9;e+="S")bt(e,n)}(),function Vee(){function e(r,o){return Le(r,o)%12||12}function t(r,o){ve(r,null,null,function(s,a){return a.locale.meridiem(Le(s,a.isUTC),ml(s,a.isUTC),o)})}function i(r,o){return o._meridiemParse}
1ve("H",["HH",2,!1],null,function(r,o){return Le(r,o.isUTC).toString(10)}),ve("h",["hh",2,!1],null,function(r,o){return e(r,o.isUTC).toString(10)}),ve("k",["kk",2,!1],null,function(r,o){return function n(r,o){return Le(r,o)||24}(r,o.isUTC).toString(10)}),ve("hmm",null,null,function(r,o){return`${e(r,o.isUTC)}${Wo(ml(r,o.isUTC),2)}`}),ve("hmmss",null,null,function(r,o){return`${e(r,o.isUTC)}${Wo(ml(r,o.isUTC),2)}${Wo(j0(r,o.isUTC),2)}`}),ve("Hmm",null,null,function(r,o){return`${Le(r,o.isUTC)}${Wo(ml(r,o.isUTC),2)}`}),ve("Hmmss",null,null,function(r,o){return`${Le(r,o.isUTC)}${Wo(ml(r,o.isUTC),2)}${Wo(j0(r,o.isUTC),2)}`}),t("a",!0),t("A",!1),$n("hour","h"),Yn("hour",13),oe("a",i),oe("A",i),oe("H",vt),oe("h",vt),oe("k",vt),oe("HH",vt,Bi),oe("hh",vt,Bi),oe("kk",vt,Bi),oe("hmm",fA),oe("hmmss",pA),oe("Hmm",fA),oe("Hmmss",pA),bt(["H","HH"],gn),bt(["k","kk"],function(r,o,s){const a=Re(r);return o[gn]=24===a?0:a,s}),bt(["a","A"],function(r,o,s){return s._isPm=s._locale.isPM(r),s._meridiem=r,s}),bt(["h","hh"],function(r,o,s){return o[gn]=Re(r),We(s).bigHour=!0,s}),bt("hmm",function(r,o,s){const a=r.length-2;return o[gn]=Re(r.substr(0,a)),o[Lr]=Re(r.substr(a)),We(s).bigHour=!0,s}),bt("hmmss",function(r,o,s){const a=r.length-4,c=r.length-2;return o[gn]=Re(r.substr(0,a)),o[Lr]=Re(r.substr(a,2)),o[zo]=Re(r.substr(c)),We(s).bigHour=!0,s}),bt("Hmm",function(r,o,s){const a=r.length-2;return o[gn]=Re(r.substr(0,a)),o[Lr]=Re(r.substr(a)),s}),bt("Hmmss",function(r,o,s){const a=r.length-4,c=r.length-2;return o[gn]=Re(r.substr(0,a)),o[Lr]=Re(r.substr(a,2)),o[zo]=Re(r.substr(c)),s})}(),function mee(){ve("DDD",["DDDD",3,!1],"DDDo",function(e){return K0(e).toString(10)}),$n("dayOfYear","DDD"),Yn("dayOfYear",4),oe("DDD",Eg),oe("DDDD",hA),bt(["DDD","DDDD"],function(e,n,t){return t._dayOfYear=Re(e),t})}(),function Mte(){ve("d",null,"do",function(e,n){return lo(e,n.isUTC).toString(10)}),ve("dd",null,null,function(e,n){return n.locale.weekdaysMin(e,n.format,n.isUTC)}),ve("ddd",null,null,function(e,n){return n.locale.weekdaysShort(e,n.format,n.isUTC)}),ve("dddd",null,null,function(e,n){return n.locale.weekdays(e,n.format,n.isUTC)}),ve("e",null,null,function(e,n){return aC(e,n.locale,n.isUTC).toString(10)}),ve("E",null,null,function(e,n){return function $A(e,n){return lo(e,n)||7}(e,n.isUTC).toString(10)}),$n("day","d"),$n("weekday","e"),$n("isoWeekday","E"),Yn("day",11),Yn("weekday",11),Yn("isoWeekday",11),oe("d",vt),oe("e",vt),oe("E",vt),oe("dd",function(e,n){return n.weekdaysMinRegex(e)}),oe("ddd",function(e,n){return n.weekdaysShortRegex(e)}),oe("dddd",function(e,n){return n.weekdaysRegex(e)}),Yu(["dd","ddd","dddd"],function(e,n,t,i){const r=t._locale.weekdaysParse(e,i,t._strict);return null!=r?n.d=r:We(t).invalidWeekday=!!e,t}),Yu(["d","e","E"],function(e,n,t,i){return n[i]=Re(e),t})}(),function ree(){ve("D",["DD",2,!1],"Do",function(e,n){return Ta(e,n.isUTC).toString(10)}),$n("date","D"),Yn("date",9),oe("D",vt),oe("DD",vt,Bi),oe("Do",function(e,n){return n._dayOfMonthOrdinalParse||n._ordinalParse}),bt(["D","DD"],co),bt("Do",function(e,n,t){return n[co]=Re(e.match(vt)[0]),t})}())}(),e?function Bee(e){let n,t,i=0;for(;i<e.length;){const r=EA(e[i]).split("-");let o=r.length;for(n=EA(e[i+1]),n=n?n.split("-"):null;o>0;){if(t=IA(r.slice(0,o).join("-")),t)return t;if(n&&n.length>=o&&Mee(r,n,!0)>=o-1)break;o--}i++}return null}(Mt(e)?e:[e]):zu}const Wu=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],jee=Wu.reduce((e,n)=>(e[n]=!0,e),{});function PA(e){return e<0?Math.floor(e):Math.ceil(e)}function NA(e){return 4800*e/146097}function eC(e){return 146097*e/4800}let xs=Math.round;const uo_ss=44,uo_s=45,uo_m=45,uo_h=22,uo_d=26,uo_M=11;function Uee(e,n,t,i,r){return r.relativeTime(n||1,!!t,e,i)}class AA{constructor(n,t={}){this._data={},this._locale=mn(),this._locale=t&&t._locale||mn();const r=n.year||0,o=n.quarter||0,s=n.month||0,a=n.week||0,c=n.day||0,l=n.hours||0,d=n.minutes||0,u=n.seconds||0,h=n.milliseconds||0;return this._isValid=function $ee(e){if(Object.keys(e).some(i=>i in jee&&null===e[i]||isNaN(e[i])))return!1;let t=!1;for(let i=0;i<Wu.length;++i)if(e[Wu[i]]){if(t)return!1;e[Wu[i]]!==Re(e[Wu[i]])&&(t=!0)}return!0}(n),this._milliseconds=+h+1e3*u+60*d*1e3+1e3*l*60*60,this._days=+c+7*a,this._months=+s+3*o+12*r,function Yee(e){let n=e._milliseconds,t=e._days,i=e._months;const r=e._data;n>=0&&t>=0&&i>=0||n<=0&&t<=0&&i<=0||(n+=864e5*PA(eC(i)+t),t=0,i=0),r.milliseconds=n%1e3;const o=Ca(n/1e3);r.seconds=o%60;const s=Ca(o/60);r.minutes=s%60;const a=Ca(s/60);r.hours=a%24,t+=Ca(a/24);const c=Ca(NA(t));i+=c,t-=PA(eC(c));const l=Ca(i/12);return i%=12,r.day=t,r.month=i,r.year=l,e}(this)}isValid(){return this._isValid}humanize(n){if(!this.isValid())return this.localeData().invalidDate;const t=this.localeData();let i=function Gee(e,n,t){const i=sC(e).abs(),r=xs(i.as("s")),o=xs(i.as("m")),s=xs(i.as("h")),a=xs(i.as("d")),c=xs(i.as("M")),l=xs(i.as("y")),d=r<=uo_ss&&["s",r]||r<uo_s&&["ss",r]||o<=1&&["m"]||o<uo_m&&["mm",o]||s<=1&&["h"]||s<uo_h&&["hh",s]||a<=1&&["d"]||a<uo_d&&["dd",a]||c<=1&&["M"]||c<uo_M&&["MM",c]||l<=1&&["y"]||["yy",l];return Uee.apply(null,[d[0],d[1],n,+e>0,t])}(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}localeData(){return this._locale}locale(n){return n?(this._locale=mn(n)||this._locale,this):this._locale._abbr}abs(){const n=Math.abs,t=this._data;return this._milliseconds=n(this._milliseconds),this._days=n(this._days),this._months=n(this._months),t.milliseconds=n(t.milliseconds),t.seconds=n(t.seconds),t.minutes=n(t.minutes),t.hours=n(t.hours),t.month=n(t.month),t.year=n(t.year),this}as(n){if(!this.isValid())return NaN;let t,i;const r=this._milliseconds,o=lA(n);if("month"===o||"year"===o)return t=this._days+r/864e5,i=this._months+NA(t),"month"===o?i:i/12;switch(t=this._days+Math.round(eC(this._months)),o){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hours":return 24*t+r/36e5;case"minutes":return 1440*t+r/6e4;case"seconds":return 86400*t+r/1e3;case"milliseconds":return Math.floor(864e5*t)+r;default:throw new Error(`Unknown unit ${o}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Re(this._months/12):NaN}}function tC(e){if(null==e._isValid){const n=We(e),t=Array.prototype.some.call(n.parsedDateParts,function(r){return null!=r});let i=!isNaN(e._d&&e._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&t);if(e._strict&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function Vg(e,n){return e._d=new Date(NaN),Object.assign(We(e),n||{userInvalidated:!0}),e}const qee=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Kee=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zee=/Z|[+-]\d\d(?::?\d\d)?/,Bg=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],nC=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Qee=/^\/?Date\((\-?\d+)/i,Jee={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},Xee=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function RA(e){if(!ri(e._i))return e;const n=e._i,t=qee.exec(n)||Kee.exec(n);let i,r,o,s,a,c;if(!t)return e._isValid=!1,e;for(a=0,c=Bg.length;a<c;a++)if(Bg[a][1].exec(t[1])){r=Bg[a][0],i=!1!==Bg[a][2];break}if(null==r)return e._isValid=!1,e;if(t[3]){for(a=0,c=nC.length;a<c;a++)if(nC[a][1].exec(t[3])){o=(t[2]||" ")+nC[a][0];break}if(null==o)return e._isValid=!1,e}if(!i&&null!=o)return e._isValid=!1,e;if(t[4]){if(!Zee.exec(t[4]))return e._isValid=!1,e;s="Z"}return e._f=r+(o||"")+(s||""),rC(e)}function tte(e){const n=parseInt(e,10);return n<=49?n+2e3:n}function LA(e){if(!ri(e._i))return e;const n=Xee.exec(function nte(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e._i));if(!n)return function Wee(e){return e._isValid=!1,e}(e);const t=function ete(e,n,t,i,r,o){const s=[tte(e),_A.indexOf(n),parseInt(t,10),parseInt(i,10),parseInt(r,10)];return o&&s.push(parseInt(o,10)),s}(n[4],n[3],n[2],n[5],n[6],n[7]);return function ite(e,n,t){return!e||yA.indexOf(e)===new Date(n[0],n[1],n[2]).getDay()||(We(t).weekdayMismatch=!0,t._isValid=!1,!1)}(n[1],t,e)&&(e._a=t,e._tzm=function rte(e,n,t){if(e)return Jee[e];if(n)return 0;{const i=parseInt(t,10),r=i%100;return(i-r)/100*60+r}}(n[8],n[9],n[10]),e._d=Sg.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),We(e).rfc2822=!0),e}function cr(e,n,t,i,r=0){const o=mn(t||"en");if(!o)throw new Error(`Locale "${t}" is not defined, please add it with "defineLocale(...)"`);const a=function ste(e,n,t,i,r=0){if(!ks(e))return t.invalidDate;const o=FA(n,t);return H0[o]=H0[o]||function UX(e){const n=e.match(dA),t=n.length,i=new Array(t);for(let r=0;r<t;r++)i[r]=gl[n[r]]?gl[n[r]]:GX(n[r]);return function(r,o,s,a=0){let c="";for(let l=0;l<t;l++)c+=wa(i[l])?i[l].call(null,r,{format:e,locale:o,isUTC:s,offset:a}):i[l];return c}}(o),H0[o](e,t,i,r)}(e,n||(i?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),o,i,r);return a&&o.postformat(a)}function FA(e,n){let t=e,i=5;const r=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,o=s=>n.formatLongDate(s)||s;for(r.lastIndex=0;i>=0&&r.test(t);)t=t.replace(r,o),r.lastIndex=0,i-=1;return t}function Cl(e,n,t){return e??n??t}function iC(e){const n=[];let t,i,r;if(e._d)return e;const o=function ate(e){const n=new Date;return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(e);for(e._w&&null==e._a[co]&&null==e._a[Go]&&function cte(e){let n,t,i,r,o,s,a;const c=e._w;if(null!=c.GG||null!=c.W||null!=c.E)r=1,o=4,n=Cl(c.GG,e._a[Rr],bl(new Date,1,4).year),t=Cl(c.W,1),i=Cl(c.E,1),(i<1||i>7)&&(a=!0);else{r=e._locale._week.dow,o=e._locale._week.doy;const l=bl(new Date,r,o);n=Cl(c.gg,e._a[Rr],l.year),t=Cl(c.w,l.week),null!=c.d?(i=c.d,(i<0||i>6)&&(a=!0)):null!=c.e?(i=c.e+r,(c.e<0||c.e>6)&&(a=!0)):i=r}t<1||t>ka(n,r,o)?We(e)._overflowWeeks=!0:null!=a?We(e)._overflowWeekday=!0:(s=function gA(e,n,t,i,r){const a=1+7*(n-1)+(7+t-i)%7+Rg(e,i,r);let c,l;return a<=0?(c=e-1,l=Uu(c)+a):a>Uu(e)?(c=e+1,l=a-Uu(e)):(c=e,l=a),{year:c,dayOfYear:l}}(n,t,i,r,o),e._a[Rr]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(r=Cl(e._a[Rr],o[Rr]),(e._dayOfYear>Uu(r)||0===e._dayOfYear)&&(We(e)._overflowDayOfYear=!0),i=new Date(Date.UTC(r,0,e._dayOfYear)),e._a[Go]=i.getUTCMonth(),e._a[co]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=n[t]=o[t];for(;t<7;t++)e._a[t]=n[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[gn]&&0===e._a[Lr]&&0===e._a[zo]&&0===e._a[Sa]&&(e._nextDay=!0,e._a[gn]=0),e._d=(e._useUTC?Sg:Tg).apply(null,n);const s=e._useUTC?e._d.getUTCDay():e._d.getDay();return null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[gn]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(We(e).weekdayMismatch=!0),e}function VA(e){let n;const t=e._a;return t&&-2===We(e).overflow&&(n=t[Go]<0||t[Go]>11?Go:t[co]<1||t[co]>Ng(t[Rr],t[Go])?co:t[gn]<0||t[gn]>24||24===t[gn]&&(0!==t[Lr]||0!==t[zo]||0!==t[Sa])?gn:t[Lr]<0||t[Lr]>59?Lr:t[zo]<0||t[zo]>
159?zo:t[Sa]<0||t[Sa]>999?Sa:-1,We(e)._overflowDayOfYear&&(n<Rr||n>co)&&(n=co),We(e)._overflowWeeks&&-1===n&&(n=$X),We(e)._overflowWeekday&&-1===n&&(n=YX),We(e).overflow=n),e}const lte="ISO_8601",dte="RFC_2822";function rC(e){if(e._f===lte)return RA(e);if(e._f===dte)return LA(e);if(e._a=[],We(e).empty=!0,Mt(e._f)||!e._i&&0!==e._i)return e;let n=e._i.toString(),t=0;const i=n.length,r=FA(e._f,e._locale).match(dA)||[];let o,s,a,c;for(o=0;o<r.length;o++)s=r[o],a=(n.match(eee(s,e._locale))||[])[0],a&&(c=n.substr(0,n.indexOf(a)),c.length>0&&We(e).unusedInput.push(c),n=n.slice(n.indexOf(a)+a.length),t+=a.length),gl[s]?(a?We(e).empty=!1:We(e).unusedTokens.push(s),nee(s,a,e)):e._strict&&!a&&We(e).unusedTokens.push(s);return We(e).charsLeftOver=i-t,n.length>0&&We(e).unusedInput.push(n),e._a[gn]<=12&&!0===We(e).bigHour&&e._a[gn]>0&&(We(e).bigHour=void 0),We(e).parsedDateParts=e._a.slice(0),We(e).meridiem=e._meridiem,e._a[gn]=function ute(e,n,t){let i=n;if(null==t)return i;if(null!=e.meridiemHour)return e.meridiemHour(i,t);if(null==e.isPM)return i;const r=e.isPM(t);return r&&i<12&&(i+=12),!r&&12===i&&(i=0),i}(e._locale,e._a[gn],e._meridiem),iC(e),VA(e)}function pte(e){const n=VA(function gte(e){let n=e._i;const t=e._f;return e._locale=e._locale||mn(e._l),null===n||void 0===t&&""===n?Vg(e,{nullInput:!0}):(ri(n)&&(e._i=n=e._locale.preparse(n,t)),Mg(n)?(e._d=Ko(n),e):(Mt(t)?function hte(e){let n,t,i,r,o;if(!e._f||0===e._f.length)return We(e).invalidFormat=!0,Vg(e);for(o=0;o<e._f.length;o++)r=0,n=Object.assign({},e),null!=e._useUTC&&(n._useUTC=e._useUTC),n._f=e._f[o],rC(n),tC(n)&&(r+=We(n).charsLeftOver,r+=10*We(n).unusedTokens.length,We(n).score=r,(null==i||r<i)&&(i=r,t=n));Object.assign(e,t||n)}(e):t?rC(e):function mte(e){const n=e._i;if(aA(n))e._d=new Date;else if(Mg(n))e._d=Ko(n);else if(ri(n))!function ote(e){if(!ri(e._i))return e;const n=Qee.exec(e._i);null!==n?e._d=new Date(+n[1]):(RA(e),!1!==e._isValid||(delete e._isValid,LA(e),!1!==e._isValid||(delete e._isValid,Vg(e))))}(e);else if(Mt(n)&&n.length){const t=n.slice(0);e._a=t.map(i=>ri(i)?parseInt(i,10):i),iC(e)}else if(Ma(n))!function fte(e){if(e._d)return e;const n=e._i;if(Ma(n)){const t=function jX(e){const n={};let t,i;for(i in e)jn(e,i)&&(t=lA(i),t&&(n[t]=e[i]));return n}(n);e._a=[t.year,t.month,t.day,t.hours,t.minutes,t.seconds,t.milliseconds].map(i=>ri(i)?parseInt(i,10):i)}return iC(e)}(e);else{if(!Da(n))return Vg(e);e._d=new Date(n)}}(e),tC(e)||(e._d=null),e))}(e));return n._d=new Date(null!=n._d?n._d.getTime():NaN),tC(Object.assign({},n,{_isValid:null}))||(n._d=new Date(NaN)),n}function qu(e,n,t,i,r){return Mg(e)?e:function _te(e,n,t,i,r){const o={};let s=e;return(Ma(s)&&function HX(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;let n;for(n in e)if(e.hasOwnProperty(n))return!1;return!0}(s)||Mt(s)&&0===s.length)&&(s=void 0),o._useUTC=o._isUTC=r,o._l=t,o._i=s,o._f=n,o._strict=i,pte(o)}(e,n,t,i,r)._d}function BA(e){return e instanceof Date?new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()):null}function oC(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Fr(e,n,t="milliseconds"){return!(!e||!n)&&("milliseconds"===t?e.valueOf()>n.valueOf():n.valueOf()<Zo(e,t).valueOf())}function ho(e,n,t="milliseconds"){return!(!e||!n)&&("milliseconds"===t?e.valueOf()<n.valueOf():Ag(e,t).valueOf()<n.valueOf())}function wl(e,n,t="milliseconds"){if(!e||!n)return!1;if("milliseconds"===t)return e.valueOf()===n.valueOf();const i=n.valueOf();return Zo(e,t).valueOf()<=i&&i<=Ag(e,t).valueOf()}const vte=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,bte=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function sC(e,n,t={}){const i=function Cte(e,n){if(null==e)return{};if(function zee(e){return e instanceof AA}(e))return{milliseconds:e._milliseconds,day:e._days,month:e._months};if(Da(e))return n?{[n]:e}:{milliseconds:e};if(ri(e)){let t=vte.exec(e);if(t){const i="-"===t[1]?-1:1;return{year:0,day:Re(t[co])*i,hours:Re(t[gn])*i,minutes:Re(t[Lr])*i,seconds:Re(t[zo])*i,milliseconds:Re(oC(1e3*Re(t[Sa])))*i}}if(t=bte.exec(e),t){const i="-"===t[1]?-1:1;return{year:Na(t[2],i),month:Na(t[3],i),week:Na(t[4],i),day:Na(t[5],i),hours:Na(t[6],i),minutes:Na(t[7],i),seconds:Na(t[8],i)}}}if(Ma(e)&&("from"in e||"to"in e)){const t=function wte(e,n){if(!ks(e)||!ks(n))return{milliseconds:0,months:0};let t;const i=function Ree(e,n,t={}){if(!t._isUTC)return e;const i=Ko(n),r=6e4*(t._offset||0),o=e.valueOf()-i.valueOf()+r;return i.setTime(i.valueOf()+o),i}(n,e,{_offset:e.getTimezoneOffset()});return ho(e,i)?t=HA(e,i):(t=HA(i,e),t.milliseconds=-t.milliseconds,t.months=-t.months),t}(qu(e.from),qu(e.to));return{milliseconds:t.milliseconds,month:t.months}}return e}(e,n);return new AA(i,t)}function Na(e,n){const t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n}function HA(e,n){const t={milliseconds:0,months:0};return t.months=Fe(n)-Fe(e)+12*(xt(n)-xt(e)),Fr(fo(Ko(e),t.months,"month"),n)&&--t.months,t.milliseconds=+n-+fo(Ko(e),t.months,"month"),t}function fo(e,n,t,i){return jA(e,sC(n,t),1,i)}function jA(e,n,t,i){const r=n._milliseconds,o=oC(n._days),s=oC(n._months);
1return s&&Ea(e,Fe(e,i)+s*t,i),o&&q0(e,Ta(e,i)+o*t,i),r&&function gee(e,n){e.setTime(n)}(e,function zX(e){return e.getTime()}(e)+r*t),Ko(e)}function Ku(e,n,t=mn(),i){const r=lo(e,i),o=function Ste(e,n){if(!ri(e))return e;const t=parseInt(e,10);if(!isNaN(t))return t;const i=n.weekdaysParse(e);return Da(i)?i:null}(n,t);return fo(e,o-r,"day")}function aC(e,n=mn(),t){return(lo(e,t)+7-n.firstDayOfWeek())%7}const YA=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},xte={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},lr=function(e){return function(n,t){const i=YA(n);let r=xte[e][YA(n)];return 2===i&&(r=r[t?0:1]),r.replace(/%d/i,n.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),lr("s"),lr("s"),lr("m"),lr("m"),lr("h"),lr("h"),lr("d"),lr("d"),lr("M"),lr("M"),lr("y"),lr("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const lC="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),dC="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(e,n){let t,i=[];for(t=0;t<12;t++)i[t]=new RegExp("^"+e[t]+"$|^"+n[t]+"$","i")})(lC,dC),function(e){let n,t=[];for(n=0;n<12;n++)t[n]=new RegExp("^"+e[n]+"$","i")}(dC),function(e){let n,t=[];for(n=0;n<12;n++)t[n]=new RegExp("^"+e[n]+"$","i")}(lC),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".
1split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u
105d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spali
1o_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".
1split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const cR={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:e=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e,meridiem:(e,n,t)=>e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(e,n){const t=cR.longDateFormat[n]?cR.longDateFormat[n]:n;return-1!==t.indexOf("YYYY",t.length-4)?e.substr(0,e.length-4)+(parseInt(e.substr(e.length-4),10)-543):e},getFullYear:(e,n=!1)=>543+(n?e.getUTCFullYear():e.getFullYear())};
1function El(e){return function(n){return e+"\u043e"+(11===Le(n)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),El("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),El("[\u0417\u0430\u0432\u0442\u0440\u0430 "),El("[\u0412\u0447\u043e\u0440\u0430 "),El("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");class Jte{constructor(n,t){this.open=n,this.close=t||n}isManual(){return"manual"===this.open||"manual"===this.close}}const Xte={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function bC(e,n=Xte){const t=(e||"").trim();if(0===t.length)return[];const i=t.split(/\s+/).map(o=>o.split(":")).map(o=>{const s=n[o[0]]||o;return new Jte(s[0],s[1])}),r=i.filter(o=>o.isManual());if(r.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===r.length&&i.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}const _n=typeof window<"u"&&window||{},yn=_n.document;var lR=function(e){return e.isBs4="bs4",e.isBs5="bs5",e}(lR||{});let Qo;function dR(){const e=_n.document.createElement("span");e.innerText="testing bs version",e.classList.add("d-none"),e.classList.add("pl-1"),_n.document.head.appendChild(e);const n=_n.getComputedStyle(e).paddingLeft;return n&&parseFloat(n)?(_n.document.head.removeChild(e),"bs4"):(_n.document.head.removeChild(e),"bs5")}function kl(){return{isBs4:(Qo||(Qo=dR()),"bs4"===Qo),isBs5:(Qo||(Qo=dR()),"bs5"===Qo)}}function sne(){const e="Change";return function(t,i){const r=` __${i}Value`;Object.defineProperty(t,i,{get(){return this[r]},set(o){const s=this[r];this[r]=o,s!==o&&this[i+e]&&this[i+e].emit(o)}})}}class ane{static reflow(n){}static getStyles(n){let t=n.ownerDocument.defaultView;return(!t||!t.opener)&&(t=_n),t.getComputedStyle(n)}static stackOverflowConfig(){const n=function one(){const e=kl(),n=Object.keys(e).find(t=>e[t]);return lR[n]}();return{crossorigin:"anonymous",integrity:"bs5"===n?"sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65":"sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2",cdnLink:"bs5"===n?"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css":"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"}}}typeof console>"u"||console;const Qu={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=Qu;i&&(n=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=n(o=>{t=void 0,e(o)});return new Qe(()=>t?.(r))},requestAnimationFrame(...e){const{delegate:n}=Qu;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=Qu;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0},une=new class dne extends d0{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class lne extends l0{constructor(n,t){super(n,t),this.scheduler
1=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=Qu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Qu.cancelAnimationFrame(t),n._scheduled=void 0)}});var hR=function(e){return e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.auto="auto",e.end="right",e.start="left",e["top left"]="top left",e["top right"]="top right",e["right top"]="right top",e["right bottom"]="right bottom",e["bottom right"]="bottom right",e["bottom left"]="bottom left",e["left bottom"]="left bottom",e["left top"]="left top",e["top start"]="top left",e["top end"]="top right",e["end top"]="right top",e["end bottom"]="right bottom",e["bottom end"]="bottom right",e["bottom start"]="bottom left",e["start bottom"]="start bottom",e["start top"]="left top",e}(hR||{}),jg=function(e){return e.top="top",e.bottom="bottom",e.left="start",e.right="end",e.auto="auto",e.end="end",e.start="start",e["top left"]="top start",e["top right"]="top end",e["right top"]="end top",e["right bottom"]="end bottom",e["bottom right"]="bottom end",e["bottom left"]="bottom start",e["left bottom"]="start bottom",e["left top"]="start top",e["top start"]="top start",e["top end"]="top end",e["end top"]="end top",e["end bottom"]="end bottom",e["bottom end"]="bottom end",e["bottom start"]="bottom start",e["start bottom"]="start bottom",e["start top"]="start top",e}(jg||{});function Fa(e,n){if(1!==e.nodeType)return[];const i=e.ownerDocument.defaultView?.getComputedStyle(e,null);return n?i&&i[n]:i}function CC(e){if(!e)return document.documentElement;let i,t=e?.offsetParent;for(;null===t&&e.nextElementSibling&&i!==e.nextElementSibling;)i=e.nextElementSibling,t=i.offsetParent;const r=t&&t.nodeName;return r&&"BODY"!==r&&"HTML"!==r?t&&-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===Fa(t,"position")?CC(t):t:i?i.ownerDocument.documentElement:document.documentElement}function wC(e){return null!==e.parentNode?wC(e.parentNode):e}function $g(e,n){if(!(e&&e.nodeType&&n&&n.nodeType))return document.documentElement;const t=e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?e:n,r=t?n:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);const s=o.commonAncestorContainer;if(e!==s&&n!==s||i.contains(r))return function hne(e){const{nodeName:n}=e;return"BODY"!==n&&("HTML"===n||CC(e.firstElementChild)===e)}(s)?s:CC(s);const a=wC(e);return a.host?$g(a.host,n):$g(e,wC(n).host)}function fR(e){if(!e||!e.parentElement)return document.documentElement;let n=e.parentElement;for(;n?.parentElement&&"none"===Fa(n,"transform");)n=n.parentElement;return n||document.documentElement}function pR(e,n){const t="x"===n?"Left":"Top",i="Left"===t?"Right":"Bottom";return parseFloat(e[`border${t}Width`])+parseFloat(e[`border${i}Width`])}function gR(e,n,t,i){return Math.max(n[`offset${e}`],n[`scroll${e}`],t[`client${e}`],t[`offset${e}`],t[`scroll${e}`],0)}function mR(e){const n=e.body,t=e.documentElement;return{height:gR("Height",n,t),width:gR("Width",n,t)}}function Ju(e){return{...e,right:(e.left||0)+e.width,bottom:(e.top||0)+e.height}}function St(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function _R(e){const n=e.getBoundingClientRect();if(!(n&&St(n.top)&&St(n.left)&&St(n.bottom)&&St(n.right)))return n;const t={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},i="HTML"===e.nodeName?mR(e.ownerDocument):void 0,r=i?.width||e.clientWidth||St(n.right)&&St(t.left)&&n.right-t.left||0,o=i?.height||e.clientHeight||St(n.bottom)&&St(t.top)&&n.bottom-t.top||0;let s=e.offsetWidth-r,a=e.offsetHeight-o;if(s||a){const c=Fa(e);s-=pR(c,"x"),a-=pR(c,"y"),t.width-=s,t.height-=a}return Ju(t)}function DC(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function MC(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}const{overflow:n,overflowX:t,overflowY:i}=Fa(e);return/(auto|scroll|overlay)/.test(String(n)+String(i)+String(t))?e:MC(DC(e))}function SC(e,n,t=!1){const i="HTML"===n.nodeName,r=_R(e),o=_R(n),a=(MC(e),Fa(n)),c=parseFloat(a.borderTopWidth),l=parseFloat(a.borderLeftWidth);t&&i&&(o.top=Math.max(o.top??0,0),o.left=Math.max(o.left??0,0));const d=Ju({top:(r.top??0)-(o.top??0)-c,left:(r.left??0)-(o.left??0)-l,width:r.width,height:r.height});if(d.marginTop=0,d.marginLeft=0,i){const u=parseFloat(a.marginTop),h=parseFloat(a.marginLeft);St(d.top)&&(d.top-=c-u),St(d.bottom)&&(d.bottom-=c-u),St(d.left)&&(d.left-=l-h),St(d.right)&&(d.right-=l-h),d.marginTop=u,d.marginLeft=h}return d}function yR(e,n="top"){const t="top"===n?"scrollTop":"scrollLeft",i=e.nodeName;return"BODY"===i||"HTML"===i?(e.ownerDocument.scrollingElement||e.ownerDocument.documentElement)[t]:e[t]}function vR(e){const n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===Fa(e,"position")||vR(DC(e)))}function TC(e,n,t=0,i,r=!1){let o={top:0,left:0};const s=r?fR(e):$g(e,n);if("viewport"===i)o=function pne(e,n=!1){const t=e.ownerDocument.documentElement,i=SC(e,t),r=Math.max(t.clientWidth,window.innerWidth||0),o=Math.max(t.clientHeight,window.innerHeight||0),s=n?0:yR(t),a=n?0:yR(t,"left");
1return Ju({top:s-Number(i?.top)+Number(i?.marginTop),left:a-Number(i?.left)+Number(i?.marginLeft),width:r,height:o})}(s,r);else{let a;"scrollParent"===i?(a=MC(DC(n)),"BODY"===a.nodeName&&(a=e.ownerDocument.documentElement)):a="window"===i?e.ownerDocument.documentElement:i;const c=SC(a,s,r);if(c&&"HTML"===a.nodeName&&!vR(s)){const{height:l,width:d}=mR(e.ownerDocument);St(o.top)&&St(c.top)&&St(c.marginTop)&&(o.top+=c.top-c.marginTop),St(o.top)&&(o.bottom=Number(l)+Number(c.top)),St(o.left)&&St(c.left)&&St(c.marginLeft)&&(o.left+=c.left-c.marginLeft),St(o.top)&&(o.right=Number(d)+Number(c.left))}else c&&(o=c)}return St(o.left)&&(o.left+=t),St(o.top)&&(o.top+=t),St(o.right)&&(o.right-=t),St(o.bottom)&&(o.bottom-=t),o}function gne({width:e,height:n}){return e*n}function bR(e,n,t,i,r=["top","bottom","right","left"],o="viewport",s=0){if(-1===e.indexOf("auto"))return e;const a=TC(t,i,s,o),c={top:{width:a?.width??0,height:(n?.top??0)-(a?.top??0)},right:{width:(a?.right??0)-(n?.right??0),height:a?.height??0},bottom:{width:a?.width??0,height:(a?.bottom??0)-(n?.bottom??0)},left:{width:(n.left??0)-(a?.left??0),height:a?.height??0}},l=Object.keys(c).map(f=>({position:f,...c[f],area:gne(c[f])})).sort((f,g)=>g.area-f.area);let d=l.filter(({width:f,height:g})=>f>=t.clientWidth&&g>=t.clientHeight);d=d.filter(({position:f})=>r.some(g=>g===f));const u=d.length>0?d[0].position:l[0].position,h=e.split(" ")[1];return t.className=t.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${kl().isBs5?jg[u]:u}`),u+(h?`-${h}`:"")}const Yg=(e,n=0)=>e?parseFloat(e):n;function CR(e){const t=e.ownerDocument.defaultView?.getComputedStyle(e),i=Yg(t?.marginTop)+Yg(t?.marginBottom),r=Yg(t?.marginLeft)+Yg(t?.marginRight);return{width:Number(e.offsetWidth)+r,height:Number(e.offsetHeight)+i}}function wR(e,n,t){return SC(n,t?fR(e):$g(e,n),t)}function OC(e,n,t){const i=t.split(" ")[0],r=CR(e),o={width:r.width,height:r.height},s=-1!==["right","left"].indexOf(i),a=s?"top":"left",c=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return o[a]=(n[a]??0)+n[l]/2-r[l]/2,o[c]=i===c?(n[c]??0)-r[d]:n[function _ne(e){const n={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,t=>n[t])}(c)]??0,o}function DR(e,n){return!!e.modifiers[n]?.enabled}const vne={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function Ug(e,n){return!!kl().isBs5&&vne[n].includes(e)}function MR(e,n,t){!e||!n||Object.keys(n).forEach(i=>{let r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&function fne(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(Number(e))}(n[i])&&(r="px"),t?t.setStyle(e,i,`${String(n[i])}${r}`):e.style[i]=String(n[i])+r})}function wne(e){let n=e.offsets.target;const t=e.instance.target.querySelector(".arrow");if(!t)return e;const i=-1!==["left","right"].indexOf(e.placement.split(" ")[0]),r=i?"height":"width",o=i?"Top":"Left",s=o.toLowerCase(),a=i?"left":"top",c=i?"bottom":"right",l=CR(t)[r],d=e.placement.split(" ")[1];(e.offsets.host[c]??0)-l<(n[s]??0)&&(n[s]-=(n[s]??0)-((e.offsets.host[c]??0)-l)),Number(e.offsets.host[s])+Number(l)>(n[c]??0)&&(n[s]+=Number(e.offsets.host[s])+Number(l)-Number(n[c])),n=Ju(n);const u=Fa(e.instance.target),h=parseFloat(u[`margin${o}`])||0,f=parseFloat(u[`border${o}Width`])||0;let g;
1if(d){const w=parseFloat(u.borderRadius)||0,S=Number(h+f+w);g=s===d?Number(e.offsets.host[s])+S:Number(e.offsets.host[s])+Number(e.offsets.host[r]-S)}else g=Number(e.offsets.host[s])+Number(e.offsets.host[r]/2-l/2);let b=g-(n[s]??0)-h-f;return b=Math.max(Math.min(n[r]-(l+5),b),0),e.offsets.arrow={[s]:Math.round(b),[a]:""},e.instance.arrow=t,e}function Dne(e){if(e.offsets.target=Ju(e.offsets.target),!DR(e.options,"flip"))return e.offsets.target={...e.offsets.target,...OC(e.instance.target,e.offsets.host,e.placement)},e;const n=TC(e.instance.target,e.instance.host,0,"viewport",!1);let t=e.placement.split(" ")[0],i=e.placement.split(" ")[1]||"";const a=bR("auto",e.offsets.host,e.instance.target,e.instance.host,e.options.allowedPositions),c=[t,a];return c.forEach((l,d)=>{if(t!==l||c.length===d+1)return;t=e.placement.split(" ")[0];const u="left"===t&&Math.floor(e.offsets.target.right??0)>Math.floor(e.offsets.host.left??0)||"right"===t&&Math.floor(e.offsets.target.left??0)<Math.floor(e.offsets.host.right??0)||"top"===t&&Math.floor(e.offsets.target.bottom??0)>Math.floor(e.offsets.host.top??0)||"bottom"===t&&Math.floor(e.offsets.target.top??0)<Math.floor(e.offsets.host.bottom??0),h=Math.floor(e.offsets.target.left??0)<Math.floor(n.left??0),f=Math.floor(e.offsets.target.right??0)>Math.floor(n.right??0),g=Math.floor(e.offsets.target.top??0)<Math.floor(n.top??0),b=Math.floor(e.offsets.target.bottom??0)>Math.floor(n.bottom??0),w="left"===t&&h||"right"===t&&f||"top"===t&&g||"bottom"===t&&b,S=-1!==["top","bottom"].indexOf(t),D=S&&"left"===i&&h||S&&"right"===i&&f||!S&&"left"===i&&g||!S&&"right"===i&&b;(u||w||D)&&((u||w)&&(t=c[d+1]),D&&(i=function yne(e){return"right"===e?"left":"left"===e?"right":e}(i)),e.placement=t+(i?` ${i}`:""),e.offsets.target={...e.offsets.target,...OC(e.instance.target,e.offsets.host,e.placement)})}),e}function Sne(e){if(!DR(e.options,"preventOverflow"))return e;const n="transform",t=e.instance.target.style,{top:i,left:r,[n]:o}=t;t.top="",t.left="",t[n]="";const s=TC(e.instance.target,e.instance.host,0,e.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);t.top=i,t.left=r,t[n]=o;const c={primary(l){let d=e.offsets.target[l];return(e.offsets.target[l]??0)<(s[l]??0)&&(d=Math.max(e.offsets.target[l]??0,s[l]??0)),{[l]:d}},secondary(l){const d="right"===l,u=d?"left":"top";let f=e.offsets.target[u];return(e.offsets.target[l]??0)>(s[l]??0)&&(f=Math.min(e.offsets.target[u]??0,(s[l]??0)-e.offsets.target[d?"width":"height"])),{[u]:f}}};return["left","right","top","bottom"].forEach(l=>{const d=-1!==["left","top","start"].indexOf(l)?c.primary:c.secondary;e.offsets.target={...e.offsets.target,...d(l)}}),e}function Tne(e){const n=e.placement,t=n.split(" ")[0],i=n.split(" ")[1];if(i){const{host:r,target:o}=e.offsets,s=-1!==["bottom","top"].indexOf(t),a=s?"left":"top",c=s?"width":"height",l={start:{[a]:r[a]},end:{[a]:(r[a]??0)+r[c]-o[c]}};e.offsets.target={...o,[a]:a===i?l.start[a]:l.end[a]}}return e}const Ene=new class One{position(n,t){return this.offset(n,t)}offset(n,t){return wR(t,n)}positionElements(n,t,i,r,o){const s=[Dne,Tne,Sne,wne],c=function Mne(e,n,t,i){if(!e||!n)return;const r=wR(e,n);!t.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!t.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(t="auto");const o=!!t.match(/auto/g);let s=t.match(/auto\s(left|right|top|bottom|start|end)/)?t.split(" ")[1]||"auto":t;const a=s.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return a&&(s=a[1]+(a[2]?` ${a[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(s)&&(s="auto"),s=bR(s,r,e,n,i?i.allowedPositions:void 0),{options:i||{modifiers:{}},instance:{target:e,host:n,arrow:void 0},offsets:{target:OC(e,r,s),host:r,arrow:void 0},positionFixed:!1,placement:s,placementAuto:o}}(t,n,hR[i],o);if(c)return s.reduce((l,d)=>d(l),c)}};function kne(e,n,t,i,r,o){const s=Ene.positionElements(e,n,t,i,r);if(!s)return;const a=function mne(e){return{width:e.offsets.target.width,height:e.offsets.target.height,left:Math.floor(e.offsets.target.left??0),top:Math.round(e.offsets.target.top??0),bottom:Math.round(e.offsets.target.bottom??0),right:Math.floor(e.offsets.target.right??0)}}(s);MR(n,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${a.left}px, ${a.top}px, 0px)`},o),s.instance.arrow&&MR(s.instance.arrow,s.offsets.arrow,o),function Cne(e,n){const t=e.instance.target;let i=t.className;const r=kl().isBs5?jg[e.placement]:e.placement;e.placementAuto&&(i=i.replace(/bs-popover-auto/g,`bs-popover-${r}`),i=i.replace(/ms-2|me-2|mb-2|mt-2/g,""),i=i.replace(/bs-tooltip-auto/g,`bs-tooltip-${r}`),i=i.replace(/\sauto/g,` ${r}`),-1!==i.indexOf("popover")&&(i=i+" "+function bne(e){return kl().isBs5?Ug(e,"end")?"ms-2":Ug(e,"start")?"me-2":Ug(e,"top")?"mb-2":Ug(e,"bottom")?"mt-2":"":""}(r)),-1!==i.indexOf("popover")&&-1===i.indexOf("popover-auto")&&(i+=" popover-auto"),-1!==i.indexOf("tooltip")&&-1===i.indexOf("tooltip-auto")&&(i+=" tooltip-auto")),i=i.replace(/left|right|top|bottom|end|start/g,`${r.split(" ")[0]}`),n?n.setAttribute(t,"class",i):t.className=i}(s,o)}let As=(()=>{class e{constructor(t,i,r){this.update$$=new fe,this.positionElements=new Map,this.isDisabled=!1,_E(r)&&t.runOutsideAngular(()=>{this.triggerEvent$=cm(fn(window,"scroll",{passive:!0}),fn(window,"resize",{passive:!0}),le(0,une),this.update$$),this.triggerEvent$.subscribe(()=>
1{this.isDisabled||this.positionElements.forEach(o=>{kne(Gg(o.target),Gg(o.element),o.attachment,o.appendToBody,this.options,i.createRenderer(null,null))})})})}position(t){this.addPositionElement(t)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(t){this.positionElements.set(Gg(t.element),t)}calcPosition(){this.update$$.next(null)}deletePositionElement(t){this.positionElements.delete(Gg(t))}setOptions(t){this.options=t}static#e=this.\u0275fac=function(i){return new(i||e)(N(ke),N(ds),N(Po))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Gg(e){return"string"==typeof e?document.querySelector(e):e instanceof we?e.nativeElement:e??null}const Pne=new class xne extends d0{}(class Ine extends l0{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}schedule(n,t=0){return t>0?super.schedule(n,t):(this.delay=t,this.state=n,this.scheduler.flush(this),this)}execute(n,t){return t>0||this.closed?super.execute(n,t):this._execute(n,t)}requestAsyncId(n,t,i=0){return null!=i&&i>0||null==i&&this.delay>0?super.requestAsyncId(n,t,i):(n.flush(this),0)}});class SR extends Ot{constructor(n,t,i){super(n),t.pipe(am(Pne)).pipe(NI((s,a)=>a?i(s,a):s,n)).subscribe(s=>this.next(s))}}class zg extends W{constructor(n,t,i){super(),this._dispatcher=n,this._reducer=t,this.source=i}select(n){return(this.source?.pipe(se(n))||(new W).pipe(se(n))).pipe(Bl())}lift(n){const t=new zg(this._dispatcher,this._reducer,this);return t.operator=n,t}dispatch(n){this._dispatcher.next(n)}next(n){this._dispatcher.next(n)}error(n){this._dispatcher.error(n)}complete(){}}function Nne(e,n){1&e&&(m(0,"td"),I(1,"\xa0\xa0\xa0"),v())}function Ane(e,n){if(1&e){const t=ae();m(0,"td")(1,"a",1),x("click",function(){V(t);const r=C();return B(r.changeMinutes(r.minuteStep))}),Z(2,"span",2),v()()}if(2&e){const t=C();p(1),ie("disabled",!t.canIncrementMinutes||!t.isEditable)}}function Rne(e,n){1&e&&(m(0,"td"),I(1,"\xa0"),v())}function Lne(e,n){if(1&e){const t=ae();m(0,"td")(1,"a",1),x("click",function(){V(t);const r=C();return B(r.changeSeconds(r.secondsStep))}),Z(2,"span",2),v()()}if(2&e){const t=C();p(1),ie("disabled",!t.canIncrementSeconds||!t.isEditable)}}function Fne(e,n){1&e&&(m(0,"td"),I(1,"\xa0\xa0\xa0"),v())}function Vne(e,n){1&e&&Z(0,"td")}function Bne(e,n){1&e&&(m(0,"td"),I(1,"\xa0:\xa0"),v())}function Hne(e,n){if(1&e){const t=ae();m(0,"td",4)(1,"input",5),x("wheel",function(r){V(t);const o=C();return o.prevDef(r),B(o.changeMinutes(o.minuteStep*o.wheelSign(r),"wheel"))})("keydown.ArrowUp",function(){V(t);const r=C();return B(r.changeMinutes(r.minuteStep,"key"))})("keydown.ArrowDown",function(){V(t);const r=C();return B(r.changeMinutes(-r.minuteStep,"key"))})("change",function(r){return V(t),B(C().updateMinutes(r.target))}),v()()}if(2&e){const t=C();ie("has-error",t.invalidMinutes),p(1),ie("is-invalid",t.invalidMinutes),y("placeholder",t.minutesPlaceholder)("readonly",t.readonlyInput)("disabled",t.disabled)("value",t.minutes),X("aria-label",t.labelMinutes)}}function jne(e,n){1&e&&(m(0,"td"),I(1,"\xa0:\xa0"),v())}function $ne(e,n){if(1&e){const t=ae();m(0,"td",4)(1,"input",5),x("wheel",function(r){V(t);const o=C();return o.prevDef(r),B(o.changeSeconds(o.secondsStep*o.wheelSign(r),"wheel"))})("keydown.ArrowUp",function(){V(t);const r=C();return B(r.changeSeconds(r.secondsStep,"key"))})("keydown.ArrowDown",function(){V(t);const r=C();return B(r.changeSeconds(-r.secondsStep,"key"))})("change",function(r){return V(t),B(C().updateSeconds(r.target))}),v()()}if(2&e){const t=C();ie("has-error",t.invalidSeconds),p(1),ie("is-invalid",t.invalidSeconds),y("placeholder",t.secondsPlaceholder)("readonly",t.readonlyInput)("disabled",t.disabled)("value",t.seconds),X("aria-label",t.labelSeconds)}}function Yne(e,n){1&e&&(m(0,"td"),I(1,"\xa0\xa0\xa0"),v())}function Une(e,n){if(1&e){const t=ae();m(0,"td")(1,"button",8),x("click",function(){return V(t),B(C().toggleMeridian())}),I(2),v()()}if(2&e){const t=C();p(1),ie("disabled",!t.isEditable||!t.canToggleMeridian),y("disabled",!t.isEditable||!t.canToggleMeridian),p(1),Ft("",t.meridian," ")}}function Gne(e,n){1&e&&(m(0,"td"),I(1,"\xa0\xa0\xa0"),v())}function zne(e,n){if(1&e){const t=ae();m(0,"td")(1,"a",1),x("click",function(){V(t);const r=C();return B(r.changeMinutes(-r.minuteStep))}),Z(2,"span",7),v()()}if(2&e){const t=C();p(1),ie("disabled",!t.canDecrementMinutes||!t.isEditable)}}function Wne(e,n){1&e&&(m(0,"td"),I(1,"\xa0"),v())}function qne(e,n){if(1&e){const t=ae();m(0,"td")(1,"a",1),x("click",function(){V(t);const r=C();
1return B(r.changeSeconds(-r.secondsStep))}),Z(2,"span",7),v()()}if(2&e){const t=C();p(1),ie("disabled",!t.canDecrementSeconds||!t.isEditable)}}function Kne(e,n){1&e&&(m(0,"td"),I(1,"\xa0\xa0\xa0"),v())}function Zne(e,n){1&e&&Z(0,"td")}let Jo=(()=>{class e{static#e=this.WRITE_VALUE="[timepicker] write value from ng model";static#t=this.CHANGE_HOURS="[timepicker] change hours";static#n=this.CHANGE_MINUTES="[timepicker] change minutes";static#i=this.CHANGE_SECONDS="[timepicker] change seconds";static#r=this.SET_TIME_UNIT="[timepicker] set time unit";static#o=this.UPDATE_CONTROLS="[timepicker] update controls";writeValue(t){return{type:e.WRITE_VALUE,payload:t}}changeHours(t){return{type:e.CHANGE_HOURS,payload:t}}changeMinutes(t){return{type:e.CHANGE_MINUTES,payload:t}}changeSeconds(t){return{type:e.CHANGE_SECONDS,payload:t}}setTime(t){return{type:e.SET_TIME_UNIT,payload:t}}updateControls(t){return{type:e.UPDATE_CONTROLS,payload:t}}static#s=this.\u0275fac=function(i){return new(i||e)};static#a=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Qne=10,Jne=24,TR=12,Xne=60,eie=60;function EC(e){return!(!e||e instanceof Date&&isNaN(e.getHours()))&&("string"!=typeof e||EC(new Date(e)))}function kC(e,n){return!(e.min&&n<e.min||e.max&&n>e.max)}function Va(e){return typeof e>"u"?NaN:"number"==typeof e?e:parseInt(e,Qne)}function OR(e,n=!1){const t=Va(e);return isNaN(t)||t<0||t>(n?TR:Jne)?NaN:t}function ER(e){const n=Va(e);return isNaN(n)||n<0||n>Xne?NaN:n}function kR(e){const n=Va(e);return isNaN(n)||n<0||n>eie?NaN:n}function IR(e){return"string"==typeof e?new Date(e):e}function mr(e,n){if(!e)return mr(Wg(new Date,0,0,0),n);if(!n)return e;let t=e.getHours(),i=e.getMinutes(),r=e.getSeconds();return n.hour&&(t+=Va(n.hour)),n.minute&&(i+=Va(n.minute)),n.seconds&&(r+=Va(n.seconds)),Wg(e,t,i,r)}function xR(e,n){let t=OR(n.hour);const i=ER(n.minute),r=kR(n.seconds)||0;return n.isPM&&12!==t&&(t+=TR),e?isNaN(t)||isNaN(i)?e:Wg(e,t,i,r):isNaN(t)||isNaN(i)?e:Wg(new Date,t,i,r)}function Wg(e,n,t,i){const r=new Date(e.getFullYear(),e.getMonth(),e.getDate(),n,t,i,e.getMilliseconds());return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(e.getDate()),r}function IC(e){const n=e.toString();return n.length>1?n:`0${n}`}function PR(e,n){return!isNaN(OR(e,n))}function NR(e){return!isNaN(ER(e))}function AR(e){return!isNaN(kR(e))}function RR(e,n="0",t="0",i){return PR(e,i)&&NR(n)&&AR(t)}function qg(e,n){return!(e.readonlyInput||e.disabled||n&&("wheel"===n.source&&!e.mousewheel||"key"===n.source&&!e.arrowkeys))}function LR(e){const{hourStep:n,minuteStep:t,secondsStep:i,readonlyInput:r,disabled:o,mousewheel:s,arrowkeys:a,showSpinners:c,showMeridian:l,showSeconds:d,meridians:u,min:h,max:f}=e;return{hourStep:n,minuteStep:t,secondsStep:i,readonlyInput:r,disabled:o,mousewheel:s,arrowkeys:a,showSpinners:c,showMeridian:l,showSeconds:d,meridians:u,min:h,max:f}}let FR=(()=>{class e{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const VR={value:void 0,config:new FR,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function BR(e=VR,n){switch(n.type){case Jo.WRITE_VALUE:return Object.assign({},e,{value:n.payload});case Jo.CHANGE_HOURS:{if(!qg(e.config,n.payload)||!function iie(e,n){return!(!e.step||e.step>0&&!n.canIncrementHours||e.step<0&&!n.canDecrementHours)}(n.payload,e.controls))return e;const t=mr(e.value,{hour:n.payload.step});return!e.config.max&&!e.config.min||kC(e.config,t)?Object.assign({},e,{value:t}):e}case Jo.CHANGE_MINUTES:{if(!qg(e.config,n.payload)||!function rie(e,n){return!(!e.step||e.step>0&&!n.canIncrementMinutes||e.step<0&&!n.canDecrementMinutes)}(n.payload,e.controls))return e;const t=mr(e.value,{minute:n.payload.step});return!e.config.max&&!e.config.min||kC(e.config,t)?Object.assign({},e,{value:t}):e}case Jo.CHANGE_SECONDS:{if(!qg(e.config,n.payload)||!function oie(e,n){return!(!e.step||e.step>0&&!n.canIncrementSeconds||e.step<0&&!n.canDecrementSeconds)}(n.payload,e.controls))return e;const t=mr(e.value,{seconds:n.payload.step});return!e.config.max&&!e.config.min||kC(e.config,t)?Object.assign({},e,{value:t}):e}case Jo.SET_TIME_UNIT:{if(!qg(e.config))return e;const t=xR(e.value,n.payload);return Object.assign({},e,{value:t})}case Jo.UPDATE_CONTROLS:{const t=function sie(e,n){const{min:r,max:o,hourStep:s,minuteStep:a,secondsStep:c,showSeconds:l}=n,d={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!e)return d;if(o){const u=mr(e,{hour:s});if(d.canIncrementHours=o>u&&e.getHours()+s<24,!d.canIncrementHours){const h=mr(e,{minute:a});d.canIncrementMinutes=l?o>h:o>=h}if(!d.canIncrementMinutes){const h=mr(e,{seconds:c});d.canIncrementSeconds=o>=h}e.getHours()<12&&(d.canToggleMeridian=mr(e,{hour:12})<o)}if(r){const u=mr(e,{hour:-s}
1);if(d.canDecrementHours=r<u,!d.canDecrementHours){const h=mr(e,{minute:-a});d.canDecrementMinutes=l?r<h:r<=h}if(!d.canDecrementMinutes){const h=mr(e,{seconds:-c});d.canDecrementSeconds=r<=h}e.getHours()>=12&&(d.canToggleMeridian=mr(e,{hour:-12})>r)}return d}(e.value,n.payload),i={value:e.value,config:n.payload,controls:t};return e.config.showMeridian!==i.config.showMeridian&&e.value&&(i.value=new Date(e.value)),Object.assign({},e,i)}default:return e}}let Kg=(()=>{class e extends zg{constructor(){const t=new Ot({type:"[mini-ngrx] dispatcher init"});super(t,BR,new SR(VR,t,BR))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const aie={provide:un,useExisting:ye(()=>xC),multi:!0};let xC=(()=>{class e{constructor(t,i,r,o){this._cd=i,this._store=r,this._timepickerActions=o,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new H,this.meridianChange=new H,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=t,Object.assign(this,this.config),this.timepickerSub=r.select(s=>s.value).subscribe(s=>{this._renderTime(s),this.onChange(s),this._store.dispatch(this._timepickerActions.updateControls(LR(this)))}),r.select(s=>s.controls).subscribe(s=>{const a=RR(this.hours,this.minutes,this.seconds,this.isPM()),c=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||a;this.isValid.emit(c),Object.assign(this,s),i.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(t){t.preventDefault()}wheelSign(t){return-1*Math.sign(t.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(LR(this)))}changeHours(t,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:t,source:i}))}changeMinutes(t,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:t,source:i}))}changeSeconds(t,i=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:t,source:i}))}updateHours(t){this.resetValidation(),this.hours=t.value;const i=PR(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(t){this.resetValidation(),this.minutes=t.value;const i=NR(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(t){this.resetValidation(),this.seconds=t.value;const i=AR(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||i))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function tie(e,n,t){const i=xR(new Date,e);return!(!i||n&&i>n||t&&i<t)}({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()},this.max,this.min)}isOneOfDatesIsEmpty(){return function nie(e,n,t){return 0===e.length||0===n.length||0===t.length}(this.hours,this.minutes,this.seconds)}_updateTime(){const r=RR(this.hours,this.showMinutes?this.minutes:void 0,this.showSeconds?this.seconds:void 0,this.isPM());if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||r))return this.isValid.emit(!1),void this.onChange(null);this._store.dispatch(this._timepickerActions.setTime({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()}))}toggleMeridian(){this.showMeridian&&this.isEditable&&this._store.dispatch(this._timepickerActions.changeHours({step:12,source:""}))}writeValue(t){EC(t)?(this.resetValidation(),this._store.dispatch(this._timepickerActions.writeValue(IR(t)))):null==t&&this._store.dispatch(this._timepickerActions.writeValue())}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._cd.markForCheck()}ngOnDestroy(){this.timepickerSub?.unsubscribe()}_renderTime(t){if(!t||!EC(t))return this.hours="",this.minutes="",this.seconds="",this.meridian=this.meridians[0],void this.meridianChange.emit(this.meridian);const i=IR(t);if(!i)return;let o=i.getHours();this.showMeridian&&(this.meridian=this.meridians[o>=12?1:0],this.meridianChange.emit(this.meridian),o%=12,0===o&&(o=12)),this.hours=IC(o),this.minutes=IC(i.getMinutes()),this.seconds=IC(i.getUTCSeconds())}static#e=this.\u0275fac=function(i){return new(i||e)(_(FR),_(Bn),_(Kg),_(Jo))};static#t=this.\u0275cmp=ue({type:e,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meri
1dians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[Be([aie,Kg]),Et],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],["href","javascript:void(0);",1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"placeholder","readonly","disabled","value","wheel","keydown.ArrowUp","keydown.ArrowDown","change"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"disabled","click"]],template:function(i,r){1&i&&(m(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),x("click",function(){return r.changeHours(r.hourStep)}),Z(5,"span",2),v()(),M(6,Nne,2,0,"td",3),M(7,Ane,3,2,"td",3),M(8,Rne,2,0,"td",3),M(9,Lne,3,2,"td",3),M(10,Fne,2,0,"td",3),M(11,Vne,1,0,"td",3),v(),m(12,"tr")(13,"td",4)(14,"input",5),x("wheel",function(s){return r.prevDef(s),r.changeHours(r.hourStep*r.wheelSign(s),"wheel")})("keydown.ArrowUp",function(){return r.changeHours(r.hourStep,"key")})("keydown.ArrowDown",function(){return r.changeHours(-r.hourStep,"key")})("change",function(s){return r.updateHours(s.target)}),v()(),M(15,Bne,2,0,"td",3),M(16,Hne,2,9,"td",6),M(17,jne,2,0,"td",3),M(18,$ne,2,9,"td",6),M(19,Yne,2,0,"td",3),M(20,Une,3,4,"td",3),v(),m(21,"tr",0)(22,"td")(23,"a",1),x("click",function(){return r.changeHours(-r.hourStep)}),Z(24,"span",7),v()(),M(25,Gne,2,0,"td",3),M(26,zne,3,2,"td",3),M(27,Wne,2,0,"td",3),M(28,qne,3,2,"td",3),M(29,Kne,2,0,"td",3),M(30,Zne,1,0,"td",3),v()()()),2&i&&(p(2),y("hidden",!r.showSpinners),p(2),ie("disabled",!r.canIncrementHours||!r.isEditable),p(2),y("ngIf",r.showMinutes),p(1),y("ngIf",r.showMinutes),p(1),y("ngIf",r.showSeconds),p(1),y("ngIf",r.showSeconds),p(1),y("ngIf",r.showMeridian),p(1),y("ngIf",r.showMeridian),p(2),ie("has-error",r.invalidHours),p(1),ie("is-invalid",r.invalidHours),y("placeholder",r.hoursPlaceholder)("readonly",r.readonlyInput)("disabled",r.disabled)("value",r.hours),X("aria-label",r.labelHours),p(1),y("ngIf",r.showMinutes),p(1),y("ngIf",r.showMinutes),p(1),y("ngIf",r.showSeconds),p(1),y("ngIf",r.showSeconds),p(1),y("ngIf",r.showMeridian),p(1),y("ngIf",r.showMeridian),p(1),y("hidden",!r.showSpinners),p(2),ie("disabled",!r.canDecrementHours||!r.isEditable),p(2),y("ngIf",r.showMinutes),p(1),y("ngIf",r.showMinutes),p(1),y("ngIf",r.showSeconds),p(1),y("ngIf",r.showSeconds),p(1),y("ngIf",r.showMeridian),p(1),y("ngIf",r.showMeridian))},dependencies:[lt],styles:[".bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{transform:rotate(45deg);top:2px}.bs-chevron-down{transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}\n"],encapsulation:2,changeDetection:0})}return e})(),cie=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Jo,Kg]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({providers:[Kg],imports:[kr]})}return e})();class Xu{constructor(n,t,i){this.nodes=n,this.viewRef=t,this.componentRef=i}}class lie{constructor(n,t,i,r,o,s,a,c,l){this._viewContainerRef=n,this._renderer=t,this._elementRef=i,this._injector=r,this._componentFactoryResolver=o,this._ngZone=s,this._applicationRef=a,this._posService=c,this._document=l,this.onBeforeShow=new H,this.onShown=new H,this.onBeforeHide=new H,this.onHidden=new H,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(n){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(n),this}to(n){return this.container=n||this.container,this}position(n){return n?(this.attachment=n.attachment||this.attachment,this._elementRef=n.target||this._elementRef,this):this}provide(n){return this._providers.push(n),this}show(n={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(n.content,n.context,n.initialState);const t=Zt.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(t,this._contentRef.n
1odes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,n),this.container instanceof we&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const i=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!i)return;i.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(n.id?{id:n.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(n){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const t=this._componentRef.location.nativeElement;return t.parentNode?.removeChild(t),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(n?{id:n}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(n){this.triggers=n.triggers||this.triggers,this._listenOpts.outsideClick=n.outsideClick,this._listenOpts.outsideEsc=n.outsideEsc,n.target=n.target||this._elementRef?.nativeElement;const t=this._listenOpts.hide=()=>n.hide?n.hide():void this.hide(),i=this._listenOpts.show=o=>{n.show?n.show(o):this.show(o),o()};return this._renderer&&(this._unregisterListenersFn=function ene(e,n){const t=bC(n.triggers),i=n.target;if(1===t.length&&t[0].isManual())return Function.prototype;const r=[],o=[],s=()=>{o.forEach(a=>r.push(a())),o.length=0};return t.forEach(a=>{const c=a.open===a.close,l=c?n.toggle:n.show;if(!c&&a.close&&n.hide){const d=a.close,u=n.hide;o.push(()=>e.listen(i,d,u))}l&&r.push(e.listen(i,a.open,()=>l(s)))}),()=>{r.forEach(a=>a())}}(this._renderer,{target:n.target,triggers:n.triggers,show:i,hide:t,toggle:o=>{this.isShown?t():i(o)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(n,t){return n&&t&&(this._inlineViewRef=n.createEmbeddedView(t)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const n=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=function tne(e,n){return n.outsideClick?e.listen("document","click",t=>{n.target&&n.target.contains(t.target)||n.targets&&n.targets.some(i=>i.contains(t.target))||n.hide&&n.hide()}):Function.prototype}(this._renderer,{targets:[n,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=function nne(e,n){return n.outsideEsc?e.listen("document","keyup.esc",t=>{n.target&&n.target.contains(t.target)||n.targets&&n.targets.some(i=>i.contains(t.target))||n.hide&&n.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(n,t,i){if(!n)return new Xu([]);if(n instanceof mt){if(this._viewContainerRef){const s=this._viewContainerRef.createEmbeddedView(n,t);return s.markForCheck(),new Xu([s.rootNodes],s)}const o=n.createEmbeddedView({});return this._applicationRef.attachView(o),new Xu([o.rootNodes],o)}if("function"==typeof n){const o=this._componentFactoryResolver.resolve
1ComponentFactory(n),s=Zt.create({providers:this._providers,parent:this._injector}),a=o.create(s);return Object.assign(a.instance,i),this._applicationRef.attachView(a.hostView),new Xu([[a.location.nativeElement]],a.hostView,a)}const r=this._renderer?[this._renderer.createText(`${n}`)]:[];return new Xu([r])}}let Rs=(()=>{class e{constructor(t,i,r,o,s,a){this._componentFactoryResolver=t,this._ngZone=i,this._injector=r,this._posService=o,this._applicationRef=s,this._document=a}createLoader(t,i,r){return new lie(i,r,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static#e=this.\u0275fac=function(i){return new(i||e)(N(md),N(ke),N(Zt),N(As),N(Xr),N(yt))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const die=["*"];let PC=(()=>{class e{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),uie=(()=>{class e{get _bsVersions(){return kl()}constructor(t){Object.assign(this,t)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=jg[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}static#e=this.\u0275fac=function(i){return new(i||e)(_(PC))};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(i,r){2&i&&(X("id",r.id),Xi("show tooltip in tooltip-"+r.placement+" bs-tooltip-"+r.placement+" "+r.placement+" "+r.containerClass))},ngContentSelectors:die,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(i,r){1&i&&(Dr(),Z(0,"div",0),m(1,"div",1),kn(2),v())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}return e})(),hie=0,fie=(()=>{class e{get isOpen(){return this._tooltip.isShown}set isOpen(t){t?this.show():this.hide()}set htmlContent(t){this.tooltip=t}set _placement(t){this.placement=t}set _isOpen(t){this.isOpen=t}get _isOpen(){return this.isOpen}set _enable(t){this.isDisabled=!t}get _enable(){return this.isDisabled}set _appendToBody(t){this.container=t?"body":this.container}get _appendToBody(){return"body"===this.container}set _popupClass(t){}set _tooltipContext(t){}set _tooltipPopupDelay(t){this.delay=t}get _tooltipTrigger(){return this.triggers}set _tooltipTrigger(t){this.triggers=(t||"").toString()}constructor(t,i,r,o,s,a){this._elementRef=o,this._renderer=s,this._positionService=a,this.tooltipId=hie++,this.adaptivePosition=!0,this.tooltipChange=new H,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new H,this._tooltip=i.createLoader(this._elementRef,t,this._renderer).provide({provide:PC,useValue:r}),Object.assign(this,r),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(t=>{t||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const t=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(uie).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},i=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=u0(this.delay).subscribe(()=>{t(),i()}
1),this.triggers&&bC(this.triggers).forEach(r=>{r.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,r.close,()=>{this._delaySubscription?.unsubscribe(),i()}))})):t()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)(_(ti),_(Rs),_(PC),_(we),_(It),_(As))};static#t=this.\u0275dir=j({type:e,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:["tooltipHtml","htmlContent"],_placement:["tooltipPlacement","_placement"],_isOpen:["tooltipIsOpen","_isOpen"],_enable:["tooltipEnable","_enable"],_appendToBody:["tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:["tooltipClass","_popupClass"],_tooltipContext:["tooltipContext","_tooltipContext"],_tooltipPopupDelay:["tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:["tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]})}return function rh(e,n,t,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(n,t,o):s(n,t))||o);return r>3&&o&&Object.defineProperty(n,t,o),o}([sne(),G("design:type",Object)],e.prototype,"tooltip",void 0),e})(),pie=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Rs,As]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[kr]})}return e})();function gie(e,n){if(1&e){const t=ae();m(0,"button",2),x("click",function(){const o=V(t).$implicit;return B(C().selectFromRanges(o))}),I(1),v()}if(2&e){const t=n.$implicit,i=C();ie("selected",t.value===i.selectedRange),p(1),Ft(" ",t.label," ")}}function mie(e,n){1&e&&Z(0,"bs-current-date",4)}function _ie(e,n){1&e&&Z(0,"bs-timepicker")}const yie=[[["bs-datepicker-navigation-view"]],"*"],vie=["bs-datepicker-navigation-view","*"],bie=["bsDatepickerDayDecorator",""];function Cie(e,n){if(1&e){const t=ae();fi(0),I(1," \u200b "),m(2,"button",2),x("click",function(){return V(t),B(C().view("month"))}),m(3,"span"),I(4),v()(),pi()}if(2&e){const t=C();p(2),y("disabled",t.isDisabled),p(2),Ie(t.calendar.monthTitle)}}function wie(e,n){1&e&&Z(0,"th")}function Die(e,n){if(1&e&&(m(0,"th",5),I(1),v()),2&e){const t=n.index,i=C();p(1),Ft("",i.calendar.weekdays[t]," ")}}function Mie(e,n){if(1&e){const t=ae();m(0,"span",11),x("click",function(){V(t);const r=C(2).$implicit;return B(C().selectWeek(r))}),I(1),v()}if(2&e){const t=C(2).index,i=C();p(1),Ie(i.calendar.weekNumbers[t])}}function Sie(e,n){if(1&e){const t=ae();m(0,"span",12),x("click",function(){V(t);const r=C(2).$implicit;return B(C().selectWeek(r))})("mouseenter",function(){V(t);const r=C(2).$implicit;return B(C().weekHoverHandler(r,!0))})("mouseleave",function(){V(t);const r=C(2).$implicit;return B(C().weekHoverHandler(r,!1))}),I(1),v()}if(2&e){const t=C(2).index,i=C();p(1),Ie(i.calendar.weekNumbers[t])}}function Tie(e,n){if(1&e&&(m(0,"td",8),M(1,Mie,2,1,"span",9),M(2,Sie,2,1,"span",10),v()),2&e){const t=C(2);ie("active-week",t.isWeekHovered),p(1),y("ngIf",t.isiOS),p(1),y("ngIf",!t.isiOS)}}function Oie(e,n){if(1&e){const t=ae();m(0,"span",17),x("click",function(){V(t);const r=C().$implicit;return B(C(2).selectDay(r))})("mouseenter",function(){V(t);const r=C().$implicit;return B(C(2).hoverDay(r,!0))})("mouseleave",function(){V(t);const r=C().$implicit;return B(C(2).hoverDay(r,!1))}),I(1),v()}if(2&e){const t=C().$implicit;
1Cf("tooltip",t.tooltipText),y("day",t),p(1),Ft("",t.label," 3")}}function Eie(e,n){if(1&e){const t=ae();m(0,"span",18),x("click",function(){V(t);const r=C().$implicit;return B(C(2).selectDay(r))})("mouseenter",function(){V(t);const r=C().$implicit;return B(C(2).hoverDay(r,!0))})("mouseleave",function(){V(t);const r=C().$implicit;return B(C(2).hoverDay(r,!1))}),I(1),v()}if(2&e){const t=C().$implicit;y("day",t),p(1),Ft("",t.label," 2")}}function kie(e,n){if(1&e){const t=ae();m(0,"span",19),x("click",function(){V(t);const r=C().$implicit;return B(C(2).selectDay(r))}),I(1),v()}if(2&e){const t=C().$implicit;y("day",t),p(1),Ft("",t.label," 1")}}function Iie(e,n){if(1&e&&(m(0,"td",13),M(1,Oie,2,3,"span",14),M(2,Eie,2,2,"span",15),M(3,kie,2,2,"span",16),v()),2&e){const t=C(2);p(1),y("ngIf",!t.isiOS&&t.isShowTooltip),p(1),y("ngIf",!t.isiOS&&!t.isShowTooltip),p(1),y("ngIf",t.isiOS)}}function xie(e,n){if(1&e&&(m(0,"tr"),M(1,Tie,3,4,"td",6),M(2,Iie,4,3,"td",7),v()),2&e){const t=n.$implicit,i=C();p(1),y("ngIf",i.options&&i.options.showWeekNumbers),p(1),y("ngForOf",t.days)}}function Pie(e,n){if(1&e){const t=ae();m(0,"td",4),x("click",function(){const o=V(t).$implicit;return B(C(2).viewMonth(o))})("mouseenter",function(){const o=V(t).$implicit;return B(C(2).hoverMonth(o,!0))})("mouseleave",function(){const o=V(t).$implicit;return B(C(2).hoverMonth(o,!1))}),m(1,"span"),I(2),v()()}if(2&e){const t=n.$implicit;ie("disabled",t.isDisabled)("is-highlighted",t.isHovered),p(1),ie("selected",t.isSelected),p(1),Ie(t.label)}}function Nie(e,n){if(1&e&&(m(0,"tr"),M(1,Pie,3,7,"td",3),v()),2&e){const t=n.$implicit;p(1),y("ngForOf",t)}}function Aie(e,n){if(1&e){const t=ae();m(0,"td",4),x("click",function(){const o=V(t).$implicit;return B(C(2).viewYear(o))})("mouseenter",function(){const o=V(t).$implicit;return B(C(2).hoverYear(o,!0))})("mouseleave",function(){const o=V(t).$implicit;return B(C(2).hoverYear(o,!1))}),m(1,"span"),I(2),v()()}if(2&e){const t=n.$implicit;ie("disabled",t.isDisabled)("is-highlighted",t.isHovered),p(1),ie("selected",t.isSelected),p(1),Ie(t.label)}}function Rie(e,n){if(1&e&&(m(0,"tr"),M(1,Aie,3,7,"td",3),v()),2&e){const t=n.$implicit;p(1),y("ngForOf",t)}}const HR=["startTP"];function Lie(e,n){if(1&e){const t=ae();m(0,"bs-days-calendar-view",11),x("onNavigate",function(r){return V(t),B(C(3).navigateTo(r))})("onViewMode",function(r){return V(t),B(C(3).setViewMode(r))})("onHover",function(r){return V(t),B(C(3).dayHoverHandler(r))})("onHoverWeek",function(r){return V(t),B(C(3).weekHoverHandler(r))})("onSelect",function(r){return V(t),B(C(3).daySelectHandler(r))}),Ii(1,"async"),v()}if(2&e){const t=n.$implicit,i=C(3);ie("bs-datepicker-multiple",i.multipleCalendars),y("calendar",t)("isDisabled",i.isDatePickerDisabled)("options",xi(1,5,i.options$))}}function Fie(e,n){1&e&&Z(0,"timepicker",13,16),2&e&&y("disabled",C(4).isDatePickerDisabled)}function Vie(e,n){if(1&e&&(m(0,"div",12),Z(1,"timepicker",13,14),M(3,Fie,2,1,"timepicker",15),v()),2&e){const t=C(3);p(1),y("disabled",t.isDatePickerDisabled),p(2),y("ngIf",t.isRangePicker)}}function Bie(e,n){if(1&e&&(fi(0),m(1,"div",8),M(2,Lie,2,7,"bs-days-calendar-view",9),Ii(3,"async"),v(),M(4,Vie,4,2,"div",10),pi()),2&e){const t=C(2);p(2),y("ngForOf",xi(3,2,t.daysCalendar$)),p(2),y("ngIf",t.withTimepicker)}}function Hie(e,n){if(1&e){const t=ae();m(0,"bs-month-calendar-view",18),x("onNavigate",function(r){return V(t),B(C(3).navigateTo(r))})("onViewMode",function(r){return V(t),B(C(3).setViewMode(r))})("onHover",function(r){return V(t),B(C(3).monthHoverHandler(r))})("onSelect",function(r){return V(t),B(C(3).monthSelectHandler(r))}),v()}if(2&e){const t=n.$implicit;ie("bs-datepicker-multiple",C(3).multipleCalendars),y("calendar",t)}}function jie(e,n){if(1&e&&(m(0,"div",8),M(1,Hie,1,3,"bs-month-calendar-view",17),Ii(2,"async"),v()),2&e){const t=C(2);p(1),y("ngForOf",xi(2,1,t.monthsCalendar))}}function $ie(e,n){if(1&e){const t=ae();m(0,"bs-years-calendar-view",18),x("onNavigate",function(r){return V(t),B(C(3).navigateTo(r))})("onViewMode",function(r){return V(t),B(C(3).setViewMode(r))})("onHover",function(r){return V(t),B(C(3).yearHoverHandler(r))})("onSelect",function(r){return V(t),B(C(3).yearSelectHandler(r))}),v()}if(2&e){const t=n.$implicit;ie("bs-datepicker-multiple",C(3).multipleCalendars),y("calendar",t)}}function Yie(e,n){if(1&e&&(m(0,"div",8),M(1,$ie,1,3,"bs-years-calendar-view",17),Ii(2,"async"),v()),2&e){const t=C(2);p(1),y("ngForOf",xi(2,1,t.yearsCalendar))}}function Uie(e,n){1&e&&(m(0,"div",19)(1,"button",20),I(2,"Apply"),v(),m(3,"button",21),I(4,"Cancel"),v()())}function Gie(e,n){if(1&e){const t=ae();m(0,"div",24)(1,"button",25),x("click",function(){return V(t),B(C(3).setToday())}
1),I(2),v()()}if(2&e){const t=C(3);ie("today-left","left"===t.todayPos)("today-right","right"===t.todayPos)("today-center","center"===t.todayPos),p(2),Ie(t.todayBtnLbl)}}function zie(e,n){if(1&e){const t=ae();m(0,"div",26)(1,"button",25),x("click",function(){return V(t),B(C(3).clearDate())}),I(2),v()()}if(2&e){const t=C(3);ie("clear-left","left"===t.clearPos)("clear-right","right"===t.clearPos)("clear-center","center"===t.clearPos),p(2),Ie(t.clearBtnLbl)}}function Wie(e,n){if(1&e&&(m(0,"div",19),M(1,Gie,3,7,"div",22),M(2,zie,3,7,"div",23),v()),2&e){const t=C(2);p(1),y("ngIf",t.showTodayBtn),p(1),y("ngIf",t.showClearBtn)}}function qie(e,n){if(1&e){const t=ae();m(0,"div",27)(1,"bs-custom-date-view",28),x("onSelect",function(r){return V(t),B(C(2).setRangeOnCalendar(r))}),v()()}if(2&e){const t=C(2);p(1),y("selectedRange",t.chosenRange)("ranges",t.customRanges)("customRangeLabel",t.customRangeBtnLbl)}}function Kie(e,n){if(1&e){const t=ae();m(0,"div",1)(1,"div",2),x("@datepickerAnimation.done",function(){return V(t),B(C().positionServiceEnable())}),m(2,"div",3),Ii(3,"async"),M(4,Bie,5,4,"ng-container",4),M(5,jie,3,3,"div",5),M(6,Yie,3,3,"div",5),v(),M(7,Uie,5,0,"div",6),M(8,Wie,3,2,"div",6),v(),M(9,qie,2,3,"div",7),v()}if(2&e){const t=C();y("ngClass",t.containerClass),p(1),y("@datepickerAnimation",t.animationState),p(1),y("ngSwitch",xi(3,9,t.viewMode)),p(2),y("ngSwitchCase","day"),p(1),y("ngSwitchCase","month"),p(1),y("ngSwitchCase","year"),p(1),y("ngIf",!1),p(1),y("ngIf",t.showTodayBtn||t.showClearBtn),p(1),y("ngIf",t.customRanges&&t.customRanges.length>0)}}const lre=["endTP"];function dre(e,n){if(1&e){const t=ae();m(0,"bs-days-calendar-view",11),x("onNavigate",function(r){return V(t),B(C(3).navigateTo(r))})("onViewMode",function(r){return V(t),B(C(3).setViewMode(r))})("onHover",function(r){return V(t),B(C(3).dayHoverHandler(r))})("onHoverWeek",function(r){return V(t),B(C(3).weekHoverHandler(r))})("onSelect",function(r){return V(t),B(C(3).daySelectHandler(r))}),Ii(1,"async"),v()}if(2&e){const t=n.$implicit,i=C(3);ie("bs-datepicker-multiple",i.multipleCalendars),y("calendar",t)("isDisabled",i.isDatePickerDisabled)("options",xi(1,5,i.options$))}}function ure(e,n){1&e&&Z(0,"timepicker",13,16),2&e&&y("disabled",C(4).isDatePickerDisabled)}function hre(e,n){if(1&e&&(m(0,"div",12),Z(1,"timepicker",13,14),M(3,ure,2,1,"timepicker",15),v()),2&e){const t=C(3);p(1),y("disabled",t.isDatePickerDisabled),p(2),y("ngIf",t.isRangePicker)}}function fre(e,n){if(1&e&&(fi(0),m(1,"div",8),M(2,dre,2,7,"bs-days-calendar-view",9),Ii(3,"async"),v(),M(4,hre,4,2,"div",10),pi()),2&e){const t=C(2);p(2),y("ngForOf",xi(3,2,t.daysCalendar$)),p(2),y("ngIf",t.withTimepicker)}}function pre(e,n){if(1&e){const t=ae();m(0,"bs-month-calendar-view",18),x("onNavigate",function(r){return V(t),B(C(3).navigateTo(r))})("onViewMode",function(r){return V(t),B(C(3).setViewMode(r))})("onHover",function(r){return V(t),B(C(3).monthHoverHandler(r))})("onSelect",function(r){return V(t),B(C(3).monthSelectHandler(r))}),v()}if(2&e){const t=n.$implicit;ie("bs-datepicker-multiple",C(3).multipleCalendars),y("calendar",t)}}function gre(e,n){if(1&e&&(m(0,"div",8),M(1,pre,1,3,"bs-month-calendar-view",17),Ii(2,"async"),v()),2&e){const t=C(2);p(1),y("ngForOf",xi(2,1,t.monthsCalendar))}}function mre(e,n){if(1&e){const t=ae();m(0,"bs-years-calendar-view",18),x("onNavigate",function(r){return V(t),B(C(3).navigateTo(r))})("onViewMode",function(r){return V(t),B(C(3).setViewMode(r))})("onHover",function(r){return V(t),B(C(3).yearHoverHandler(r))})("onSelect",function(r){return V(t),B(C(3).yearSelectHandler(r))}),v()}if(2&e){const t=n.$implicit;ie("bs-datepicker-multiple",C(3).multipleCalendars),y("calendar",t)}}function _re(e,n){if(1&e&&(m(0,"div",8),M(1,mre,1,3,"bs-years-calendar-view",17),Ii(2,"async"),v()),2&e){const t=C(2);p(1),y("ngForOf",xi(2,1,t.yearsCalendar))}}function yre(e,n){1&e&&(m(0,"div",19)(1,"button",20),I(2,"Apply"),v(),m(3,"button",21),I(4,"Cancel"),v()())}function vre(e,n){if(1&e){const t=ae();m(0,"div",24)(1,"button",25),x("click",function(){return V(t),B(C(3).setToday())}
1),I(2),v()()}if(2&e){const t=C(3);ie("today-left","left"===t.todayPos)("today-right","right"===t.todayPos)("today-center","center"===t.todayPos),p(2),Ie(t.todayBtnLbl)}}function bre(e,n){if(1&e){const t=ae();m(0,"div",26)(1,"button",25),x("click",function(){return V(t),B(C(3).clearDate())}),I(2),v()()}if(2&e){const t=C(3);ie("clear-left","left"===t.clearPos)("clear-right","right"===t.clearPos)("clear-center","center"===t.clearPos),p(2),Ie(t.clearBtnLbl)}}function Cre(e,n){if(1&e&&(m(0,"div",19),M(1,vre,3,7,"div",22),M(2,bre,3,7,"div",23),v()),2&e){const t=C(2);p(1),y("ngIf",t.showTodayBtn),p(1),y("ngIf",t.showClearBtn)}}function wre(e,n){if(1&e){const t=ae();m(0,"div",27)(1,"bs-custom-date-view",28),x("onSelect",function(r){return V(t),B(C(2).setRangeOnCalendar(r))}),v()()}if(2&e){const t=C(2);p(1),y("selectedRange",t.chosenRange)("ranges",t.customRanges)("customRangeLabel",t.customRangeBtnLbl)}}function Dre(e,n){if(1&e){const t=ae();m(0,"div",1)(1,"div",2),x("@datepickerAnimation.done",function(){return V(t),B(C().positionServiceEnable())}),m(2,"div",3),Ii(3,"async"),M(4,fre,5,4,"ng-container",4),M(5,gre,3,3,"div",5),M(6,_re,3,3,"div",5),v(),M(7,yre,5,0,"div",6),M(8,Cre,3,2,"div",6),v(),M(9,wre,2,3,"div",7),v()}if(2&e){const t=C();y("ngClass",t.containerClass),p(1),y("@datepickerAnimation",t.animationState),p(1),y("ngSwitch",xi(3,9,t.viewMode)),p(2),y("ngSwitchCase","day"),p(1),y("ngSwitchCase","month"),p(1),y("ngSwitchCase","year"),p(1),y("ngIf",!1),p(1),y("ngIf",t.showTodayBtn||t.showClearBtn),p(1),y("ngIf",t.customRanges&&t.customRanges.length>0)}}let Xo=(()=>{class e{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const jR="220ms cubic-bezier(0, 0, 0.2, 1)",$R=function a6(e,n){return{type:7,name:e,definitions:n,options:{}}}("datepickerAnimation",[Wk("animated-down",Yc({height:"*",overflow:"hidden"})),eb("* => animated-down",[Yc({height:0,overflow:"hidden"}),Xv(jR)]),Wk("animated-up",Yc({height:"*",overflow:"hidden"})),eb("* => animated-up",[Yc({height:"*",overflow:"hidden"}),Xv(jR)]),eb("* => unanimated",Xv("0s"))]);class YR{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new Qe,this.selectedTimeSub=new Qe}set minDate(n){this._effects?.setMinDate(n)}set maxDate(n){this._effects?.setMaxDate(n)}set daysDisabled(n){this._effects?.setDaysDisabled(n)}set datesDisabled(n){this._effects?.setDatesDisabled(n)}set datesEnabled(n){this._effects?.setDatesEnabled(n)}set isDisabled(n){this._effects?.setDisabled(n)}set dateCustomClasses(n){this._effects?.setDateCustomClasses(n)}set dateTooltipTexts(n){this._effects?.setDateTooltipTexts(n)}set daysCalendar$(n){this._daysCalendar$=n,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(t=>{this.multipleCalendars=!!t&&t.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(n){}navigateTo(n){}dayHoverHandler(n){}weekHoverHandler(n){}monthHoverHandler(n){}yearHoverHandler(n){}timeSelectHandler(n,t){}daySelectHandler(n){}monthSelectHandler(n){}yearSelectHandler(n){}setRangeOnCalendar(n){}setToday(){}clearDate(){}_stopPropagation(n){n.stopPropagation()}}let en=(()=>{class e{static#e=this.CALCULATE="[datepicker] calculate dates matrix";static#t=this.FORMAT="[datepicker] format datepicker values";static#n=this.FLAG="[datepicker] set flags";static#i=this.SELECT="[datepicker] select date";static#r=this.NAVIGATE_OFFSET="[datepicker] shift view date";static#o=this.NAVIGATE_TO="[datepicker] change view date";static#s=this.SET_OPTIONS="[datepicker] update render options";static#a=this.HOVER="[datepicker] hover date";static#c=this.CHANGE_VIEWMODE="[datepicker] switch view mode";static#l=this.SET_MIN_DATE="[datepicker] set min date";static#d=this.SET_MAX_DATE="[datepicker] set max date";static#u=this.SET_DAYSDISABLED="[datepicker] set days disabled";static#h=this.SET_DATESDISABLED="[datepicker] set dates disabled";static#f=this.SET_DATESENABLED="[datepicker] set dates enabled";static#p=this.SET_IS_DISABLED="[datepicker] set is disabled";static#g=this.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes";static#m=this.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts";static#_=this.SET_LOCALE="[datepicker] set datepicker locale";static#y=this.SELECT_TIME="[datepicker] select time";static#v=this.SELECT_RANGE="[daterangepicker] select dates range";calculate(){return{type:e.CALCULATE}}format(){return{type:e.FORMAT}}
1flag(){return{type:e.FLAG}}select(t){return{type:e.SELECT,payload:t}}selectTime(t,i){return{type:e.SELECT_TIME,payload:{date:t,index:i}}}changeViewMode(t){return{type:e.CHANGE_VIEWMODE,payload:t}}navigateTo(t){return{type:e.NAVIGATE_TO,payload:t}}navigateStep(t){return{type:e.NAVIGATE_OFFSET,payload:t}}setOptions(t){return{type:e.SET_OPTIONS,payload:t}}selectRange(t){return{type:e.SELECT_RANGE,payload:t}}hoverDay(t){return{type:e.HOVER,payload:t.isHovered?t.cell.date:null}}minDate(t){return{type:e.SET_MIN_DATE,payload:t}}maxDate(t){return{type:e.SET_MAX_DATE,payload:t}}daysDisabled(t){return{type:e.SET_DAYSDISABLED,payload:t}}datesDisabled(t){return{type:e.SET_DATESDISABLED,payload:t}}datesEnabled(t){return{type:e.SET_DATESENABLED,payload:t}}isDisabled(t){return{type:e.SET_IS_DISABLED,payload:t}}setDateCustomClasses(t){return{type:e.SET_DATE_CUSTOM_CLASSES,payload:t}}setDateTooltipTexts(t){return{type:e.SET_DATE_TOOLTIP_TEXTS,payload:t}}setLocale(t){return{type:e.SET_LOCALE,payload:t}}static#b=this.\u0275fac=function(i){return new(i||e)};static#C=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Zg=(()=>{class e{constructor(){this._defaultLocale="en",this._locale=new Ot(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(t){t!==this.currentLocale&&this._locale.next(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),eh=(()=>{class e{constructor(t,i){this._actions=t,this._localeService=i,this._subs=[]}init(t){return this._store=t,this}setValue(t){this._store?.dispatch(this._actions.select(t))}setRangeValue(t){this._store?.dispatch(this._actions.selectRange(t))}setMinDate(t){return this._store?.dispatch(this._actions.minDate(t)),this}setMaxDate(t){return this._store?.dispatch(this._actions.maxDate(t)),this}setDaysDisabled(t){return this._store?.dispatch(this._actions.daysDisabled(t)),this}setDatesDisabled(t){return this._store?.dispatch(this._actions.datesDisabled(t)),this}setDatesEnabled(t){return this._store?.dispatch(this._actions.datesEnabled(t)),this}setDisabled(t){return this._store?.dispatch(this._actions.isDisabled(t)),this}setDateCustomClasses(t){return this._store?.dispatch(this._actions.setDateCustomClasses(t)),this}setDateTooltipTexts(t){return this._store?.dispatch(this._actions.setDateTooltipTexts(t)),this}setOptions(t){const i=Object.assign({locale:this._localeService.currentLocale},t);return this._store?.dispatch(this._actions.setOptions(i)),this}setBindings(t){return this._store?(t.selectedTime=this._store.select(i=>i.selectedTime).pipe(Ge(i=>!!i)),t.daysCalendar$=this._store.select(i=>i.flaggedMonths).pipe(Ge(i=>!!i)),t.monthsCalendar=this._store.select(i=>i.flaggedMonthsCalendar).pipe(Ge(i=>!!i)),t.yearsCalendar=this._store.select(i=>i.yearsCalendarFlagged).pipe(Ge(i=>!!i)),t.viewMode=this._store.select(i=>i.view?.mode),t.options$=Op([this._store.select(i=>i.showWeekNumbers),this._store.select(i=>i.displayMonths)]).pipe(se(i=>({showWeekNumbers:i[0],displayMonths:i[1]}))),this):this}setEventHandlers(t){return t.setViewMode=i=>{this._store?.dispatch(this._actions.changeViewMode(i))},t.navigateTo=i=>{this._store?.dispatch(this._actions.navigateStep(i.step))},t.dayHoverHandler=i=>{const r=i.cell;r.isOtherMonth||r.isDisabled||(this._store?.dispatch(this._actions.hoverDay(i)),r.isHovered=i.isHovered)},t.monthHoverHandler=i=>{i.cell.isHovered=i.isHovered},t.yearHoverHandler=i=>{i.cell.isHovered=i.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(t=>t.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(t=>t.monthsModel).pipe(Ge(t=>!!t)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(t=>t.formattedMonths).pipe(Ge(t=>!!t)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.selectedDate).pipe(Ge(t=>!!t)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.selectedRange).pipe(Ge(t=>!!t)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.yearsCalendarModel).pipe(Ge(t=>!!t)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.hoveredDate).pipe(Ge(t=>!!t)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.dateCustomClasses).pipe(Ge(t=>!!t)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.dateTooltipTexts).pipe(Ge(t=>!!t)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(t=>this._store?.dispatch(this._actions.setLocale(t)))),this):this}destroy(){for(const t of this._subs)t.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)(N(en),N(Zg))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Bre={date:new Date,mode:"day"},UR=Object.assign(new Xo,{locale:"en",view:Bre,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function NC(e,n,t){const i=n&&ho(Ag(e,"month"),n,"day"),r=t&&Fr(Zo(e,"month"),t,"day");return i||r||!1}function th(e,n,t){const i=n&&ho(Ag(e,"year"),n,"day"),r=t&&Fr(Zo(e,"year"),t,"day");return i||r||!1}function AC(e,n,t){return!!(n&&Mt(n)&&n.length)&&(t&&"year"===t&&!n[0].getDate()?n.some(i=>wl(e,i,"year")):n.some(i=>wl(e,i,"date")))}function RC(e,n,t){return!!(n&&Mt(n)&&n.length)&&!n.some(i=>wl(e,i,t||"date"))}function GR(e,n=0){const t=e&&e.yearsCalendarModel&&e.yearsCalendarModel[n];return t?.years[0]&&t.years[0][0]&&t.years[0][0].date}function $re(e,n){return!e||!n||!e.length&&!e[0].value||e.forEach(t=>(!t||!t.value||t.value instanceof Date||!(t.value instanceof Array&&t.value.length)||(t.value=WR(t.value,n)),e)),e}function zR(e,n){return!e||!n||e instanceof Array&&!e.length||e instanceof Date?e:WR(e,n)}function WR(e,n){return e instanceof Array?e.map(i=>i&&(Fr(i,n,"date")&&(i=n),i)):e}function qR(e){return e&&ZR(e)}function KR(e){return e?.length&&e.map(n=>n&&ZR(n)),e}function ZR(e){const n=new Date;return e.setMilliseconds(n.getMilliseconds()),e.setSeconds(n.getSeconds()),e.setMinutes(n.getMinutes()),e.setHours(n.getHours()),e}function LC(e,n){let t=e.initialDate;
1const i=new Array(e.height);for(let r=0;r<e.height;r++){i[r]=new Array(e.width);for(let o=0;o<e.width;o++)i[r][o]=n(t),t=wn(t,e.shift)}return i}function FC(e,n){const t=function qX(e){return Tg(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds())}(e),i=function Hre(e,n){if(function ZX(e,n){return e.getDay()===Number(n)}(e,n.firstDayOfWeek))return e;const i=function jre(e,n){const t=Number(n);if(isNaN(t))return 0;if(0===t)return e;const i=e-t%7;return i<0?i+7:i}(lo(e),n.firstDayOfWeek);return wn(e,{day:-i})}(t,n);return{daysMatrix:LC({width:n.width||0,height:n.height||0,initialDate:i,shift:{day:1}},s=>s),month:t}}function Ure(e,n,t){return e.map(i=>i[0]?cr(i[0],n,t):"")}function Gre(e){const n=mn(e),t=n.weekdaysShort(),i=n.firstDayOfWeek();return[...t.slice(i),...t.slice(0,i)]}function QR(e,n){return!n||e>=n}const qre=4,Kre=3,Zre={month:1};function JR(e,n){const t=Zo(e,"year");return{months:LC({width:Kre,height:qre,initialDate:t,shift:Zre},o=>({date:o,label:cr(o,n.monthLabel,n.locale)})),monthTitle:"",yearTitle:cr(e,n.yearTitle,n.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const VC=4,BC=4,Qg=VC*BC,XR=-1*(Math.floor(Qg/2)-1),Jre={year:1};function e2(e,n,t){const i=function Xre(e,n){return n&&e.getFullYear()>=n.getFullYear()&&e.getFullYear()<n.getFullYear()+Qg?n:wn(e,{year:XR})}(e,t),o=LC({width:BC,height:VC,initialDate:i,shift:Jre},a=>({date:a,label:cr(a,n.yearLabel,n.locale)})),s=function eoe(e,n){return`${cr(e[0][0].date,n.yearTitle,n.locale)} - ${cr(e[VC-1][BC-1].date,n.yearTitle,n.locale)}`}(o,n);return{years:o,monthTitle:"",yearTitle:s,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function HC(e,n){!e||!isNaN(e.getTime())||(e.setHours(n.getHours()),e.setMinutes(n.getMinutes()),e.setSeconds(n.getSeconds()),e.setMilliseconds(n.getMilliseconds()))}function t2(e=UR,n){switch(n.type){case en.CALCULATE:return function noe(e){if(!e.view)return e;let n;n=e.displayOneMonthRange&&n2(e.view.date,e.minDate,e.maxDate)?1:e.displayMonths||1;let t=e.view.date;if("day"===e.view.mode&&e.monthViewOptions){e.showPreviousMonth&&e.selectedRange&&0===e.selectedRange.length&&(t=wn(t,{month:-1})),e.monthViewOptions.firstDayOfWeek=mn(e.locale).firstDayOfWeek();let i=new Array(n);for(let r=0;r<n;r++)i[r]=FC(t,e.monthViewOptions),t=wn(t,{month:1});if(e.preventChangeToNextMonth&&e.flaggedMonths&&e.hoveredDate){const r=FC(e.view.date,e.monthViewOptions);e.flaggedMonths.length&&e.flaggedMonths[1].month.getMonth()===r.month.getMonth()&&(i=e.flaggedMonths.map(o=>e.monthViewOptions?FC(o.month,e.monthViewOptions):null).filter(o=>null!==o))}return Object.assign({},e,{monthsModel:i})}if("month"===e.view.mode){const i=new Array(n);for(let r=0;r<n;r++)i[r]=JR(t,nh(e)),t=wn(t,{year:1});return Object.assign({},e,{monthsCalendar:i})}if("year"===e.view.mode){const i=new Array(n);for(let r=0;r<n;r++)i[r]=e2(t,nh(e),"year"===e.minMode?GR(e,r):void 0),t=wn(t,{year:Qg});return Object.assign({},e,{yearsCalendarModel:i})}return e}(e);case en.FORMAT:return function ioe(e){if(!e.view)return e;if("day"===e.view.mode&&e.monthsModel){const i=e.monthsModel.map((r,o)=>function Yre(e,n,t){return{month:e.month,monthTitle:cr(e.month,n.monthTitle,n.locale),yearTitle:cr(e.month,n.yearTitle,n.locale),weekNumbers:Ure(e.daysMatrix,n.weekNumbers,n.locale),weekdays:Gre(n.locale),weeks:e.daysMatrix.map((i,r)=>({days:i.map((o,s)=>({date:o,label:cr(o,n.dayLabel,n.locale),monthIndex:t,weekIndex:r,dayIndex:s}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(r,nh(e),o));return Object.assign({},e,{formattedMonths:i})}const n=e.displayMonths||1;let t=e.view.date;if("month"===e.view.mode){const i=new Array(n);for(let r=0;r<n;r++)i[r]=JR(t,nh(e)),t=wn(t,{year:1});return Object.assign({},e,{monthsCalendar:i})}if("year"===e.view.mode){const i=new Array(n);for(let r=0;r<n;r++)i[r]=e2(t,nh(e)),t=wn(t,{year:16});return Object.assign({},e,{yearsCalendarModel:i})}return e}(e);case en.FLAG:return function roe(e){if(!e.view)return e;const n=n2(e.view.date,e.minDate,e.maxDate)?1:e.displayMonths;if(e.formattedMonths&&"day"===e.view.mode){const t=e.formattedMonths.map((i,r)=>function zre(e,n){return e.weeks.forEach(t=>{t.days.forEach((i,r)=>{const o=!_l(i.date,e.month),s=!o&&Is(i.date,n.hoveredDate),a=!o&&n.selectedRange&&Is(i.date,n.selectedRange[0]),c=!o&&n.selectedRange&&Is(i.date,n.selectedRange[1]),l=!o&&Is(i.date,n.selectedDate)||a||c,d=!o&&n.selectedRange&&function Wre(e,n,t){return!!(e&&n&&n[0])&&(n[1]?e>n[0]&&e<=n[1]:!!t&&e>n[0]&&e<=t)}(i.date,n.selectedRange,n.hoveredDate),u=n.isDisabled||ho(i.date,n.minDate,"day")||Fr(i.date,n.maxDate,"day")||function yte(e,n){return!(typeof n>"u"||!n||!n.length)&&n.some(t=>t===e.getDay())}(i.date,n.daysDisabled)||AC(i.date,n.datesDisabled)||RC(i.date,n.datesEnabled),f=!o&&Is(i.date,new Date),g=n.dateCustomClasses&&n.dateCustomClasses.map(S=>Is(i.date,S.date)?S.classes:[]).reduce((S,D)=>S.concat(D),[]).join(" ")||"",b=n.dateTooltipTexts&&n.dateTooltipTexts.map(S=>Is(i.date,S.date)?S.tooltipText:"").reduce((S,D)=>(S.push(D),S),[]).join(" ")||"",w=Object.assign({},i,{isOtherMonth:o,isHovered:s,isSelected:l,isSelectionStart:a,isSelectionEnd:c,isInRange:d,isDisabled:u,isToday:f,customClasses:g,tooltipText:b});(i.isOtherMonth!==w.isOtherMonth||i.isHovered!==w.isHovered||i.isSelected!==w.isSelected||i.isSelectionStart!==w.isSelectionStart||i.isSelectionEnd!==w.isSelectionEnd||i.isDisabled!==w.isDisabled||i.isInRange!==w.isInRange||i.customClasses!==w.customClasses||i.tooltipText!==w.tooltipText)&&(t.days[r]=w)})}),e.hideLeftArrow=n.isDisabled||!!n.monthIndex&&n.monthIndex>0&&n.monthIndex!==n.displayMonths,e.hideRightArrow=n.isDisabled||(!!n.monthIndex||0===n.monthIndex)&&!!n.displayMonths&&n.monthIndex<n.displayMonths&&n.monthIndex+1!==n.displayMonths,e.disableLeftArrow=NC(wn(e.month,{month:-1}),n.minDate,n.maxDate),e.disableRightArrow=NC(wn(e.month,{month:1}),n.minDate,n.maxDate),e}(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,daysDisabled:e.daysDisabled,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,hoveredDate:e.hoveredDate,selectedDate:e.selectedDate,selectedRange:e.selectedRange,displayMonths:n,dateCustomClasses:e.dateCustomClasses,dateTooltipTexts:e.dateTooltipTexts,monthIndex:r}));return Object.assign({},e,{flaggedMonths:t})}if("month"===e.view.mode&&e.monthsCalendar){const t=e.monthsCalendar.map((i,r)=>function Qre(e,n){return e.months.forEach((t,i)=>{t.forEach((r,o)=>{let s;const a=_l(r.date,n.hoveredMonth),c=n.isDisabled||AC(r.date,n.datesDisabled)||RC(r.date,n.datesEnabled,"month")||NC(r.date,n.minDate,n.maxDate);
1!n.selectedDate&&n.selectedRange?(s=_l(r.date,n.selectedRange[0]),s||(s=_l(r.date,n.selectedRange[1]))):s=_l(r.date,n.selectedDate);const l=Object.assign(r,{isHovered:a,isDisabled:c,isSelected:s});(r.isHovered!==l.isHovered||r.isDisabled!==l.isDisabled||r.isSelected!==l.isSelected)&&(e.months[i][o]=l)})}),e.hideLeftArrow=!!n.monthIndex&&n.monthIndex>0&&n.monthIndex!==n.displayMonths,e.hideRightArrow=(!!n.monthIndex||0===n.monthIndex)&&(!!n.displayMonths||0===n.displayMonths)&&n.monthIndex<n.displayMonths&&n.monthIndex+1!==n.displayMonths,e.disableLeftArrow=th(wn(e.months[0][0].date,{year:-1}),n.minDate,n.maxDate),e.disableRightArrow=th(wn(e.months[0][0].date,{year:1}),n.minDate,n.maxDate),e}(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,hoveredMonth:e.hoveredMonth,selectedDate:e.selectedDate,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,selectedRange:e.selectedRange,displayMonths:n,monthIndex:r}));return Object.assign({},e,{flaggedMonthsCalendar:t})}if("year"===e.view.mode&&e.yearsCalendarModel){const t=e.yearsCalendarModel.map((i,r)=>function toe(e,n){e.years.forEach((r,o)=>{r.forEach((s,a)=>{let c;const l=yl(s.date,n.hoveredYear),d=n.isDisabled||AC(s.date,n.datesDisabled,"year")||RC(s.date,n.datesEnabled,"year")||th(s.date,n.minDate,n.maxDate);!n.selectedDate&&n.selectedRange?(c=yl(s.date,n.selectedRange[0]),c||(c=yl(s.date,n.selectedRange[1]))):c=yl(s.date,n.selectedDate);const u=Object.assign(s,{isHovered:l,isDisabled:d,isSelected:c});(s.isHovered!==u.isHovered||s.isDisabled!==u.isDisabled||s.isSelected!==u.isSelected)&&(e.years[o][a]=u)})}),e.hideLeftArrow=!!n.yearIndex&&n.yearIndex>0&&n.yearIndex!==n.displayMonths,e.hideRightArrow=!!n.yearIndex&&!!n.displayMonths&&n.yearIndex<n.displayMonths&&n.yearIndex+1!==n.displayMonths,e.disableLeftArrow=th(wn(e.years[0][0].date,{year:-1}),n.minDate,n.maxDate);const t=e.years.length-1;return e.disableRightArrow=th(wn(e.years[t][e.years[t].length-1].date,{year:1}),n.minDate,n.maxDate),e}(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,hoveredYear:e.hoveredYear,selectedDate:e.selectedDate,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,selectedRange:e.selectedRange,displayMonths:n,yearIndex:r}));return Object.assign({},e,{yearsCalendarFlagged:t})}return e}(e);case en.NAVIGATE_OFFSET:return function ooe(e,n){if(!e.view)return e;const t=function soe(e,n){if(e.view){if("year"===e.view.mode&&"year"===e.minMode){const t=GR(e,0);if(t){const i=wn(t,{year:-XR});return wn(i,n.payload)}}return wn(Zo(e.view.date,"month"),n.payload)}}(e,n);if(!t)return e;return Object.assign({},e,{view:{mode:e.view.mode,date:t}})}(e,n);case en.NAVIGATE_TO:{const t=n.payload;if(!e.view||!t.unit)return e;const i=function lee(e,n){return Tg(vl(e.getFullYear(),n.year),vl(e.getMonth(),n.month),1,vl(e.getHours(),n.hour),vl(e.getMinutes(),n.minute),vl(e.getSeconds(),n.seconds),vl(e.getMilliseconds(),n.milliseconds))}(e.view.date,t.unit);let r,o;return QR(t.viewMode,e.minMode)?(o=t.viewMode,r={view:{date:i,mode:o}}):(o=e.view.mode,r={selectedDate:i,view:{date:i,mode:o}}),Object.assign({},e,r)}case en.CHANGE_VIEWMODE:return QR(n.payload,e.minMode)&&e.view?Object.assign({},e,{view:{date:e.view.date,mode:n.payload}}):e;case en.HOVER:return Object.assign({},e,{hoveredDate:n.payload});case en.SELECT:{if(!e.view)return e;const t={selectedDate:n.payload,view:e.view};if(Array.isArray(e.selectedTime)){const s=e.selectedTime[0];t.selectedDate&&s&&HC(t.selectedDate,s)}const i=e.view.mode,o=jC(n.payload||e.view.date,e.minDate,e.maxDate);return t.view={mode:i,date:o},Object.assign({},e,t)}case en.SELECT_TIME:{const{date:t,index:i}=n.payload,r=e.selectedTime?[...e.selectedTime]:[];return r[i]=t,Object.assign({},e,{selectedTime:r})}case en.SET_OPTIONS:{if(!e.view)return e;const t=n.payload,i=t.minMode?t.minMode:e.view.mode,o=jC(ks(t.value)&&t.value||Mt(t.value)&&ks(t.value[0])&&t.value[0]||e.view.date,t.minDate,t.maxDate);return t.view={mode:i,date:o},t.value&&(Mt(t.value)&&(t.selectedRange=t.value,t.selectedTime=t.value.map(s=>s)),t.value instanceof Date&&(t.selectedDate=t.value,t.selectedTime=[t.value])),Object.assign({},e,t)}case en.SELECT_RANGE:{if(!e.view)return e;const t={selectedRange:n.payload,view:e.view};t.selectedRange?.forEach((s,a)=>
1{if(Array.isArray(e.selectedTime)){const c=e.selectedTime[a];c&&HC(s,c)}});const i=e.view.mode,o=jC(n.payload&&n.payload[0]||e.view.date,e.minDate,e.maxDate);return t.view={mode:i,date:o},Object.assign({},e,t)}case en.SET_MIN_DATE:return Object.assign({},e,{minDate:n.payload});case en.SET_MAX_DATE:return Object.assign({},e,{maxDate:n.payload});case en.SET_IS_DISABLED:return Object.assign({},e,{isDisabled:n.payload});case en.SET_DATE_CUSTOM_CLASSES:return Object.assign({},e,{dateCustomClasses:n.payload});case en.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},e,{dateTooltipTexts:n.payload});default:return e}}function nh(e){return{locale:e.locale,monthTitle:e.monthTitle,yearTitle:e.yearTitle,dayLabel:e.dayLabel,monthLabel:e.monthLabel,yearLabel:e.yearLabel,weekNumbers:e.weekNumbers}}function jC(e,n,t){const i=Array.isArray(e)?e[0]:e;return n&&Fr(n,i,"day")?n:t&&ho(t,i,"day")?t:i}function n2(e,n,t){return!(!t||!wl(t,e,"day"))||n&&t&&n.getMonth()===t.getMonth()}let ih=(()=>{class e extends zg{constructor(){const t=new Ot({type:"[datepicker] dispatcher init"});super(t,t2,new SR(UR,t,t2))}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),r2=(()=>{class e{constructor(){this.onSelect=new H}selectFromRanges(t){this.onSelect.emit(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(i,r){1&i&&(m(0,"div",0),M(1,gie,2,3,"button",1),v()),2&i&&(p(1),y("ngForOf",r.ranges))},dependencies:[dn],encapsulation:2,changeDetection:0})}return e})();var Il=function(e){return e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e}(Il||{});let xl,aoe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(i,r){1&i&&(m(0,"div",0)(1,"span"),I(2),v()()),2&i&&(p(2),Ie(r.title))},encapsulation:2})}return e})(),coe=(()=>{class e{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(i,r){1&i&&(m(0,"div",0)(1,"div",1)(2,"button",2),I(3,"-"),v(),Z(4,"input",3),m(5,"button",4),I(6,"+"),v()(),m(7,"div",1)(8,"button",2),I(9,"-"),v(),Z(10,"input",3),m(11,"button",4),I(12,"+"),v()(),m(13,"button",5),I(14),Z(15,"img",6),v()()),2&i&&(p(4),y("value",r.hours),p(6),y("value",r.minutes),p(4),Ft("",r.ampm," "))},encapsulation:2})}return e})(),$C=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-calendar-layout"]],ngContentSelectors:vie,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(i,r){1&i&&(Dr(yie),M(0,mie,1,0,"bs-current-date",0),m(1,"div",1),kn(2),v(),m(3,"div",2),kn(4,1),v(),M(5,_ie,1,0,"bs-timepicker",3)),2&i&&(y("ngIf",!1),p(5),y("ngIf",!1))},dependencies:[lt,aoe,coe],encapsulation:2})}return e})(),loe=(()=>{class e{constructor(t,i,r){this._config=t,this._elRef=i,this._renderer=r,this.day={date:new Date,label:""}}
1ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day?.customClasses&&this.day?.customClasses.split(" ").filter(t=>t).forEach(t=>{this._renderer.addClass(this._elRef.nativeElement,t)})}static#e=this.\u0275fac=function(i){return new(i||e)(_(Xo),_(we),_(It))};static#t=this.\u0275cmp=ue({type:e,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(i,r){2&i&&ie("disabled",r.day.isDisabled)("is-highlighted",r.day.isHovered)("is-other-month",r.day.isOtherMonth)("is-active-other-month",r.day.isOtherMonthHovered)("in-range",r.day.isInRange)("select-start",r.day.isSelectionStart)("select-end",r.day.isSelectionEnd)("selected",r.day.isSelected)},inputs:{day:"day"},attrs:bie,decls:1,vars:1,template:function(i,r){1&i&&I(0),2&i&&Ie(r.day&&r.day.label||"")},encapsulation:2,changeDetection:0})}return e})(),YC=(()=>{class e{constructor(){this.isDisabled=!1,this.onNavigate=new H,this.onViewMode=new H}navTo(t){this.onNavigate.emit(t?Il.DOWN:Il.UP)}view(t){this.isDisabled||this.onViewMode.emit(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"disabled","click"],[4,"ngIf"],["type","button",1,"current",3,"disabled","click"],["type","button",1,"next",3,"disabled","click"]],template:function(i,r){1&i&&(m(0,"button",0),x("click",function(){return r.navTo(!0)}),m(1,"span"),I(2,"\u2039"),v()(),M(3,Cie,5,2,"ng-container",1),I(4," \u200b "),m(5,"button",2),x("click",function(){return r.view("year")}),m(6,"span"),I(7),v()(),I(8," \u200b "),m(9,"button",3),x("click",function(){return r.navTo(!1)}),m(10,"span"),I(11,"\u203a"),v()()),2&i&&(kd("visibility",r.calendar.hideLeftArrow?"hidden":"visible"),y("disabled",r.calendar.disableLeftArrow),p(3),y("ngIf",r.calendar&&r.calendar.monthTitle),p(2),y("disabled",r.isDisabled),p(2),Ie(r.calendar.yearTitle),p(2),kd("visibility",r.calendar.hideRightArrow?"hidden":"visible"),y("disabled",r.calendar.disableRightArrow))},dependencies:[lt],encapsulation:2,changeDetection:0})}return e})(),o2=(()=>{class e{constructor(t){this._config=t,this.onNavigate=new H,this.onViewMode=new H,this.onSelect=new H,this.onHover=new H,this.onHoverWeek=new H,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(t){this.onNavigate.emit({step:{month:Il.DOWN===t?-1:1}})}changeViewMode(t){this.onViewMode.emit(t)}selectDay(t){this.onSelect.emit(t)}selectWeek(t){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===t.days.length)return;if(this._config.selectWeek&&t.days[0]&&!t.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(t.days[0]);const i=t.days.find(r=>(this._config.selectFromOtherMonth||!r.isOtherMonth)&&!r.isDisabled);if(this.onSelect.emit(i),this._config.selectWeekDateRange){const o=t.days.slice(0).reverse().find(s=>(this._config.selectFromOtherMonth||!s.isOtherMonth)&&!s.isDisabled);this.onSelect.emit(o)}}weekHoverHandler(t,i){(this._config.selectWeek||this._config.selectWeekDateRange)&&t.days.find(o=>(this._config.selectFromOtherMonth||!o.isOtherMonth)&&!o.isDisabled)&&(t.isHovered=i,this.isWeekHovered=i,this.onHoverWeek.emit(t))}hoverDay(t,i){this._config.selectFromOtherMonth&&t.isOtherMonth&&(t.isOtherMonthHovered=i),this._config.dateTooltipTexts&&(t.tooltipText="",this._config.dateTooltipTexts.forEach(r=>{Is(r.date,t.date)&&(t.tooltipText=r.tooltipText)})),this.onHover.emit({cell:t,isHovered:i})}static#e=this.\u0275fac=function(i){return new(i||e)(_(Xo))};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"calendar","isDisabled","onNavigate","onViewMode"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click"]],template:function(i,r){1&i&&(m(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),x("onNavigate",function(s){return r.navigateTo(s)})("onViewMode",function(s){return r.changeViewMode(s)}),v(),m(2,"table",1)(3,"thead")(4,"tr"),M(5,wie,1,0,"th",2),M(6,Die,2,1,"th",3),v()(),m(7,"tbody"),M(8,xie,3,2,"tr",4),v()()()),2&i&&(p(1),y("calendar",r.calendar)("isDisabled",!!r.isDisabled),p(4),y("ngIf",r.options&&r.options.showWeekNumbers),p(1),y("ngForOf",r.calendar.weekdays),p(2),y("ngForOf",r.calendar.weeks))},dependencies:[dn,lt,fie,$C,loe,YC],encapsulation:2})}return e})(),s2=(()=>{class e{constructor(){this.onNavigate=new H,this.onViewMode=new H,this.onSelect=new H,this.onHover=new H}navigateTo(t){this.onNavigate.emit({step:{year:Il.DOWN===t?-1:1}})}viewMonth(t){this.onSelect.emit(t)}
1hoverMonth(t,i){this.onHover.emit({cell:t,isHovered:i})}changeViewMode(t){this.onViewMode.emit(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(i,r){1&i&&(m(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),x("onNavigate",function(s){return r.navigateTo(s)})("onViewMode",function(s){return r.changeViewMode(s)}),v(),m(2,"table",1)(3,"tbody"),M(4,Nie,2,1,"tr",2),v()()()),2&i&&(p(1),y("calendar",r.calendar),p(3),y("ngForOf",null==r.calendar?null:r.calendar.months))},dependencies:[dn,$C,YC],encapsulation:2})}return e})(),a2=(()=>{class e{constructor(){this.onNavigate=new H,this.onViewMode=new H,this.onSelect=new H,this.onHover=new H}navigateTo(t){this.onNavigate.emit({step:{year:(Il.DOWN===t?-1:1)*Qg}})}viewYear(t){this.onSelect.emit(t)}hoverYear(t,i){this.onHover.emit({cell:t,isHovered:i})}changeViewMode(t){this.onViewMode.emit(t)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(i,r){1&i&&(m(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),x("onNavigate",function(s){return r.navigateTo(s)})("onViewMode",function(s){return r.changeViewMode(s)}),v(),m(2,"table",1)(3,"tbody"),M(4,Rie,2,1,"tr",2),v()()()),2&i&&(p(1),y("calendar",r.calendar),p(3),y("ngForOf",null==r.calendar?null:r.calendar.years))},dependencies:[dn,$C,YC],encapsulation:2})}return e})(),doe=(()=>{class e extends YR{set value(t){this._effects?.setValue(t)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(t,i,r,o,s,a,c){super(),this._config=i,this._store=r,this._element=o,this._actions=s,this._positionService=c,this.valueChange=new H,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=a,t.setStyle(o.nativeElement,"display","block"),t.setStyle(o.nativeElement,"position","absolute")}ngOnInit(){let t;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe(Ut(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(i=>i.selectedDate).subscribe(i=>{t=i,this.valueChange.emit(i)})),this._subs.push(this._store.select(i=>i.selectedTime).subscribe(i=>{!i[0]||!(i[0]instanceof Date)||i[0]===t||this.valueChange.emit(i[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(t=>{Array.isArray(t)&&t.length>=1&&this.startTimepicker?.writeValue(t[0])})),this.startTimepicker?.registerOnChange(t=>{this.timeSelectHandler(t,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(t,i){this._store.dispatch(this._actions.selectTime(t,i))}daySelectHandler(t){!t||(this.isOtherMonthsActive?t.isDisabled:t.isOtherMonth||t.isDisabled)||this._store.dispatch(this._actions.select(t.date))}monthSelectHandler(t){!t||t.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:Fe(t.date),year:xt(t.date)},viewMode:"day"}))}yearSelectHandler(t){!t||t.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:xt(t.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const t of this._subs)t.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static#e=this.\u0275fac=function(i){return new(i||e)(_(It),_(Xo),_(ih),_(we),_(en),_(eh),_(As))};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-datepicker-container"]],viewQuery:function(i,r){if(1&i&&nr(HR,5),2&i){let o;He(o=je())&&(r.startTimepicker=o.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(i,r){1&i&&x("click",function(s){return r._stopPropagation(s)}),2&i&&X("disabled",r.isDatepickerDisabled)("readonly",r.isDatepickerReadonly)},features:[Be([ih,eh]),Ke],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(i,r){1&i&&(M(0,Kie,10,11,"div",0),Ii(1,"async")),2&i&&y("ngIf",xi(1,1,r.viewM
1ode))},dependencies:[Ni,dn,lt,Gd,gv,xC,r2,o2,s2,a2,mv],encapsulation:2,data:{animation:[$R]}})}return e})(),uoe=(()=>{class e{get readonlyValue(){return this.isDisabled?"":null}constructor(t,i,r,o,s){this._config=t,this._elementRef=i,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new fe,this.isDisabled=!1,this.bsValueChange=new H,this._subs=[],this._dateInputFormat$=new fe,Object.assign(this,this._config),this._datepicker=s.createLoader(i,o,r),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new Ot(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(t){this.isOpen$.next(t)}set bsValue(t){this._bsValue&&t&&this._bsValue.getTime()===t.getTime()||(!this._bsValue&&t&&!this._config.withTimepicker&&HC(t,new Date),t&&this.bsConfig?.initCurrentTime&&(t=qR(t)),this.initPreviousValue(),this._bsValue=t,this.bsValueChange.emit(t))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){xl=this._bsValue}ngOnChanges(t){t.bsConfig&&(t.bsConfig.currentValue?.initCurrentTime&&t.bsConfig.currentValue?.initCurrentTime!==t.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=qR(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),t.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),t.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),t.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(t=>{this._datepickerRef&&(this._datepickerRef.instance.value=t)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(t=>{this.initPreviousValue(),this.bsValue=t,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!!(xl&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return xl instanceof Date&&this._bsValue?.getDate()===xl?.getDate()&&this._bsValue?.getMonth()===xl?.getMonth()&&this._bsValue?.getFullYear()===xl?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe(Ge(t=>t!==this.isOpen),wt(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:Xo,useValue:this._config}).attach(doe).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const t of this._subs)t.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:zR(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(t=>t.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(i){return new(i||e)(_(Xo),_(we),_(It),_(ti),_(Rs))};static#t=this.\u0275dir=j({type:e,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(i,r){2&i&&X("readonly",r.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[Et]})}return e})(),hoe=(()=>{class e extends YR{set value(t){this._effects?.setRangeValue(t)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(t,i,r,o,s,a,c){super(),this._config=i,this._store=r,this._element=o,this._actions=s,this._positionService=c,this.valueChange=new H,this.animationState="void",this._rangeStack=[],this.chosen
1Range=[],this._subs=[],this.isRangePicker=!0,this._effects=a,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,t.setStyle(o.nativeElement,"display","block"),t.setStyle(o.nativeElement,"position","absolute")}ngOnInit(){let t;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe(Ut(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(i=>i.selectedRange).subscribe(i=>{t=i,this.valueChange.emit(i),this.chosenRange=i||[]})),this._subs.push(this._store.select(i=>i.selectedTime).subscribe(i=>{!i[0]||!i[1]||!(i[0]instanceof Date)||!(i[1]instanceof Date)||t&&i[0]===t[0]&&i[1]===t[1]||(this.valueChange.emit(i),this.chosenRange=i||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(t=>{Array.isArray(t)&&t.length>=2&&(this.startTimepicker?.writeValue(t[0]),this.endTimepicker?.writeValue(t[1]))})),this.startTimepicker?.registerOnChange(t=>{this.timeSelectHandler(t,0)}),this.endTimepicker?.registerOnChange(t=>{this.timeSelectHandler(t,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(t,i){this._store.dispatch(this._actions.selectTime(t,i))}daySelectHandler(t){!t||(this.isOtherMonthsActive?t.isDisabled:t.isOtherMonth||t.isDisabled)||this.rangesProcessing(t)}monthSelectHandler(t){if(t&&!t.isDisabled){if(t.isSelected=!0,"month"!==this._config.minMode){if(t.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:Fe(t.date),year:xt(t.date)},viewMode:"day"}))}this.rangesProcessing(t)}}yearSelectHandler(t){if(t&&!t.isDisabled){if(t.isSelected=!0,"year"!==this._config.minMode){if(t.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:xt(t.date)},viewMode:"month"}))}this.rangesProcessing(t)}}rangesProcessing(t){1===this._rangeStack.length&&(this._rangeStack=t.date>=this._rangeStack[0]?[this._rangeStack[0],t.date]:[t.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(t.date),0===this._rangeStack.length&&(this._rangeStack=[t.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(t.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const t of this._subs)t.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(t){t&&(this._rangeStack=t.value instanceof Date?[t.value]:t.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(t){let i=new Date(t);if(this._config.maxDate){const r=this._config.maxDate.getTime(),o=t.getTime()+864e5*(this._config.maxDateRange||0);i=o>r?new Date(this._config.maxDate):new Date(o)}else i.setDate(t.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(i)}static#e=this.\u0275fac=function(i){return new(i||e)(_(It),_(Xo),_(ih),_(we),_(en),_(eh),_(As))};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-daterangepicker-container"]],viewQuery:function(i,r){if(1&i&&(nr(HR,5),nr(lre,5)),2&i){let o;He(o=je())&&(r.startTimepicker=o.first),He(o=je())&&(r.endTimepicker=o.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(i,r){1&i&&x("click",function(s){return r._stopPropagation(s)}),2&i&&X("disabled",r.isDatepickerDisabled)("readonly",r.isDatepickerReadonly)},features:[Be([ih,eh]),Ke],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(i,r){1&i&&(M(0,Dre,10,11,"div",0),Ii(1,"async")),2&i&&y("ngIf",xi(1,1,r.viewM
1ode))},dependencies:[Ni,dn,lt,Gd,gv,xC,r2,o2,s2,a2,mv],encapsulation:2,data:{animation:[$R]}})}return e})();const foe={provide:un,useExisting:ye(()=>c2),multi:!0},poe={provide:hn,useExisting:ye(()=>c2),multi:!0};let Ls,c2=(()=>{class e{constructor(t,i,r,o,s){this._picker=t,this._localeService=i,this._renderer=r,this._elRef=o,this.changeDetection=s,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Qe}ngOnInit(){const t=i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&t(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(t)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe(Bl()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(t){(13===t.keyCode||"Enter"===t.code)&&this.hide()}_setInputValue(t){const i=t?cr(t,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",i)}onChange(t){this.writeValue(t.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(t){const i=t.value;if(null==i||""===i)return null;if(Mg(i)){if(!ks(i))return{bsDate:{invalid:i}};if(this._picker&&this._picker.minDate&&ho(i,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&Fr(i,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(t){this._validatorChange=t}writeValue(t){if(t){const i=this._localeService.currentLocale;if(!mn(i))throw new Error(`Locale "${i}" is not defined, please add it with "defineLocale(...)"`);this._value=qu(t,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=BA(this._value))}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(t){this._picker.isDisabled=t,t?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(i){return new(i||e)(_(uoe,1),_(Zg),_(It),_(we),_(Bn))};static#t=this.\u0275dir=j({type:e,selectors:[["input","bsDatepicker",""]],hostBindings:function(i,r){1&i&&x("change",function(s){return r.onChange(s)})("keyup.esc",function(){return r.hide()})("keydown",function(s){return r.onKeydownEvent(s)})("blur",function(){return r.onBlur()})},features:[Be([foe,poe])]})}return e})(),goe=(()=>{class e extends Xo{constructor(){super(...arguments),this.displayMonths=2}static#e=this.\u0275fac=function(){let t;return function(r){return(t||(t=Lt(e)))(r||e)}}();static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),moe=(()=>{class e{get isOpen(){return this._datepicker.isShown}set isOpen(t){this.isOpen$.next(t)}set bsValue(t){this._bsValue!==t&&(t&&this.bsConfig?.initCurrentTime&&(t=KR(t)),this.initPreviousValue(),this._bsValue=t,this.bsValueChange.emit(t))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(t,i,r,o,s){this._config=t,this._elementRef=i,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new fe,this.isDisabled=!1,this.bsValueChange=new H,this._subs=[],this._rangeInputFormat$=new fe,this._datepicker=s.createLoader(i,o,r),Object.assign(this,t),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new Ot(this.isOpen)}ngOnInit(){this.isDestroy$=new fe,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(t){t.bsConfig&&(t.bsConfig.currentValue?.initCurrentTime&&t.bsConfig.currentValue?.initCurrentTime!==t.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=KR(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(t.bsConfig.currentValue&&t.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),t.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),t.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe(Ge(t=>t!==this.isOpen),wt(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:Xo,useValue:this._config}).attach(hoe).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(t=>{this._datepickerRef&&(this._datepickerRef.instance.value=t)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe(Ge(t=>t&&t[0]&&!!t[1])).subscribe(t=>{this.initPreviousValue(),this.bsValue=t,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){Ls=this._bsValue}keepDatepickerModalOpened(){return!!(Ls&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===Ls?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===Ls?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===Ls?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===Ls?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===Ls?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===Ls?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:zR(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:$re(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(const t of this._subs)t.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(t=>t.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(i){return new(i||e)(_(goe),_(we),_(It),_(ti),_(Rs))};static#t=this.\u0275dir=j({type:e,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(i,r){2&i&&X("readonly",r.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[Et]})}return e})();const _oe={provide:un,useExisting:ye(()=>l2),multi:!0},yoe={provide:hn,useExisting:ye(()=>l2),multi:!0};let UC,l2=(()=>{class e{constructor(t,i,r,o,s){this._picker=t,this._localeService=i,this._renderer=r,this._elRef=o,this.changeDetection=s,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._val
1idatorChange=Function.prototype,this._subs=new Qe}ngOnInit(){this._picker._bsValue&&(i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(i=>{this._setInputValue(i),this._value!==i&&(this._value=i,this._onChange(i),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe(Bl()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(t){(13===t.keyCode||"Enter"===t.code)&&this.hide()}_setInputValue(t){let i="";if(t){const r=t[0]?cr(t[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",o=t[1]?cr(t[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";i=r&&o?r+this._picker._config.rangeSeparator+o:""}this._renderer.setProperty(this._elRef.nativeElement,"value",i)}onChange(t){this.writeValue(t.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(t){let i=t.value;const r=[];if(null==i||!Mt(i))return null;i=i.slice().sort((a,c)=>a.getTime()-c.getTime());const o=ks(i[0]),s=ks(i[1]);return o?s?(this._picker&&this._picker.minDate&&ho(i[0],this._picker.minDate,"date")&&(i[0]=this._picker.minDate,r.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&Fr(i[1],this._picker.maxDate,"date")&&(i[1]=this._picker.maxDate,r.push({bsDate:{maxDate:this._picker.maxDate}})),r.length>0?(this.writeValue(i),r):null):{bsDate:{invalid:i[1]}}:{bsDate:{invalid:i[0]}}}registerOnValidatorChange(t){this._validatorChange=t}writeValue(t){if(t){const i=this._localeService.currentLocale;if(!mn(i))throw new Error(`Locale "${i}" is not defined, please add it with "defineLocale(...)"`);let o=[];if("string"==typeof t){const s=this._picker._config.rangeSeparator.trim();o=t.replace(/[^-]/g,"").length>1?t.split(this._picker._config.rangeSeparator):t.split(s.length>0?s:this._picker._config.rangeSeparator).map(a=>a.trim())}Array.isArray(t)&&(o=t),this._value=o.map(s=>this._picker._config.useUtc?BA(qu(s,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):qu(s,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(s=>isNaN(s.valueOf())?void 0:s)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(t){this._picker.isDisabled=t,t?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(i){return new(i||e)(_(moe,1),_(Zg),_(It),_(we),_(Bn))};static#t=this.\u0275dir=j({type:e,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(i,r){1&i&&x("change",function(s){return r.onChange(s)})("keyup.esc",function(){return r.hide()})("keydown",function(s){return r.onKeydownEvent(s)})("blur",function(){return r.onBlur()})},features:[Be([_oe,yoe])]})}return e})(),voe=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Rs,As,ih,en,eh,Zg,Jo]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[kr,pie,cie]})}return e})(),boe=(()=>{class e{constructor(){this._focusTrapStack=[]}register(t){this._focusTrapStack=this._focusTrapStack.filter(r=>r!==t);let i=this._focusTrapStack;i.length&&i[i.length-1]._disable(),i.push(t),t._enable()}deregister(t){t._disable();const i=this._focusTrapStack,r=i.indexOf(t);-1!==r&&(i.splice(r,1),i.length&&i[i.length-1]._enable())}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();try{UC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{UC=!1}let d2=(()=>{class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?_E(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(m
1sie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!UC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(i){return new(i||e)(N(Po))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),u2=(()=>{class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function woe(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const i=function Coe(e){try{return e.frameElement}catch{return null}}(function Ioe(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(t));if(i&&(-1===f2(i)||!this.isVisible(i)))return!1;let r=t.nodeName.toLowerCase(),o=f2(t);return t.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Eoe(e){let n=e.nodeName.toLowerCase(),t="input"===n&&e.type;return"text"===t||"password"===t||"select"===n||"textarea"===n}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,i){return function koe(e){return!function Moe(e){return function Toe(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function Doe(e){let n=e.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(e)||function Soe(e){return function Ooe(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||h2(e))}(t)&&!this.isDisabled(t)&&(i?.ignoreVisibility||this.isVisible(t))}static#e=this.\u0275fac=function(i){return new(i||e)(N(d2))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function h2(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let n=e.getAttribute("tabindex");return"-32768"!=n&&!(!n||isNaN(parseInt(n,10)))}function f2(e){if(!h2(e))return null;const n=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function p2(e){return null!=e&&"false"!=`${e}`}class xoe{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,t,i,r,o=!1){this._element=n,this._checker=t,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const n=this._startAnchor,t=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.parentNode&&n.parentNode.removeChild(n)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(n=>{this._executeOnStable(()=>n(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(n=>{this._executeOnStable(()=>n(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(n=>{this._executeOnStable(()=>n(this.focusLastTabbableElement()))})}_getRegionBoundary(n){let t=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);for(let i=0;i<t.length;i++)t[i].hasAttribute(`cdk-focus-${n}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${n}', use 'cdkFocusRegion${n}' instead. The deprecated attribute will be removed in 8.0.0.`,t[i]):t[i].hasAttribute(`cdk-focus-region-${n}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${n}', use 'cdkFocusRegion${n}' instead. The deprecated attribute will be removed in 8.0.0.`,t[i]);return"start"==n?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(n.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",n),!this._checker.isFocusable(n)){const t=this._getFirstTabbableElement(n);return t?.focus(),!!t}return n.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const n=this._getRegionBoundary("start");return n&&n.focus(),!!n}focusLastTabbableElement(){const n=this._getRegionBoundary("end");return n&&n.focus(),!!n}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let t=n.children||n.childNodes;for(let i=0;i<t.length;i++){let r=t[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[i]):null;if(r)return r}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let t=n.children||n.childNodes;for(let i=t.length-1;i>=0;i--){let r=t[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[i]):null;if(r)return r}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,t){n?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Ut(1)).subscribe(n)}}let Poe=(()=>{class e{constructor(t,i,r){this._checker=t,this._ngZone=i,this._document=r}create(t,i=!1){return new xoe(t,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||e)(N(u2),N(ke),N(yt))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Noe=(()=>{class e{get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=p2(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=p2(t)}constructor(t,i,r){this._elementRef=t,this._focusTrapFactory=i,this._previouslyFocusedElement=null,this._autoCapture=!1,this._document=r,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const i=t.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(i){return new(i||e)(_(we),_(Poe),_(yt))};static#t=this.\u0275dir=j({type:e,selectors:[["","focusTrap",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["focusTrap"],features:[Et]})}return e})(),g2=(()=>{class e{static forRoot(){return{ngModule:e,providers:[boe,d2,u2]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[kr]})}return e})();const Aoe=["*"];let m2=(()=>{class e{constructor(){this.hide=()=>{},this.setClass=()=>{}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),_2=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Jg={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{},closeInterceptor:void 0},Roe=new K("override-default-config");let Loe=(()=>{class e{constructor(t,i,r){this._element=i,this._renderer=r,this.isShown=!1,this.isAnimated=!1,this._focusEl=null,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},t)}ngOnInit(){this._focusEl=yn.activeElement,this.isAnimated&&this._renderer.addClass(this._element.nativeElement,"fade"),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(()=>{this.isShown=!0,this._renderer.addClass(this._element.nativeElement,"show")},this.isAnimated?150:0),yn&&yn.body&&(this.bsModalService&&1===this.bsModalService.getModalsCount()&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(yn.body,"modal-open"),this._renderer.setStyle(yn.body,"overflow-y","hidden")),this._element.nativeElement&&this._element.nativeElement.focus()}onClickStarted(t){this.clickStartedInContent=t.target!==this._element.nativeElement}onClickStop(t){this.config.ignoreBackdropClick||"static"===this.config.backdrop||t.target!==this._element.nativeElement||this.clickStartedInContent?this.clickStartedInContent=!1:(this.bsModalService?.setDismissReason("backdrop-click"),this.hide())}onPopState(){this.bsModalService?.setDismissReason("browser-back-navigation-clicked"),this.hide()}onEsc(t){this.isShown&&((27===t.keyCode||"Escape"===t.key)&&t.preventDefault(),this.config.keyboard&&this.level===this.bsModalService?.getModalsCount()&&(this.bsModalService?.setDismissReason("esc"),this.hide()))}ngOnDestroy(){this.isShown&&this._hide()}
1hide(){if(!this.isModalHiding){if(this.config.closeInterceptor)return void this.config.closeInterceptor().then(()=>this._hide(),()=>{});this._hide()}}_hide(){this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,"show"),setTimeout(()=>{this.isShown=!1,yn&&yn.body&&1===this.bsModalService?.getModalsCount()&&(this._renderer.removeClass(yn.body,"modal-open"),this._renderer.setStyle(yn.body,"overflow-y","")),this.bsModalService?.hide(this.config.id),this.isModalHiding=!1,this._focusEl&&this._focusEl.focus()},this.isAnimated?300:0)}static#e=this.\u0275fac=function(i){return new(i||e)(_(_2),_(we),_(It))};static#t=this.\u0275cmp=ue({type:e,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(i,r){1&i&&x("mousedown",function(s){return r.onClickStarted(s)})("click",function(s){return r.onClickStop(s)})("popstate",function(){return r.onPopState()},!1,U_)("keydown.esc",function(s){return r.onEsc(s)},!1,U_),2&i&&X("aria-modal",!0)("aria-labelledby",r.config.ariaLabelledBy)("aria-describedby",r.config.ariaDescribedby)},ngContentSelectors:Aoe,decls:3,vars:2,consts:[["role","document","focusTrap",""],[1,"modal-content"]],template:function(i,r){1&i&&(Dr(),m(0,"div",0)(1,"div",1),kn(2),v()()),2&i&&Xi("modal-dialog"+(r.config.class?" "+r.config.class:""))},dependencies:[Noe],encapsulation:2})}return e})(),Foe=(()=>{class e{get isAnimated(){return this._isAnimated}set isAnimated(t){this._isAnimated=t}get isShown(){return this._isShown}set isShown(t){this._isShown=t,t?this.renderer.addClass(this.element.nativeElement,"show"):this.renderer.removeClass(this.element.nativeElement,"show")}constructor(t,i){this._isAnimated=!1,this._isShown=!1,this.element=t,this.renderer=i}ngOnInit(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,"fade"),ane.reflow(this.element.nativeElement)),this.isShown=!0}static#e=this.\u0275fac=function(i){return new(i||e)(_(we),_(It))};static#t=this.\u0275cmp=ue({type:e,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return e})(),Voe=1,y2=(()=>{class e{constructor(t,i,r){this.clf=i,this.modalDefaultOption=r,this.onShow=new H,this.onShown=new H,this.onHide=new H,this.onHidden=new H,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.loaders=[],this._focusEl=null,this._backdropLoader=this.clf.createLoader(),this._renderer=t.createRenderer(null,null),this.config=r?Object.assign({},Jg,r):Jg}show(t,i){this._focusEl=yn.activeElement,this.modalsCount++,this._createLoaders();const r=i?.id||Voe++;return this.config=this.modalDefaultOption?Object.assign({},Jg,this.modalDefaultOption,i):Object.assign({},Jg,i),this.config.id=r,this._showBackdrop(),this.lastDismissReason=void 0,this._showModal(t)}hide(t){(1===this.modalsCount||null==t)&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1&&null!=t?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(t),this.removeLoaders(t)},this.config.animated?150:0),this._focusEl&&this._focusEl.focus()}_showBackdrop(){const t=!0===this.config.backdrop||"static"===this.config.backdrop,i=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),t&&i&&(this._backdropLoader.attach(Foe).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}_hideBackdrop(){this.backdropRef&&(this.backdropRef.instance.isShown=!1,setTimeout(()=>this.removeBackdrop(),this.config.animated?150:0))}_showModal(t){const i=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)for(const s of this.config.providers)i.provide(s);const r=new m2,o=i.provide({provide:_2,useValue:this.config}).provide({provide:m2,useValue:r}).attach(Loe).to("body");return r.hide=()=>this.hide(r.id),r.setClass=s=>{o.instance&&(o.instance.config.class=s)},r.onHidden=new H,r.onHide=new H,this.copyEvent(i.onBeforeHide,r.onHide),this.copyEvent(i.onHidden,r.onHidden),o.show({content:t,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this,id:this.config.id}),o.instance&&(o.instance.level=this.getModalsCount(),r.content=i.getInnerComponent(),r.id=o.instance.config?.id),r}_hideModal(t){if(null!=t){const i=this.loaders.findIndex(o=>o.instance?.config.id===t),r=this.loaders[i];r&&r.hide(t)}
1else this.loaders.forEach(i=>{i.instance&&i.hide(i.instance.config.id)})}getModalsCount(){return this.modalsCount}setDismissReason(t){this.lastDismissReason=t}removeBackdrop(){this._renderer.removeClass(yn.body,"modal-open"),this._renderer.setStyle(yn.body,"overflow-y",""),this._backdropLoader.hide(),this.backdropRef=void 0}checkScrollbar(){this.isBodyOverflowing=yn.body.clientWidth<window.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()}setScrollbar(){yn&&(this.originalBodyPadding=parseInt(window.getComputedStyle(yn.body).getPropertyValue("padding-right")||"0",10),this.isBodyOverflowing&&(yn.body.style.paddingRight=`${this.originalBodyPadding+this.scrollbarWidth}px`))}resetScrollbar(){yn.body.style.paddingRight=`${this.originalBodyPadding}px`}getScrollbarWidth(){const t=this._renderer.createElement("div");this._renderer.addClass(t,"modal-scrollbar-measure"),this._renderer.appendChild(yn.body,t);const i=t.offsetWidth-t.clientWidth;return this._renderer.removeChild(yn.body,t),i}_createLoaders(){const t=this.clf.createLoader();this.copyEvent(t.onBeforeShow,this.onShow),this.copyEvent(t.onShown,this.onShown),this.copyEvent(t.onBeforeHide,this.onHide),this.copyEvent(t.onHidden,this.onHidden),this.loaders.push(t)}removeLoaders(t){if(null!=t){const i=this.loaders.findIndex(r=>
1r.instance?.config.id===t);i>=0&&(this.loaders.splice(i,1),this.loaders.forEach((r,o)=>{r.instance&&(r.instance.level=o+1)}))}else this.loaders.splice(0,this.loaders.length)}copyEvent(t,i){t.subscribe(r=>{i.emit(this.lastDismissReason||r)})}static#e=this.\u0275fac=function(i){return new(i||e)(N(ds),N(Rs),N(Roe,8))};static#t=this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();g2.forRoot();let Boe=(()=>{class e{static forRoot(){return{ngModule:e,providers:[y2,Rs,As]}}static forChild(){return{ngModule:e,providers:[y2,Rs,As]}}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[g2]})}return e})();var em,e;(e=em||(em={})).X="x",e.Y="y";let b2=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ee({type:e}),e.\u0275inj=Te({imports:[kr]}),e})(),C2=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[kr,uP,Qv,Jv,B0,b2,kr,Qv,Jv,uP,B0,b2,voe,Boe]})}return e})(),w2=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[C2,Wb,C2]})}return e})();Sm(b7,[Ni,lt,C7],[]),Sm(Z7,[Bp,q7],[]);let joe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e});static#n=this.\u0275inj=Te({imports:[w2,Qv,SP,MP,TP]})}return e})(),$oe=(()=>{class e{static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275mod=Ee({type:e,bootstrap:[VX]});static#n=this.\u0275inj=Te({imports:[w2,Jv,LE,dK,B0,nz,joe]})}return e})();(()=>{var n=window,t=n.Intercom;if("function"==typeof t)t("reattach_activator"),t("update",n.intercomSettings);else{var i=document,r=function(){r.c(arguments)};r.q=[],r.c=function(s){r.q.push(s)},n.Intercom=r;var o=function(){var s=i.createElement("script");s.type="text/javascript",s.async=!0,s.src="https://widget.intercom.io/widget/wipcuwr0";var a=i.getElementsByTagName("script")[0];a.parentNode.insertBefore(s,a)};"complete"===document.readyState?o():n.attachEvent?n.attachEvent("onload",o):n.addEventListener("load",o,!1)}})(),J8().bootstrapModule($oe).catch(e=>console.error(e))},304:function(_o){_o.exports=function(){"use strict";var si="millisecond",bi="second",Ci="minute",Qe="hour",$i="day",vo="week",Gn="month",Yi="quarter",zn="year",yr="date",Hr="Invalid Date",Nl=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Al=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,bo={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(he){var J=["th","st","nd","rd"],U=he%100;return"["+he+(J[(U-20)%10]||J[U]||J[0])+"]"}},Co=function(he,J,U){var ee=String(he);return!ee||ee.length>=J?he:""+Array(J+1-ee.length).join(U)+he},Ui={s:Co,z:function(he){var J=-he.utcOffset(),U=Math.abs(J),ee=Math.floor(U/60),Q=U%60;return(J<=0?"+":"-")+Co(ee,2,"0")+":"+Co(Q,2,"0")},m:function he(J,U){if(J.date()<U.date())return-he(U,J);var ee=12*(U.year()-J.year())+(U.month()-J.month()),Q=J.clone().add(ee,Gn),_e=U-Q<0,W=J.clone().add(ee+(_e?-1:1),Gn);return+(-(ee+(U-Q)/(_e?Q-W:W-Q))||0)},a:function(he){return he<0?Math.ceil(he)||0:Math.floor(he)},p:function(he){return{M:Gn,y:zn,w:vo,d:$i,D:yr,h:Qe,m:Ci,s:bi,ms:si,Q:Yi}[he]||String(he||"").toLowerCase().replace(/s$/,"")},u:function(he){return void 0===he}},wi="en",Gi={};Gi[wi]=bo;var wo="$isDayjsObject",Do=function(he){return he instanceof Di||!(!he||!he[wo])},Mn=function he(J,U,ee){var Q;if(!J)return wi;if("string"==typeof J){var _e=J.toLowerCase();Gi[_e]&&(Q=_e),U&&(Gi[_e]=U,Q=_e);var W=J.split("-");if(!Q&&W.length>1)return he(W[0])}else{var Je=J.name;Gi[Je]=J,Q=Je}return!ee&&Q&&(wi=Q),Q||!ee&&wi},Tt=function(he,J){if(Do(he))return he.clone();var U="object"==typeof J?J:{};return U.date=he,U.args=arguments,new Di(U)},Ve=Ui;Ve.l=Mn,Ve.i=Do,Ve.w=function(he,J){return Tt(he,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var Di=function(){function he(U){this.$L=Mn(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[wo]=!0}var J=he.prototype;return J.parse=function(U){this.$d=function(ee){var Q=ee.date,_e=ee.utc;if(null===Q)return new Date(NaN);
vendor: 5,038 bytes, line 1
1if(Ve.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if("string"==typeof Q&&!/Z$/i.test(Q)){var W=Q.match(Nl);if(W){var Je=W[2]-1||0,ut=(W[7]||"0").substring(0,3);return _e?new Date(Date.UTC(W[1],Je,W[3]||1,W[4]||0,W[5]||0,W[6]||0,ut)):new Date(W[1],Je,W[3]||1,W[4]||0,W[5]||0,W[6]||0,ut)}}return new Date(Q)}(U),this.init()},J.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},J.$utils=function(){return Ve},J.isValid=function(){return this.$d.toString()!==Hr},J.isSame=function(U,ee){var Q=Tt(U);return this.startOf(ee)<=Q&&Q<=this.endOf(ee)},J.isAfter=function(U,ee){return Tt(U)<this.startOf(ee)},J.isBefore=function(U,ee){return this.endOf(ee)<Tt(U)},J.$g=function(U,ee,Q){return Ve.u(U)?this[ee]:this.set(Q,U)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(U,ee){var Q=this,_e=!!Ve.u(ee)||ee,W=Ve.p(U),Je=function($e,tn){var se=Ve.w(Q.$u?Date.UTC(Q.$y,tn,$e):new Date(Q.$y,tn,$e),Q);return _e?se:se.endOf($i)},ut=function($e,tn){return Ve.w(Q.toDate()[$e].apply(Q.toDate("s"),(_e?[0,0,0,0]:[23,59,59,999]).slice(tn)),Q)},At=this.$W,Bt=this.$M,fe=this.$D,jr="set"+(this.$u?"UTC":"");switch(W){case zn:return _e?Je(1,0):Je(31,11);case Gn:return _e?Je(1,Bt):Je(0,Bt+1);case vo:var zi=this.$locale().weekStart||0,ot=(At<zi?At+7:At)-zi;return Je(_e?fe-ot:fe+(6-ot),Bt);case $i:case yr:return ut(jr+"Hours",0);case Qe:return ut(jr+"Minutes",1);case Ci:return ut(jr+"Seconds",2);case bi:return ut(jr+"Milliseconds",3);default:return this.clone()}},J.endOf=function(U){return this.startOf(U,!1)},J.$set=function(U,ee){var Q,_e=Ve.p(U),W="set"+(this.$u?"UTC":""),Je=(Q={},Q[$i]=W+"Date",Q[yr]=W+"Date",Q[Gn]=W+"Month",Q[zn]=W+"FullYear",Q[Qe]=W+"Hours",Q[Ci]=W+"Minutes",Q[bi]=W+"Seconds",Q[si]=W+"Milliseconds",Q)[_e],ut=_e===$i?this.$D+(ee-this.$W):ee;if(_e===Gn||_e===zn){var At=this.clone().set(yr,1);At.$d[Je](ut),At.init(),this.$d=At.set(yr,Math.min(this.$D,At.daysInMonth())).$d}else Je&&this.$d[Je](ut);return this.init(),this},J.set=function(U,ee){return this.clone().$set(U,ee)},J.get=function(U){return this[Ve.p(U)]()},J.add=function(U,ee){var Q,_e=this;U=Number(U);var W=Ve.p(ee),Je=function(Bt){var fe=Tt(_e);return Ve.w(fe.date(fe.date()+Math.round(Bt*U)),_e)};if(W===Gn)return this.set(Gn,this.$M+U);if(W===zn)return this.set(zn,this.$y+U);if(W===$i)return Je(1);if(W===vo)return Je(7);var ut=(Q={},Q[Ci]=6e4,Q[Qe]=36e5,Q[bi]=1e3,Q)[W]||1,At=this.$d.getTime()+U*ut;return Ve.w(At,this)},J.subtract=function(U,ee){return this.add(-1*U,ee)},J.format=function(U){var ee=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||Hr;var _e=U||"YYYY-MM-DDTHH:mm:ssZ",W=Ve.z(this),Je=this.$H,ut=this.$m,At=this.$M,Bt=Q.weekdays,fe=Q.months,zi=function(tn,se,$r,Fs){return tn&&(tn[se]||tn(ee,_e))||$r[se].slice(0,Fs)},ot=function(tn){return Ve.s(Je%12||12,tn,"0")},$e=Q.meridiem||function(tn,se,$r){var Fs=tn<12?"AM":"PM";return $r?Fs.toLowerCase():Fs};return _e.replace(Al,function(tn,se){return se||function($r){switch($r){case"YY":return String(ee.$y).slice(-2);case"YYYY":return Ve.s(ee.$y,4,"0");case"M":return At+1;case"MM":return Ve.s(At+1,2,"0");case"MMM":return zi(Q.monthsShort,At,fe,3);case"MMMM":return zi(fe,At);case"D":return ee.$D;case"DD":return Ve.s(ee.$D,2,"0");case"d":return String(ee.$W);case"dd":return zi(Q.weekdaysMin,ee.$W,Bt,2);case"ddd":return zi(Q.weekdaysShort,ee.$W,Bt,3);case"dddd":return Bt[ee.$W];case"H":return String(Je);case"HH":return Ve.s(Je,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return $e(Je,ut,!0);case"A":return $e(Je,ut,!1);case"m":return String(ut);case"mm":return Ve.s(ut,2,"0");case"s":return String(ee.$s);case"ss":return Ve.s(ee.$s,2,"0");case"SSS":return Ve.s(ee.$ms,3,"0");case"Z":return W}return null}(tn)||W.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(U,ee,Q){var _e,W=this,Je=Ve.p(ee),ut=Tt(U),At=6e4*(ut.utcOffset()-this.utcOffset()),Bt=this-ut,fe=function(){return Ve.m(W,ut)};switch(Je){case zn:_e=fe()/12;break;case Gn:_e=fe();break;case Yi:_e=fe()/3;break;case vo:_e=(Bt-At)/6048e5;break;case $i:_e=(Bt-At)/864e5;break;case Qe:_e=Bt/36e5;break;case Ci:_e=Bt/6e4;break;case bi:_e=Bt/1e3;break;default:_e=Bt}return Q?_e:Ve.a(_e)},J.daysInMonth=function(){return this.endOf(Gn).$D},J.$locale=function(){return Gi[this.$L]},J.locale=function(U,ee){if(!U)return this.$L;var Q=this.clone(),_e=Mn(U,ee,!0);return _e&&(Q.$L=_e),Q},J.clone=function(){return Ve.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},he}(),$a=Di.prototype;return Tt.prototype=$a,[["$ms",si],["$s",bi],["$m",Ci],["$H",Qe],["$W",$i],["$M",Gn],["$y",zn],["$D",yr]].forEac
1h(function(he){$a[he[1]]=function(J){return this.$g(J,he[0],he[1])}}),Tt.extend=function(he,J){return he.$i||(he(J,Di,Tt),he.$i=!0),Tt},Tt.locale=Mn,Tt.isDayjs=Do,Tt.unix=function(he){return Tt(1e3*he)},Tt.en=Gi[wi],Tt.Ls=Gi,Tt.p={},Tt}()},614:()=>{"use strict";const _o=":";const Ll=function(O,...T){if(Ll.translate){const F=Ll.translate(O,T);O=F[0],T=F[1]}let k=oh(O[0],O.raw[0]);for(let F=1;F<O.length;F++)k+=T[F-1]+oh(O[F],O.raw[F]);return k},rh=":";function oh(O,T){return T.charAt(0)===rh?O.substring(function Bt(O,T){for(let k=1,F=1;k<O.length;k++,F++)if("\\"===T[F])F++;else if(O[k]===_o)return k;throw new Error(`Unterminated $localize metadata block in "${T}".`)}(O,T)+1):O}globalThis.$localize=Ll}},_o=>{var yo=Pe=>_o(_o.s=Pe);yo(614),yo(787)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.