Viewing File: /usr/local/cpanel/base/frontend/jupiter/socialbee/vendor-89d5c698.js

"use strict";(self.webpackChunksocialbee=self.webpackChunksocialbee||[]).push([[534],{5619:(We,z,m)=>{m.d(z,{X:()=>T});var e=m(8645);class T extends e.x{constructor(Y){super(),this._value=Y}get value(){return this.getValue()}_subscribe(Y){const x=super._subscribe(Y);return!x.closed&&Y.next(this._value),x}getValue(){const{hasError:Y,thrownError:x,_value:V}=this;if(Y)throw x;return this._throwIfClosed(),V}next(Y){super.next(this._value=Y)}}},5592:(We,z,m)=>{m.d(z,{y:()=>B});var e=m(305),T=m(7394),j=m(4850),Y=m(8407),x=m(2653),V=m(4674),b=m(1441);let B=(()=>{class W{constructor(A){A&&(this._subscribe=A)}lift(A){const ce=new W;return ce.source=this,ce.operator=A,ce}subscribe(A,ce,me){const pe=function L(W){return W&&W instanceof e.Lv||function E(W){return W&&(0,V.m)(W.next)&&(0,V.m)(W.error)&&(0,V.m)(W.complete)}(W)&&(0,T.Nn)(W)}(A)?A:new e.Hp(A,ce,me);return(0,b.x)(()=>{const{operator:re,source:Ge}=this;pe.add(re?re.call(pe,Ge):Ge?this._subscribe(pe):this._trySubscribe(pe))}),pe}_trySubscribe(A){try{return this._subscribe(A)}catch(ce){A.error(ce)}}forEach(A,ce){return new(ce=k(ce))((me,pe)=>{const re=new e.Hp({next:Ge=>{try{A(Ge)}catch(we){pe(we),re.unsubscribe()}},error:pe,complete:me});this.subscribe(re)})}_subscribe(A){var ce;return null===(ce=this.source)||void 0===ce?void 0:ce.subscribe(A)}[j.L](){return this}pipe(...A){return(0,Y.U)(A)(this)}toPromise(A){return new(A=k(A))((ce,me)=>{let pe;this.subscribe(re=>pe=re,re=>me(re),()=>ce(pe))})}}return W.create=_e=>new W(_e),W})();function k(W){var _e;return null!==(_e=W??x.config.Promise)&&void 0!==_e?_e:Promise}},7328:(We,z,m)=>{m.d(z,{t:()=>j});var e=m(8645),T=m(4552);class j extends e.x{constructor(x=1/0,V=1/0,b=T.l){super(),this._bufferSize=x,this._windowTime=V,this._timestampProvider=b,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=V===1/0,this._bufferSize=Math.max(1,x),this._windowTime=Math.max(1,V)}next(x){const{isStopped:V,_buffer:b,_infiniteTimeWindow:B,_timestampProvider:k,_windowTime:E}=this;V||(b.push(x),!B&&b.push(k.now()+E)),this._trimBuffer(),super.next(x)}_subscribe(x){this._throwIfClosed(),this._trimBuffer();const V=this._innerSubscribe(x),{_infiniteTimeWindow:b,_buffer:B}=this,k=B.slice();for(let E=0;E<k.length&&!x.closed;E+=b?1:2)x.next(k[E]);return this._checkFinalizedStatuses(x),V}_trimBuffer(){const{_bufferSize:x,_timestampProvider:V,_buffer:b,_infiniteTimeWindow:B}=this,k=(B?1:2)*x;if(x<1/0&&k<b.length&&b.splice(0,b.length-k),!B){const E=V.now();let L=0;for(let W=1;W<b.length&&b[W]<=E;W+=2)L=W;L&&b.splice(0,L+1)}}}},8645:(We,z,m)=>{m.d(z,{x:()=>b});var e=m(5592),T=m(7394);const Y=(0,m(2306).d)(k=>function(){k(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var x=m(9039),V=m(1441);let b=(()=>{class k extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(L){const W=new B(this,this);return W.operator=L,W}_throwIfClosed(){if(this.closed)throw new Y}next(L){(0,V.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const W of this.currentObservers)W.next(L)}})}error(L){(0,V.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=L;const{observers:W}=this;for(;W.length;)W.shift().error(L)}})}complete(){(0,V.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:L}=this;for(;L.length;)L.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var L;return(null===(L=this.observers)||void 0===L?void 0:L.length)>0}_trySubscribe(L){return this._throwIfClosed(),super._trySubscribe(L)}_subscribe(L){return this._throwIfClosed(),this._checkFinalizedStatuses(L),this._innerSubscribe(L)}_innerSubscribe(L){const{hasError:W,isStopped:_e,observers:A}=this;return W||_e?T.Lc:(this.currentObservers=null,A.push(L),new T.w0(()=>{this.currentObservers=null,(0,x.P)(A,L)}))}_checkFinalizedStatuses(L){const{hasError:W,thrownError:_e,isStopped:A}=this;W?L.error(_e):A&&L.complete()}asObservable(){const L=new e.y;return L.source=this,L}}return k.create=(E,L)=>new B(E,L),k})();class B extends b{constructor(E,L){super(),this.destination=E,this.source=L}next(E){var L,W;null===(W=null===(L=this.destination)||void 0===L?void 0:L.next)||void 0===W||W.call(L,E)}error(E){var L,W;null===(W=null===(L=this.destination)||void 0===L?void 0:L.error)||void 0===W||W.call(L,E)}complete(){var E,L;null===(L=null===(E=this.destination)||void 0===E?void 0:E.complete)||void 0===L||L.call(E)}_subscribe(E){var L,W;return null!==(W=null===(L=this.source)||void 0===L?void 0:L.subscribe(E))&&void 0!==W?W:T.Lc}}},305:(We,z,m)=>{m.d(z,{Hp:()=>me,Lv:()=>W});var e=m(4674),T=m(7394),j=m(2653),Y=m(3894),x=m(2420);const V=k("C",void 0,void 0);function k(ue,G,Le){return{kind:ue,value:G,error:Le}}var E=m(7599),L=m(1441);class W extends T.w0{constructor(G){super(),this.isStopped=!1,G?(this.destination=G,(0,T.Nn)(G)&&G.add(this)):this.destination=we}static create(G,Le,Se){return new me(G,Le,Se)}next(G){this.isStopped?Ge(function B(ue){return k("N",ue,void 0)}(G),this):this._next(G)}error(G){this.isStopped?Ge(function b(ue){return k("E",void 0,ue)}(G),this):(this.isStopped=!0,this._error(G))}complete(){this.isStopped?Ge(V,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(G){this.destination.next(G)}_error(G){try{this.destination.error(G)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const _e=Function.prototype.bind;function A(ue,G){return _e.call(ue,G)}class ce{constructor(G){this.partialObserver=G}next(G){const{partialObserver:Le}=this;if(Le.next)try{Le.next(G)}catch(Se){pe(Se)}}error(G){const{partialObserver:Le}=this;if(Le.error)try{Le.error(G)}catch(Se){pe(Se)}else pe(G)}complete(){const{partialObserver:G}=this;if(G.complete)try{G.complete()}catch(Le){pe(Le)}}}class me extends W{constructor(G,Le,Se){let Ce;if(super(),(0,e.m)(G)||!G)Ce={next:G??void 0,error:Le??void 0,complete:Se??void 0};else{let Re;this&&j.config.useDeprecatedNextContext?(Re=Object.create(G),Re.unsubscribe=()=>this.unsubscribe(),Ce={next:G.next&&A(G.next,Re),error:G.error&&A(G.error,Re),complete:G.complete&&A(G.complete,Re)}):Ce=G}this.destination=new ce(Ce)}}function pe(ue){j.config.useDeprecatedSynchronousErrorHandling?(0,L.O)(ue):(0,Y.h)(ue)}function Ge(ue,G){const{onStoppedNotification:Le}=j.config;Le&&E.z.setTimeout(()=>Le(ue,G))}const we={closed:!0,next:x.Z,error:function re(ue){throw ue},complete:x.Z}},7394:(We,z,m)=>{m.d(z,{Lc:()=>V,w0:()=>x,Nn:()=>b});var e=m(4674);const j=(0,m(2306).d)(k=>function(L){k(this),this.message=L?`${L.length} errors occurred during unsubscription:\n${L.map((W,_e)=>`${_e+1}) ${W.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=L});var Y=m(9039);class x{constructor(E){this.initialTeardown=E,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let E;if(!this.closed){this.closed=!0;const{_parentage:L}=this;if(L)if(this._parentage=null,Array.isArray(L))for(const A of L)A.remove(this);else L.remove(this);const{initialTeardown:W}=this;if((0,e.m)(W))try{W()}catch(A){E=A instanceof j?A.errors:[A]}const{_finalizers:_e}=this;if(_e){this._finalizers=null;for(const A of _e)try{B(A)}catch(ce){E=E??[],ce instanceof j?E=[...E,...ce.errors]:E.push(ce)}}if(E)throw new j(E)}}add(E){var L;if(E&&E!==this)if(this.closed)B(E);else{if(E instanceof x){if(E.closed||E._hasParent(this))return;E._addParent(this)}(this._finalizers=null!==(L=this._finalizers)&&void 0!==L?L:[]).push(E)}}_hasParent(E){const{_parentage:L}=this;return L===E||Array.isArray(L)&&L.includes(E)}_addParent(E){const{_parentage:L}=this;this._parentage=Array.isArray(L)?(L.push(E),L):L?[L,E]:E}_removeParent(E){const{_parentage:L}=this;L===E?this._parentage=null:Array.isArray(L)&&(0,Y.P)(L,E)}remove(E){const{_finalizers:L}=this;L&&(0,Y.P)(L,E),E instanceof x&&E._removeParent(this)}}x.EMPTY=(()=>{const k=new x;return k.closed=!0,k})();const V=x.EMPTY;function b(k){return k instanceof x||k&&"closed"in k&&(0,e.m)(k.remove)&&(0,e.m)(k.add)&&(0,e.m)(k.unsubscribe)}function B(k){(0,e.m)(k)?k():k.unsubscribe()}},2653:(We,z,m)=>{m.d(z,{config:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3168:(We,z,m)=>{m.d(z,{c:()=>V});var e=m(5592),T=m(7394),j=m(6196),Y=m(8251),x=m(9360);class V extends e.y{constructor(B,k){super(),this.source=B,this.subjectFactory=k,this._subject=null,this._refCount=0,this._connection=null,(0,x.A)(B)&&(this.lift=B.lift)}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:B}=this;this._subject=this._connection=null,B?.unsubscribe()}connect(){let B=this._connection;if(!B){B=this._connection=new T.w0;const k=this.getSubject();B.add(this.source.subscribe((0,Y.x)(k,void 0,()=>{this._teardown(),k.complete()},E=>{this._teardown(),k.error(E)},()=>this._teardown()))),B.closed&&(this._connection=null,B=T.w0.EMPTY)}return B}refCount(){return(0,j.x)()(this)}}},2572:(We,z,m)=>{m.d(z,{a:()=>E});var e=m(5592),T=m(7453),j=m(9666),Y=m(2737),x=m(7400),V=m(9940),b=m(2714),B=m(8251),k=m(7103);function E(..._e){const A=(0,V.yG)(_e),ce=(0,V.jO)(_e),{args:me,keys:pe}=(0,T.D)(_e);if(0===me.length)return(0,j.D)([],A);const re=new e.y(function L(_e,A,ce=Y.y){return me=>{W(A,()=>{const{length:pe}=_e,re=new Array(pe);let Ge=pe,we=pe;for(let ue=0;ue<pe;ue++)W(A,()=>{const G=(0,j.D)(_e[ue],A);let Le=!1;G.subscribe((0,B.x)(me,Se=>{re[ue]=Se,Le||(Le=!0,we--),we||me.next(ce(re.slice()))},()=>{--Ge||me.complete()}))},me)},me)}}(me,A,pe?Ge=>(0,b.n)(pe,Ge):Y.y));return ce?re.pipe((0,x.Z)(ce)):re}function W(_e,A,ce){_e?(0,k.f)(ce,_e,A):A()}},5211:(We,z,m)=>{m.d(z,{z:()=>x});var e=m(7537),j=m(9940),Y=m(9666);function x(...V){return function T(){return(0,e.J)(1)}()((0,Y.D)(V,(0,j.yG)(V)))}},4911:(We,z,m)=>{m.d(z,{P:()=>j});var e=m(5592),T=m(4829);function j(Y){return new e.y(x=>{(0,T.Xf)(Y()).subscribe(x)})}},6232:(We,z,m)=>{m.d(z,{E:()=>T});const T=new(m(5592).y)(x=>x.complete())},9315:(We,z,m)=>{m.d(z,{D:()=>B});var e=m(5592),T=m(7453),j=m(4829),Y=m(9940),x=m(8251),V=m(7400),b=m(2714);function B(...k){const E=(0,Y.jO)(k),{args:L,keys:W}=(0,T.D)(k),_e=new e.y(A=>{const{length:ce}=L;if(!ce)return void A.complete();const me=new Array(ce);let pe=ce,re=ce;for(let Ge=0;Ge<ce;Ge++){let we=!1;(0,j.Xf)(L[Ge]).subscribe((0,x.x)(A,ue=>{we||(we=!0,re--),me[Ge]=ue},()=>pe--,void 0,()=>{(!pe||!we)&&(re||A.next(W?(0,b.n)(W,me):me),A.complete())}))}});return E?_e.pipe((0,V.Z)(E)):_e}},9666:(We,z,m)=>{m.d(z,{D:()=>Le});var e=m(4829),T=m(3093),j=m(9360);function Y(Se,Ce=0){return(0,j.e)((Re,Ye)=>{Ye.add(Se.schedule(()=>Re.subscribe(Ye),Ce))})}var b=m(5592),k=m(4971),E=m(4674),L=m(7103);function _e(Se,Ce){if(!Se)throw new Error("Iterable cannot be null");return new b.y(Re=>{(0,L.f)(Re,Ce,()=>{const Ye=Se[Symbol.asyncIterator]();(0,L.f)(Re,Ce,()=>{Ye.next().then(Z=>{Z.done?Re.complete():Re.next(Z.value)})},0,!0)})})}var A=m(8382),ce=m(4026),me=m(4266),pe=m(3664),re=m(5726),Ge=m(9853),we=m(541);function Le(Se,Ce){return Ce?function G(Se,Ce){if(null!=Se){if((0,A.c)(Se))return function x(Se,Ce){return(0,e.Xf)(Se).pipe(Y(Ce),(0,T.Q)(Ce))}(Se,Ce);if((0,me.z)(Se))return function B(Se,Ce){return new b.y(Re=>{let Ye=0;return Ce.schedule(function(){Ye===Se.length?Re.complete():(Re.next(Se[Ye++]),Re.closed||this.schedule())})})}(Se,Ce);if((0,ce.t)(Se))return function V(Se,Ce){return(0,e.Xf)(Se).pipe(Y(Ce),(0,T.Q)(Ce))}(Se,Ce);if((0,re.D)(Se))return _e(Se,Ce);if((0,pe.T)(Se))return function W(Se,Ce){return new b.y(Re=>{let Ye;return(0,L.f)(Re,Ce,()=>{Ye=Se[k.h](),(0,L.f)(Re,Ce,()=>{let Z,ie;try{({value:Z,done:ie}=Ye.next())}catch(ye){return void Re.error(ye)}ie?Re.complete():Re.next(Z)},0,!0)}),()=>(0,E.m)(Ye?.return)&&Ye.return()})}(Se,Ce);if((0,we.L)(Se))return function ue(Se,Ce){return _e((0,we.Q)(Se),Ce)}(Se,Ce)}throw(0,Ge.z)(Se)}(Se,Ce):(0,e.Xf)(Se)}},4829:(We,z,m)=>{m.d(z,{Xf:()=>_e});var e=m(655),T=m(4266),j=m(4026),Y=m(5592),x=m(8382),V=m(5726),b=m(9853),B=m(3664),k=m(541),E=m(4674),L=m(3894),W=m(4850);function _e(ue){if(ue instanceof Y.y)return ue;if(null!=ue){if((0,x.c)(ue))return function A(ue){return new Y.y(G=>{const Le=ue[W.L]();if((0,E.m)(Le.subscribe))return Le.subscribe(G);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ue);if((0,T.z)(ue))return function ce(ue){return new Y.y(G=>{for(let Le=0;Le<ue.length&&!G.closed;Le++)G.next(ue[Le]);G.complete()})}(ue);if((0,j.t)(ue))return function me(ue){return new Y.y(G=>{ue.then(Le=>{G.closed||(G.next(Le),G.complete())},Le=>G.error(Le)).then(null,L.h)})}(ue);if((0,V.D)(ue))return re(ue);if((0,B.T)(ue))return function pe(ue){return new Y.y(G=>{for(const Le of ue)if(G.next(Le),G.closed)return;G.complete()})}(ue);if((0,k.L)(ue))return function Ge(ue){return re((0,k.Q)(ue))}(ue)}throw(0,b.z)(ue)}function re(ue){return new Y.y(G=>{(function we(ue,G){var Le,Se,Ce,Re;return(0,e.mG)(this,void 0,void 0,function*(){try{for(Le=(0,e.KL)(ue);!(Se=yield Le.next()).done;)if(G.next(Se.value),G.closed)return}catch(Ye){Ce={error:Ye}}finally{try{Se&&!Se.done&&(Re=Le.return)&&(yield Re.call(Le))}finally{if(Ce)throw Ce.error}}G.complete()})})(ue,G).catch(Le=>G.error(Le))})}},3019:(We,z,m)=>{m.d(z,{T:()=>V});var e=m(7537),T=m(4829),j=m(6232),Y=m(9940),x=m(9666);function V(...b){const B=(0,Y.yG)(b),k=(0,Y._6)(b,1/0),E=b;return E.length?1===E.length?(0,T.Xf)(E[0]):(0,e.J)(k)((0,x.D)(E,B)):j.E}},2096:(We,z,m)=>{m.d(z,{of:()=>j});var e=m(9940),T=m(9666);function j(...Y){const x=(0,e.yG)(Y);return(0,T.D)(Y,x)}},8504:(We,z,m)=>{m.d(z,{_:()=>j});var e=m(5592),T=m(4674);function j(Y,x){const V=(0,T.m)(Y)?Y:()=>Y,b=B=>B.error(V());return new e.y(x?B=>x.schedule(b,0,B):b)}},20:(We,z,m)=>{m.d(z,{H:()=>B});var e=m(5592),T=m(1954);const x=new(m(2631).v)(T.o);var V=m(671);function B(k=0,E,L=x){let W=-1;return null!=E&&((0,V.K)(E)?L=E:W=E),new e.y(_e=>{let A=function b(k){return k instanceof Date&&!isNaN(k)}(k)?+k-L.now():k;A<0&&(A=0);let ce=0;return L.schedule(function(){_e.closed||(_e.next(ce++),0<=W?this.schedule(void 0,W):_e.complete())},A)})}},8251:(We,z,m)=>{m.d(z,{x:()=>T});var e=m(305);function T(Y,x,V,b,B){return new j(Y,x,V,b,B)}class j extends e.Lv{constructor(x,V,b,B,k,E){super(x),this.onFinalize=k,this.shouldUnsubscribe=E,this._next=V?function(L){try{V(L)}catch(W){x.error(W)}}:super._next,this._error=B?function(L){try{B(L)}catch(W){x.error(W)}finally{this.unsubscribe()}}:super._error,this._complete=b?function(){try{b()}catch(L){x.error(L)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var x;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:V}=this;super.unsubscribe(),!V&&(null===(x=this.onFinalize)||void 0===x||x.call(this))}}}},6306:(We,z,m)=>{m.d(z,{K:()=>Y});var e=m(4829),T=m(8251),j=m(9360);function Y(x){return(0,j.e)((V,b)=>{let E,B=null,k=!1;B=V.subscribe((0,T.x)(b,void 0,void 0,L=>{E=(0,e.Xf)(x(L,Y(x)(V))),B?(B.unsubscribe(),B=null,E.subscribe(b)):k=!0})),k&&(B.unsubscribe(),B=null,E.subscribe(b))})}},6328:(We,z,m)=>{m.d(z,{b:()=>j});var e=m(1631),T=m(4674);function j(Y,x){return(0,T.m)(x)?(0,e.z)(Y,x,1):(0,e.z)(Y,1)}},3572:(We,z,m)=>{m.d(z,{d:()=>j});var e=m(9360),T=m(8251);function j(Y){return(0,e.e)((x,V)=>{let b=!1;x.subscribe((0,T.x)(V,B=>{b=!0,V.next(B)},()=>{b||V.next(Y),V.complete()}))})}},3997:(We,z,m)=>{m.d(z,{x:()=>Y});var e=m(2737),T=m(9360),j=m(8251);function Y(V,b=e.y){return V=V??x,(0,T.e)((B,k)=>{let E,L=!0;B.subscribe((0,j.x)(k,W=>{const _e=b(W);(L||!V(E,_e))&&(L=!1,E=_e,k.next(W))}))})}function x(V,b){return V===b}},2181:(We,z,m)=>{m.d(z,{h:()=>j});var e=m(9360),T=m(8251);function j(Y,x){return(0,e.e)((V,b)=>{let B=0;V.subscribe((0,T.x)(b,k=>Y.call(x,k,B++)&&b.next(k)))})}},4716:(We,z,m)=>{m.d(z,{x:()=>T});var e=m(9360);function T(j){return(0,e.e)((Y,x)=>{try{Y.subscribe(x)}finally{x.add(j)}})}},1374:(We,z,m)=>{m.d(z,{P:()=>b});var e=m(6973),T=m(2181),j=m(8180),Y=m(3572),x=m(3026),V=m(2737);function b(B,k){const E=arguments.length>=2;return L=>L.pipe(B?(0,T.h)((W,_e)=>B(W,_e,L)):V.y,(0,j.q)(1),E?(0,Y.d)(k):(0,x.T)(()=>new e.K))}},2032:(We,z,m)=>{m.d(z,{Z:()=>b});var e=m(6973),T=m(2181),j=m(4418),Y=m(3026),x=m(3572),V=m(2737);function b(B,k){const E=arguments.length>=2;return L=>L.pipe(B?(0,T.h)((W,_e)=>B(W,_e,L)):V.y,(0,j.h)(1),E?(0,x.d)(k):(0,Y.T)(()=>new e.K))}},7398:(We,z,m)=>{m.d(z,{U:()=>j});var e=m(9360),T=m(8251);function j(Y,x){return(0,e.e)((V,b)=>{let B=0;V.subscribe((0,T.x)(b,k=>{b.next(Y.call(x,k,B++))}))})}},975:(We,z,m)=>{m.d(z,{h:()=>T});var e=m(7398);function T(j){return(0,e.U)(()=>j)}},7537:(We,z,m)=>{m.d(z,{J:()=>j});var e=m(1631),T=m(2737);function j(Y=1/0){return(0,e.z)(T.y,Y)}},1631:(We,z,m)=>{m.d(z,{z:()=>B});var e=m(7398),T=m(4829),j=m(9360),Y=m(7103),x=m(8251),b=m(4674);function B(k,E,L=1/0){return(0,b.m)(E)?B((W,_e)=>(0,e.U)((A,ce)=>E(W,A,_e,ce))((0,T.Xf)(k(W,_e))),L):("number"==typeof E&&(L=E),(0,j.e)((W,_e)=>function V(k,E,L,W,_e,A,ce,me){const pe=[];let re=0,Ge=0,we=!1;const ue=()=>{we&&!pe.length&&!re&&E.complete()},G=Se=>re<W?Le(Se):pe.push(Se),Le=Se=>{A&&E.next(Se),re++;let Ce=!1;(0,T.Xf)(L(Se,Ge++)).subscribe((0,x.x)(E,Re=>{_e?.(Re),A?G(Re):E.next(Re)},()=>{Ce=!0},void 0,()=>{if(Ce)try{for(re--;pe.length&&re<W;){const Re=pe.shift();ce?(0,Y.f)(E,ce,()=>Le(Re)):Le(Re)}ue()}catch(Re){E.error(Re)}}))};return k.subscribe((0,x.x)(E,G,()=>{we=!0,ue()})),()=>{me?.()}}(W,_e,k,L)))}},3093:(We,z,m)=>{m.d(z,{Q:()=>Y});var e=m(7103),T=m(9360),j=m(8251);function Y(x,V=0){return(0,T.e)((b,B)=>{b.subscribe((0,j.x)(B,k=>(0,e.f)(B,x,()=>B.next(k),V),()=>(0,e.f)(B,x,()=>B.complete(),V),k=>(0,e.f)(B,x,()=>B.error(k),V)))})}},6196:(We,z,m)=>{m.d(z,{x:()=>j});var e=m(9360),T=m(8251);function j(){return(0,e.e)((Y,x)=>{let V=null;Y._refCount++;const b=(0,T.x)(x,void 0,void 0,void 0,()=>{if(!Y||Y._refCount<=0||0<--Y._refCount)return void(V=null);const B=Y._connection,k=V;V=null,B&&(!k||B===k)&&B.unsubscribe(),x.unsubscribe()});Y.subscribe(b),b.closed||(V=Y.connect())})}},6699:(We,z,m)=>{m.d(z,{R:()=>Y});var e=m(9360),T=m(8251);function Y(x,V){return(0,e.e)(function j(x,V,b,B,k){return(E,L)=>{let W=b,_e=V,A=0;E.subscribe((0,T.x)(L,ce=>{const me=A++;_e=W?x(_e,ce,me):(W=!0,ce),B&&L.next(_e)},k&&(()=>{W&&L.next(_e),L.complete()})))}}(x,V,arguments.length>=2,!0))}},3020:(We,z,m)=>{m.d(z,{B:()=>x});var e=m(4829),T=m(8645),j=m(305),Y=m(9360);function x(b={}){const{connector:B=(()=>new T.x),resetOnError:k=!0,resetOnComplete:E=!0,resetOnRefCountZero:L=!0}=b;return W=>{let _e,A,ce,me=0,pe=!1,re=!1;const Ge=()=>{A?.unsubscribe(),A=void 0},we=()=>{Ge(),_e=ce=void 0,pe=re=!1},ue=()=>{const G=_e;we(),G?.unsubscribe()};return(0,Y.e)((G,Le)=>{me++,!re&&!pe&&Ge();const Se=ce=ce??B();Le.add(()=>{me--,0===me&&!re&&!pe&&(A=V(ue,L))}),Se.subscribe(Le),!_e&&me>0&&(_e=new j.Hp({next:Ce=>Se.next(Ce),error:Ce=>{re=!0,Ge(),A=V(we,k,Ce),Se.error(Ce)},complete:()=>{pe=!0,Ge(),A=V(we,E),Se.complete()}}),(0,e.Xf)(G).subscribe(_e))})(W)}}function V(b,B,...k){if(!0===B)return void b();if(!1===B)return;const E=new j.Hp({next:()=>{E.unsubscribe(),b()}});return B(...k).subscribe(E)}},7081:(We,z,m)=>{m.d(z,{d:()=>j});var e=m(7328),T=m(3020);function j(Y,x,V){let b,B=!1;return Y&&"object"==typeof Y?({bufferSize:b=1/0,windowTime:x=1/0,refCount:B=!1,scheduler:V}=Y):b=Y??1/0,(0,T.B)({connector:()=>new e.t(b,x,V),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:B})}},7921:(We,z,m)=>{m.d(z,{O:()=>Y});var e=m(5211),T=m(9940),j=m(9360);function Y(...x){const V=(0,T.yG)(x);return(0,j.e)((b,B)=>{(V?(0,e.z)(x,b,V):(0,e.z)(x,b)).subscribe(B)})}},4664:(We,z,m)=>{m.d(z,{w:()=>Y});var e=m(4829),T=m(9360),j=m(8251);function Y(x,V){return(0,T.e)((b,B)=>{let k=null,E=0,L=!1;const W=()=>L&&!k&&B.complete();b.subscribe((0,j.x)(B,_e=>{k?.unsubscribe();let A=0;const ce=E++;(0,e.Xf)(x(_e,ce)).subscribe(k=(0,j.x)(B,me=>B.next(V?V(_e,me,ce,A++):me),()=>{k=null,W()}))},()=>{L=!0,W()}))})}},8180:(We,z,m)=>{m.d(z,{q:()=>Y});var e=m(6232),T=m(9360),j=m(8251);function Y(x){return x<=0?()=>e.E:(0,T.e)((V,b)=>{let B=0;V.subscribe((0,j.x)(b,k=>{++B<=x&&(b.next(k),x<=B&&b.complete())}))})}},4418:(We,z,m)=>{m.d(z,{h:()=>Y});var e=m(6232),T=m(9360),j=m(8251);function Y(x){return x<=0?()=>e.E:(0,T.e)((V,b)=>{let B=[];V.subscribe((0,j.x)(b,k=>{B.push(k),x<B.length&&B.shift()},()=>{for(const k of B)b.next(k);b.complete()},void 0,()=>{B=null}))})}},9773:(We,z,m)=>{m.d(z,{R:()=>x});var e=m(9360),T=m(8251),j=m(4829),Y=m(2420);function x(V){return(0,e.e)((b,B)=>{(0,j.Xf)(V).subscribe((0,T.x)(B,()=>B.complete(),Y.Z)),!B.closed&&b.subscribe(B)})}},9397:(We,z,m)=>{m.d(z,{b:()=>x});var e=m(4674),T=m(9360),j=m(8251),Y=m(2737);function x(V,b,B){const k=(0,e.m)(V)||b||B?{next:V,error:b,complete:B}:V;return k?(0,T.e)((E,L)=>{var W;null===(W=k.subscribe)||void 0===W||W.call(k);let _e=!0;E.subscribe((0,j.x)(L,A=>{var ce;null===(ce=k.next)||void 0===ce||ce.call(k,A),L.next(A)},()=>{var A;_e=!1,null===(A=k.complete)||void 0===A||A.call(k),L.complete()},A=>{var ce;_e=!1,null===(ce=k.error)||void 0===ce||ce.call(k,A),L.error(A)},()=>{var A,ce;_e&&(null===(A=k.unsubscribe)||void 0===A||A.call(k)),null===(ce=k.finalize)||void 0===ce||ce.call(k)}))}):Y.y}},3026:(We,z,m)=>{m.d(z,{T:()=>Y});var e=m(6973),T=m(9360),j=m(8251);function Y(V=x){return(0,T.e)((b,B)=>{let k=!1;b.subscribe((0,j.x)(B,E=>{k=!0,B.next(E)},()=>k?B.complete():B.error(V())))})}function x(){return new e.K}},1954:(We,z,m)=>{m.d(z,{o:()=>x});var e=m(7394);class T extends e.w0{constructor(b,B){super()}schedule(b,B=0){return this}}const j={setInterval(V,b,...B){const{delegate:k}=j;return k?.setInterval?k.setInterval(V,b,...B):setInterval(V,b,...B)},clearInterval(V){const{delegate:b}=j;return(b?.clearInterval||clearInterval)(V)},delegate:void 0};var Y=m(9039);class x extends T{constructor(b,B){super(b,B),this.scheduler=b,this.work=B,this.pending=!1}schedule(b,B=0){var k;if(this.closed)return this;this.state=b;const E=this.id,L=this.scheduler;return null!=E&&(this.id=this.recycleAsyncId(L,E,B)),this.pending=!0,this.delay=B,this.id=null!==(k=this.id)&&void 0!==k?k:this.requestAsyncId(L,this.id,B),this}requestAsyncId(b,B,k=0){return j.setInterval(b.flush.bind(b,this),k)}recycleAsyncId(b,B,k=0){if(null!=k&&this.delay===k&&!1===this.pending)return B;null!=B&&j.clearInterval(B)}execute(b,B){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const k=this._execute(b,B);if(k)return k;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(b,B){let E,k=!1;try{this.work(b)}catch(L){k=!0,E=L||new Error("Scheduled action threw falsy error")}if(k)return this.unsubscribe(),E}unsubscribe(){if(!this.closed){const{id:b,scheduler:B}=this,{actions:k}=B;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Y.P)(k,this),null!=b&&(this.id=this.recycleAsyncId(B,b,null)),this.delay=null,super.unsubscribe()}}}},2631:(We,z,m)=>{m.d(z,{v:()=>j});var e=m(4552);class T{constructor(x,V=T.now){this.schedulerActionCtor=x,this.now=V}schedule(x,V=0,b){return new this.schedulerActionCtor(this,x).schedule(b,V)}}T.now=e.l.now;class j extends T{constructor(x,V=T.now){super(x,V),this.actions=[],this._active=!1}flush(x){const{actions:V}=this;if(this._active)return void V.push(x);let b;this._active=!0;do{if(b=x.execute(x.state,x.delay))break}while(x=V.shift());if(this._active=!1,b){for(;x=V.shift();)x.unsubscribe();throw b}}}},927:(We,z,m)=>{m.d(z,{Z:()=>b});var e=m(1954),T=m(7394);const j={schedule(k){let E=requestAnimationFrame,L=cancelAnimationFrame;const{delegate:W}=j;W&&(E=W.requestAnimationFrame,L=W.cancelAnimationFrame);const _e=E(A=>{L=void 0,k(A)});return new T.w0(()=>L?.(_e))},requestAnimationFrame(...k){const{delegate:E}=j;return(E?.requestAnimationFrame||requestAnimationFrame)(...k)},cancelAnimationFrame(...k){const{delegate:E}=j;return(E?.cancelAnimationFrame||cancelAnimationFrame)(...k)},delegate:void 0};var x=m(2631);const b=new class V extends x.v{flush(E){this._active=!0;const L=this._scheduled;this._scheduled=void 0;const{actions:W}=this;let _e;E=E||W.shift();do{if(_e=E.execute(E.state,E.delay))break}while((E=W[0])&&E.id===L&&W.shift());if(this._active=!1,_e){for(;(E=W[0])&&E.id===L&&W.shift();)E.unsubscribe();throw _e}}}(class Y extends e.o{constructor(E,L){super(E,L),this.scheduler=E,this.work=L}requestAsyncId(E,L,W=0){return null!==W&&W>0?super.requestAsyncId(E,L,W):(E.actions.push(this),E._scheduled||(E._scheduled=j.requestAnimationFrame(()=>E.flush(void 0))))}recycleAsyncId(E,L,W=0){var _e;if(null!=W?W>0:this.delay>0)return super.recycleAsyncId(E,L,W);const{actions:A}=E;null!=L&&(null===(_e=A[A.length-1])||void 0===_e?void 0:_e.id)!==L&&(j.cancelAnimationFrame(L),E._scheduled=void 0)}})},4552:(We,z,m)=>{m.d(z,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},7599:(We,z,m)=>{m.d(z,{z:()=>e});const e={setTimeout(T,j,...Y){const{delegate:x}=e;return x?.setTimeout?x.setTimeout(T,j,...Y):setTimeout(T,j,...Y)},clearTimeout(T){const{delegate:j}=e;return(j?.clearTimeout||clearTimeout)(T)},delegate:void 0}},4971:(We,z,m)=>{m.d(z,{h:()=>T});const T=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(We,z,m)=>{m.d(z,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(We,z,m)=>{m.d(z,{K:()=>T});const T=(0,m(2306).d)(j=>function(){j(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(We,z,m)=>{m.d(z,{_6:()=>V,jO:()=>Y,yG:()=>x});var e=m(4674),T=m(671);function j(b){return b[b.length-1]}function Y(b){return(0,e.m)(j(b))?b.pop():void 0}function x(b){return(0,T.K)(j(b))?b.pop():void 0}function V(b,B){return"number"==typeof j(b)?b.pop():B}},7453:(We,z,m)=>{m.d(z,{D:()=>x});const{isArray:e}=Array,{getPrototypeOf:T,prototype:j,keys:Y}=Object;function x(b){if(1===b.length){const B=b[0];if(e(B))return{args:B,keys:null};if(function V(b){return b&&"object"==typeof b&&T(b)===j}(B)){const k=Y(B);return{args:k.map(E=>B[E]),keys:k}}}return{args:b,keys:null}}},9039:(We,z,m)=>{function e(T,j){if(T){const Y=T.indexOf(j);0<=Y&&T.splice(Y,1)}}m.d(z,{P:()=>e})},2306:(We,z,m)=>{function e(T){const Y=T(x=>{Error.call(x),x.stack=(new Error).stack});return Y.prototype=Object.create(Error.prototype),Y.prototype.constructor=Y,Y}m.d(z,{d:()=>e})},2714:(We,z,m)=>{function e(T,j){return T.reduce((Y,x,V)=>(Y[x]=j[V],Y),{})}m.d(z,{n:()=>e})},1441:(We,z,m)=>{m.d(z,{O:()=>Y,x:()=>j});var e=m(2653);let T=null;function j(x){if(e.config.useDeprecatedSynchronousErrorHandling){const V=!T;if(V&&(T={errorThrown:!1,error:null}),x(),V){const{errorThrown:b,error:B}=T;if(T=null,b)throw B}}else x()}function Y(x){e.config.useDeprecatedSynchronousErrorHandling&&T&&(T.errorThrown=!0,T.error=x)}},7103:(We,z,m)=>{function e(T,j,Y,x=0,V=!1){const b=j.schedule(function(){Y(),V?T.add(this.schedule(null,x)):this.unsubscribe()},x);if(T.add(b),!V)return b}m.d(z,{f:()=>e})},2737:(We,z,m)=>{function e(T){return T}m.d(z,{y:()=>e})},4266:(We,z,m)=>{m.d(z,{z:()=>e});const e=T=>T&&"number"==typeof T.length&&"function"!=typeof T},5726:(We,z,m)=>{m.d(z,{D:()=>T});var e=m(4674);function T(j){return Symbol.asyncIterator&&(0,e.m)(j?.[Symbol.asyncIterator])}},4674:(We,z,m)=>{function e(T){return"function"==typeof T}m.d(z,{m:()=>e})},8382:(We,z,m)=>{m.d(z,{c:()=>j});var e=m(4850),T=m(4674);function j(Y){return(0,T.m)(Y[e.L])}},3664:(We,z,m)=>{m.d(z,{T:()=>j});var e=m(4971),T=m(4674);function j(Y){return(0,T.m)(Y?.[e.h])}},2664:(We,z,m)=>{m.d(z,{b:()=>j});var e=m(5592),T=m(4674);function j(Y){return!!Y&&(Y instanceof e.y||(0,T.m)(Y.lift)&&(0,T.m)(Y.subscribe))}},4026:(We,z,m)=>{m.d(z,{t:()=>T});var e=m(4674);function T(j){return(0,e.m)(j?.then)}},541:(We,z,m)=>{m.d(z,{L:()=>Y,Q:()=>j});var e=m(655),T=m(4674);function j(x){return(0,e.FC)(this,arguments,function*(){const b=x.getReader();try{for(;;){const{value:B,done:k}=yield(0,e.qq)(b.read());if(k)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(B)}}finally{b.releaseLock()}})}function Y(x){return(0,T.m)(x?.getReader)}},671:(We,z,m)=>{m.d(z,{K:()=>T});var e=m(4674);function T(j){return j&&(0,e.m)(j.schedule)}},9360:(We,z,m)=>{m.d(z,{A:()=>T,e:()=>j});var e=m(4674);function T(Y){return(0,e.m)(Y?.lift)}function j(Y){return x=>{if(T(x))return x.lift(function(V){try{return Y(V,this)}catch(b){this.error(b)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(We,z,m)=>{m.d(z,{Z:()=>Y});var e=m(7398);const{isArray:T}=Array;function Y(x){return(0,e.U)(V=>function j(x,V){return T(V)?x(...V):x(V)}(x,V))}},2420:(We,z,m)=>{function e(){}m.d(z,{Z:()=>e})},8407:(We,z,m)=>{m.d(z,{U:()=>j,z:()=>T});var e=m(2737);function T(...Y){return j(Y)}function j(Y){return 0===Y.length?e.y:1===Y.length?Y[0]:function(V){return Y.reduce((b,B)=>B(b),V)}}},3894:(We,z,m)=>{m.d(z,{h:()=>j});var e=m(2653),T=m(7599);function j(Y){T.z.setTimeout(()=>{const{onUnhandledError:x}=e.config;if(!x)throw Y;x(Y)})}},9853:(We,z,m)=>{function e(T){return new TypeError(`You provided ${null!==T&&"object"==typeof T?"an invalid object":`'${T}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}m.d(z,{z:()=>e})},8332:()=>{!function(F){const ee=F.performance;function ge(K){ee&&ee.mark&&ee.mark(K)}function q(K,M){ee&&ee.measure&&ee.measure(K,M)}ge("Zone");const Te=F.__Zone_symbol_prefix||"__zone_symbol__";function Ne(K){return Te+K}const tt=!0===F[Ne("forceDuplicateZoneCheck")];if(F.Zone){if(tt||"function"!=typeof F.Zone.__symbol__)throw new Error("Zone already loaded.");return F.Zone}let qe=(()=>{class K{static{this.__symbol__=Ne}static assertZonePatched(){if(F.Promise!==vn.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let d=K.current;for(;d.parent;)d=d.parent;return d}static get current(){return Nt.zone}static get currentTask(){return rn}static __load_patch(d,w,ae=!1){if(vn.hasOwnProperty(d)){if(!ae&&tt)throw Error("Already loaded patch: "+d)}else if(!F["__Zone_disable_"+d]){const Pe="Zone:"+d;ge(Pe),vn[d]=w(F,K,Lt),q(Pe,Pe)}}get parent(){return this._parent}get name(){return this._name}constructor(d,w){this._parent=d,this._name=w?w.name||"unnamed":"<root>",this._properties=w&&w.properties||{},this._zoneDelegate=new gt(this,this._parent&&this._parent._zoneDelegate,w)}get(d){const w=this.getZoneWith(d);if(w)return w._properties[d]}getZoneWith(d){let w=this;for(;w;){if(w._properties.hasOwnProperty(d))return w;w=w._parent}return null}fork(d){if(!d)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,d)}wrap(d,w){if("function"!=typeof d)throw new Error("Expecting function got: "+d);const ae=this._zoneDelegate.intercept(this,d,w),Pe=this;return function(){return Pe.runGuarded(ae,this,arguments,w)}}run(d,w,ae,Pe){Nt={parent:Nt,zone:this};try{return this._zoneDelegate.invoke(this,d,w,ae,Pe)}finally{Nt=Nt.parent}}runGuarded(d,w=null,ae,Pe){Nt={parent:Nt,zone:this};try{try{return this._zoneDelegate.invoke(this,d,w,ae,Pe)}catch(et){if(this._zoneDelegate.handleError(this,et))throw et}}finally{Nt=Nt.parent}}runTask(d,w,ae){if(d.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(d.zone||Ke).name+"; Execution: "+this.name+")");if(d.state===Ie&&(d.type===Zt||d.type===Ue))return;const Pe=d.state!=Ze;Pe&&d._transitionTo(Ze,_t),d.runCount++;const et=rn;rn=d,Nt={parent:Nt,zone:this};try{d.type==Ue&&d.data&&!d.data.isPeriodic&&(d.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,d,w,ae)}catch(Me){if(this._zoneDelegate.handleError(this,Me))throw Me}}finally{d.state!==Ie&&d.state!==Xe&&(d.type==Zt||d.data&&d.data.isPeriodic?Pe&&d._transitionTo(_t,Ze):(d.runCount=0,this._updateTaskCount(d,-1),Pe&&d._transitionTo(Ie,Ze,Ie))),Nt=Nt.parent,rn=et}}scheduleTask(d){if(d.zone&&d.zone!==this){let ae=this;for(;ae;){if(ae===d.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${d.zone.name}`);ae=ae.parent}}d._transitionTo(yt,Ie);const w=[];d._zoneDelegates=w,d._zone=this;try{d=this._zoneDelegate.scheduleTask(this,d)}catch(ae){throw d._transitionTo(Xe,yt,Ie),this._zoneDelegate.handleError(this,ae),ae}return d._zoneDelegates===w&&this._updateTaskCount(d,1),d.state==yt&&d._transitionTo(_t,yt),d}scheduleMicroTask(d,w,ae,Pe){return this.scheduleTask(new rt(Dt,d,w,ae,Pe,void 0))}scheduleMacroTask(d,w,ae,Pe,et){return this.scheduleTask(new rt(Ue,d,w,ae,Pe,et))}scheduleEventTask(d,w,ae,Pe,et){return this.scheduleTask(new rt(Zt,d,w,ae,Pe,et))}cancelTask(d){if(d.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(d.zone||Ke).name+"; Execution: "+this.name+")");if(d.state===_t||d.state===Ze){d._transitionTo(ct,_t,Ze);try{this._zoneDelegate.cancelTask(this,d)}catch(w){throw d._transitionTo(Xe,ct),this._zoneDelegate.handleError(this,w),w}return this._updateTaskCount(d,-1),d._transitionTo(Ie,ct),d.runCount=0,d}}_updateTaskCount(d,w){const ae=d._zoneDelegates;-1==w&&(d._zoneDelegates=null);for(let Pe=0;Pe<ae.length;Pe++)ae[Pe]._updateTaskCount(d.type,w)}}return K})();const ut={name:"",onHasTask:(K,M,d,w)=>K.hasTask(d,w),onScheduleTask:(K,M,d,w)=>K.scheduleTask(d,w),onInvokeTask:(K,M,d,w,ae,Pe)=>K.invokeTask(d,w,ae,Pe),onCancelTask:(K,M,d,w)=>K.cancelTask(d,w)};class gt{constructor(M,d,w){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=M,this._parentDelegate=d,this._forkZS=w&&(w&&w.onFork?w:d._forkZS),this._forkDlgt=w&&(w.onFork?d:d._forkDlgt),this._forkCurrZone=w&&(w.onFork?this.zone:d._forkCurrZone),this._interceptZS=w&&(w.onIntercept?w:d._interceptZS),this._interceptDlgt=w&&(w.onIntercept?d:d._interceptDlgt),this._interceptCurrZone=w&&(w.onIntercept?this.zone:d._interceptCurrZone),this._invokeZS=w&&(w.onInvoke?w:d._invokeZS),this._invokeDlgt=w&&(w.onInvoke?d:d._invokeDlgt),this._invokeCurrZone=w&&(w.onInvoke?this.zone:d._invokeCurrZone),this._handleErrorZS=w&&(w.onHandleError?w:d._handleErrorZS),this._handleErrorDlgt=w&&(w.onHandleError?d:d._handleErrorDlgt),this._handleErrorCurrZone=w&&(w.onHandleError?this.zone:d._handleErrorCurrZone),this._scheduleTaskZS=w&&(w.onScheduleTask?w:d._scheduleTaskZS),this._scheduleTaskDlgt=w&&(w.onScheduleTask?d:d._scheduleTaskDlgt),this._scheduleTaskCurrZone=w&&(w.onScheduleTask?this.zone:d._scheduleTaskCurrZone),this._invokeTaskZS=w&&(w.onInvokeTask?w:d._invokeTaskZS),this._invokeTaskDlgt=w&&(w.onInvokeTask?d:d._invokeTaskDlgt),this._invokeTaskCurrZone=w&&(w.onInvokeTask?this.zone:d._invokeTaskCurrZone),this._cancelTaskZS=w&&(w.onCancelTask?w:d._cancelTaskZS),this._cancelTaskDlgt=w&&(w.onCancelTask?d:d._cancelTaskDlgt),this._cancelTaskCurrZone=w&&(w.onCancelTask?this.zone:d._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const ae=w&&w.onHasTask;(ae||d&&d._hasTaskZS)&&(this._hasTaskZS=ae?w:ut,this._hasTaskDlgt=d,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=M,w.onScheduleTask||(this._scheduleTaskZS=ut,this._scheduleTaskDlgt=d,this._scheduleTaskCurrZone=this.zone),w.onInvokeTask||(this._invokeTaskZS=ut,this._invokeTaskDlgt=d,this._invokeTaskCurrZone=this.zone),w.onCancelTask||(this._cancelTaskZS=ut,this._cancelTaskDlgt=d,this._cancelTaskCurrZone=this.zone))}fork(M,d){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,M,d):new qe(M,d)}intercept(M,d,w){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,M,d,w):d}invoke(M,d,w,ae,Pe){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,M,d,w,ae,Pe):d.apply(w,ae)}handleError(M,d){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,M,d)}scheduleTask(M,d){let w=d;if(this._scheduleTaskZS)this._hasTaskZS&&w._zoneDelegates.push(this._hasTaskDlgtOwner),w=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,M,d),w||(w=d);else if(d.scheduleFn)d.scheduleFn(d);else{if(d.type!=Dt)throw new Error("Task is missing scheduleFn.");ke(d)}return w}invokeTask(M,d,w,ae){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,M,d,w,ae):d.callback.apply(w,ae)}cancelTask(M,d){let w;if(this._cancelTaskZS)w=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,M,d);else{if(!d.cancelFn)throw Error("Task is not cancelable");w=d.cancelFn(d)}return w}hasTask(M,d){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,M,d)}catch(w){this.handleError(M,w)}}_updateTaskCount(M,d){const w=this._taskCounts,ae=w[M],Pe=w[M]=ae+d;if(Pe<0)throw new Error("More tasks executed then were scheduled.");0!=ae&&0!=Pe||this.hasTask(this.zone,{microTask:w.microTask>0,macroTask:w.macroTask>0,eventTask:w.eventTask>0,change:M})}}class rt{constructor(M,d,w,ae,Pe,et){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=M,this.source=d,this.data=ae,this.scheduleFn=Pe,this.cancelFn=et,!w)throw new Error("callback is not defined");this.callback=w;const Me=this;this.invoke=M===Zt&&ae&&ae.useG?rt.invokeTask:function(){return rt.invokeTask.call(F,Me,this,arguments)}}static invokeTask(M,d,w){M||(M=this),Qt++;try{return M.runCount++,M.zone.runTask(M,d,w)}finally{1==Qt&&De(),Qt--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Ie,yt)}_transitionTo(M,d,w){if(this._state!==d&&this._state!==w)throw new Error(`${this.type} '${this.source}': can not transition to '${M}', expecting state '${d}'${w?" or '"+w+"'":""}, was '${this._state}'.`);this._state=M,M==Ie&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const y=Ne("setTimeout"),U=Ne("Promise"),J=Ne("then");let oe,le=[],Ae=!1;function Be(K){if(oe||F[U]&&(oe=F[U].resolve(0)),oe){let M=oe[J];M||(M=oe.then),M.call(oe,K)}else F[y](K,0)}function ke(K){0===Qt&&0===le.length&&Be(De),K&&le.push(K)}function De(){if(!Ae){for(Ae=!0;le.length;){const K=le;le=[];for(let M=0;M<K.length;M++){const d=K[M];try{d.zone.runTask(d,null,null)}catch(w){Lt.onUnhandledError(w)}}}Lt.microtaskDrainDone(),Ae=!1}}const Ke={name:"NO ZONE"},Ie="notScheduled",yt="scheduling",_t="scheduled",Ze="running",ct="canceling",Xe="unknown",Dt="microTask",Ue="macroTask",Zt="eventTask",vn={},Lt={symbol:Ne,currentZoneFrame:()=>Nt,onUnhandledError:Wt,microtaskDrainDone:Wt,scheduleMicroTask:ke,showUncaughtError:()=>!qe[Ne("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:Wt,patchMethod:()=>Wt,bindArguments:()=>[],patchThen:()=>Wt,patchMacroTask:()=>Wt,patchEventPrototype:()=>Wt,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>Wt,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>Wt,wrapWithCurrentZone:()=>Wt,filterProperties:()=>[],attachOriginToPatched:()=>Wt,_redefineProperty:()=>Wt,patchCallbacks:()=>Wt,nativeScheduleMicroTask:Be};let Nt={parent:null,zone:new qe(null,null)},rn=null,Qt=0;function Wt(){}q("Zone","Zone"),F.Zone=qe}(typeof window<"u"&&window||typeof self<"u"&&self||global);const We=Object.getOwnPropertyDescriptor,z=Object.defineProperty,m=Object.getPrototypeOf,e=Object.create,T=Array.prototype.slice,j="addEventListener",Y="removeEventListener",x=Zone.__symbol__(j),V=Zone.__symbol__(Y),b="true",B="false",k=Zone.__symbol__("");function E(F,ee){return Zone.current.wrap(F,ee)}function L(F,ee,ge,q,Te){return Zone.current.scheduleMacroTask(F,ee,ge,q,Te)}const W=Zone.__symbol__,_e=typeof window<"u",A=_e?window:void 0,ce=_e&&A||"object"==typeof self&&self||global,me="removeAttribute";function pe(F,ee){for(let ge=F.length-1;ge>=0;ge--)"function"==typeof F[ge]&&(F[ge]=E(F[ge],ee+"_"+ge));return F}function Ge(F){return!F||!1!==F.writable&&!("function"==typeof F.get&&typeof F.set>"u")}const we=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ue=!("nw"in ce)&&typeof ce.process<"u"&&"[object process]"==={}.toString.call(ce.process),G=!ue&&!we&&!(!_e||!A.HTMLElement),Le=typeof ce.process<"u"&&"[object process]"==={}.toString.call(ce.process)&&!we&&!(!_e||!A.HTMLElement),Se={},Ce=function(F){if(!(F=F||ce.event))return;let ee=Se[F.type];ee||(ee=Se[F.type]=W("ON_PROPERTY"+F.type));const ge=this||F.target||ce,q=ge[ee];let Te;return G&&ge===A&&"error"===F.type?(Te=q&&q.call(this,F.message,F.filename,F.lineno,F.colno,F.error),!0===Te&&F.preventDefault()):(Te=q&&q.apply(this,arguments),null!=Te&&!Te&&F.preventDefault()),Te};function Re(F,ee,ge){let q=We(F,ee);if(!q&&ge&&We(ge,ee)&&(q={enumerable:!0,configurable:!0}),!q||!q.configurable)return;const Te=W("on"+ee+"patched");if(F.hasOwnProperty(Te)&&F[Te])return;delete q.writable,delete q.value;const Ne=q.get,tt=q.set,qe=ee.slice(2);let ut=Se[qe];ut||(ut=Se[qe]=W("ON_PROPERTY"+qe)),q.set=function(gt){let rt=this;!rt&&F===ce&&(rt=ce),rt&&("function"==typeof rt[ut]&&rt.removeEventListener(qe,Ce),tt&&tt.call(rt,null),rt[ut]=gt,"function"==typeof gt&&rt.addEventListener(qe,Ce,!1))},q.get=function(){let gt=this;if(!gt&&F===ce&&(gt=ce),!gt)return null;const rt=gt[ut];if(rt)return rt;if(Ne){let y=Ne.call(this);if(y)return q.set.call(this,y),"function"==typeof gt[me]&&gt.removeAttribute(ee),y}return null},z(F,ee,q),F[Te]=!0}function Ye(F,ee,ge){if(ee)for(let q=0;q<ee.length;q++)Re(F,"on"+ee[q],ge);else{const q=[];for(const Te in F)"on"==Te.slice(0,2)&&q.push(Te);for(let Te=0;Te<q.length;Te++)Re(F,q[Te],ge)}}const Z=W("originalInstance");function ie(F){const ee=ce[F];if(!ee)return;ce[W(F)]=ee,ce[F]=function(){const Te=pe(arguments,F);switch(Te.length){case 0:this[Z]=new ee;break;case 1:this[Z]=new ee(Te[0]);break;case 2:this[Z]=new ee(Te[0],Te[1]);break;case 3:this[Z]=new ee(Te[0],Te[1],Te[2]);break;case 4:this[Z]=new ee(Te[0],Te[1],Te[2],Te[3]);break;default:throw new Error("Arg list too long.")}},He(ce[F],ee);const ge=new ee(function(){});let q;for(q in ge)"XMLHttpRequest"===F&&"responseBlob"===q||function(Te){"function"==typeof ge[Te]?ce[F].prototype[Te]=function(){return this[Z][Te].apply(this[Z],arguments)}:z(ce[F].prototype,Te,{set:function(Ne){"function"==typeof Ne?(this[Z][Te]=E(Ne,F+"."+Te),He(this[Z][Te],Ne)):this[Z][Te]=Ne},get:function(){return this[Z][Te]}})}(q);for(q in ee)"prototype"!==q&&ee.hasOwnProperty(q)&&(ce[F][q]=ee[q])}function ye(F,ee,ge){let q=F;for(;q&&!q.hasOwnProperty(ee);)q=m(q);!q&&F[ee]&&(q=F);const Te=W(ee);let Ne=null;if(q&&(!(Ne=q[Te])||!q.hasOwnProperty(Te))&&(Ne=q[Te]=q[ee],Ge(q&&We(q,ee)))){const qe=ge(Ne,Te,ee);q[ee]=function(){return qe(this,arguments)},He(q[ee],Ne)}return Ne}function Oe(F,ee,ge){let q=null;function Te(Ne){const tt=Ne.data;return tt.args[tt.cbIdx]=function(){Ne.invoke.apply(this,arguments)},q.apply(tt.target,tt.args),Ne}q=ye(F,ee,Ne=>function(tt,qe){const ut=ge(tt,qe);return ut.cbIdx>=0&&"function"==typeof qe[ut.cbIdx]?L(ut.name,qe[ut.cbIdx],ut,Te):Ne.apply(tt,qe)})}function He(F,ee){F[W("OriginalDelegate")]=ee}let H=!1,Je=!1;function N(){if(H)return Je;H=!0;try{const F=A.navigator.userAgent;(-1!==F.indexOf("MSIE ")||-1!==F.indexOf("Trident/")||-1!==F.indexOf("Edge/"))&&(Je=!0)}catch{}return Je}Zone.__load_patch("ZoneAwarePromise",(F,ee,ge)=>{const q=Object.getOwnPropertyDescriptor,Te=Object.defineProperty,tt=ge.symbol,qe=[],ut=!0===F[tt("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],gt=tt("Promise"),rt=tt("then"),y="__creationTrace__";ge.onUnhandledError=Me=>{if(ge.showUncaughtError()){const Ve=Me&&Me.rejection;Ve?console.error("Unhandled Promise rejection:",Ve instanceof Error?Ve.message:Ve,"; Zone:",Me.zone.name,"; Task:",Me.task&&Me.task.source,"; Value:",Ve,Ve instanceof Error?Ve.stack:void 0):console.error(Me)}},ge.microtaskDrainDone=()=>{for(;qe.length;){const Me=qe.shift();try{Me.zone.runGuarded(()=>{throw Me.throwOriginal?Me.rejection:Me})}catch(Ve){J(Ve)}}};const U=tt("unhandledPromiseRejectionHandler");function J(Me){ge.onUnhandledError(Me);try{const Ve=ee[U];"function"==typeof Ve&&Ve.call(this,Me)}catch{}}function le(Me){return Me&&Me.then}function Ae(Me){return Me}function oe(Me){return d.reject(Me)}const Be=tt("state"),ke=tt("value"),De=tt("finally"),Ke=tt("parentPromiseValue"),Ie=tt("parentPromiseState"),yt="Promise.then",_t=null,Ze=!0,ct=!1,Xe=0;function Dt(Me,Ve){return de=>{try{Lt(Me,Ve,de)}catch($e){Lt(Me,!1,$e)}}}const Ue=function(){let Me=!1;return function(de){return function(){Me||(Me=!0,de.apply(null,arguments))}}},Zt="Promise resolved with itself",vn=tt("currentTaskTrace");function Lt(Me,Ve,de){const $e=Ue();if(Me===de)throw new TypeError(Zt);if(Me[Be]===_t){let nt=null;try{("object"==typeof de||"function"==typeof de)&&(nt=de&&de.then)}catch(vt){return $e(()=>{Lt(Me,!1,vt)})(),Me}if(Ve!==ct&&de instanceof d&&de.hasOwnProperty(Be)&&de.hasOwnProperty(ke)&&de[Be]!==_t)rn(de),Lt(Me,de[Be],de[ke]);else if(Ve!==ct&&"function"==typeof nt)try{nt.call(de,$e(Dt(Me,Ve)),$e(Dt(Me,!1)))}catch(vt){$e(()=>{Lt(Me,!1,vt)})()}else{Me[Be]=Ve;const vt=Me[ke];if(Me[ke]=de,Me[De]===De&&Ve===Ze&&(Me[Be]=Me[Ie],Me[ke]=Me[Ke]),Ve===ct&&de instanceof Error){const it=ee.currentTask&&ee.currentTask.data&&ee.currentTask.data[y];it&&Te(de,vn,{configurable:!0,enumerable:!1,writable:!0,value:it})}for(let it=0;it<vt.length;)Qt(Me,vt[it++],vt[it++],vt[it++],vt[it++]);if(0==vt.length&&Ve==ct){Me[Be]=Xe;let it=de;try{throw new Error("Uncaught (in promise): "+function Ne(Me){return Me&&Me.toString===Object.prototype.toString?(Me.constructor&&Me.constructor.name||"")+": "+JSON.stringify(Me):Me?Me.toString():Object.prototype.toString.call(Me)}(de)+(de&&de.stack?"\n"+de.stack:""))}catch(bt){it=bt}ut&&(it.throwOriginal=!0),it.rejection=de,it.promise=Me,it.zone=ee.current,it.task=ee.currentTask,qe.push(it),ge.scheduleMicroTask()}}}return Me}const Nt=tt("rejectionHandledHandler");function rn(Me){if(Me[Be]===Xe){try{const Ve=ee[Nt];Ve&&"function"==typeof Ve&&Ve.call(this,{rejection:Me[ke],promise:Me})}catch{}Me[Be]=ct;for(let Ve=0;Ve<qe.length;Ve++)Me===qe[Ve].promise&&qe.splice(Ve,1)}}function Qt(Me,Ve,de,$e,nt){rn(Me);const vt=Me[Be],it=vt?"function"==typeof $e?$e:Ae:"function"==typeof nt?nt:oe;Ve.scheduleMicroTask(yt,()=>{try{const bt=Me[ke],Tt=!!de&&De===de[De];Tt&&(de[Ke]=bt,de[Ie]=vt);const Et=Ve.run(it,void 0,Tt&&it!==oe&&it!==Ae?[]:[bt]);Lt(de,!0,Et)}catch(bt){Lt(de,!1,bt)}},de)}const K=function(){},M=F.AggregateError;class d{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(Ve){return Lt(new this(null),Ze,Ve)}static reject(Ve){return Lt(new this(null),ct,Ve)}static any(Ve){if(!Ve||"function"!=typeof Ve[Symbol.iterator])return Promise.reject(new M([],"All promises were rejected"));const de=[];let $e=0;try{for(let it of Ve)$e++,de.push(d.resolve(it))}catch{return Promise.reject(new M([],"All promises were rejected"))}if(0===$e)return Promise.reject(new M([],"All promises were rejected"));let nt=!1;const vt=[];return new d((it,bt)=>{for(let Tt=0;Tt<de.length;Tt++)de[Tt].then(Et=>{nt||(nt=!0,it(Et))},Et=>{vt.push(Et),$e--,0===$e&&(nt=!0,bt(new M(vt,"All promises were rejected")))})})}static race(Ve){let de,$e,nt=new this((bt,Tt)=>{de=bt,$e=Tt});function vt(bt){de(bt)}function it(bt){$e(bt)}for(let bt of Ve)le(bt)||(bt=this.resolve(bt)),bt.then(vt,it);return nt}static all(Ve){return d.allWithCallback(Ve)}static allSettled(Ve){return(this&&this.prototype instanceof d?this:d).allWithCallback(Ve,{thenCallback:$e=>({status:"fulfilled",value:$e}),errorCallback:$e=>({status:"rejected",reason:$e})})}static allWithCallback(Ve,de){let $e,nt,vt=new this((Et,Bt)=>{$e=Et,nt=Bt}),it=2,bt=0;const Tt=[];for(let Et of Ve){le(Et)||(Et=this.resolve(Et));const Bt=bt;try{Et.then(jt=>{Tt[Bt]=de?de.thenCallback(jt):jt,it--,0===it&&$e(Tt)},jt=>{de?(Tt[Bt]=de.errorCallback(jt),it--,0===it&&$e(Tt)):nt(jt)})}catch(jt){nt(jt)}it++,bt++}return it-=2,0===it&&$e(Tt),vt}constructor(Ve){const de=this;if(!(de instanceof d))throw new Error("Must be an instanceof Promise.");de[Be]=_t,de[ke]=[];try{const $e=Ue();Ve&&Ve($e(Dt(de,Ze)),$e(Dt(de,ct)))}catch($e){Lt(de,!1,$e)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return d}then(Ve,de){let $e=this.constructor?.[Symbol.species];(!$e||"function"!=typeof $e)&&($e=this.constructor||d);const nt=new $e(K),vt=ee.current;return this[Be]==_t?this[ke].push(vt,nt,Ve,de):Qt(this,vt,nt,Ve,de),nt}catch(Ve){return this.then(null,Ve)}finally(Ve){let de=this.constructor?.[Symbol.species];(!de||"function"!=typeof de)&&(de=d);const $e=new de(K);$e[De]=De;const nt=ee.current;return this[Be]==_t?this[ke].push(nt,$e,Ve,Ve):Qt(this,nt,$e,Ve,Ve),$e}}d.resolve=d.resolve,d.reject=d.reject,d.race=d.race,d.all=d.all;const w=F[gt]=F.Promise;F.Promise=d;const ae=tt("thenPatched");function Pe(Me){const Ve=Me.prototype,de=q(Ve,"then");if(de&&(!1===de.writable||!de.configurable))return;const $e=Ve.then;Ve[rt]=$e,Me.prototype.then=function(nt,vt){return new d((bt,Tt)=>{$e.call(this,bt,Tt)}).then(nt,vt)},Me[ae]=!0}return ge.patchThen=Pe,w&&(Pe(w),ye(F,"fetch",Me=>function et(Me){return function(Ve,de){let $e=Me.apply(Ve,de);if($e instanceof d)return $e;let nt=$e.constructor;return nt[ae]||Pe(nt),$e}}(Me))),Promise[ee.__symbol__("uncaughtPromiseErrors")]=qe,d}),Zone.__load_patch("toString",F=>{const ee=Function.prototype.toString,ge=W("OriginalDelegate"),q=W("Promise"),Te=W("Error"),Ne=function(){if("function"==typeof this){const gt=this[ge];if(gt)return"function"==typeof gt?ee.call(gt):Object.prototype.toString.call(gt);if(this===Promise){const rt=F[q];if(rt)return ee.call(rt)}if(this===Error){const rt=F[Te];if(rt)return ee.call(rt)}}return ee.call(this)};Ne[ge]=ee,Function.prototype.toString=Ne;const tt=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":tt.call(this)}});let R=!1;if(typeof window<"u")try{const F=Object.defineProperty({},"passive",{get:function(){R=!0}});window.addEventListener("test",F,F),window.removeEventListener("test",F,F)}catch{R=!1}const $={useG:!0},je={},ot={},pt=new RegExp("^"+k+"(\\w+)(true|false)$"),kt=W("propagationStopped");function xt(F,ee){const ge=(ee?ee(F):F)+B,q=(ee?ee(F):F)+b,Te=k+ge,Ne=k+q;je[F]={},je[F][B]=Te,je[F][b]=Ne}function Kt(F,ee,ge,q){const Te=q&&q.add||j,Ne=q&&q.rm||Y,tt=q&&q.listeners||"eventListeners",qe=q&&q.rmAll||"removeAllListeners",ut=W(Te),gt="."+Te+":",rt="prependListener",y="."+rt+":",U=function(ke,De,Ke){if(ke.isRemoved)return;const Ie=ke.callback;let yt;"object"==typeof Ie&&Ie.handleEvent&&(ke.callback=Ze=>Ie.handleEvent(Ze),ke.originalDelegate=Ie);try{ke.invoke(ke,De,[Ke])}catch(Ze){yt=Ze}const _t=ke.options;return _t&&"object"==typeof _t&&_t.once&&De[Ne].call(De,Ke.type,ke.originalDelegate?ke.originalDelegate:ke.callback,_t),yt};function J(ke,De,Ke){if(!(De=De||F.event))return;const Ie=ke||De.target||F,yt=Ie[je[De.type][Ke?b:B]];if(yt){const _t=[];if(1===yt.length){const Ze=U(yt[0],Ie,De);Ze&&_t.push(Ze)}else{const Ze=yt.slice();for(let ct=0;ct<Ze.length&&(!De||!0!==De[kt]);ct++){const Xe=U(Ze[ct],Ie,De);Xe&&_t.push(Xe)}}if(1===_t.length)throw _t[0];for(let Ze=0;Ze<_t.length;Ze++){const ct=_t[Ze];ee.nativeScheduleMicroTask(()=>{throw ct})}}}const le=function(ke){return J(this,ke,!1)},Ae=function(ke){return J(this,ke,!0)};function oe(ke,De){if(!ke)return!1;let Ke=!0;De&&void 0!==De.useG&&(Ke=De.useG);const Ie=De&&De.vh;let yt=!0;De&&void 0!==De.chkDup&&(yt=De.chkDup);let _t=!1;De&&void 0!==De.rt&&(_t=De.rt);let Ze=ke;for(;Ze&&!Ze.hasOwnProperty(Te);)Ze=m(Ze);if(!Ze&&ke[Te]&&(Ze=ke),!Ze||Ze[ut])return!1;const ct=De&&De.eventNameToString,Xe={},Dt=Ze[ut]=Ze[Te],Ue=Ze[W(Ne)]=Ze[Ne],Zt=Ze[W(tt)]=Ze[tt],vn=Ze[W(qe)]=Ze[qe];let Lt;De&&De.prepend&&(Lt=Ze[W(De.prepend)]=Ze[De.prepend]);const d=Ke?function(de){if(!Xe.isExisting)return Dt.call(Xe.target,Xe.eventName,Xe.capture?Ae:le,Xe.options)}:function(de){return Dt.call(Xe.target,Xe.eventName,de.invoke,Xe.options)},w=Ke?function(de){if(!de.isRemoved){const $e=je[de.eventName];let nt;$e&&(nt=$e[de.capture?b:B]);const vt=nt&&de.target[nt];if(vt)for(let it=0;it<vt.length;it++)if(vt[it]===de){vt.splice(it,1),de.isRemoved=!0,0===vt.length&&(de.allRemoved=!0,de.target[nt]=null);break}}if(de.allRemoved)return Ue.call(de.target,de.eventName,de.capture?Ae:le,de.options)}:function(de){return Ue.call(de.target,de.eventName,de.invoke,de.options)},Pe=De&&De.diff?De.diff:function(de,$e){const nt=typeof $e;return"function"===nt&&de.callback===$e||"object"===nt&&de.originalDelegate===$e},et=Zone[W("UNPATCHED_EVENTS")],Me=F[W("PASSIVE_EVENTS")],Ve=function(de,$e,nt,vt,it=!1,bt=!1){return function(){const Tt=this||F;let Et=arguments[0];De&&De.transferEventName&&(Et=De.transferEventName(Et));let Bt=arguments[1];if(!Bt)return de.apply(this,arguments);if(ue&&"uncaughtException"===Et)return de.apply(this,arguments);let jt=!1;if("function"!=typeof Bt){if(!Bt.handleEvent)return de.apply(this,arguments);jt=!0}if(Ie&&!Ie(de,Bt,Tt,arguments))return;const yn=R&&!!Me&&-1!==Me.indexOf(Et),bn=function Nt(de,$e){return!R&&"object"==typeof de&&de?!!de.capture:R&&$e?"boolean"==typeof de?{capture:de,passive:!0}:de?"object"==typeof de&&!1!==de.passive?{...de,passive:!0}:de:{passive:!0}:de}(arguments[2],yn);if(et)for(let $n=0;$n<et.length;$n++)if(Et===et[$n])return yn?de.call(Tt,Et,Bt,bn):de.apply(this,arguments);const An=!!bn&&("boolean"==typeof bn||bn.capture),In=!(!bn||"object"!=typeof bn)&&bn.once,ui=Zone.current;let bi=je[Et];bi||(xt(Et,ct),bi=je[Et]);const wi=bi[An?b:B];let si,Jn=Tt[wi],Di=!1;if(Jn){if(Di=!0,yt)for(let $n=0;$n<Jn.length;$n++)if(Pe(Jn[$n],Bt))return}else Jn=Tt[wi]=[];const Ti=Tt.constructor.name,Ni=ot[Ti];Ni&&(si=Ni[Et]),si||(si=Ti+$e+(ct?ct(Et):Et)),Xe.options=bn,In&&(Xe.options.once=!1),Xe.target=Tt,Xe.capture=An,Xe.eventName=Et,Xe.isExisting=Di;const Qn=Ke?$:void 0;Qn&&(Qn.taskData=Xe);const Pn=ui.scheduleEventTask(si,Bt,Qn,nt,vt);return Xe.target=null,Qn&&(Qn.taskData=null),In&&(bn.once=!0),!R&&"boolean"==typeof Pn.options||(Pn.options=bn),Pn.target=Tt,Pn.capture=An,Pn.eventName=Et,jt&&(Pn.originalDelegate=Bt),bt?Jn.unshift(Pn):Jn.push(Pn),it?Tt:void 0}};return Ze[Te]=Ve(Dt,gt,d,w,_t),Lt&&(Ze[rt]=Ve(Lt,y,function(de){return Lt.call(Xe.target,Xe.eventName,de.invoke,Xe.options)},w,_t,!0)),Ze[Ne]=function(){const de=this||F;let $e=arguments[0];De&&De.transferEventName&&($e=De.transferEventName($e));const nt=arguments[2],vt=!!nt&&("boolean"==typeof nt||nt.capture),it=arguments[1];if(!it)return Ue.apply(this,arguments);if(Ie&&!Ie(Ue,it,de,arguments))return;const bt=je[$e];let Tt;bt&&(Tt=bt[vt?b:B]);const Et=Tt&&de[Tt];if(Et)for(let Bt=0;Bt<Et.length;Bt++){const jt=Et[Bt];if(Pe(jt,it))return Et.splice(Bt,1),jt.isRemoved=!0,0===Et.length&&(jt.allRemoved=!0,de[Tt]=null,"string"==typeof $e)&&(de[k+"ON_PROPERTY"+$e]=null),jt.zone.cancelTask(jt),_t?de:void 0}return Ue.apply(this,arguments)},Ze[tt]=function(){const de=this||F;let $e=arguments[0];De&&De.transferEventName&&($e=De.transferEventName($e));const nt=[],vt=mt(de,ct?ct($e):$e);for(let it=0;it<vt.length;it++){const bt=vt[it];nt.push(bt.originalDelegate?bt.originalDelegate:bt.callback)}return nt},Ze[qe]=function(){const de=this||F;let $e=arguments[0];if($e){De&&De.transferEventName&&($e=De.transferEventName($e));const nt=je[$e];if(nt){const bt=de[nt[B]],Tt=de[nt[b]];if(bt){const Et=bt.slice();for(let Bt=0;Bt<Et.length;Bt++){const jt=Et[Bt];this[Ne].call(this,$e,jt.originalDelegate?jt.originalDelegate:jt.callback,jt.options)}}if(Tt){const Et=Tt.slice();for(let Bt=0;Bt<Et.length;Bt++){const jt=Et[Bt];this[Ne].call(this,$e,jt.originalDelegate?jt.originalDelegate:jt.callback,jt.options)}}}}else{const nt=Object.keys(de);for(let vt=0;vt<nt.length;vt++){const bt=pt.exec(nt[vt]);let Tt=bt&&bt[1];Tt&&"removeListener"!==Tt&&this[qe].call(this,Tt)}this[qe].call(this,"removeListener")}if(_t)return this},He(Ze[Te],Dt),He(Ze[Ne],Ue),vn&&He(Ze[qe],vn),Zt&&He(Ze[tt],Zt),!0}let Be=[];for(let ke=0;ke<ge.length;ke++)Be[ke]=oe(ge[ke],q);return Be}function mt(F,ee){if(!ee){const Ne=[];for(let tt in F){const qe=pt.exec(tt);let ut=qe&&qe[1];if(ut&&(!ee||ut===ee)){const gt=F[tt];if(gt)for(let rt=0;rt<gt.length;rt++)Ne.push(gt[rt])}}return Ne}let ge=je[ee];ge||(xt(ee),ge=je[ee]);const q=F[ge[B]],Te=F[ge[b]];return q?Te?q.concat(Te):q.slice():Te?Te.slice():[]}function Pt(F,ee){const ge=F.Event;ge&&ge.prototype&&ee.patchMethod(ge.prototype,"stopImmediatePropagation",q=>function(Te,Ne){Te[kt]=!0,q&&q.apply(Te,Ne)})}function pn(F,ee,ge,q,Te){const Ne=Zone.__symbol__(q);if(ee[Ne])return;const tt=ee[Ne]=ee[q];ee[q]=function(qe,ut,gt){return ut&&ut.prototype&&Te.forEach(function(rt){const y=`${ge}.${q}::`+rt,U=ut.prototype;try{if(U.hasOwnProperty(rt)){const J=F.ObjectGetOwnPropertyDescriptor(U,rt);J&&J.value?(J.value=F.wrapWithCurrentZone(J.value,y),F._redefineProperty(ut.prototype,rt,J)):U[rt]&&(U[rt]=F.wrapWithCurrentZone(U[rt],y))}else U[rt]&&(U[rt]=F.wrapWithCurrentZone(U[rt],y))}catch{}}),tt.call(ee,qe,ut,gt)},F.attachOriginToPatched(ee[q],tt)}function be(F,ee,ge){if(!ge||0===ge.length)return ee;const q=ge.filter(Ne=>Ne.target===F);if(!q||0===q.length)return ee;const Te=q[0].ignoreProperties;return ee.filter(Ne=>-1===Te.indexOf(Ne))}function te(F,ee,ge,q){F&&Ye(F,be(F,ee,ge),q)}function S(F){return Object.getOwnPropertyNames(F).filter(ee=>ee.startsWith("on")&&ee.length>2).map(ee=>ee.substring(2))}Zone.__load_patch("util",(F,ee,ge)=>{const q=S(F);ge.patchOnProperties=Ye,ge.patchMethod=ye,ge.bindArguments=pe,ge.patchMacroTask=Oe;const Te=ee.__symbol__("BLACK_LISTED_EVENTS"),Ne=ee.__symbol__("UNPATCHED_EVENTS");F[Ne]&&(F[Te]=F[Ne]),F[Te]&&(ee[Te]=ee[Ne]=F[Te]),ge.patchEventPrototype=Pt,ge.patchEventTarget=Kt,ge.isIEOrEdge=N,ge.ObjectDefineProperty=z,ge.ObjectGetOwnPropertyDescriptor=We,ge.ObjectCreate=e,ge.ArraySlice=T,ge.patchClass=ie,ge.wrapWithCurrentZone=E,ge.filterProperties=be,ge.attachOriginToPatched=He,ge._redefineProperty=Object.defineProperty,ge.patchCallbacks=pn,ge.getGlobalObjects=()=>({globalSources:ot,zoneSymbolEventNames:je,eventNames:q,isBrowser:G,isMix:Le,isNode:ue,TRUE_STR:b,FALSE_STR:B,ZONE_SYMBOL_PREFIX:k,ADD_EVENT_LISTENER_STR:j,REMOVE_EVENT_LISTENER_STR:Y})});const ht=W("zoneTask");function Ot(F,ee,ge,q){let Te=null,Ne=null;ge+=q;const tt={};function qe(gt){const rt=gt.data;return rt.args[0]=function(){return gt.invoke.apply(this,arguments)},rt.handleId=Te.apply(F,rt.args),gt}function ut(gt){return Ne.call(F,gt.data.handleId)}Te=ye(F,ee+=q,gt=>function(rt,y){if("function"==typeof y[0]){const U={isPeriodic:"Interval"===q,delay:"Timeout"===q||"Interval"===q?y[1]||0:void 0,args:y},J=y[0];y[0]=function(){try{return J.apply(this,arguments)}finally{U.isPeriodic||("number"==typeof U.handleId?delete tt[U.handleId]:U.handleId&&(U.handleId[ht]=null))}};const le=L(ee,y[0],U,qe,ut);if(!le)return le;const Ae=le.data.handleId;return"number"==typeof Ae?tt[Ae]=le:Ae&&(Ae[ht]=le),Ae&&Ae.ref&&Ae.unref&&"function"==typeof Ae.ref&&"function"==typeof Ae.unref&&(le.ref=Ae.ref.bind(Ae),le.unref=Ae.unref.bind(Ae)),"number"==typeof Ae||Ae?Ae:le}return gt.apply(F,y)}),Ne=ye(F,ge,gt=>function(rt,y){const U=y[0];let J;"number"==typeof U?J=tt[U]:(J=U&&U[ht],J||(J=U)),J&&"string"==typeof J.type?"notScheduled"!==J.state&&(J.cancelFn&&J.data.isPeriodic||0===J.runCount)&&("number"==typeof U?delete tt[U]:U&&(U[ht]=null),J.zone.cancelTask(J)):gt.apply(F,y)})}Zone.__load_patch("legacy",F=>{const ee=F[Zone.__symbol__("legacyPatch")];ee&&ee()}),Zone.__load_patch("timers",F=>{const ge="clear";Ot(F,"set",ge,"Timeout"),Ot(F,"set",ge,"Interval"),Ot(F,"set",ge,"Immediate")}),Zone.__load_patch("requestAnimationFrame",F=>{Ot(F,"request","cancel","AnimationFrame"),Ot(F,"mozRequest","mozCancel","AnimationFrame"),Ot(F,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(F,ee)=>{const ge=["alert","prompt","confirm"];for(let q=0;q<ge.length;q++)ye(F,ge[q],(Ne,tt,qe)=>function(ut,gt){return ee.current.run(Ne,F,gt,qe)})}),Zone.__load_patch("EventTarget",(F,ee,ge)=>{(function Yt(F,ee){ee.patchEventPrototype(F,ee)})(F,ge),function gn(F,ee){if(Zone[ee.symbol("patchEventTarget")])return;const{eventNames:ge,zoneSymbolEventNames:q,TRUE_STR:Te,FALSE_STR:Ne,ZONE_SYMBOL_PREFIX:tt}=ee.getGlobalObjects();for(let ut=0;ut<ge.length;ut++){const gt=ge[ut],U=tt+(gt+Ne),J=tt+(gt+Te);q[gt]={},q[gt][Ne]=U,q[gt][Te]=J}const qe=F.EventTarget;qe&&qe.prototype&&ee.patchEventTarget(F,ee,[qe&&qe.prototype])}(F,ge);const q=F.XMLHttpRequestEventTarget;q&&q.prototype&&ge.patchEventTarget(F,ge,[q.prototype])}),Zone.__load_patch("MutationObserver",(F,ee,ge)=>{ie("MutationObserver"),ie("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(F,ee,ge)=>{ie("IntersectionObserver")}),Zone.__load_patch("FileReader",(F,ee,ge)=>{ie("FileReader")}),Zone.__load_patch("on_property",(F,ee,ge)=>{!function O(F,ee){if(ue&&!Le||Zone[F.symbol("patchEvents")])return;const ge=ee.__Zone_ignore_on_properties;let q=[];if(G){const Te=window;q=q.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const Ne=function D(){try{const F=A.navigator.userAgent;if(-1!==F.indexOf("MSIE ")||-1!==F.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:Te,ignoreProperties:["error"]}]:[];te(Te,S(Te),ge&&ge.concat(Ne),m(Te))}q=q.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let Te=0;Te<q.length;Te++){const Ne=ee[q[Te]];Ne&&Ne.prototype&&te(Ne.prototype,S(Ne.prototype),ge)}}(ge,F)}),Zone.__load_patch("customElements",(F,ee,ge)=>{!function Ut(F,ee){const{isBrowser:ge,isMix:q}=ee.getGlobalObjects();(ge||q)&&F.customElements&&"customElements"in F&&ee.patchCallbacks(ee,F.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(F,ge)}),Zone.__load_patch("XHR",(F,ee)=>{!function ut(gt){const rt=gt.XMLHttpRequest;if(!rt)return;const y=rt.prototype;let J=y[x],le=y[V];if(!J){const Xe=gt.XMLHttpRequestEventTarget;if(Xe){const Dt=Xe.prototype;J=Dt[x],le=Dt[V]}}const Ae="readystatechange",oe="scheduled";function Be(Xe){const Dt=Xe.data,Ue=Dt.target;Ue[Ne]=!1,Ue[qe]=!1;const Zt=Ue[Te];J||(J=Ue[x],le=Ue[V]),Zt&&le.call(Ue,Ae,Zt);const vn=Ue[Te]=()=>{if(Ue.readyState===Ue.DONE)if(!Dt.aborted&&Ue[Ne]&&Xe.state===oe){const Nt=Ue[ee.__symbol__("loadfalse")];if(0!==Ue.status&&Nt&&Nt.length>0){const rn=Xe.invoke;Xe.invoke=function(){const Qt=Ue[ee.__symbol__("loadfalse")];for(let Wt=0;Wt<Qt.length;Wt++)Qt[Wt]===Xe&&Qt.splice(Wt,1);!Dt.aborted&&Xe.state===oe&&rn.call(Xe)},Nt.push(Xe)}else Xe.invoke()}else!Dt.aborted&&!1===Ue[Ne]&&(Ue[qe]=!0)};return J.call(Ue,Ae,vn),Ue[ge]||(Ue[ge]=Xe),Ze.apply(Ue,Dt.args),Ue[Ne]=!0,Xe}function ke(){}function De(Xe){const Dt=Xe.data;return Dt.aborted=!0,ct.apply(Dt.target,Dt.args)}const Ke=ye(y,"open",()=>function(Xe,Dt){return Xe[q]=0==Dt[2],Xe[tt]=Dt[1],Ke.apply(Xe,Dt)}),yt=W("fetchTaskAborting"),_t=W("fetchTaskScheduling"),Ze=ye(y,"send",()=>function(Xe,Dt){if(!0===ee.current[_t]||Xe[q])return Ze.apply(Xe,Dt);{const Ue={target:Xe,url:Xe[tt],isPeriodic:!1,args:Dt,aborted:!1},Zt=L("XMLHttpRequest.send",ke,Ue,Be,De);Xe&&!0===Xe[qe]&&!Ue.aborted&&Zt.state===oe&&Zt.invoke()}}),ct=ye(y,"abort",()=>function(Xe,Dt){const Ue=function U(Xe){return Xe[ge]}(Xe);if(Ue&&"string"==typeof Ue.type){if(null==Ue.cancelFn||Ue.data&&Ue.data.aborted)return;Ue.zone.cancelTask(Ue)}else if(!0===ee.current[yt])return ct.apply(Xe,Dt)})}(F);const ge=W("xhrTask"),q=W("xhrSync"),Te=W("xhrListener"),Ne=W("xhrScheduled"),tt=W("xhrURL"),qe=W("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",F=>{F.navigator&&F.navigator.geolocation&&function re(F,ee){const ge=F.constructor.name;for(let q=0;q<ee.length;q++){const Te=ee[q],Ne=F[Te];if(Ne){if(!Ge(We(F,Te)))continue;F[Te]=(qe=>{const ut=function(){return qe.apply(this,pe(arguments,ge+"."+Te))};return He(ut,qe),ut})(Ne)}}}(F.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(F,ee)=>{function ge(q){return function(Te){mt(F,q).forEach(tt=>{const qe=F.PromiseRejectionEvent;if(qe){const ut=new qe(q,{promise:Te.promise,reason:Te.rejection});tt.invoke(ut)}})}}F.PromiseRejectionEvent&&(ee[W("unhandledPromiseRejectionHandler")]=ge("unhandledrejection"),ee[W("rejectionHandledHandler")]=ge("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(F,ee,ge)=>{!function ve(F,ee){ee.patchMethod(F,"queueMicrotask",ge=>function(q,Te){Zone.current.scheduleMicroTask("queueMicrotask",Te[0])})}(F,ge)})},2106:()=>{},655:(We,z,m)=>{function x(Z,ie,ye,Oe){var Je,He=arguments.length,H=He<3?ie:null===Oe?Oe=Object.getOwnPropertyDescriptor(ie,ye):Oe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)H=Reflect.decorate(Z,ie,ye,Oe);else for(var D=Z.length-1;D>=0;D--)(Je=Z[D])&&(H=(He<3?Je(H):He>3?Je(ie,ye,H):Je(ie,ye))||H);return He>3&&H&&Object.defineProperty(ie,ye,H),H}function b(Z,ie){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(Z,ie)}function B(Z,ie,ye,Oe){return new(ye||(ye=Promise))(function(H,Je){function D($){try{R(Oe.next($))}catch(je){Je(je)}}function N($){try{R(Oe.throw($))}catch(je){Je(je)}}function R($){$.done?H($.value):function He(H){return H instanceof ye?H:new ye(function(Je){Je(H)})}($.value).then(D,N)}R((Oe=Oe.apply(Z,ie||[])).next())})}function pe(Z){return this instanceof pe?(this.v=Z,this):new pe(Z)}function re(Z,ie,ye){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var He,Oe=ye.apply(Z,ie||[]),H=[];return He={},Je("next"),Je("throw"),Je("return"),He[Symbol.asyncIterator]=function(){return this},He;function Je(ot){Oe[ot]&&(He[ot]=function(pt){return new Promise(function(kt,xt){H.push([ot,pt,kt,xt])>1||D(ot,pt)})})}function D(ot,pt){try{!function N(ot){ot.value instanceof pe?Promise.resolve(ot.value.v).then(R,$):je(H[0][2],ot)}(Oe[ot](pt))}catch(kt){je(H[0][3],kt)}}function R(ot){D("next",ot)}function $(ot){D("throw",ot)}function je(ot,pt){ot(pt),H.shift(),H.length&&D(H[0][0],H[0][1])}}function we(Z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ye,ie=Z[Symbol.asyncIterator];return ie?ie.call(Z):(Z=function W(Z){var ie="function"==typeof Symbol&&Symbol.iterator,ye=ie&&Z[ie],Oe=0;if(ye)return ye.call(Z);if(Z&&"number"==typeof Z.length)return{next:function(){return Z&&Oe>=Z.length&&(Z=void 0),{value:Z&&Z[Oe++],done:!Z}}};throw new TypeError(ie?"Object is not iterable.":"Symbol.iterator is not defined.")}(Z),ye={},Oe("next"),Oe("throw"),Oe("return"),ye[Symbol.asyncIterator]=function(){return this},ye);function Oe(H){ye[H]=Z[H]&&function(Je){return new Promise(function(D,N){!function He(H,Je,D,N){Promise.resolve(N).then(function(R){H({value:R,done:D})},Je)}(D,N,(Je=Z[H](Je)).done,Je.value)})}}}m.d(z,{FC:()=>re,KL:()=>we,gn:()=>x,mG:()=>B,qq:()=>pe,w6:()=>b})},332:(We,z,m)=>{m.d(z,{A0:()=>Wt});var e=m(5879),j=(m(927),m(1954));let x,Y=1;const V={};function b(K){return K in V&&(delete V[K],!0)}const B={setImmediate(K){const M=Y++;return V[M]=!0,x||(x=Promise.resolve()),x.then(()=>b(M)&&K()),M},clearImmediate(K){b(K)}},{setImmediate:E,clearImmediate:L}=B,W={setImmediate(...K){const{delegate:M}=W;return(M?.setImmediate||E)(...K)},clearImmediate(K){const{delegate:M}=W;return(M?.clearImmediate||L)(K)},delegate:void 0};var A=m(2631);new class ce extends A.v{flush(M){this._active=!0;const d=this._scheduled;this._scheduled=void 0;const{actions:w}=this;let ae;M=M||w.shift();do{if(ae=M.execute(M.state,M.delay))break}while((M=w[0])&&M.id===d&&w.shift());if(this._active=!1,ae){for(;(M=w[0])&&M.id===d&&w.shift();)M.unsubscribe();throw ae}}}(class _e extends j.o{constructor(M,d){super(M,d),this.scheduler=M,this.work=d}requestAsyncId(M,d,w=0){return null!==w&&w>0?super.requestAsyncId(M,d,w):(M.actions.push(this),M._scheduled||(M._scheduled=W.setImmediate(M.flush.bind(M,void 0))))}recycleAsyncId(M,d,w=0){var ae;if(null!=w?w>0:this.delay>0)return super.recycleAsyncId(M,d,w);const{actions:Pe}=M;null!=d&&(null===(ae=Pe[Pe.length-1])||void 0===ae?void 0:ae.id)!==d&&(W.clearImmediate(d),M._scheduled=void 0)}});var re=m(6814);RegExp(/[&<>"']/g.source);const Lt=new e.OlP("ng-select-selection-model");function rn(){return new Qt}class Qt{constructor(){this._selected=[]}get value(){return this._selected}select(M,d,w){if(M.selected=!0,(!M.children||!d&&w)&&this._selected.push(M),d)if(M.parent){const ae=M.parent.children.length,Pe=M.parent.children.filter(et=>et.selected).length;M.parent.selected=ae===Pe}else M.children&&(this._setChildrenSelectedState(M.children,!0),this._removeChildren(M),this._selected=w&&this._activeChildren(M)?[...this._selected.filter(ae=>ae.parent!==M),M]:[...this._selected,...M.children.filter(ae=>!ae.disabled)])}unselect(M,d){if(this._selected=this._selected.filter(w=>w!==M),M.selected=!1,d)if(M.parent&&M.parent.selected){const w=M.parent.children;this._removeParent(M.parent),this._removeChildren(M.parent),this._selected.push(...w.filter(ae=>ae!==M&&!ae.disabled)),M.parent.selected=!1}else M.children&&(this._setChildrenSelectedState(M.children,!1),this._removeChildren(M))}clear(M){this._selected=M?this._selected.filter(d=>d.disabled):[]}_setChildrenSelectedState(M,d){for(const w of M)w.disabled||(w.selected=d)}_removeChildren(M){this._selected=[...this._selected.filter(d=>d.parent!==M),...M.children.filter(d=>d.parent===M&&d.disabled&&d.selected)]}_removeParent(M){this._selected=this._selected.filter(d=>d!==M)}_activeChildren(M){return M.children.every(d=>!d.disabled||d.selected)}}let Wt=(()=>{class K{static{this.\u0275fac=function(w){return new(w||K)}}static{this.\u0275mod=e.oAB({type:K})}static{this.\u0275inj=e.cJS({providers:[{provide:Lt,useValue:rn}],imports:[re.ez]})}}return K})()},9515:(We,z,m)=>{m.d(z,{X$:()=>Oe,aw:()=>He,sK:()=>ie});var e=m(5879),T=m(2096),j=m(2664),Y=m(9315),x=m(5211),V=m(4911),b=m(8180),B=m(7081),k=m(7398),E=m(6328),L=m(4664);class W{}let _e=(()=>{class H extends W{getTranslation(D){return(0,T.of)({})}static \u0275fac=function(){let D;return function(R){return(D||(D=e.n5z(H)))(R||H)}}();static \u0275prov=e.Yz7({token:H,factory:H.\u0275fac})}return H})();class A{}let ce=(()=>{class H{handle(D){return D.key}static \u0275fac=function(N){return new(N||H)};static \u0275prov=e.Yz7({token:H,factory:H.\u0275fac})}return H})();function me(H,Je){if(H===Je)return!0;if(null===H||null===Je)return!1;if(H!=H&&Je!=Je)return!0;let R,$,je,D=typeof H;if(D==typeof Je&&"object"==D){if(!Array.isArray(H)){if(Array.isArray(Je))return!1;for($ in je=Object.create(null),H){if(!me(H[$],Je[$]))return!1;je[$]=!0}for($ in Je)if(!($ in je)&&typeof Je[$]<"u")return!1;return!0}if(!Array.isArray(Je))return!1;if((R=H.length)==Je.length){for($=0;$<R;$++)if(!me(H[$],Je[$]))return!1;return!0}}return!1}function pe(H){return typeof H<"u"&&null!==H}function re(H){return H&&"object"==typeof H&&!Array.isArray(H)}function Ge(H,Je){let D=Object.assign({},H);return re(H)&&re(Je)&&Object.keys(Je).forEach(N=>{re(Je[N])?N in H?D[N]=Ge(H[N],Je[N]):Object.assign(D,{[N]:Je[N]}):Object.assign(D,{[N]:Je[N]})}),D}class we{}let ue=(()=>{class H extends we{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(D,N){let R;return R="string"==typeof D?this.interpolateString(D,N):"function"==typeof D?this.interpolateFunction(D,N):D,R}getValue(D,N){let R="string"==typeof N?N.split("."):[N];N="";do{N+=R.shift(),!pe(D)||!pe(D[N])||"object"!=typeof D[N]&&R.length?R.length?N+=".":D=void 0:(D=D[N],N="")}while(R.length);return D}interpolateFunction(D,N){return D(N)}interpolateString(D,N){return N?D.replace(this.templateMatcher,(R,$)=>{let je=this.getValue(N,$);return pe(je)?je:R}):D}static \u0275fac=function(){let D;return function(R){return(D||(D=e.n5z(H)))(R||H)}}();static \u0275prov=e.Yz7({token:H,factory:H.\u0275fac})}return H})();class G{}let Le=(()=>{class H extends G{compile(D,N){return D}compileTranslations(D,N){return D}static \u0275fac=function(){let D;return function(R){return(D||(D=e.n5z(H)))(R||H)}}();static \u0275prov=e.Yz7({token:H,factory:H.\u0275fac})}return H})();class Se{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new e.vpe;onLangChange=new e.vpe;onDefaultLangChange=new e.vpe}const Ce=new e.OlP("USE_STORE"),Re=new e.OlP("USE_DEFAULT_LANG"),Ye=new e.OlP("DEFAULT_LANGUAGE"),Z=new e.OlP("USE_EXTEND");let ie=(()=>{class H{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new e.vpe;_onLangChange=new e.vpe;_onDefaultLangChange=new e.vpe;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(D){this.isolate?this._defaultLang=D:this.store.defaultLang=D}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(D){this.isolate?this._currentLang=D:this.store.currentLang=D}get langs(){return this.isolate?this._langs:this.store.langs}set langs(D){this.isolate?this._langs=D:this.store.langs=D}get translations(){return this.isolate?this._translations:this.store.translations}set translations(D){this.isolate?this._translations=D:this.store.translations=D}constructor(D,N,R,$,je,ot=!0,pt=!1,kt=!1,xt){this.store=D,this.currentLoader=N,this.compiler=R,this.parser=$,this.missingTranslationHandler=je,this.useDefaultLang=ot,this.isolate=pt,this.extend=kt,xt&&this.setDefaultLang(xt)}setDefaultLang(D){if(D===this.defaultLang)return;let N=this.retrieveTranslations(D);typeof N<"u"?(null==this.defaultLang&&(this.defaultLang=D),N.pipe((0,b.q)(1)).subscribe(R=>{this.changeDefaultLang(D)})):this.changeDefaultLang(D)}getDefaultLang(){return this.defaultLang}use(D){if(D===this.currentLang)return(0,T.of)(this.translations[D]);let N=this.retrieveTranslations(D);return typeof N<"u"?(this.currentLang||(this.currentLang=D),N.pipe((0,b.q)(1)).subscribe(R=>{this.changeLang(D)}),N):(this.changeLang(D),(0,T.of)(this.translations[D]))}retrieveTranslations(D){let N;return(typeof this.translations[D]>"u"||this.extend)&&(this._translationRequests[D]=this._translationRequests[D]||this.getTranslation(D),N=this._translationRequests[D]),N}getTranslation(D){this.pending=!0;const N=this.currentLoader.getTranslation(D).pipe((0,B.d)(1),(0,b.q)(1));return this.loadingTranslations=N.pipe((0,k.U)(R=>this.compiler.compileTranslations(R,D)),(0,B.d)(1),(0,b.q)(1)),this.loadingTranslations.subscribe({next:R=>{this.translations[D]=this.extend&&this.translations[D]?{...R,...this.translations[D]}:R,this.updateLangs(),this.pending=!1},error:R=>{this.pending=!1}}),N}setTranslation(D,N,R=!1){N=this.compiler.compileTranslations(N,D),this.translations[D]=(R||this.extend)&&this.translations[D]?Ge(this.translations[D],N):N,this.updateLangs(),this.onTranslationChange.emit({lang:D,translations:this.translations[D]})}getLangs(){return this.langs}addLangs(D){D.forEach(N=>{-1===this.langs.indexOf(N)&&this.langs.push(N)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(D,N,R){let $;if(N instanceof Array){let je={},ot=!1;for(let pt of N)je[pt]=this.getParsedResult(D,pt,R),(0,j.b)(je[pt])&&(ot=!0);if(ot){const pt=N.map(kt=>(0,j.b)(je[kt])?je[kt]:(0,T.of)(je[kt]));return(0,Y.D)(pt).pipe((0,k.U)(kt=>{let xt={};return kt.forEach((Kt,mt)=>{xt[N[mt]]=Kt}),xt}))}return je}if(D&&($=this.parser.interpolate(this.parser.getValue(D,N),R)),typeof $>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&($=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],N),R)),typeof $>"u"){let je={key:N,translateService:this};typeof R<"u"&&(je.interpolateParams=R),$=this.missingTranslationHandler.handle(je)}return typeof $<"u"?$:N}get(D,N){if(!pe(D)||!D.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,E.b)(R=>(R=this.getParsedResult(R,D,N),(0,j.b)(R)?R:(0,T.of)(R))));{let R=this.getParsedResult(this.translations[this.currentLang],D,N);return(0,j.b)(R)?R:(0,T.of)(R)}}getStreamOnTranslationChange(D,N){if(!pe(D)||!D.length)throw new Error('Parameter "key" required');return(0,x.z)((0,V.P)(()=>this.get(D,N)),this.onTranslationChange.pipe((0,L.w)(R=>{const $=this.getParsedResult(R.translations,D,N);return"function"==typeof $.subscribe?$:(0,T.of)($)})))}stream(D,N){if(!pe(D)||!D.length)throw new Error('Parameter "key" required');return(0,x.z)((0,V.P)(()=>this.get(D,N)),this.onLangChange.pipe((0,L.w)(R=>{const $=this.getParsedResult(R.translations,D,N);return(0,j.b)($)?$:(0,T.of)($)})))}instant(D,N){if(!pe(D)||!D.length)throw new Error('Parameter "key" required');let R=this.getParsedResult(this.translations[this.currentLang],D,N);if((0,j.b)(R)){if(D instanceof Array){let $={};return D.forEach((je,ot)=>{$[D[ot]]=D[ot]}),$}return D}return R}set(D,N,R=this.currentLang){this.translations[R][D]=this.compiler.compile(N,R),this.updateLangs(),this.onTranslationChange.emit({lang:R,translations:this.translations[R]})}changeLang(D){this.currentLang=D,this.onLangChange.emit({lang:D,translations:this.translations[D]}),null==this.defaultLang&&this.changeDefaultLang(D)}changeDefaultLang(D){this.defaultLang=D,this.onDefaultLangChange.emit({lang:D,translations:this.translations[D]})}reloadLang(D){return this.resetLang(D),this.getTranslation(D)}resetLang(D){this._translationRequests[D]=void 0,this.translations[D]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let D=window.navigator.languages?window.navigator.languages[0]:null;return D=D||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof D>"u"?void 0:(-1!==D.indexOf("-")&&(D=D.split("-")[0]),-1!==D.indexOf("_")&&(D=D.split("_")[0]),D)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let D=window.navigator.languages?window.navigator.languages[0]:null;return D=D||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,D}static \u0275fac=function(N){return new(N||H)(e.LFG(Se),e.LFG(W),e.LFG(G),e.LFG(we),e.LFG(A),e.LFG(Re),e.LFG(Ce),e.LFG(Z),e.LFG(Ye))};static \u0275prov=e.Yz7({token:H,factory:H.\u0275fac})}return H})(),Oe=(()=>{class H{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(D,N){this.translate=D,this._ref=N}updateValue(D,N,R){let $=je=>{this.value=void 0!==je?je:D,this.lastKey=D,this._ref.markForCheck()};if(R){let je=this.translate.getParsedResult(R,D,N);(0,j.b)(je.subscribe)?je.subscribe($):$(je)}this.translate.get(D,N).subscribe($)}transform(D,...N){if(!D||!D.length)return D;if(me(D,this.lastKey)&&me(N,this.lastParams))return this.value;let R;if(pe(N[0])&&N.length)if("string"==typeof N[0]&&N[0].length){let $=N[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{R=JSON.parse($)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${N[0]}`)}}else"object"==typeof N[0]&&!Array.isArray(N[0])&&(R=N[0]);return this.lastKey=D,this.lastParams=N,this.updateValue(D,R),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe($=>{this.lastKey&&$.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(D,R,$.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe($=>{this.lastKey&&(this.lastKey=null,this.updateValue(D,R,$.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(D,R))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(N){return new(N||H)(e.Y36(ie,16),e.Y36(e.sBO,16))};static \u0275pipe=e.Yjl({name:"translate",type:H,pure:!1});static \u0275prov=e.Yz7({token:H,factory:H.\u0275fac})}return H})(),He=(()=>{class H{static forRoot(D={}){return{ngModule:H,providers:[D.loader||{provide:W,useClass:_e},D.compiler||{provide:G,useClass:Le},D.parser||{provide:we,useClass:ue},D.missingTranslationHandler||{provide:A,useClass:ce},Se,{provide:Ce,useValue:D.isolate},{provide:Re,useValue:D.useDefaultLang},{provide:Z,useValue:D.extend},{provide:Ye,useValue:D.defaultLanguage},ie]}}static forChild(D={}){return{ngModule:H,providers:[D.loader||{provide:W,useClass:_e},D.compiler||{provide:G,useClass:Le},D.parser||{provide:we,useClass:ue},D.missingTranslationHandler||{provide:A,useClass:ce},{provide:Ce,useValue:D.isolate},{provide:Re,useValue:D.useDefaultLang},{provide:Z,useValue:D.extend},{provide:Ye,useValue:D.defaultLanguage},ie]}}static \u0275fac=function(N){return new(N||H)};static \u0275mod=e.oAB({type:H});static \u0275inj=e.cJS({})}return H})()},7368:(We,z,m)=>{m.d(z,{eD:()=>vi,qG:()=>Sn,qr:()=>on});var j,a,e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function T(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}a=j||(j={}),function(n){var o="object"==typeof globalThis?globalThis:"object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:function Q(){return function _(){try{return Function("return this;")()}catch{}}()||function P(){try{return(0,eval)("(function() { return this; })()")}catch{}}()}(),h=g(a);function g(ze,X){return function(Fe,Mt){Object.defineProperty(ze,Fe,{configurable:!0,writable:!0,value:Mt}),X&&X(Fe,Mt)}}typeof o.Reflect<"u"&&(h=g(o.Reflect,h)),function(n,o){var h=Object.prototype.hasOwnProperty,g="function"==typeof Symbol,_=g&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",P=g&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",Q="function"==typeof Object.create,ze={__proto__:[]}instanceof Array,X=!Q&&!ze,Fe={create:Q?function(){return _a(Object.create(null))}:ze?function(){return _a({__proto__:null})}:function(){return _a({})},has:X?function(se,he){return h.call(se,he)}:function(se,he){return he in se},get:X?function(se,he){return h.call(se,he)?se[he]:void 0}:function(se,he){return se[he]}},Mt=Object.getPrototypeOf(Function),Vt="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function Jl(){var se={},he=[],xe=function(){function It(st,lt,dt){this._index=0,this._keys=st,this._values=lt,this._selector=dt}return It.prototype["@@iterator"]=function(){return this},It.prototype[P]=function(){return this},It.prototype.next=function(){var st=this._index;if(st>=0&&st<this._keys.length){var lt=this._selector(this._keys[st],this._values[st]);return st+1>=this._keys.length?(this._index=-1,this._keys=he,this._values=he):this._index++,{value:lt,done:!1}}return{value:void 0,done:!0}},It.prototype.throw=function(st){throw this._index>=0&&(this._index=-1,this._keys=he,this._values=he),st},It.prototype.return=function(st){return this._index>=0&&(this._index=-1,this._keys=he,this._values=he),{value:st,done:!0}},It}();return function(){function It(){this._keys=[],this._values=[],this._cacheKey=se,this._cacheIndex=-2}return Object.defineProperty(It.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),It.prototype.has=function(st){return this._find(st,!1)>=0},It.prototype.get=function(st){var lt=this._find(st,!1);return lt>=0?this._values[lt]:void 0},It.prototype.set=function(st,lt){var dt=this._find(st,!0);return this._values[dt]=lt,this},It.prototype.delete=function(st){var lt=this._find(st,!1);if(lt>=0){for(var dt=this._keys.length,ft=lt+1;ft<dt;ft++)this._keys[ft-1]=this._keys[ft],this._values[ft-1]=this._values[ft];return this._keys.length--,this._values.length--,da(st,this._cacheKey)&&(this._cacheKey=se,this._cacheIndex=-2),!0}return!1},It.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=se,this._cacheIndex=-2},It.prototype.keys=function(){return new xe(this._keys,this._values,wt)},It.prototype.values=function(){return new xe(this._keys,this._values,mn)},It.prototype.entries=function(){return new xe(this._keys,this._values,fn)},It.prototype["@@iterator"]=function(){return this.entries()},It.prototype[P]=function(){return this.entries()},It.prototype._find=function(st,lt){if(!da(this._cacheKey,st)){this._cacheIndex=-1;for(var dt=0;dt<this._keys.length;dt++)if(da(this._keys[dt],st)){this._cacheIndex=dt;break}}return this._cacheIndex<0&&lt&&(this._cacheIndex=this._keys.length,this._keys.push(st),this._values.push(void 0)),this._cacheIndex},It}();function wt(It,st){return It}function mn(It,st){return st}function fn(It,st){return[It,st]}}(),Un="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function Ql(){return function(){function he(){this._map=new Vt}return Object.defineProperty(he.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),he.prototype.has=function(xe){return this._map.has(xe)},he.prototype.add=function(xe){return this._map.set(xe,xe),this},he.prototype.delete=function(xe){return this._map.delete(xe)},he.prototype.clear=function(){this._map.clear()},he.prototype.keys=function(){return this._map.keys()},he.prototype.values=function(){return this._map.keys()},he.prototype.entries=function(){return this._map.entries()},he.prototype["@@iterator"]=function(){return this.keys()},he.prototype[P]=function(){return this.keys()},he}()}(),ni="function"==typeof WeakMap?WeakMap:function Xl(){var se=16,he=Fe.create(),xe=Qe();return function(){function st(){this._key=Qe()}return st.prototype.has=function(lt){var dt=wt(lt,!1);return void 0!==dt&&Fe.has(dt,this._key)},st.prototype.get=function(lt){var dt=wt(lt,!1);return void 0!==dt?Fe.get(dt,this._key):void 0},st.prototype.set=function(lt,dt){return wt(lt,!0)[this._key]=dt,this},st.prototype.delete=function(lt){var dt=wt(lt,!1);return void 0!==dt&&delete dt[this._key]},st.prototype.clear=function(){this._key=Qe()},st}();function Qe(){var st;do{st="@@WeakMap@@"+It()}while(Fe.has(he,st));return he[st]=!0,st}function wt(st,lt){if(!h.call(st,xe)){if(!lt)return;Object.defineProperty(st,xe,{value:Fe.create()})}return st[xe]}function mn(st,lt){for(var dt=0;dt<lt;++dt)st[dt]=255*Math.random()|0;return st}function It(){var st=function fn(st){if("function"==typeof Uint8Array){var lt=new Uint8Array(st);return typeof crypto<"u"?crypto.getRandomValues(lt):typeof msCrypto<"u"?msCrypto.getRandomValues(lt):mn(lt,st),lt}return mn(new Array(st),st)}(se);st[6]=79&st[6]|64,st[8]=191&st[8]|128;for(var lt="",dt=0;dt<se;++dt){var ft=st[dt];(4===dt||6===dt||8===dt)&&(lt+="-"),ft<16&&(lt+="0"),lt+=ft.toString(16).toLowerCase()}return lt}}(),ii=g?Symbol.for("@reflect-metadata:registry"):void 0,fs=function Gl(){var se;return!St(ii)&&_n(o.Reflect)&&Object.isExtensible(o.Reflect)&&(se=o.Reflect[ii]),St(se)&&(se=function Zl(){var se;!St(ii)&&typeof o.Reflect<"u"&&!(ii in o.Reflect)&&"function"==typeof o.Reflect.defineMetadata&&(se=function zl(se){var he=se.defineMetadata,xe=se.hasOwnMetadata,Qe=se.getOwnMetadata,wt=se.getOwnMetadataKeys,mn=se.deleteMetadata,fn=new ni;return{isProviderFor:function(st,lt){var dt=fn.get(st);return!(St(dt)||!dt.has(lt))||!!wt(st,lt).length&&(St(dt)&&(dt=new Un,fn.set(st,dt)),dt.add(lt),!0)},OrdinaryDefineOwnMetadata:he,OrdinaryHasOwnMetadata:xe,OrdinaryGetOwnMetadata:Qe,OrdinaryOwnMetadataKeys:wt,OrdinaryDeleteMetadata:mn}}(o.Reflect));var he,xe,Qe,wt=new ni,mn={registerProvider:fn,getProvider:st,setProvider:dt};return mn;function fn(ft){if(!Object.isExtensible(mn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case se===ft:break;case St(he):he=ft;break;case he===ft:break;case St(xe):xe=ft;break;case xe===ft:break;default:void 0===Qe&&(Qe=new Un),Qe.add(ft)}}function It(ft,Rt){if(!St(he)){if(he.isProviderFor(ft,Rt))return he;if(!St(xe)){if(xe.isProviderFor(ft,Rt))return he;if(!St(Qe))for(var qt=Qa(Qe);;){var ln=qa(qt);if(!ln)return;var ci=Xa(ln);if(ci.isProviderFor(ft,Rt))return el(qt),ci}}}if(!St(se)&&se.isProviderFor(ft,Rt))return se}function st(ft,Rt){var ln,qt=wt.get(ft);return St(qt)||(ln=qt.get(Rt)),St(ln)&&(St(ln=It(ft,Rt))||(St(qt)&&(qt=new Vt,wt.set(ft,qt)),qt.set(Rt,ln))),ln}function lt(ft){if(St(ft))throw new TypeError;return he===ft||xe===ft||!St(Qe)&&Qe.has(ft)}function dt(ft,Rt,qt){if(!lt(qt))throw new Error("Metadata provider not registered.");var ln=st(ft,Rt);if(ln!==qt){if(!St(ln))return!1;var ci=wt.get(ft);St(ci)&&(ci=new Vt,wt.set(ft,ci)),ci.set(Rt,qt)}return!0}}()),!St(ii)&&_n(o.Reflect)&&Object.isExtensible(o.Reflect)&&Object.defineProperty(o.Reflect,ii,{enumerable:!1,configurable:!1,writable:!1,value:se}),se}(),go=function Kl(se){var he=new ni,xe={isProviderFor:function(lt,dt){var ft=he.get(lt);return!St(ft)&&ft.has(dt)},OrdinaryDefineOwnMetadata:function fn(lt,dt,ft,Rt){Qe(ft,Rt,!0).set(lt,dt)},OrdinaryHasOwnMetadata:function wt(lt,dt,ft){var Rt=Qe(dt,ft,!1);return!St(Rt)&&Ga(Rt.has(lt))},OrdinaryGetOwnMetadata:function mn(lt,dt,ft){var Rt=Qe(dt,ft,!1);if(!St(Rt))return Rt.get(lt)},OrdinaryOwnMetadataKeys:function It(lt,dt){var ft=[],Rt=Qe(lt,dt,!1);if(St(Rt))return ft;for(var ln=Qa(Rt.keys()),ci=0;;){var tl=qa(ln);if(!tl)return ft.length=ci,ft;var ql=Xa(tl);try{ft[ci]=ql}catch(ec){try{el(ln)}finally{throw ec}}ci++}},OrdinaryDeleteMetadata:function st(lt,dt,ft){var Rt=Qe(dt,ft,!1);if(St(Rt)||!Rt.delete(lt))return!1;if(0===Rt.size){var qt=he.get(dt);St(qt)||(qt.delete(ft),0===qt.size&&he.delete(qt))}return!0}};return fs.registerProvider(xe),xe;function Qe(lt,dt,ft){var Rt=he.get(lt),qt=!1;if(St(Rt)){if(!ft)return;Rt=new Vt,he.set(lt,Rt),qt=!0}var ln=Rt.get(dt);if(St(ln)){if(!ft)return;if(ln=new Vt,Rt.set(dt,ln),!se.setProvider(lt,dt,xe))throw Rt.delete(dt),qt&&he.delete(lt),new Error("Wrong provider for target.")}return ln}}(fs);function Ha(se,he,xe){if(ua(se,he,xe))return!0;var wt=ha(he);return!Ws(wt)&&Ha(se,wt,xe)}function ua(se,he,xe){var Qe=Yr(he,xe,!1);return!St(Qe)&&Ga(Qe.OrdinaryHasOwnMetadata(se,he,xe))}function ja(se,he,xe){if(ua(se,he,xe))return Va(se,he,xe);var wt=ha(he);return Ws(wt)?void 0:ja(se,wt,xe)}function Va(se,he,xe){var Qe=Yr(he,xe,!1);if(!St(Qe))return Qe.OrdinaryGetOwnMetadata(se,he,xe)}function Wa(se,he,xe,Qe){Yr(xe,Qe,!0).OrdinaryDefineOwnMetadata(se,he,xe,Qe)}function Ua(se,he){var xe=$a(se,he),Qe=ha(se);if(null===Qe)return xe;var wt=Ua(Qe,he);if(wt.length<=0)return xe;if(xe.length<=0)return wt;for(var mn=new Un,fn=[],It=0,st=xe;It<st.length;It++)mn.has(lt=st[It])||(mn.add(lt),fn.push(lt));for(var ft=0,Rt=wt;ft<Rt.length;ft++){var lt;mn.has(lt=Rt[ft])||(mn.add(lt),fn.push(lt))}return fn}function $a(se,he){var xe=Yr(se,he,!1);return xe?xe.OrdinaryOwnMetadataKeys(se,he):[]}function Za(se){if(null===se)return 1;switch(typeof se){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===se?1:6;default:return 6}}function St(se){return void 0===se}function Ws(se){return null===se}function _n(se){return"object"==typeof se?null!==se:"function"==typeof se}function Vl(se,he){switch(Za(se)){case 0:case 1:case 2:case 3:case 4:case 5:return se}var Qe=Ja(se,_);if(void 0!==Qe){var wt=Qe.call(se,"string");if(_n(wt))throw new TypeError;return wt}return function Wl(se,he){var xe,Qe,wt=se.toString;if(vo(wt)&&!_n(Qe=wt.call(se)))return Qe;if(vo(xe=se.valueOf)&&!_n(Qe=xe.call(se)))return Qe;throw new TypeError}(se)}function Ga(se){return!!se}function yi(se){var he=Vl(se);return function jl(se){return"symbol"==typeof se}(he)?he:function Ul(se){return""+se}(he)}function Ka(se){return Array.isArray?Array.isArray(se):se instanceof Object?se instanceof Array:"[object Array]"===Object.prototype.toString.call(se)}function vo(se){return"function"==typeof se}function za(se){return"function"==typeof se}function da(se,he){return se===he||se!=se&&he!=he}function Ja(se,he){var xe=se[he];if(null!=xe){if(!vo(xe))throw new TypeError;return xe}}function Qa(se){var he=Ja(se,P);if(!vo(he))throw new TypeError;var xe=he.call(se);if(!_n(xe))throw new TypeError;return xe}function Xa(se){return se.value}function qa(se){var he=se.next();return!he.done&&he}function el(se){var he=se.return;he&&he.call(se)}function ha(se){var he=Object.getPrototypeOf(se);if("function"!=typeof se||se===Mt||he!==Mt)return he;var xe=se.prototype,Qe=xe&&Object.getPrototypeOf(xe);if(null==Qe||Qe===Object.prototype)return he;var wt=Qe.constructor;return"function"!=typeof wt||wt===se?he:wt}function Yr(se,he,xe){var Qe=fs.getProvider(se,he);if(!St(Qe))return Qe;if(xe){if(fs.setProvider(se,he,go))return go;throw new Error("Illegal state.")}}function _a(se){return se.__=void 0,delete se.__,se}n("decorate",function xl(se,he,xe,Qe){if(St(xe)){if(!Ka(se))throw new TypeError;if(!za(he))throw new TypeError;return function Fl(se,he){for(var xe=se.length-1;xe>=0;--xe){var wt=(0,se[xe])(he);if(!St(wt)&&!Ws(wt)){if(!za(wt))throw new TypeError;he=wt}}return he}(se,he)}if(!Ka(se))throw new TypeError;if(!_n(he))throw new TypeError;if(!_n(Qe)&&!St(Qe)&&!Ws(Qe))throw new TypeError;return Ws(Qe)&&(Qe=void 0),function Hl(se,he,xe,Qe){for(var wt=se.length-1;wt>=0;--wt){var fn=(0,se[wt])(he,xe,Qe);if(!St(fn)&&!Ws(fn)){if(!_n(fn))throw new TypeError;Qe=fn}}return Qe}(se,he,xe=yi(xe),Qe)}),n("metadata",function Ol(se,he){return function xe(Qe,wt){if(!_n(Qe))throw new TypeError;if(!St(wt)&&!function $l(se){switch(Za(se)){case 3:case 4:return!0;default:return!1}}(wt))throw new TypeError;Wa(se,he,Qe,wt)}}),n("defineMetadata",function Ll(se,he,xe,Qe){if(!_n(xe))throw new TypeError;return St(Qe)||(Qe=yi(Qe)),Wa(se,he,xe,Qe)}),n("hasMetadata",function Al(se,he,xe){if(!_n(he))throw new TypeError;return St(xe)||(xe=yi(xe)),Ha(se,he,xe)}),n("hasOwnMetadata",function Il(se,he,xe){if(!_n(he))throw new TypeError;return St(xe)||(xe=yi(xe)),ua(se,he,xe)}),n("getMetadata",function Pl(se,he,xe){if(!_n(he))throw new TypeError;return St(xe)||(xe=yi(xe)),ja(se,he,xe)}),n("getOwnMetadata",function Rl(se,he,xe){if(!_n(he))throw new TypeError;return St(xe)||(xe=yi(xe)),Va(se,he,xe)}),n("getMetadataKeys",function Yl(se,he){if(!_n(se))throw new TypeError;return St(he)||(he=yi(he)),Ua(se,he)}),n("getOwnMetadataKeys",function Nl(se,he){if(!_n(se))throw new TypeError;return St(he)||(he=yi(he)),$a(se,he)}),n("deleteMetadata",function Bl(se,he,xe){if(!_n(he))throw new TypeError;if(St(xe)||(xe=yi(xe)),!_n(he))throw new TypeError;St(xe)||(xe=yi(xe));var Qe=Yr(he,xe,!1);return!St(Qe)&&Qe.OrdinaryDeleteMetadata(se,he,xe)})}(h,o),typeof o.Reflect>"u"&&(o.Reflect=a)}();var Y="named",x="name",V="unmanaged",b="optional",B="inject",k="multi_inject",E="inversify:tagged",L="inversify:tagged_props",W="inversify:paramtypes",A="post_construct",ce="pre_destroy",pe=function me(){return[B,k,x,V,Y,b]}(),re_Request="Request",re_Singleton="Singleton",re_Transient="Transient",Ge={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},we={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"},ue=0;function G(){return ue++}var Le=function(){function a(n,o){this.id=G(),this.activated=!1,this.serviceIdentifier=n,this.scope=o,this.type=Ge.Invalid,this.constraint=function(h){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}return a.prototype.clone=function(){var n=new a(this.serviceIdentifier,this.scope);return n.activated=n.scope===re_Singleton&&this.activated,n.implementationType=this.implementationType,n.dynamicValue=this.dynamicValue,n.scope=this.scope,n.type=this.type,n.factory=this.factory,n.provider=this.provider,n.constraint=this.constraint,n.onActivation=this.onActivation,n.onDeactivation=this.onDeactivation,n.cache=this.cache,n},a}(),Ce="Metadata key was used more than once in a parameter:",Re="NULL argument",Ye="Key Not Found",Z="Ambiguous match found for serviceIdentifier:",ye="No matching bindings found for serviceIdentifier:",Oe="Missing required @injectable annotation in:",He="Missing required @inject or @multiInject annotation in:",Je="Circular dependency found:",pt="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",kt=function(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];return"The number of constructor arguments in the derived class "+a[0]+" must be >= than the number of constructor arguments of its base class."},S=function(a,n){return"onDeactivation() error in class "+a+": "+n},ve="Maximum call stack size exceeded",ht=function(){function a(){}return a.prototype.getConstructorMetadata=function(n){return{compilerGeneratedMetadata:Reflect.getMetadata(W,n),userGeneratedMetadata:Reflect.getMetadata(E,n)||{}}},a.prototype.getPropertiesMetadata=function(n){return Reflect.getMetadata(L,n)||[]},a}(),Ot={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1};function Ut(a){return a instanceof RangeError||a.message===ve}function Yt(a){return"function"==typeof a?a.name:"symbol"==typeof a?a.toString():a}function F(a,n,o){var h="",g=o(a,n);return 0!==g.length&&(h="\nRegistered bindings:",g.forEach(function(_){var P="Object";null!==_.implementationType&&(P=Ne(_.implementationType)),h=h+"\n "+P,_.constraint.metaData&&(h=h+" - "+_.constraint.metaData)})),h}function ee(a,n){return null!==a.parentRequest&&(a.parentRequest.serviceIdentifier===n||ee(a.parentRequest,n))}function q(a){a.childRequests.forEach(function(n){if(ee(n,n.serviceIdentifier)){var o=function ge(a){var o=function n(h,g){void 0===g&&(g=[]);var _=Yt(h.serviceIdentifier);return g.push(_),null!==h.parentRequest?n(h.parentRequest,g):g}(a);return o.reverse().join(" --\x3e ")}(n);throw new Error(Je+" "+o)}q(n)})}function Ne(a){if(a.name)return a.name;var n=a.toString(),o=n.match(/^function\s*([^\s(]+)/);return o?o[1]:"Anonymous function: "+n}var qe=function(){function a(n){this.id=G(),this.container=n}return a.prototype.addPlan=function(n){this.plan=n},a.prototype.setCurrentRequest=function(n){this.currentRequest=n},a}(),ut=function(){function a(n,o){this.key=n,this.value=o}return a.prototype.toString=function(){return this.key===Y?"named: "+String(this.value).toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+String(this.value)+" }"},a}(),gt=function a(n,o){this.parentContext=n,this.rootRequest=o},rt=function(){function a(n){this._cb=n}return a.prototype.unwrap=function(){return this._cb()},a}(),y=function(){function a(n){this.str=n}return a.prototype.startsWith=function(n){return 0===this.str.indexOf(n)},a.prototype.endsWith=function(n){var o,h=n.split("").reverse().join("");return o=this.str.split("").reverse().join(""),this.startsWith.call({str:o},h)},a.prototype.contains=function(n){return-1!==this.str.indexOf(n)},a.prototype.equals=function(n){return this.str===n},a.prototype.value=function(){return this.str},a}(),U=function(){function a(n,o,h,g){this.id=G(),this.type=n,this.serviceIdentifier=h;var _="symbol"==typeof o?function tt(a){return a.toString().slice(7,-1)}(o):o;this.name=new y(_||""),this.identifier=o,this.metadata=new Array;var P=null;"string"==typeof g?P=new ut(Y,g):g instanceof ut&&(P=g),null!==P&&this.metadata.push(P)}return a.prototype.hasTag=function(n){for(var o=0,h=this.metadata;o<h.length;o++)if(h[o].key===n)return!0;return!1},a.prototype.isArray=function(){return this.hasTag(k)},a.prototype.matchesArray=function(n){return this.matchesTag(k)(n)},a.prototype.isNamed=function(){return this.hasTag(Y)},a.prototype.isTagged=function(){return this.metadata.some(function(n){return pe.every(function(o){return n.key!==o})})},a.prototype.isOptional=function(){return this.matchesTag(b)(!0)},a.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(n){return n.key===Y})[0]:null},a.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(n){return pe.every(function(o){return n.key!==o})}):null},a.prototype.matchesNamedTag=function(n){return this.matchesTag(Y)(n)},a.prototype.matchesTag=function(n){var o=this;return function(h){for(var g=0,_=o.metadata;g<_.length;g++){var P=_[g];if(P.key===n&&P.value===h)return!0}return!1}},a}(),J=function(a,n,o){if(o||2===arguments.length)for(var _,h=0,g=n.length;h<g;h++)(_||!(h in n))&&(_||(_=Array.prototype.slice.call(n,0,h)),_[h]=n[h]);return a.concat(_||Array.prototype.slice.call(n))};function Ae(a,n,o,h){var g=a.getConstructorMetadata(o),_=g.compilerGeneratedMetadata;if(void 0===_)throw new Error(Oe+" "+n+".");var Q=g.userGeneratedMetadata,ze=Object.keys(Q),Vt=function Be(a,n,o,h,g){for(var _=[],P=0;P<g;P++){var ze=oe(P,a,n,o,h);null!==ze&&_.push(ze)}return _}(h,n,_,Q,0===o.length&&ze.length>0||ze.length>o.length?ze.length:o.length),Un=De(a,o,n);return J(J([],Vt,!0),Un,!0)}function oe(a,n,o,h,g){var _=g[a.toString()]||[],P=Ie(_),Q=!0!==P.unmanaged,ze=h[a];if((ze=P.inject||P.multiInject||ze)instanceof rt&&(ze=ze.unwrap()),Q){if(!n&&(ze===Object||ze===Function||void 0===ze))throw new Error(He+" argument "+a+" in class "+o+".");var ii=new U(we.ConstructorArgument,P.targetName,ze);return ii.metadata=_,ii}return null}function ke(a,n,o,h){var g=a||n;if(void 0===g){var _=Oe+" for property "+String(o)+" in class "+h+".";throw new Error(_)}return g}function De(a,n,o){for(var h=a.getPropertiesMetadata(n),g=[],_=Object.getOwnPropertySymbols(h),ze=0,X=Object.keys(h).concat(_);ze<X.length;ze++){var Fe=X[ze],Mt=h[Fe],Vt=Ie(Mt),Un=Vt.targetName||Fe,ni=ke(Vt.inject,Vt.multiInject,Fe,o),ii=new U(we.ClassProperty,Un,ni);ii.metadata=Mt,g.push(ii)}var fs=Object.getPrototypeOf(n.prototype).constructor;if(fs!==Object){var go=De(a,fs,o);g=J(J([],g,!0),go,!0)}return g}function Ke(a,n){var o=Object.getPrototypeOf(n.prototype).constructor;if(o!==Object){var g=Ae(a,Ne(o),o,!0),_=g.map(function(ze){return ze.metadata.filter(function(X){return X.key===V})}),P=[].concat.apply([],_).length,Q=g.length-P;return Q>0?Q:Ke(a,o)}return 0}function Ie(a){var n={};return a.forEach(function(o){n[o.key.toString()]=o.value}),{inject:n[B],multiInject:n[k],targetName:n[x],unmanaged:n[V]}}var yt=function(){function a(n,o,h,g,_){this.id=G(),this.serviceIdentifier=n,this.parentContext=o,this.parentRequest=h,this.target=_,this.childRequests=[],this.bindings=Array.isArray(g)?g:[g],this.requestScope=null===h?new Map:null}return a.prototype.addChildRequest=function(n,o,h){var g=new a(n,this.parentContext,this,o,h);return this.childRequests.push(g),g},a}();function _t(a){return a._bindingDictionary}function ct(a,n,o,h,g){var P,_=Ue(o.container,g.serviceIdentifier);return _.length===Ot.NoBindingsAvailable&&o.container.options.autoBindInjectable&&"function"==typeof g.serviceIdentifier&&a.getConstructorMetadata(g.serviceIdentifier).compilerGeneratedMetadata&&(o.container.bind(g.serviceIdentifier).toSelf(),_=Ue(o.container,g.serviceIdentifier)),P=n?_:_.filter(function(Q){var ze=new yt(Q.serviceIdentifier,o,h,Q,g);return Q.constraint(ze)}),function Xe(a,n,o,h){switch(n.length){case Ot.NoBindingsAvailable:if(o.isOptional())return n;var g=Yt(a),_=ye;throw _+=function Te(a,n){if(n.isTagged()||n.isNamed()){var o="",h=n.getNamedTag(),g=n.getCustomTags();return null!==h&&(o+=h.toString()+"\n"),null!==g&&g.forEach(function(_){o+=_.toString()+"\n"})," "+a+"\n "+a+" - "+o}return" "+a}(g,o),_+=F(h,g,Ue),new Error(_);case Ot.OnlyOneBindingAvailable:return n;default:if(o.isArray())return n;throw g=Yt(a),_=Z+" "+g,_+=F(h,g,Ue),new Error(_)}}(g.serviceIdentifier,P,g,o.container),P}function Dt(a,n,o,h,g,_){var P,Q;if(null===g){P=ct(a,n,h,null,_),Q=new yt(o,h,null,P,_);var ze=new gt(h,Q);h.addPlan(ze)}else P=ct(a,n,h,g,_),Q=g.addChildRequest(_.serviceIdentifier,P,_);P.forEach(function(X){var Fe=null;if(_.isArray())Fe=Q.addChildRequest(X.serviceIdentifier,X,_);else{if(X.cache)return;Fe=Q}if(X.type===Ge.Instance&&null!==X.implementationType){var Mt=function le(a,n){return Ae(a,Ne(n),n,!1)}(a,X.implementationType);if(!h.container.options.skipBaseClassChecks){var Vt=Ke(a,X.implementationType);if(Mt.length<Vt){var Un=kt(Ne(X.implementationType));throw new Error(Un)}}Mt.forEach(function(ni){Dt(a,!1,ni.serviceIdentifier,h,Fe,ni)})}})}function Ue(a,n){var o=[],h=_t(a);return h.hasKey(n)?o=h.get(n):null!==a.parent&&(o=Ue(a.parent,n)),o}function Lt(a){return("object"==typeof a&&null!==a||"function"==typeof a)&&"function"==typeof a.then}function Nt(a){return!!Lt(a)||Array.isArray(a)&&a.some(Lt)}var w=function(a,n){return function(a,n,o,h){return new(o||(o=Promise))(function(_,P){function Q(Fe){try{X(h.next(Fe))}catch(Mt){P(Mt)}}function ze(Fe){try{X(h.throw(Fe))}catch(Mt){P(Mt)}}function X(Fe){Fe.done?_(Fe.value):function g(_){return _ instanceof o?_:new o(function(P){P(_)})}(Fe.value).then(Q,ze)}X((h=h.apply(a,n||[])).next())})}(void 0,void 0,void 0,function(){var o,h;return function(a,n){var h,g,_,P,o={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return P={next:Q(0),throw:Q(1),return:Q(2)},"function"==typeof Symbol&&(P[Symbol.iterator]=function(){return this}),P;function Q(X){return function(Fe){return function ze(X){if(h)throw new TypeError("Generator is already executing.");for(;o;)try{if(h=1,g&&(_=2&X[0]?g.return:X[0]?g.throw||((_=g.return)&&_.call(g),0):g.next)&&!(_=_.call(g,X[1])).done)return _;switch(g=0,_&&(X=[2&X[0],_.value]),X[0]){case 0:case 1:_=X;break;case 4:return o.label++,{value:X[1],done:!1};case 5:o.label++,g=X[1],X=[0];continue;case 7:X=o.ops.pop(),o.trys.pop();continue;default:if(!(_=(_=o.trys).length>0&&_[_.length-1])&&(6===X[0]||2===X[0])){o=0;continue}if(3===X[0]&&(!_||X[1]>_[0]&&X[1]<_[3])){o.label=X[1];break}if(6===X[0]&&o.label<_[1]){o.label=_[1],_=X;break}if(_&&o.label<_[2]){o.label=_[2],o.ops.push(X);break}_[2]&&o.ops.pop(),o.trys.pop();continue}X=n.call(a,o)}catch(Fe){X=[6,Fe],g=0}finally{h=_=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([X,Fe])}}}(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),[4,n];case 1:return o=g.sent(),a.cache=o,[3,3];case 2:throw h=g.sent(),a.cache=null,a.activated=!1,h;case 3:return[2]}})})},ae=function(a){return a.DynamicValue="toDynamicValue",a.Factory="toFactory",a.Provider="toProvider",a}(ae||{}),Me=function(){return Me=Object.assign||function(a){for(var n,o=1,h=arguments.length;o<h;o++)for(var g in n=arguments[o])Object.prototype.hasOwnProperty.call(n,g)&&(a[g]=n[g]);return a},Me.apply(this,arguments)},Ve=function(a,n,o,h){return new(o||(o=Promise))(function(_,P){function Q(Fe){try{X(h.next(Fe))}catch(Mt){P(Mt)}}function ze(Fe){try{X(h.throw(Fe))}catch(Mt){P(Mt)}}function X(Fe){Fe.done?_(Fe.value):function g(_){return _ instanceof o?_:new o(function(P){P(_)})}(Fe.value).then(Q,ze)}X((h=h.apply(a,n||[])).next())})},de=function(a,n){var h,g,_,P,o={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return P={next:Q(0),throw:Q(1),return:Q(2)},"function"==typeof Symbol&&(P[Symbol.iterator]=function(){return this}),P;function Q(X){return function(Fe){return function ze(X){if(h)throw new TypeError("Generator is already executing.");for(;o;)try{if(h=1,g&&(_=2&X[0]?g.return:X[0]?g.throw||((_=g.return)&&_.call(g),0):g.next)&&!(_=_.call(g,X[1])).done)return _;switch(g=0,_&&(X=[2&X[0],_.value]),X[0]){case 0:case 1:_=X;break;case 4:return o.label++,{value:X[1],done:!1};case 5:o.label++,g=X[1],X=[0];continue;case 7:X=o.ops.pop(),o.trys.pop();continue;default:if(!(_=(_=o.trys).length>0&&_[_.length-1])&&(6===X[0]||2===X[0])){o=0;continue}if(3===X[0]&&(!_||X[1]>_[0]&&X[1]<_[3])){o.label=X[1];break}if(6===X[0]&&o.label<_[1]){o.label=_[1],_=X;break}if(_&&o.label<_[2]){o.label=_[2],o.ops.push(X);break}_[2]&&o.ops.pop(),o.trys.pop();continue}X=n.call(a,o)}catch(Fe){X=[6,Fe],g=0}finally{h=_=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([X,Fe])}}},$e=function(a,n,o){if(o||2===arguments.length)for(var _,h=0,g=n.length;h<g;h++)(_||!(h in n))&&(_||(_=Array.prototype.slice.call(n,0,h)),_[h]=n[h]);return a.concat(_||Array.prototype.slice.call(n))};function it(a){var n,o=new((n=a.constr).bind.apply(n,$e([void 0],a.constructorInjections,!1)));return a.propertyRequests.forEach(function(h,g){var _=h.target.identifier,P=a.propertyInjections[g];(!h.target.isOptional()||void 0!==P)&&(o[_]=P)}),o}function Tt(a){return Ve(this,void 0,void 0,function(){var n,o,h,g;return de(this,function(_){for(n=[],o=0,h=a;o<h.length;o++)g=h[o],Array.isArray(g)?n.push(Promise.all(g)):n.push(g);return[2,Promise.all(n)]})})}function Et(a,n){var o=function Bt(a,n){var o,h;if(Reflect.hasMetadata(A,a)){var g=Reflect.getMetadata(A,a);try{return null===(h=(o=n)[g.value])||void 0===h?void 0:h.call(o)}catch(_){if(_ instanceof Error)throw new Error(function(a,n){return"@postConstruct error in class "+a+": "+n}(a.name,_.message))}}}(a,n);return Lt(o)?o.then(function(){return n}):n}var ui=function(a){return function(n){n.parentContext.setCurrentRequest(n);var o=n.bindings,h=n.childRequests,g=n.target&&n.target.isArray(),_=!(n.parentRequest&&n.parentRequest.target&&n.target&&n.parentRequest.target.matchesArray(n.target.serviceIdentifier));return g&&_?h.map(function(Q){return ui(a)(Q)}):n.target.isOptional()&&0===o.length?void 0:Di(a,n,o[0])}},wi=function(a,n,o){var h,g=n.childRequests;switch(function(a){var n=null;switch(a.type){case Ge.ConstantValue:case Ge.Function:n=a.cache;break;case Ge.Constructor:case Ge.Instance:n=a.implementationType;break;case Ge.DynamicValue:n=a.dynamicValue;break;case Ge.Provider:n=a.provider;break;case Ge.Factory:n=a.factory}if(null===n){var o=Yt(a.serviceIdentifier);throw new Error("Invalid binding type: "+o)}}(o),o.type){case Ge.ConstantValue:case Ge.Function:h=o.cache;break;case Ge.Constructor:h=o.implementationType;break;case Ge.Instance:h=function bn(a,n,o,h){!function jt(a,n){a.scope!==re_Singleton&&function yn(a,n){var o="Class cannot be instantiated in "+(a.scope===re_Request?"request":"transient")+" scope.";if("function"==typeof a.onDeactivation)throw new Error(S(n.name,o));if(Reflect.hasMetadata(ce,n))throw new Error(function(a,n){return"@preDestroy error in class "+a+": "+n}(n.name,o))}(a,n)}(a,n);var g=function vt(a,n,o){var h;if(n.length>0){var g=function nt(a,n){return a.reduce(function(o,h){var g=n(h);return h.target.type===we.ConstructorArgument?o.constructorInjections.push(g):(o.propertyRequests.push(h),o.propertyInjections.push(g)),o.isAsync||(o.isAsync=Nt(g)),o},{constructorInjections:[],propertyInjections:[],propertyRequests:[],isAsync:!1})}(n,o),_=Me(Me({},g),{constr:a});h=g.isAsync?function bt(a){return Ve(this,void 0,void 0,function(){var n,o;return de(this,function(h){switch(h.label){case 0:return[4,Tt(a.constructorInjections)];case 1:return n=h.sent(),[4,Tt(a.propertyInjections)];case 2:return o=h.sent(),[2,it(Me(Me({},a),{constructorInjections:n,propertyInjections:o}))]}})})}(_):it(_)}else h=new a;return h}(n,o,h);return Lt(g)?g.then(function(_){return Et(n,_)}):Et(n,g)}(o,o.implementationType,g,ui(a));break;default:h=function(a,n){var o=function(a){switch(a.type){case Ge.Factory:return{factory:a.factory,factoryType:ae.Factory};case Ge.Provider:return{factory:a.provider,factoryType:ae.Provider};case Ge.DynamicValue:return{factory:a.dynamicValue,factoryType:ae.DynamicValue};default:throw new Error("Unexpected factory type "+a.type)}}(a);return function(a,n){try{return a()}catch(o){throw Ut(o)&&(o=n()),o}}(function(){return o.factory.bind(a)(n)},function(){return new Error(function(a,n){return"It looks like there is a circular dependency in one of the '"+a+"' bindings. Please investigate bindings with service identifier '"+n+"'."}(o.factoryType,n.currentRequest.serviceIdentifier.toString()))})}(o,n.parentContext)}return h},Jn=function(a,n,o){var h=function(a,n){return n.scope===re_Singleton&&n.activated?n.cache:n.scope===re_Request&&a.has(n.id)?a.get(n.id):null}(a,n);return null!==h||function(a,n,o){n.scope===re_Singleton&&function(a,n){a.cache=n,a.activated=!0,Lt(n)&&w(a,n)}(n,o),n.scope===re_Request&&function(a,n,o){a.has(n.id)||a.set(n.id,o)}(a,n,o)}(a,n,h=o()),h},Di=function(a,n,o){return Jn(a,o,function(){var h=wi(a,n,o);return Lt(h)?h.then(function(g){return si(n,o,g)}):si(n,o,h)})};function si(a,n,o){var _,h=Ti(a.parentContext,n,o),g=$n(a.parentContext.container),P=g.next();do{var Q=a.parentContext,X=Pn(_=P.value,a.serviceIdentifier);h=Lt(h)?Qn(X,Q,h):Ni(X,Q,h),P=g.next()}while(!0!==P.done&&!_t(_).hasKey(a.serviceIdentifier));return h}var Ti=function(a,n,o){return"function"==typeof n.onActivation?n.onActivation(a,o):o},Ni=function(a,n,o){for(var h=a.next();!h.done;){if(Lt(o=h.value(n,o)))return Qn(a,n,o);h=a.next()}return o},Qn=function(a,n,o){return function(a,n,o,h){return new(o||(o=Promise))(function(_,P){function Q(Fe){try{X(h.next(Fe))}catch(Mt){P(Mt)}}function ze(Fe){try{X(h.throw(Fe))}catch(Mt){P(Mt)}}function X(Fe){Fe.done?_(Fe.value):function g(_){return _ instanceof o?_:new o(function(P){P(_)})}(Fe.value).then(Q,ze)}X((h=h.apply(a,n||[])).next())})}(void 0,void 0,void 0,function(){var h,g;return function(a,n){var h,g,_,P,o={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return P={next:Q(0),throw:Q(1),return:Q(2)},"function"==typeof Symbol&&(P[Symbol.iterator]=function(){return this}),P;function Q(X){return function(Fe){return function ze(X){if(h)throw new TypeError("Generator is already executing.");for(;o;)try{if(h=1,g&&(_=2&X[0]?g.return:X[0]?g.throw||((_=g.return)&&_.call(g),0):g.next)&&!(_=_.call(g,X[1])).done)return _;switch(g=0,_&&(X=[2&X[0],_.value]),X[0]){case 0:case 1:_=X;break;case 4:return o.label++,{value:X[1],done:!1};case 5:o.label++,g=X[1],X=[0];continue;case 7:X=o.ops.pop(),o.trys.pop();continue;default:if(!(_=(_=o.trys).length>0&&_[_.length-1])&&(6===X[0]||2===X[0])){o=0;continue}if(3===X[0]&&(!_||X[1]>_[0]&&X[1]<_[3])){o.label=X[1];break}if(6===X[0]&&o.label<_[1]){o.label=_[1],_=X;break}if(_&&o.label<_[2]){o.label=_[2],o.ops.push(X);break}_[2]&&o.ops.pop(),o.trys.pop();continue}X=n.call(a,o)}catch(Fe){X=[6,Fe],g=0}finally{h=_=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([X,Fe])}}}(this,function(_){switch(_.label){case 0:return[4,o];case 1:h=_.sent(),g=a.next(),_.label=2;case 2:return g.done?[3,4]:[4,g.value(n,h)];case 3:return h=_.sent(),g=a.next(),[3,2];case 4:return[2,h]}})})},Pn=function(a,n){var o=a._activations;return o.hasKey(n)?o.get(n).values():[].values()},$n=function(a){for(var n=[a],o=a.parent;null!==o;)n.push(o),o=o.parent;return{next:function(){var _=n.pop();return void 0!==_?{done:!1,value:_}:{done:!0,value:void 0}}}},dn=function(a,n){var o=a.parentRequest;return null!==o&&(!!n(o)||dn(o,n))},Bi=function(a){return function(n){var o=function(h){return null!==h&&null!==h.target&&h.target.matchesTag(a)(n)};return o.metaData=new ut(a,n),o}},Ki=Bi(Y),ms=function(a){return function(n){return null!==n&&("string"==typeof a?n.bindings[0].serviceIdentifier===a:a===n.bindings[0].implementationType)}},gs=function(){function a(n){this._binding=n}return a.prototype.when=function(n){return this._binding.constraint=n,new cn(this._binding)},a.prototype.whenTargetNamed=function(n){return this._binding.constraint=Ki(n),new cn(this._binding)},a.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(n){return null!==n&&null!==n.target&&!n.target.isNamed()&&!n.target.isTagged()},new cn(this._binding)},a.prototype.whenTargetTagged=function(n,o){return this._binding.constraint=Bi(n)(o),new cn(this._binding)},a.prototype.whenInjectedInto=function(n){return this._binding.constraint=function(o){return null!==o&&ms(n)(o.parentRequest)},new cn(this._binding)},a.prototype.whenParentNamed=function(n){return this._binding.constraint=function(o){return null!==o&&Ki(n)(o.parentRequest)},new cn(this._binding)},a.prototype.whenParentTagged=function(n,o){return this._binding.constraint=function(h){return null!==h&&Bi(n)(o)(h.parentRequest)},new cn(this._binding)},a.prototype.whenAnyAncestorIs=function(n){return this._binding.constraint=function(o){return null!==o&&dn(o,ms(n))},new cn(this._binding)},a.prototype.whenNoAncestorIs=function(n){return this._binding.constraint=function(o){return null!==o&&!dn(o,ms(n))},new cn(this._binding)},a.prototype.whenAnyAncestorNamed=function(n){return this._binding.constraint=function(o){return null!==o&&dn(o,Ki(n))},new cn(this._binding)},a.prototype.whenNoAncestorNamed=function(n){return this._binding.constraint=function(o){return null!==o&&!dn(o,Ki(n))},new cn(this._binding)},a.prototype.whenAnyAncestorTagged=function(n,o){return this._binding.constraint=function(h){return null!==h&&dn(h,Bi(n)(o))},new cn(this._binding)},a.prototype.whenNoAncestorTagged=function(n,o){return this._binding.constraint=function(h){return null!==h&&!dn(h,Bi(n)(o))},new cn(this._binding)},a.prototype.whenAnyAncestorMatches=function(n){return this._binding.constraint=function(o){return null!==o&&dn(o,n)},new cn(this._binding)},a.prototype.whenNoAncestorMatches=function(n){return this._binding.constraint=function(o){return null!==o&&!dn(o,n)},new cn(this._binding)},a}(),cn=function(){function a(n){this._binding=n}return a.prototype.onActivation=function(n){return this._binding.onActivation=n,new gs(this._binding)},a.prototype.onDeactivation=function(n){return this._binding.onDeactivation=n,new gs(this._binding)},a}(),Rn=function(){function a(n){this._binding=n,this._bindingWhenSyntax=new gs(this._binding),this._bindingOnSyntax=new cn(this._binding)}return a.prototype.when=function(n){return this._bindingWhenSyntax.when(n)},a.prototype.whenTargetNamed=function(n){return this._bindingWhenSyntax.whenTargetNamed(n)},a.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},a.prototype.whenTargetTagged=function(n,o){return this._bindingWhenSyntax.whenTargetTagged(n,o)},a.prototype.whenInjectedInto=function(n){return this._bindingWhenSyntax.whenInjectedInto(n)},a.prototype.whenParentNamed=function(n){return this._bindingWhenSyntax.whenParentNamed(n)},a.prototype.whenParentTagged=function(n,o){return this._bindingWhenSyntax.whenParentTagged(n,o)},a.prototype.whenAnyAncestorIs=function(n){return this._bindingWhenSyntax.whenAnyAncestorIs(n)},a.prototype.whenNoAncestorIs=function(n){return this._bindingWhenSyntax.whenNoAncestorIs(n)},a.prototype.whenAnyAncestorNamed=function(n){return this._bindingWhenSyntax.whenAnyAncestorNamed(n)},a.prototype.whenAnyAncestorTagged=function(n,o){return this._bindingWhenSyntax.whenAnyAncestorTagged(n,o)},a.prototype.whenNoAncestorNamed=function(n){return this._bindingWhenSyntax.whenNoAncestorNamed(n)},a.prototype.whenNoAncestorTagged=function(n,o){return this._bindingWhenSyntax.whenNoAncestorTagged(n,o)},a.prototype.whenAnyAncestorMatches=function(n){return this._bindingWhenSyntax.whenAnyAncestorMatches(n)},a.prototype.whenNoAncestorMatches=function(n){return this._bindingWhenSyntax.whenNoAncestorMatches(n)},a.prototype.onActivation=function(n){return this._bindingOnSyntax.onActivation(n)},a.prototype.onDeactivation=function(n){return this._bindingOnSyntax.onDeactivation(n)},a}(),Us=function(){function a(n){this._binding=n}return a.prototype.inRequestScope=function(){return this._binding.scope=re_Request,new Rn(this._binding)},a.prototype.inSingletonScope=function(){return this._binding.scope=re_Singleton,new Rn(this._binding)},a.prototype.inTransientScope=function(){return this._binding.scope=re_Transient,new Rn(this._binding)},a}(),vs=function(){function a(n){this._binding=n,this._bindingWhenSyntax=new gs(this._binding),this._bindingOnSyntax=new cn(this._binding),this._bindingInSyntax=new Us(n)}return a.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},a.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},a.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},a.prototype.when=function(n){return this._bindingWhenSyntax.when(n)},a.prototype.whenTargetNamed=function(n){return this._bindingWhenSyntax.whenTargetNamed(n)},a.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},a.prototype.whenTargetTagged=function(n,o){return this._bindingWhenSyntax.whenTargetTagged(n,o)},a.prototype.whenInjectedInto=function(n){return this._bindingWhenSyntax.whenInjectedInto(n)},a.prototype.whenParentNamed=function(n){return this._bindingWhenSyntax.whenParentNamed(n)},a.prototype.whenParentTagged=function(n,o){return this._bindingWhenSyntax.whenParentTagged(n,o)},a.prototype.whenAnyAncestorIs=function(n){return this._bindingWhenSyntax.whenAnyAncestorIs(n)},a.prototype.whenNoAncestorIs=function(n){return this._bindingWhenSyntax.whenNoAncestorIs(n)},a.prototype.whenAnyAncestorNamed=function(n){return this._bindingWhenSyntax.whenAnyAncestorNamed(n)},a.prototype.whenAnyAncestorTagged=function(n,o){return this._bindingWhenSyntax.whenAnyAncestorTagged(n,o)},a.prototype.whenNoAncestorNamed=function(n){return this._bindingWhenSyntax.whenNoAncestorNamed(n)},a.prototype.whenNoAncestorTagged=function(n,o){return this._bindingWhenSyntax.whenNoAncestorTagged(n,o)},a.prototype.whenAnyAncestorMatches=function(n){return this._bindingWhenSyntax.whenAnyAncestorMatches(n)},a.prototype.whenNoAncestorMatches=function(n){return this._bindingWhenSyntax.whenNoAncestorMatches(n)},a.prototype.onActivation=function(n){return this._bindingOnSyntax.onActivation(n)},a.prototype.onDeactivation=function(n){return this._bindingOnSyntax.onDeactivation(n)},a}(),Nr=function(){function a(n){this._binding=n}return a.prototype.to=function(n){return this._binding.type=Ge.Instance,this._binding.implementationType=n,new vs(this._binding)},a.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error("The toSelf function can only be applied when a constructor is used as service identifier");return this.to(this._binding.serviceIdentifier)},a.prototype.toConstantValue=function(n){return this._binding.type=Ge.ConstantValue,this._binding.cache=n,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=re_Singleton,new Rn(this._binding)},a.prototype.toDynamicValue=function(n){return this._binding.type=Ge.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=n,this._binding.implementationType=null,new vs(this._binding)},a.prototype.toConstructor=function(n){return this._binding.type=Ge.Constructor,this._binding.implementationType=n,this._binding.scope=re_Singleton,new Rn(this._binding)},a.prototype.toFactory=function(n){return this._binding.type=Ge.Factory,this._binding.factory=n,this._binding.scope=re_Singleton,new Rn(this._binding)},a.prototype.toFunction=function(n){if("function"!=typeof n)throw new Error("Value provided to function binding must be a function!");var o=this.toConstantValue(n);return this._binding.type=Ge.Function,this._binding.scope=re_Singleton,o},a.prototype.toAutoFactory=function(n){return this._binding.type=Ge.Factory,this._binding.factory=function(o){return function(){return o.container.get(n)}},this._binding.scope=re_Singleton,new Rn(this._binding)},a.prototype.toAutoNamedFactory=function(n){return this._binding.type=Ge.Factory,this._binding.factory=function(o){return function(h){return o.container.getNamed(n,h)}},new Rn(this._binding)},a.prototype.toProvider=function(n){return this._binding.type=Ge.Provider,this._binding.provider=n,this._binding.scope=re_Singleton,new Rn(this._binding)},a.prototype.toService=function(n){this.toDynamicValue(function(o){return o.container.get(n)})},a}(),ri=function(){function a(){}return a.of=function(n,o,h,g,_){var P=new a;return P.bindings=n,P.middleware=o,P.deactivations=g,P.activations=h,P.moduleActivationStore=_,P},a}(),Zn=function(){function a(){this._map=new Map}return a.prototype.getMap=function(){return this._map},a.prototype.add=function(n,o){if(null==n)throw new Error(Re);if(null==o)throw new Error(Re);var h=this._map.get(n);void 0!==h?h.push(o):this._map.set(n,[o])},a.prototype.get=function(n){if(null==n)throw new Error(Re);var o=this._map.get(n);if(void 0!==o)return o;throw new Error(Ye)},a.prototype.remove=function(n){if(null==n)throw new Error(Re);if(!this._map.delete(n))throw new Error(Ye)},a.prototype.removeIntersection=function(n){var o=this;this.traverse(function(h,g){var _=n.hasKey(h)?n.get(h):void 0;if(void 0!==_){var P=g.filter(function(Q){return!_.some(function(ze){return Q===ze})});o._setValue(h,P)}})},a.prototype.removeByCondition=function(n){var o=this,h=[];return this._map.forEach(function(g,_){for(var P=[],Q=0,ze=g;Q<ze.length;Q++){var X=ze[Q];n(X)?h.push(X):P.push(X)}o._setValue(_,P)}),h},a.prototype.hasKey=function(n){if(null==n)throw new Error(Re);return this._map.has(n)},a.prototype.clone=function(){var n=new a;return this._map.forEach(function(o,h){o.forEach(function(g){return n.add(h,function Br(a){return"object"==typeof a&&null!==a&&"clone"in a&&"function"==typeof a.clone}(g)?g.clone():g)})}),n},a.prototype.traverse=function(n){this._map.forEach(function(o,h){n(h,o)})},a.prototype._setValue=function(n,o){o.length>0?this._map.set(n,o):this._map.delete(n)},a}(),$s=function(){function a(){this._map=new Map}return a.prototype.remove=function(n){if(this._map.has(n)){var o=this._map.get(n);return this._map.delete(n),o}return this._getEmptyHandlersStore()},a.prototype.addDeactivation=function(n,o,h){this._getModuleActivationHandlers(n).onDeactivations.add(o,h)},a.prototype.addActivation=function(n,o,h){this._getModuleActivationHandlers(n).onActivations.add(o,h)},a.prototype.clone=function(){var n=new a;return this._map.forEach(function(o,h){n._map.set(h,{onActivations:o.onActivations.clone(),onDeactivations:o.onDeactivations.clone()})}),n},a.prototype._getModuleActivationHandlers=function(n){var o=this._map.get(n);return void 0===o&&(o=this._getEmptyHandlersStore(),this._map.set(n,o)),o},a.prototype._getEmptyHandlersStore=function(){return{onActivations:new Zn,onDeactivations:new Zn}},a}(),oi=function(){return oi=Object.assign||function(a){for(var n,o=1,h=arguments.length;o<h;o++)for(var g in n=arguments[o])Object.prototype.hasOwnProperty.call(n,g)&&(a[g]=n[g]);return a},oi.apply(this,arguments)},wn=function(a,n,o,h){return new(o||(o=Promise))(function(_,P){function Q(Fe){try{X(h.next(Fe))}catch(Mt){P(Mt)}}function ze(Fe){try{X(h.throw(Fe))}catch(Mt){P(Mt)}}function X(Fe){Fe.done?_(Fe.value):function g(_){return _ instanceof o?_:new o(function(P){P(_)})}(Fe.value).then(Q,ze)}X((h=h.apply(a,n||[])).next())})},Dn=function(a,n){var h,g,_,P,o={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return P={next:Q(0),throw:Q(1),return:Q(2)},"function"==typeof Symbol&&(P[Symbol.iterator]=function(){return this}),P;function Q(X){return function(Fe){return function ze(X){if(h)throw new TypeError("Generator is already executing.");for(;o;)try{if(h=1,g&&(_=2&X[0]?g.return:X[0]?g.throw||((_=g.return)&&_.call(g),0):g.next)&&!(_=_.call(g,X[1])).done)return _;switch(g=0,_&&(X=[2&X[0],_.value]),X[0]){case 0:case 1:_=X;break;case 4:return o.label++,{value:X[1],done:!1};case 5:o.label++,g=X[1],X=[0];continue;case 7:X=o.ops.pop(),o.trys.pop();continue;default:if(!(_=(_=o.trys).length>0&&_[_.length-1])&&(6===X[0]||2===X[0])){o=0;continue}if(3===X[0]&&(!_||X[1]>_[0]&&X[1]<_[3])){o.label=X[1];break}if(6===X[0]&&o.label<_[1]){o.label=_[1],_=X;break}if(_&&o.label<_[2]){o.label=_[2],o.ops.push(X);break}_[2]&&o.ops.pop(),o.trys.pop();continue}X=n.call(a,o)}catch(Fe){X=[6,Fe],g=0}finally{h=_=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([X,Fe])}}},zi=function(){function a(n){var o=n||{};if("object"!=typeof o)throw new Error("Invalid Container constructor argument. Container options must be an object.");if(void 0===o.defaultScope)o.defaultScope=re_Transient;else if(o.defaultScope!==re_Singleton&&o.defaultScope!==re_Transient&&o.defaultScope!==re_Request)throw new Error('Invalid Container option. Default scope must be a string ("singleton" or "transient").');if(void 0===o.autoBindInjectable)o.autoBindInjectable=!1;else if("boolean"!=typeof o.autoBindInjectable)throw new Error("Invalid Container option. Auto bind injectable must be a boolean");if(void 0===o.skipBaseClassChecks)o.skipBaseClassChecks=!1;else if("boolean"!=typeof o.skipBaseClassChecks)throw new Error("Invalid Container option. Skip base check must be a boolean");this.options={autoBindInjectable:o.autoBindInjectable,defaultScope:o.defaultScope,skipBaseClassChecks:o.skipBaseClassChecks},this.id=G(),this._bindingDictionary=new Zn,this._snapshots=[],this._middleware=null,this._activations=new Zn,this._deactivations=new Zn,this.parent=null,this._metadataReader=new ht,this._moduleActivationStore=new $s}return a.merge=function(n,o){for(var h=[],g=2;g<arguments.length;g++)h[g-2]=arguments[g];var _=new a,P=function(a,n,o){if(o||2===arguments.length)for(var _,h=0,g=n.length;h<g;h++)(_||!(h in n))&&(_||(_=Array.prototype.slice.call(n,0,h)),_[h]=n[h]);return a.concat(_||Array.prototype.slice.call(n))}([n,o],h,!0).map(function(X){return _t(X)}),Q=_t(_);return P.forEach(function(X){!function ze(X,Fe){X.traverse(function(Mt,Vt){Vt.forEach(function(Un){Fe.add(Un.serviceIdentifier,Un.clone())})})}(X,Q)}),_},a.prototype.load=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];for(var h=this._getContainerModuleHelpersFactory(),g=0,_=n;g<_.length;g++){var P=_[g],Q=h(P.id);P.registry(Q.bindFunction,Q.unbindFunction,Q.isboundFunction,Q.rebindFunction,Q.unbindAsyncFunction,Q.onActivationFunction,Q.onDeactivationFunction)}},a.prototype.loadAsync=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return wn(this,void 0,void 0,function(){var h,g,_,P,Q;return Dn(this,function(ze){switch(ze.label){case 0:h=this._getContainerModuleHelpersFactory(),g=0,_=n,ze.label=1;case 1:return g<_.length?(Q=h((P=_[g]).id),[4,P.registry(Q.bindFunction,Q.unbindFunction,Q.isboundFunction,Q.rebindFunction,Q.unbindAsyncFunction,Q.onActivationFunction,Q.onDeactivationFunction)]):[3,4];case 2:ze.sent(),ze.label=3;case 3:return g++,[3,1];case 4:return[2]}})})},a.prototype.unload=function(){for(var n=this,o=[],h=0;h<arguments.length;h++)o[h]=arguments[h];o.forEach(function(g){var _=n._removeModuleBindings(g.id);n._deactivateSingletons(_),n._removeModuleHandlers(g.id)})},a.prototype.unloadAsync=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return wn(this,void 0,void 0,function(){var h,g,_,P;return Dn(this,function(Q){switch(Q.label){case 0:h=0,g=n,Q.label=1;case 1:return h<g.length?(P=this._removeModuleBindings((_=g[h]).id),[4,this._deactivateSingletonsAsync(P)]):[3,4];case 2:Q.sent(),this._removeModuleHandlers(_.id),Q.label=3;case 3:return h++,[3,1];case 4:return[2]}})})},a.prototype.bind=function(n){var h=new Le(n,this.options.defaultScope||re_Transient);return this._bindingDictionary.add(n,h),new Nr(h)},a.prototype.rebind=function(n){return this.unbind(n),this.bind(n)},a.prototype.rebindAsync=function(n){return wn(this,void 0,void 0,function(){return Dn(this,function(o){switch(o.label){case 0:return[4,this.unbindAsync(n)];case 1:return o.sent(),[2,this.bind(n)]}})})},a.prototype.unbind=function(n){if(this._bindingDictionary.hasKey(n)){var o=this._bindingDictionary.get(n);this._deactivateSingletons(o)}this._removeServiceFromDictionary(n)},a.prototype.unbindAsync=function(n){return wn(this,void 0,void 0,function(){var o;return Dn(this,function(h){switch(h.label){case 0:return this._bindingDictionary.hasKey(n)?(o=this._bindingDictionary.get(n),[4,this._deactivateSingletonsAsync(o)]):[3,2];case 1:h.sent(),h.label=2;case 2:return this._removeServiceFromDictionary(n),[2]}})})},a.prototype.unbindAll=function(){var n=this;this._bindingDictionary.traverse(function(o,h){n._deactivateSingletons(h)}),this._bindingDictionary=new Zn},a.prototype.unbindAllAsync=function(){return wn(this,void 0,void 0,function(){var n,o=this;return Dn(this,function(h){switch(h.label){case 0:return n=[],this._bindingDictionary.traverse(function(g,_){n.push(o._deactivateSingletonsAsync(_))}),[4,Promise.all(n)];case 1:return h.sent(),this._bindingDictionary=new Zn,[2]}})})},a.prototype.onActivation=function(n,o){this._activations.add(n,o)},a.prototype.onDeactivation=function(n,o){this._deactivations.add(n,o)},a.prototype.isBound=function(n){var o=this._bindingDictionary.hasKey(n);return!o&&this.parent&&(o=this.parent.isBound(n)),o},a.prototype.isCurrentBound=function(n){return this._bindingDictionary.hasKey(n)},a.prototype.isBoundNamed=function(n,o){return this.isBoundTagged(n,Y,o)},a.prototype.isBoundTagged=function(n,o,h){var g=!1;if(this._bindingDictionary.hasKey(n)){var _=this._bindingDictionary.get(n),P=function vn(a,n,o,h){var g=new U(we.Variable,"",n,new ut(o,h)),_=new qe(a);return new yt(n,_,null,[],g)}(this,n,o,h);g=_.some(function(Q){return Q.constraint(P)})}return!g&&this.parent&&(g=this.parent.isBoundTagged(n,o,h)),g},a.prototype.snapshot=function(){this._snapshots.push(ri.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))},a.prototype.restore=function(){var n=this._snapshots.pop();if(void 0===n)throw new Error("No snapshot available to restore.");this._bindingDictionary=n.bindings,this._activations=n.activations,this._deactivations=n.deactivations,this._middleware=n.middleware,this._moduleActivationStore=n.moduleActivationStore},a.prototype.createChild=function(n){var o=new a(n||this.options);return o.parent=this,o},a.prototype.applyMiddleware=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var h=this._middleware?this._middleware:this._planAndResolve();this._middleware=n.reduce(function(g,_){return _(g)},h)},a.prototype.applyCustomMetadataReader=function(n){this._metadataReader=n},a.prototype.get=function(n){var o=this._getNotAllArgs(n,!1);return this._getButThrowIfAsync(o)},a.prototype.getAsync=function(n){return wn(this,void 0,void 0,function(){var o;return Dn(this,function(h){return o=this._getNotAllArgs(n,!1),[2,this._get(o)]})})},a.prototype.getTagged=function(n,o,h){var g=this._getNotAllArgs(n,!1,o,h);return this._getButThrowIfAsync(g)},a.prototype.getTaggedAsync=function(n,o,h){return wn(this,void 0,void 0,function(){var g;return Dn(this,function(_){return g=this._getNotAllArgs(n,!1,o,h),[2,this._get(g)]})})},a.prototype.getNamed=function(n,o){return this.getTagged(n,Y,o)},a.prototype.getNamedAsync=function(n,o){return this.getTaggedAsync(n,Y,o)},a.prototype.getAll=function(n){var o=this._getAllArgs(n);return this._getButThrowIfAsync(o)},a.prototype.getAllAsync=function(n){var o=this._getAllArgs(n);return this._getAll(o)},a.prototype.getAllTagged=function(n,o,h){var g=this._getNotAllArgs(n,!0,o,h);return this._getButThrowIfAsync(g)},a.prototype.getAllTaggedAsync=function(n,o,h){var g=this._getNotAllArgs(n,!0,o,h);return this._getAll(g)},a.prototype.getAllNamed=function(n,o){return this.getAllTagged(n,Y,o)},a.prototype.getAllNamedAsync=function(n,o){return this.getAllTaggedAsync(n,Y,o)},a.prototype.resolve=function(n){var o=this.isBound(n);o||this.bind(n).toSelf();var h=this.get(n);return o||this.unbind(n),h},a.prototype._preDestroy=function(n,o){var h,g;if(Reflect.hasMetadata(ce,n))return null===(g=(h=o)[Reflect.getMetadata(ce,n).value])||void 0===g?void 0:g.call(h)},a.prototype._removeModuleHandlers=function(n){var o=this._moduleActivationStore.remove(n);this._activations.removeIntersection(o.onActivations),this._deactivations.removeIntersection(o.onDeactivations)},a.prototype._removeModuleBindings=function(n){return this._bindingDictionary.removeByCondition(function(o){return o.moduleId===n})},a.prototype._deactivate=function(n,o){var h=this,g=Object.getPrototypeOf(o).constructor;try{if(this._deactivations.hasKey(n.serviceIdentifier)){var _=this._deactivateContainer(o,this._deactivations.get(n.serviceIdentifier).values());if(Lt(_))return this._handleDeactivationError(_.then(function(){return h._propagateContainerDeactivationThenBindingAndPreDestroyAsync(n,o,g)}),g)}var P=this._propagateContainerDeactivationThenBindingAndPreDestroy(n,o,g);if(Lt(P))return this._handleDeactivationError(P,g)}catch(Q){if(Q instanceof Error)throw new Error(S(g.name,Q.message))}},a.prototype._handleDeactivationError=function(n,o){return wn(this,void 0,void 0,function(){var h;return Dn(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),[4,n];case 1:return g.sent(),[3,3];case 2:if((h=g.sent())instanceof Error)throw new Error(S(o.name,h.message));return[3,3];case 3:return[2]}})})},a.prototype._deactivateContainer=function(n,o){for(var h=this,g=o.next();g.value;){var _=g.value(n);if(Lt(_))return _.then(function(){return h._deactivateContainerAsync(n,o)});g=o.next()}},a.prototype._deactivateContainerAsync=function(n,o){return wn(this,void 0,void 0,function(){var h;return Dn(this,function(g){switch(g.label){case 0:h=o.next(),g.label=1;case 1:return h.value?[4,h.value(n)]:[3,3];case 2:return g.sent(),h=o.next(),[3,1];case 3:return[2]}})})},a.prototype._getContainerModuleHelpersFactory=function(){var n=this,o=function(Fe,Mt){Fe._binding.moduleId=Mt},h=function(Fe){return function(Mt){var Vt=n.bind(Mt);return o(Vt,Fe),Vt}},Q=function(Fe){return function(Mt){var Vt=n.rebind(Mt);return o(Vt,Fe),Vt}},ze=function(Fe){return function(Mt,Vt){n._moduleActivationStore.addActivation(Fe,Mt,Vt),n.onActivation(Mt,Vt)}},X=function(Fe){return function(Mt,Vt){n._moduleActivationStore.addDeactivation(Fe,Mt,Vt),n.onDeactivation(Mt,Vt)}};return function(Fe){return{bindFunction:h(Fe),isboundFunction:function(Fe){return n.isBound(Fe)},onActivationFunction:ze(Fe),onDeactivationFunction:X(Fe),rebindFunction:Q(Fe),unbindFunction:function(Fe){return n.unbind(Fe)},unbindAsyncFunction:function(Fe){return n.unbindAsync(Fe)}}}},a.prototype._getAll=function(n){return Promise.all(this._get(n))},a.prototype._get=function(n){var o=oi(oi({},n),{contextInterceptor:function(g){return g},targetType:we.Variable});if(this._middleware){var h=this._middleware(o);if(null==h)throw new Error("Invalid return type in middleware. Middleware must return!");return h}return this._planAndResolve()(o)},a.prototype._getButThrowIfAsync=function(n){var o=this._get(n);if(Nt(o))throw new Error(function(a){return"You are attempting to construct '"+a+"' in a synchronous way\n but it has asynchronous dependencies."}(n.serviceIdentifier));return o},a.prototype._getAllArgs=function(n){return{avoidConstraints:!0,isMultiInject:!0,serviceIdentifier:n}},a.prototype._getNotAllArgs=function(n,o,h,g){return{avoidConstraints:!1,isMultiInject:o,serviceIdentifier:n,key:h,value:g}},a.prototype._planAndResolve=function(){var n=this;return function(o){var h=function Zt(a,n,o,h,g,_,P,Q){void 0===Q&&(Q=!1);var ze=new qe(n),X=function Ze(a,n,o,h,g,_){var Q=new ut(a?k:B,o),ze=new U(n,h,o,Q);if(void 0!==g){var X=new ut(g,_);ze.metadata.push(X)}return ze}(o,h,g,"",_,P);try{return Dt(a,Q,g,ze,null,X),ze}catch(Fe){throw Ut(Fe)&&q(ze.plan.rootRequest),Fe}}(n._metadataReader,n,o.isMultiInject,o.targetType,o.serviceIdentifier,o.key,o.value,o.avoidConstraints),g=function ps(a){return ui(a.plan.rootRequest.requestScope)(a.plan.rootRequest)}(h=o.contextInterceptor(h));return g}},a.prototype._deactivateIfSingleton=function(n){var o=this;if(n.activated)return Lt(n.cache)?n.cache.then(function(h){return o._deactivate(n,h)}):this._deactivate(n,n.cache)},a.prototype._deactivateSingletons=function(n){for(var o=0,h=n;o<h.length;o++)if(Lt(this._deactivateIfSingleton(h[o])))throw new Error("Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)")},a.prototype._deactivateSingletonsAsync=function(n){return wn(this,void 0,void 0,function(){var o=this;return Dn(this,function(h){switch(h.label){case 0:return[4,Promise.all(n.map(function(g){return o._deactivateIfSingleton(g)}))];case 1:return h.sent(),[2]}})})},a.prototype._propagateContainerDeactivationThenBindingAndPreDestroy=function(n,o,h){return this.parent?this._deactivate.bind(this.parent)(n,o):this._bindingDeactivationAndPreDestroy(n,o,h)},a.prototype._propagateContainerDeactivationThenBindingAndPreDestroyAsync=function(n,o,h){return wn(this,void 0,void 0,function(){return Dn(this,function(g){switch(g.label){case 0:return this.parent?[4,this._deactivate.bind(this.parent)(n,o)]:[3,2];case 1:return g.sent(),[3,4];case 2:return[4,this._bindingDeactivationAndPreDestroyAsync(n,o,h)];case 3:g.sent(),g.label=4;case 4:return[2]}})})},a.prototype._removeServiceFromDictionary=function(n){try{this._bindingDictionary.remove(n)}catch{throw new Error("Could not unbind serviceIdentifier: "+Yt(n))}},a.prototype._bindingDeactivationAndPreDestroy=function(n,o,h){var g=this;if("function"==typeof n.onDeactivation){var _=n.onDeactivation(o);if(Lt(_))return _.then(function(){return g._preDestroy(h,o)})}return this._preDestroy(h,o)},a.prototype._bindingDeactivationAndPreDestroyAsync=function(n,o,h){return wn(this,void 0,void 0,function(){return Dn(this,function(g){switch(g.label){case 0:return"function"!=typeof n.onDeactivation?[3,2]:[4,n.onDeactivation(o)];case 1:g.sent(),g.label=2;case 2:return[4,this._preDestroy(h,o)];case 3:return g.sent(),[2]}})})},a}(),ys=function a(n){this.id=G(),this.registry=n};function Ks(a,n,o,h){var g=function Gs(a){var n=[];if(Array.isArray(a)){var o=function bs(a){for(var n=new Set,o=0,h=a;o<h.length;o++){var g=h[o];if(n.has(g))return g;n.add(g)}}((n=a).map(function(h){return h.key}));if(void 0!==o)throw new Error(Ce+" "+o.toString())}else n=[a];return n}(h),_={};Reflect.hasOwnMetadata(a,n)&&(_=Reflect.getMetadata(a,n));var P=_[o];if(void 0===P)P=[];else for(var Q=function(Mt){if(g.some(function(Vt){return Vt.key===Mt.key}))throw new Error(Ce+" "+Mt.key.toString())},ze=0,X=P;ze<X.length;ze++)Q(X[ze]);P.push.apply(P,g),_[o]=P,Reflect.defineMetadata(a,_,n)}function Vr(a){return function(n,o,h){"number"==typeof h?function ws(a,n,o,h){(function jr(a){if(void 0!==a)throw new Error(pt)})(n),Ks(E,a,o.toString(),h)}(n,o,h,a):function Zs(a,n,o){if(function Hr(a){return void 0!==a.prototype}(a))throw new Error(pt);Ks(L,a.constructor,n,o)}(n,o,a)}}function nn(){return function(a){if(Reflect.hasOwnMetadata(W,a))throw new Error("Cannot apply @injectable decorator multiple times.");var n=Reflect.getMetadata("design:paramtypes",a)||[];return Reflect.defineMetadata(W,n,a),a}}var en=function zs(a){return function(n){return function(o,h,g){if(void 0===n)throw new Error(function(a){return"@inject called with undefined this could mean that the class "+a+" has a circular dependency problem. You can use a LazyServiceIdentifier to  overcome this limitation."}("function"==typeof o?o.name:o.constructor.name));return Vr(new ut(a,n))(o,h,g)}}}(B);const Ct={Plugin:Symbol.for("Plugin"),ControlPanel:Symbol.for("ControlPanel"),UserInterface:Symbol.for("UserInterface"),Account:Symbol.for("Account"),Analytics:Symbol.for("Analytics"),Application:Symbol.for("Application"),PersonalStorage:Symbol.for("PersonalStorage"),SecureStorage:Symbol.for("SecureStorage"),PluginTools:Symbol.for("PluginTools"),Window:Symbol.for("Window")};var Sn=function(a){return a[a.auto=0]="auto",a[a.cpanel=1]="cpanel",a[a.plesk=2]="plesk",a[a.fake=3]="fake",a}(Sn||{}),Ji=function(a){return a[a.auto=0]="auto",a[a.admin=1]="admin",a[a.user=2]="user",a[a.other=3]="other",a}(Ji||{}),sn=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_},Yn=function(a,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,n)};let on=class{get plugin(){return this._plugin}get panel(){return this._panel}get interface(){return this._interface}};sn([en(Ct.PersonalStorage),Yn("design:type",Object)],on.prototype,"personalStorage",void 0),sn([en(Ct.SecureStorage),Yn("design:type",Object)],on.prototype,"secureStorage",void 0),sn([en(Ct.Application),Yn("design:type",Object)],on.prototype,"application",void 0),sn([en(Ct.Analytics),Yn("design:type",Object)],on.prototype,"analytics",void 0),sn([en(Ct.Account),Yn("design:type",Object)],on.prototype,"account",void 0),sn([en(Ct.PluginTools),Yn("design:type",Object)],on.prototype,"pluginTools",void 0),sn([en(Ct.Plugin),Yn("design:type",String)],on.prototype,"_plugin",void 0),sn([en(Ct.ControlPanel),Yn("design:type",Number)],on.prototype,"_panel",void 0),sn([en(Ct.UserInterface),Yn("design:type",Number)],on.prototype,"_interface",void 0),on=sn([nn()],on);class Xt{constructor(n,o=3e4){this._registry={},this._cacheTime=o;const h=Date.now();for(const g of n)this._registry[g]=h}expired(n){return Date.now()-this._registry[n]>3e4}}var zt=function(a){return a[a.GET=0]="GET",a[a.HEAD=1]="HEAD",a[a.POST=2]="POST",a[a.PUT=3]="PUT",a[a.DELETE=4]="DELETE",a[a.CONNECT=5]="CONNECT",a[a.OPTIONS=6]="OPTIONS",a[a.TRACE=7]="TRACE",a[a.PATCH=8]="PATCH",a}(zt||{});const Wr=new class Xn{constructor(){this.map={},this.map.DEFAULT={verb:"DEFAULT",dataInBody:!0},[zt.GET,zt.DELETE,zt.HEAD].forEach(n=>{const o=zt[n].toString();this.map[o]={verb:o,dataInBody:!1}}),[zt.POST,zt.PUT,zt.PATCH].forEach(n=>{const o=zt[n].toString();this.map[o]={verb:o,dataInBody:!0}})}getRule(n){const o="string"==typeof n?n:zt[n].toString();let h=this.map[o];return h||(h=this.map.DEFAULT),h}};function Xi(a){return a?"1":"0"}class Fi{constructor(n,o){if(!n)throw new Error("You must provide a name when creating a name/value argument");this.name=n,this.value=o}}var Tn=function(a){return a[a.Contains=0]="Contains",a[a.Begins=1]="Begins",a[a.Ends=2]="Ends",a[a.Matches=3]="Matches",a[a.Equal=4]="Equal",a[a.NotEqual=5]="NotEqual",a[a.LessThan=6]="LessThan",a[a.LessThanUnlimited=7]="LessThanUnlimited",a[a.GreaterThan=8]="GreaterThan",a[a.GreaterThanUnlimited=9]="GreaterThanUnlimited",a[a.Defined=10]="Defined",a[a.Undefined=11]="Undefined",a}(Tn||{});class qi{constructor(n,o,h){if(!n)throw new Error("You must define a non-empty column name.");this.column=n,this.operator=o,this.value=h}}const Qs=Number.POSITIVE_INFINITY;class Jt{constructor(n=1,o=20){if(n<=0)throw new Error("The page must be 1 or greater. This is the logical page, not a programming index.");if(o<=0)throw new Error("The pageSize must be set to 'ALL' or a number > 0");this.page=n,this.pageSize=o}all(){return this.pageSize===Qs}}var kn=function(a){return a[a.Ascending=0]="Ascending",a[a.Descending=1]="Descending",a}(kn||{}),Gn=function(a){return a[a.Lexicographic=0]="Lexicographic",a[a.Ipv4=1]="Ipv4",a[a.Numeric=2]="Numeric",a[a.NumericZeroAsMax=3]="NumericZeroAsMax",a}(Gn||{});class Ci{constructor(n,o=kn.Ascending,h=Gn.Lexicographic){if(!n)throw new Error("You must provide a non-empty column name for a Sort rule.");this.column=n,this.direction=o,this.type=h}}class es{constructor(n=[]){this.headers=n}push(n){this.headers.push(n)}forEach(n,o){this.headers.forEach(n,o)}toArray(){const n=[];return this.headers.forEach(o=>n.push({name:o.name,value:o.value})),n}toObject(){return this.headers.reduce((n,o)=>(n[o.name]=o.value,n),{})}}class Hi{constructor(n){this._header=n}get name(){return this._header.name}get value(){return this._header.value}}class ai extends Error{constructor(n){super(n),this.name="WhmApiTokenInvalidError",Object.setPrototypeOf(this,ai.prototype)}}class di extends Error{constructor(n){super(n),this.name="WhmApiTokenMismatchError",Object.setPrototypeOf(this,di.prototype)}}class ts extends Hi{constructor(n,o){if(!n)throw new ai("You must pass a valid token to the constructor.");if(!o&&!/^.+:/.test(n))throw new ai("You must pass a WHM username associated with the WHM API token.");if(!o&&!/:.+$/.test(n))throw new ai("You must pass a valid WHM API token.");super({name:"Authorization",value:`whm ${o?o+":":""}${n}`})}}class Xs{constructor(n){this.namespace="",this.method="",this.arguments=[],this.sorts=[],this.filters=[],this.columns=[],this.pager=new Jt,this.headers=new es,this._usePager=!1,this.defaultConfig={analytics:!1,json:!1},this.config=this.defaultConfig,n&&(this.method=n.method,n.namespace&&(this.namespace=n.namespace),n.arguments&&n.arguments.forEach(o=>{this.addArgument(o)}),n.sorts&&n.sorts.forEach(o=>{this.addSort(o)}),n.filters&&n.filters.forEach(o=>{this.addFilter(o)}),n.columns&&n.columns.forEach(o=>this.addColumn(o)),n.pager&&this.paginate(n.pager),this.config=n.config?n.config:this.defaultConfig,n.headers&&n.headers.forEach(o=>{this.addHeader(o)}))}get usePager(){return this._usePager}addArgument(n){return this.arguments.push(n instanceof Fi?n:new Fi(n.name,n.value)),this}addSort(n){return this.sorts.push(n instanceof Ci?n:new Ci(n.column,n.direction,n.type)),this}addFilter(n){return this.filters.push(n instanceof qi?n:new qi(n.column,n.operator,n.value)),this}addColumn(n){return this.columns.push(n),this}addHeader(n){return this.headers.push(n instanceof Hi?n:new Hi(n)),this}paginate(n){return this.pager=n instanceof Jt?n:new Jt(n.page,n.pageSize||20),this._usePager=!0,this}}var Ds=function an(a){return void 0===a},ji=T(Ds),qs=function Mi(a){return null===a},Ts=T(qs),Nn=function(a){return a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Information=2]="Information",a[a.Unknown=3]="Unknown",a}(Nn||{});const er={isPaged:!1,isFiltered:!1,record:0,page:0,pageSize:0,totalRecords:0,totalPages:0,recordsBeforeFilter:0,batch:!1,properties:{}};class is{constructor(n,o){if(this.status=0,this.messages=[],this.meta=function ns(a){return JSON.parse(JSON.stringify(a))}(er),this.options={keepUnprocessedResponse:!1},ji(n)||Ts(n))throw new Error("The response was unexpectedly undefined or null");o&&(this.options=o),this.options.keepUnprocessedResponse&&(this.raw=JSON.parse(JSON.stringify(n)))}get success(){return this.status>0}get failed(){return 0===this.status}_getMessages(n){return this.messages.filter(o=>o.type===n)}get errors(){return this._getMessages(Nn.Error)}get warnings(){return this._getMessages(Nn.Warning)}get infoMessages(){return this._getMessages(Nn.Information)}_hasMessages(n){return this.messages.filter(o=>o.type===n).length>0}get hasErrors(){return this._hasMessages(Nn.Error)}get hasWarnings(){return this._hasMessages(Nn.Warning)}get hasInfoMessages(){return this._hasMessages(Nn.Information)}get isPaged(){return this.meta.isPaged}get isFiltered(){return this.meta.isFiltered}}var tr="object"==typeof self&&self&&self.Object===Object&&self,Si=("object"==typeof e&&e&&e.Object===Object&&e||tr||Function("return this")()).Symbol,ks=Object.prototype,nr=ks.hasOwnProperty,ir=ks.toString,li=Si?Si.toStringTag:void 0,rr=Object.prototype.toString,rs=function ki(a){var n=nr.call(a,li),o=a[li];try{a[li]=void 0;var h=!0}catch{}var g=ir.call(a);return h&&(n?a[li]=o:delete a[li]),g},Os=function or(a){return rr.call(a)},ei=Si?Si.toStringTag:void 0,Oi=function ar(a){return null==a?void 0===a?"[object Undefined]":"[object Null]":ei&&ei in Object(a)?rs(a):Os(a)},fi=function os(a){return null!=a&&"object"==typeof a},ti=Oi,As=fi,Ps=function Is(a){return!0===a||!1===a||As(a)&&"[object Boolean]"==ti(a)},pi=T(Ps),Rs=Oi,Ys=fi,Zr=function $r(a){return"number"==typeof a||Ys(a)&&"[object Number]"==Rs(a)},lr=T(Zr),Ns=Array.isArray,cr=T(Ns),as=Oi,Bs=Ns,ls=fi,ur=function mi(a){return"string"==typeof a||!Bs(a)&&ls(a)&&"[object String]"==as(a)},Kr=T(ur),p=function Wi(a,n){return function(o){return a(n(o))}}(Object.getPrototypeOf,Object),c=Oi,f=p,C=fi,Gt=Function.prototype.toString,tn=Object.prototype.hasOwnProperty,Cn=Gt.call(Object),cs=function Mn(a){if(!C(a)||"[object Object]"!=c(a))return!1;var n=f(a);if(null===n)return!0;var o=tn.call(n,"constructor")&&n.constructor;return"function"==typeof o&&o instanceof o&&Gt.call(o)==Cn},dr=T(cs);function hr(a){if(ji(a)||Ts(a)||pi(a)||lr(a)||Kr(a))return!0;if(!dr(a)&&!cr(a))return!1;for(const n in a)if(!hr(a[n]))return!1;return!0}class un{constructor(){this.contentType="application/x-www-form-urlencoded",this.separatorStart="",this.separatorEnd="",this.recordSeparator="&"}encode(n,o,h){if(!n)throw new Error("Name must have a non-empty value");return`${n}=${encodeURIComponent(o.toString())}`+(h?"":this.recordSeparator)}}class Ft{constructor(){this.contentType="application/json",this.separatorStart="{",this.separatorEnd="}",this.recordSeparator=","}encode(n,o,h){if(!n)throw new Error("Name must have a non-empty value");if(!hr(o))throw new Error("The passed in value can not be serialized to JSON");return JSON.stringify(n)+":"+JSON.stringify(o)+(h?"":this.recordSeparator)}}const us={80:"other",443:"other",2082:"cpanel",2083:"cpanel",2086:"whostmgr",2087:"whostmgr",2095:"webmail",2096:"webmail",9876:"unittest",9877:"unittest",9878:"unittest",9879:"unittest",frontend:"cpanel",webmail:"webmail"};class bo{constructor(n){this.unprotectedPaths=["/resetpass","/invitation"],this.protocol=n.protocol;let o=n.port;o||(function Li(a){return/^https:$/i.test(a)}(this.protocol)?o="443":function yo(a){return/^http:$/i.test(a)}(this.protocol)&&(o="80")),this.domain=n.hostname,this.port=parseInt(o,10),this.path=n.pathname;const h=this.path.match(/((?:\/cpsess\d+)?)(?:\/([^\/]+))?/)||[];if(this.applicationName=/^whm\./.test(this.domain)?us[2087]:/^cpanel\./.test(this.domain)?us[2083]:/^webmail\./.test(this.domain)?us[2095]:us[o.toString()]||us[h[2]]||"whostmgr",this.securityToken=h[1]||"",this.applicationPath=this.securityToken?this.path.replace(this.securityToken,""):this.path,this.theme="",!this.isUnprotected&&(this.isCpanel||this.isWebmail)){const _=this.path.split("/");this.theme=_[3]}this.themePath="";let g=this.securityToken+"/";this.isUnprotected?g="/":this.isCpanel?g+="frontend/"+this.theme+"/":this.isWebmail?g+="webmail/"+this.theme+"/":this.isOther&&(g="/"),this.themePath=g,this.rootUrl=this.protocol+"//"+this.domain+":"+this.port}get isOther(){return/other/i.test(this.applicationName)}get isUnprotected(){return!this.securityToken&&-1!==this.unprotectedPaths.indexOf(function Jr(a){return a&&a.replace(/\/?$/,"")}(this.applicationPath))}get isCpanel(){return/cpanel/i.test(this.applicationName)}get isWhm(){return/whostmgr/i.test(this.applicationName)}get isWebmail(){return/webmail/i.test(this.applicationName)}buildPath(n){return this.themePath+n}buildFullPath(n){return this.protocol+"//"+this.domain+":"+this.port+this.buildPath(n)}buildTokenPath(n){return this.protocol+"//"+this.domain+":"+this.port+this.securityToken+n}}class wo{get pathname(){return window.location.pathname}get port(){return window.location.port}get hostname(){return window.location.hostname}get protocol(){return window.location.protocol}}var qr=function Fn(a){return function(n){return a?.[n]}}({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),ma=Oi,fr=fi,ga=function _r(a,n){for(var o=-1,h=null==a?0:a.length,g=Array(h);++o<h;)g[o]=n(a[o],o,a);return g},gi=Ns,va=function Ui(a){return"symbol"==typeof a||fr(a)&&"[object Symbol]"==ma(a)},Mo=Si?Si.prototype:void 0,mr=Mo?Mo.toString:void 0,no=function to(a){if("string"==typeof a)return a;if(gi(a))return ga(a,to)+"";if(va(a))return mr?mr.call(a):"";var n=a+"";return"0"==n&&1/a==-1/0?"-0":n},vr=function ya(a){return null==a?"":no(a)},Eo=qr,yr=vr,io=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ko=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),Ta=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lo="\\ud800-\\udfff",Io="\\u2700-\\u27bf",Po="a-z\\xdf-\\xf6\\xf8-\\xff",xn="A-Z\\xc0-\\xd6\\xd8-\\xde",Bo="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ho="["+Bo+"]",jo="\\d+",Sa="["+Io+"]",Hs="["+Po+"]",Vo="[^"+Lo+Bo+jo+Io+Po+xn+"]",Ai="(?:\\ud83c[\\udde6-\\uddff]){2}",wr="[\\ud800-\\udbff][\\udc00-\\udfff]",On="["+xn+"]",$o="(?:"+Hs+"|"+Vo+")",xa="(?:"+On+"|"+Vo+")",Ln="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Zo="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Go="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Dr="[\\ufe0e\\ufe0f]?",Oa=Dr+Go+"(?:\\u200d(?:"+["[^"+Lo+"]",Ai,wr].join("|")+")"+Dr+Go+")*",uo="(?:"+[Sa,Ai,wr].join("|")+")"+Oa,zo=RegExp([On+"?"+Hs+"+"+Ln+"(?="+[Ho,On,"$"].join("|")+")",xa+"+"+Zo+"(?="+[Ho,On+$o,"$"].join("|")+")",On+"?"+$o+"+"+Ln,On+"+"+Zo,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jo,uo].join("|"),"g"),La=function Fs(a){return a.match(Ta)||[]},Mr=function Oo(a){return jn.test(a)},_o=vr,ds=function Cr(a){return a.match(zo)||[]},Ia=function Qr(a,n,o,h){var g=-1,_=null==a?0:a.length;for(h&&_&&(o=a[++g]);++g<_;)o=n(o,a[g],g,a);return o},Zi=function Da(a){return(a=yr(a))&&a.replace(io,Eo).replace(ko,"")},Pa=function Ii(a,n,o){return a=_o(a),void 0===(n=o?void 0:n)?Mr(a)?ds(a):La(a):a.match(n)||[]},Pi=RegExp("['\u2019]","g"),Xo=function Er(a){return function(n){return Ia(Pa(Zi(n).replace(Pi,"")),a,"")}}(function(a,n,o){return a+(o?"_":"")+n.toLowerCase()}),Vn=T(Xo);class Sr extends Xs{addHeader(n){if(n instanceof ts)throw new di("A WhmApiTokenHeader cannot be used on a CpanelApiRequest");return super.addHeader(n),this}_build(n,o){let h="";return n.forEach((g,_,P)=>{h+=o.encode(g.name,g.value,_===P.length-1)}),o.separatorStart+h+o.separatorEnd}_generateArguments(n){this.arguments.forEach(o=>n.push(o))}_generateSorts(n){this.sorts.forEach((o,h)=>{0===h&&n.push({name:"api.sort",value:Xi(!0)}),n.push({name:"api.sort_column_"+h,value:o.column}),n.push({name:"api.sort_reverse_"+h,value:Xi(o.direction!==kn.Ascending)}),n.push({name:"api.sort_method_"+h,value:Vn(Gn[o.type])})})}_lookupFilterOperator(n){switch(n){case Tn.GreaterThanUnlimited:return"gt_handle_unlimited";case Tn.GreaterThan:return"gt";case Tn.LessThanUnlimited:return"lt_handle_unlimited";case Tn.LessThan:return"lt";case Tn.NotEqual:return"ne";case Tn.Equal:return"eq";case Tn.Defined:return"defined";case Tn.Undefined:return"undefined";case Tn.Matches:return"matches";case Tn.Ends:return"ends";case Tn.Begins:return"begins";case Tn.Contains:return"contains";default:throw new Error(`Unrecognized FilterOperator ${Tn[n]} for UAPI`)}}_generateFilters(n){this.filters.forEach((o,h)=>{n.push({name:"api.filter_column_"+h,value:o.column}),n.push({name:"api.filter_type_"+h,value:this._lookupFilterOperator(o.operator)}),n.push({name:"api.filter_term_"+h,value:o.value})})}_traslatePageToStart(n){return(n.page-1)*n.pageSize+1}_generatePagination(n){if(!this.usePager)return;const o=this.pager.all();n.push({name:"api.paginate",value:Xi(!0)}),n.push({name:"api.paginate_start",value:o?-1:this._traslatePageToStart(this.pager)}),o||n.push({name:"api.paginate_size",value:this.pager.pageSize})}_generateConfiguration(n){this.config&&this.config.analytics&&n.push({name:"api.analytics",value:Xi(this.config.analytics)})}constructor(n){super(n)}generate(n){if(!this.namespace)throw new Error("You must define a namespace for the UAPI call before you generate a request");if(!this.method)throw new Error("You must define a method for the UAPI call before you generate a request");n||(n={verb:zt.POST,encoder:this.config.json?new Ft:new un}),n.encoder||(n.encoder=this.config.json?new Ft:new un);const o=Wr.getRule(n.verb),h={headers:new es([{name:"Content-Type",value:n.encoder.contentType}]),url:["","execute",this.namespace,this.method].map(encodeURIComponent).join("/"),body:""},g=[];this._generateArguments(g),this._generateSorts(g),this._generateFilters(g),this._generatePagination(g),this._generateConfiguration(g);const _=this._build(g,n.encoder);return o.dataInBody?h.body=_:h.url+=n.verb===zt.GET?`?${_}`:_,this.headers.forEach(P=>{h.headers.push({name:P.name,value:P.value})}),h}}class Wn{constructor(n){this.isPaged=!1,this.record=0,this.page=0,this.pageSize=0,this.totalRecords=0,this.totalPages=0,this.isFiltered=!1,this.recordsBeforeFilter=0,this.batch=!1,this.properties={},n.paginate&&(this.isPaged=!0,this.record=parseInt(n.paginate.start_result,10)||0,this.page=parseInt(n.paginate.current_page,10)||0,this.pageSize=parseInt(n.paginate.results_per_page,10)||0,this.totalPages=parseInt(n.paginate.total_pages,10)||0,this.totalRecords=parseInt(n.paginate.total_results,10)||0),n.filter&&(this.isFiltered=!0,this.recordsBeforeFilter=parseInt(n.filter.records_before_filter,10)||0);const o=new Set(["paginate","filter"]);Object.keys(n).filter(h=>!o.has(h)).forEach(h=>{this.properties[h]=n[h]})}}class Ya extends is{_parseStatus(n){if(this.status=0,typeof n.status>"u")throw new Error("The response should have a numeric status property indicating the API succeeded (>0) or failed (=0)");this.status=parseInt(n.status,10)}_parseMessages(n){if("errors"in n){const o=n.errors;o&&o.length&&o.forEach(h=>{this.messages.push({type:Nn.Error,message:h})})}if("messages"in n){const o=n.messages;o&&o.forEach(h=>{this.messages.push({type:Nn.Information,message:h})})}}constructor(n,o){if(super(n,o),this._parseStatus(n),this._parseMessages(n),!n||!Object.prototype.hasOwnProperty.call(n,"data"))throw new Error("Expected response to contain a data property, but it is missing");this.data=n.data,n.metadata&&(this.meta=new Wn(n.metadata))}}class hs{static getInstance(){return hs._instance||(hs._instance=new hs),hs._instance}packageUrl(n){return new bo(new wo).buildTokenPath(n.url)}packageResponseHandler(n,o){const h=new Ya(n);return h.meta.properties.url=o||"",h}get(n){const o=n.generate({verb:zt.GET,encoder:new un}),h=this.packageUrl(o);return fetch(h,{method:"GET",headers:o.headers.toObject()}).then(g=>g.json()).then(g=>{const _=this.packageResponseHandler(g);if(_.hasErrors)throw _.errors.join();return _})}post(n){const o=n.generate(),h=this.packageUrl(o);return fetch(h,{method:"POST",headers:o.headers.toObject(),body:o.body}).then(g=>g.json()).then(g=>{const _=this.packageResponseHandler(g);if(_.hasErrors)throw _.errors.join();return _})}}const kr=hs.getInstance();var _s=function(a){return a[a.Primary=1]="Primary",a[a.Main=1]="Main",a[a.Sub=2]="Sub",a[a.Addon=3]="Addon",a[a.Alias=4]="Alias",a[a.Parked=4]="Parked",a[a.Unknown=0]="Unknown",a}(_s||{});class xr{constructor(n,o){this.domain=n,this.type=o,this.sortKey=n.split(".").reverse().join(".")}}let Or=(()=>{class a{static normalize(o,h=a.defaultSort){const g=[];return["main_domain","addon_domains","parked_domains","sub_domains"].forEach(P=>{const Q=o[P],ze=a._getDomainTypeFromKey(P);"main_domain"===P?g.push(new xr(Q,ze)):Q.forEach(X=>{g.push(new xr(X,ze))})}),g.sort(h)}static _getDomainTypeFromKey(o){switch(o){case"main_domain":return _s.Primary;case"addon_domains":return _s.Addon;case"parked_domains":return _s.Alias;case"sub_domains":return _s.Sub;default:return _s.Unknown}}}return a.defaultSort=(n,o)=>n.sortKey.localeCompare(o.sortKey),a})();var fo=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_},Lr=function(a,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,n)};let zn=class{constructor(){this._prefetch=new Xt(["domains","contactEmail"])}getUsername(){return Promise.resolve(this.getWindowPage().user??"")}getHomeDirectory(){return Promise.resolve(this.getWindowPage().homeDir??"")}getLanguage(){return Promise.resolve(this.getWindowPage().languageTag||"en")}getLocale(){return Promise.resolve(this.getWindowPage().localeTag)}isFeatureEnabled(n){return Promise.reject(new Error("Method not implemented."))}getDomains(n){let h,o=this.getWindowPage().domains;if(o&&!this._prefetch.expired("domains"))h=Promise.resolve(o||[]);else{const g=new Sr({namespace:"DomainInfo",method:"list_domains"});h=kr.get(g).then(_=>_.data)}return h.then(g=>Or.normalize(g,n).map(_=>_.domain))}getContactEmail(){return Promise.resolve(this.getWindowPage().contactEmail||"")}getWindowPage(){return this._window.PAGE?.[this._plugin]??{}}};fo([en(Ct.Plugin),Lr("design:type",String)],zn.prototype,"_plugin",void 0),fo([en(Ct.Window),Lr("design:type",Object)],zn.prototype,"_window",void 0),zn=fo([nn(),Lr("design:paramtypes",[])],zn);var Ar=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_},Ri=function(a,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,n)};let js=class{getTrackingId(){return Promise.resolve(this.getWindowPage().trackingId)}track(n,o){this._window.mixpanel?.track(this._plugin+"-"+n,o)}getWindowPage(){return this._window.PAGE?.[this._plugin]??{}}};Ar([en(Ct.Plugin),Ri("design:type",String)],js.prototype,"_plugin",void 0),Ar([en(Ct.Window),Ri("design:type",Object)],js.prototype,"_window",void 0),js=Ar([nn()],js);var Na=js,po=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_},t=function(a,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,n)};let s=class{getHomePageUrl(){return Promise.resolve(this.getWindowPage().homeUrl)}getCompanyId(){return Promise.resolve(this.getWindowPage().companyId)}hasFeatureFlag(n){throw new Error("Method not implemented.")}hasRole(n){throw new Error("Method not implemented.")}hasProfile(n){throw new Error("Method not implemented.")}getWindowPage(){return this._window.PAGE?.[this._plugin]??{}}};po([en(Ct.Plugin),t("design:type",String)],s.prototype,"_plugin",void 0),po([en(Ct.Window),t("design:type",Object)],s.prototype,"_window",void 0),s=po([nn()],s);var l=s,u=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_};let I=class{get(n){const o=`${this._plugin}.${n}`,h=new Sr({namespace:"Personalization",method:"get",arguments:[new Fi("names",[o])],config:{json:!0}});return kr.post(h).then(g=>{if(null==g.data)throw new Error("No data supplied by server");if(null==g.data.personalization)throw new Error("No personalization in data");if(null==g.data.personalization[o])throw new Error("Name is unresolved");return null==g.data.personalization[o].value?g.data.personalization[o].value:JSON.parse(g.data.personalization[o].value)})}set(n,o){const h=`${this._plugin}.${n}`,g=new Sr({namespace:"Personalization",method:"set",arguments:[new Fi("personalization",{[h]:JSON.stringify(o)})],config:{json:!0}});return kr.post(g).then(_=>1===JSON.parse(_.data.personalization[h].success))}};u([en(Ct.Plugin),function(a,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",String)}()],I.prototype,"_plugin",void 0),I=u([nn()],I);var ne=I,Ee=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_};let $t=class{get(n){return Promise.reject(new Error("Method not implemented."))}set(n,o){return Promise.reject(new Error("Method not implemented."))}};Ee([en(Ct.Window),function(a,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Object)}()],$t.prototype,"_window",void 0),$t=Ee([nn()],$t);var Vs=$t;let Pr=class{createUser(n,o){const h=o?Object.entries(o).map(([_,P])=>new Fi(_,P)):[],g=new Sr({namespace:"Plugins",method:"create_user",arguments:[new Fi("plugin",n),...h],config:{json:!0}});return kr.post(g).then(_=>{if(0===_.status){if(!_.errors?.length)throw new Error("Request failed but no error message was supplied by the server.");const P=_.errors.pop();throw new Error(P.message)}if(null==_.data)throw new Error("No data supplied by server.");return _.data})}};Pr=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],Pr);var nl=Pr;class Yi{constructor(){}static getInstance(){return Yi._instance||(Yi._instance=new Yi),Yi._instance}request(n,o,h=null){return this.proxyRequest({scope:n,method:o,params:h})}track(n,o){this.proxyRequest({scope:"analytics",method:"track",params:{event:n,data:o}})}proxyRequest(n){return Yi._apiInstance||(Yi._apiInstance=window.PleskApi),Yi._apiInstance.handle(n)}}const hn=Yi.getInstance();let qo=class{getUsername(){return hn.request("account","getUsername")}getHomeDirectory(){return hn.request("account","getHomeDirectory")}getLanguage(){return hn.request("account","getLanguage")}getLocale(){return hn.request("account","getLocale")}isFeatureEnabled(n){return hn.request("account","isFeatureEnabled",{name:n})}getDomains(){return hn.request("account","getDomains")}getContactEmail(){return hn.request("account","getContactEmail")}};qo=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],qo);var sl=qo;let ea=class{getTrackingId(){return hn.request("analytics","getTrackingId")}track(n,o){hn.track(n,o)}};ea=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],ea);var ol=ea;let ta=class{getHomePageUrl(){return hn.request("application","getHomePageUrl")}getCompanyId(){return hn.request("application","getCompanyId")}hasFeatureFlag(n){return hn.request("application","hasFeatureFlag",{name:n})}hasRole(n){return hn.request("application","hasRole",{name:n})}hasProfile(n){return hn.request("application","hasProfile",{name:n})}};ta=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],ta);var ll=ta;let na=class{get(n){return hn.request("personalStorage","get",{name:n})}set(n,o){return hn.request("personalStorage","set",{name:n,value:o})}};na=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],na);var ul=na;let ia=class{get(n){return hn.request("secureStorage","get",{name:n})}set(n,o){return hn.request("secureStorage","set",{name:n,value:o})}};ia=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],ia);var hl=ia,sa=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_},Ba=function(a,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(a,n)};let Rr=class{createUser(n,o){return hn.request("pluginTools","createUser",{plugin:n,args:o})}};sa([en(Ct.Plugin),Ba("design:type",String)],Rr.prototype,"_plugin",void 0),sa([en(Ct.Window),Ba("design:type",Object)],Rr.prototype,"_window",void 0),Rr=sa([nn()],Rr);var _l=Rr;let ra=class{getUsername(){return Promise.resolve("frank")}getHomeDirectory(){return Promise.resolve("/home/frank")}getLanguage(){return Promise.resolve("en")}getLocale(){return Promise.resolve("en-US")}isFeatureEnabled(n){return Promise.resolve(!0)}getDomains(){return Promise.resolve(["frank.tld","sub.frank.tld","franky.tld"])}getContactEmail(){return Promise.resolve("mailbox@frank.tld")}};ra=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],ra);var pl=ra;let oa=class{getTrackingId(){return Promise.resolve("6e8c7738-5d91-44ee-87b0-329b40831479")}track(n,o){}};oa=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],oa);var gl=oa;let aa=class{getHomePageUrl(){throw new Error("Method not implemented.")}getCompanyId(){return Promise.resolve("7")}hasFeatureFlag(n){return Promise.resolve(!0)}hasRole(n){return Promise.resolve(!0)}hasProfile(n){return Promise.resolve(!0)}};aa=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],aa);var yl=aa;let la=class{get(n){const o=JSON.parse(localStorage.getItem(n)||'""');return Promise.resolve(o)}set(n,o){return JSON.stringify(o),localStorage.setItem(n,o),Promise.resolve(!0)}remove(n){console.log("remove() is not implemented in PersonalStorage, only in the Fake"),localStorage.removeItem(n)}removeAll(){console.log("removeAll() is not implemented in PersonalStorage, only in the Fake"),localStorage.clear()}};la=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],la);var wl=la;let ca=class{get(n){const o=JSON.parse(localStorage.getItem(n)||'""');return Promise.resolve(o)}set(n,o){return JSON.stringify(o),localStorage.setItem(n,o),Promise.resolve(!0)}remove(n){console.log("remove() is not implemented in SecureStorage, only in the Fake"),localStorage.removeItem(n)}removeAll(){console.log("removeAll() is not implemented in SecureStorage, only in the Fake"),localStorage.clear()}};ca=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_}([nn()],ca);var Tl=ca,Fa=function(a,n,o,h){var P,g=arguments.length,_=g<3?n:null===h?h=Object.getOwnPropertyDescriptor(n,o):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_=Reflect.decorate(a,n,o,h);else for(var Q=a.length-1;Q>=0;Q--)(P=a[Q])&&(_=(g<3?P(_):g>3?P(n,o,_):P(n,o))||_);return g>3&&_&&Object.defineProperty(n,o,_),_};let mo=class{constructor(){this.pluginMap={xovi:{userId:"fake_user",apiToken:"0a1b2c3d4e5f6g7h8i9j0k",plugin:"xovi"}}}createUser(n,o){return this.pluginMap[n]?Promise.resolve(this.pluginMap[n]):Promise.reject(new Error(`Plugin ${n} does not provide a back-channel create user api.`))}};Fa([en(Ct.Plugin),function(a,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",String)}()],mo.prototype,"_plugin",void 0),mo=Fa([nn()],mo);var Ml=mo;let El=new ys((a,n)=>{a(Ct.ControlPanel).toConstantValue(Sn.cpanel),a(Ct.Account).to(zn),a(Ct.Analytics).to(Na),a(Ct.Application).to(l),a(Ct.PersonalStorage).to(ne),a(Ct.SecureStorage).to(Vs),a(Ct.PluginTools).to(nl)}),Sl=new ys((a,n)=>{a(Ct.ControlPanel).toConstantValue(Sn.plesk),a(Ct.Account).to(sl),a(Ct.Analytics).to(ol),a(Ct.Application).to(ll),a(Ct.PersonalStorage).to(ul),a(Ct.SecureStorage).to(hl),a(Ct.PluginTools).to(_l)}),kl=new ys((a,n)=>{a(Ct.ControlPanel).toConstantValue(Sn.fake),a(Ct.Account).to(pl),a(Ct.Analytics).to(gl),a(Ct.Application).to(yl),a(Ct.PersonalStorage).to(wl),a(Ct.SecureStorage).to(Tl),a(Ct.PluginTools).to(Ml)});class vi{static _detectPanel(n){if(window.PAGE&&window.PAGE[n].isCpanel)return Sn.cpanel;if(void 0!==window.PleskApi)return Sn.plesk;throw new Error("Unrecognized control panel, set the panel manually to: cpanel, plesk or fake")}static _getContainer(n){if(!vi._container){n={panel:Sn.auto,interface:Ji.auto,...n};const o=new zi;o.bind(Ct.Plugin).toConstantValue(n.plugin),n.panel===Sn.auto&&(n.panel=vi._detectPanel(n.plugin)),n.panel==Sn.cpanel?o.load(El):n.panel==Sn.plesk?o.load(Sl):n.panel==Sn.fake&&o.load(kl),o.bind(Ct.UserInterface).toConstantValue(Ji.user),o.bind(Ct.Window).toConstantValue(window),o.bind(on).toSelf(),vi._container=o}return vi._container}static getClient(n){if(!vi._client){const o=vi._getContainer(n);vi._client=o.get(on)}return vi._client}}},2237:(We,z,m)=>{m.d(z,{nM:()=>E,wx:()=>k});var e=m(655),T=m(5879),j=m(3161),Y=m(6814);function x(L,W){if(1&L){const _e=T.EpF();T.TgZ(0,"button",2),T.NdJ("click",function(){T.CHM(_e);const ce=T.oxw(2);return T.KtG(ce.close())}),T.TgZ(1,"span",3),T._uU(2,"\xd7"),T.qZA(),T.TgZ(3,"span",4),T._uU(4,"Close"),T.qZA()()}}function V(L,W){if(1&L&&(T.TgZ(0,"div",1),T.YNc(1,x,5,0,"ng-template",0),T.Hsn(2),T.qZA()),2&L){const _e=T.oxw();T.Tol("alert alert-"+_e.type),T.Q6J("ngClass",_e.classes),T.xp6(1),T.Q6J("ngIf",_e.dismissible)}}const b=["*"];let B=(()=>{class L{constructor(){this.type="warning",this.dismissible=!1,this.dismissOnTimeout=void 0}static{this.\u0275fac=function(A){return new(A||L)}}static{this.\u0275prov=T.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})}}return L})(),k=(()=>{class L{constructor(_e,A){this.changeDetection=A,this.type="warning",this.dismissible=!1,this.isOpen=!0,this.onClose=new T.vpe,this.onClosed=new T.vpe,this.classes="",this.dismissibleChange=new T.vpe,Object.assign(this,_e),this.dismissibleChange.subscribe(()=>{this.classes=this.dismissible?"alert-dismissible":"",this.changeDetection.markForCheck()})}ngOnInit(){this.dismissOnTimeout&&setTimeout(()=>this.close(),parseInt(this.dismissOnTimeout,10))}close(){this.isOpen&&(this.onClose.emit(this),this.isOpen=!1,this.changeDetection.markForCheck(),this.onClosed.emit(this))}static{this.\u0275fac=function(A){return new(A||L)(T.Y36(B),T.Y36(T.sBO))}}static{this.\u0275cmp=T.Xpm({type:L,selectors:[["alert"],["bs-alert"]],inputs:{type:"type",dismissible:"dismissible",dismissOnTimeout:"dismissOnTimeout",isOpen:"isOpen"},outputs:{onClose:"onClose",onClosed:"onClosed"},ngContentSelectors:b,decls:1,vars:1,consts:[[3,"ngIf"],["role","alert",3,"ngClass"],["type","button","aria-label","Close",1,"close","btn-close",3,"click"],["aria-hidden","true",1,"visually-hidden"],[1,"sr-only","visually-hidden"]],template:function(A,ce){1&A&&(T.F$t(),T.YNc(0,V,3,4,"ng-template",0)),2&A&&T.Q6J("ngIf",ce.isOpen)},dependencies:[Y.mk,Y.O5],encapsulation:2,changeDetection:0})}}return(0,e.gn)([(0,j.GU)(),(0,e.w6)("design:type",Object)],L.prototype,"dismissible",void 0),L})(),E=(()=>{class L{static forRoot(){return{ngModule:L,providers:[]}}static{this.\u0275fac=function(A){return new(A||L)}}static{this.\u0275mod=T.oAB({type:L})}static{this.\u0275inj=T.cJS({imports:[Y.ez]})}}return L})()},2389:(We,z,m)=>{function T(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function j(t){return"string"==typeof t}function Y(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function V(t){return t&&t.getTime&&!isNaN(t.getTime())}function b(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function B(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function k(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function E(t,s){return Object.prototype.hasOwnProperty.call(t,s)}function L(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function _e(t){return void 0===t}function A(t){const s=+t;let l=0;return 0!==s&&isFinite(s)&&(l=T(s)),l}m.d(z,{AZ:()=>ve,Ax:()=>En,D$:()=>Pt,DB:()=>ur,Dz:()=>Tt,FT:()=>Ot,J_:()=>Y,Ji:()=>Bs,KC:()=>Ut,Kd:()=>an,RR:()=>mi,Rp:()=>V,Rw:()=>d,ZG:()=>Wi,gl:()=>bt,jw:()=>mt,kJ:()=>k,nr:()=>te,p6:()=>Oi,rg:()=>M,sG:()=>as,wf:()=>xt,xj:()=>ht});const ce={},me={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function pe(t,s){const l=t.toLowerCase();let u=t;l in me&&(u=me[l]),ce[l]=ce[`${l}s`]=ce[s]=u}function re(t){return j(t)?ce[t]||ce[t.toLowerCase()]:void 0}const we=0,ue=1,G=2,Le=3,Se=4,Ce=5,Re=6,Ye=7,Z=8;function ie(t,s,l){const u=`${Math.abs(t)}`;return(t>=0?l?"+":"":"-")+Math.pow(10,Math.max(0,s-u.length)).toString().substr(1)+u}const ye={},Oe={},He=/(\[[^\[]*\])|(\\)?([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 H(t,s,l,u){t&&(Oe[t]=u),s&&(Oe[s[0]]=function(){return ie(u.apply(null,arguments),s[1],s[2])}),l&&(Oe[l]=function(v,I){return I.locale.ordinal(u.apply(null,arguments),t)})}function D(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function N(t,s,l){const u=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(u.getUTCFullYear())&&u.setUTCFullYear(t),u}function R(t,s=0,l=1,u=0,v=0,I=0,ne=0){const Ee=new Date(t,s,l,u,v,I,ne);return t<100&&t>=0&&isFinite(Ee.getFullYear())&&Ee.setFullYear(t),Ee}function $(t,s=!1){return s?t.getUTCHours():t.getHours()}function je(t,s=!1){return s?t.getUTCMinutes():t.getMinutes()}function ot(t,s=!1){return s?t.getUTCSeconds():t.getSeconds()}function pt(t,s=!1){return s?t.getUTCMilliseconds():t.getMilliseconds()}function xt(t,s=!1){return s?t.getUTCDay():t.getDay()}function Kt(t,s=!1){return s?t.getUTCDate():t.getDate()}function mt(t,s=!1){return s?t.getUTCMonth():t.getMonth()}function Pt(t,s=!1){return s?t.getUTCFullYear():t.getFullYear()}function te(t){return R(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes(),t.getSeconds())}function ve(t,s){return t.getDay()===Number(s)}function ht(t,s){return!(!t||!s)&&Ot(t,s)&&mt(t)===mt(s)}function Ot(t,s){return!(!t||!s)&&Pt(t)===Pt(s)}function Ut(t,s){return!(!t||!s)&&Ot(t,s)&&ht(t,s)&&Kt(t)===Kt(s)}const gn=/\d/,Yt=/\d\d/,F=/\d{3}/,ee=/\d{4}/,ge=/[+-]?\d{6}/,q=/\d\d?/,Te=/\d\d\d\d?/,Ne=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,qe=/\d{1,4}/,ut=/[+-]?\d{1,6}/,gt=/\d+/,rt=/[+-]?\d+/,U=/Z|[+-]\d\d(?::?\d\d)?/gi,J=/[+-]?\d+(\.\d{1,3})?/,le=/[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,Ae={};function oe(t,s,l){Ae[t]=b(s)?s:function(u,v){return u&&l?l:s}}function Be(t,s){return E(Ae,t)?Ae[t](!1,s):new RegExp(function ke(t){return De(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(s,l,u,v,I)=>l||u||v||I))}(t))}function De(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const Ke={};function Ie(t,s){const l=j(t)?[t]:t;let u=s;if(B(s)&&(u=function(v,I,ne){return I[s]=A(v),ne}),k(l)&&b(u)){let v;for(v=0;v<l.length;v++)Ke[l[v]]=u}}function yt(t,s){Ie(t,function(l,u,v,I){return v._w=v._w||{},s(l,v._w,v,I)})}function _t(t,s,l){return null!=s&&E(Ke,t)&&Ke[t](s,l._a,l,t),l}const Ze={};function ct(t,s){Ze[t]=s}function Ue(t){return null==t._pf&&(t._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}),t._pf}function Zt(t,s){return s.locale.getFullYear?s.locale.getFullYear(t,s.isUTC).toString():Pt(t,s.isUTC).toString()}function Lt(t){return A(t)+(A(t)>68?1900:2e3)}function Nt(t){return rn(t)?366:365}function rn(t){return t%4==0&&t%100!=0||t%400==0}function Qt(t,s){if(isNaN(t)||isNaN(s))return NaN;const l=function e(t,s){return(t%s+s)%s}(s,12);return 1===l?rn(t+(s-l)/12)?29:28:31-l%7%2}const K={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function M(t,s){const l=Object.assign({},K,s),u=t.getFullYear()+(l.year||0),v=t.getMonth()+(l.month||0);let I=t.getDate()+(l.day||0);return l.month&&!l.day&&(I=Math.min(I,Qt(u,v))),R(u,v,I,t.getHours()+(l.hour||0),t.getMinutes()+(l.minute||0),t.getSeconds()+(l.seconds||0))}function d(t,s){return R(w(t.getFullYear(),s.year),w(t.getMonth(),s.month),1,w(t.getHours(),s.hour),w(t.getMinutes(),s.minute),w(t.getSeconds(),s.seconds),w(t.getMilliseconds(),s.milliseconds))}function w(t,s){return B(s)?s:t}function Pe(t,s,l){const u=Math.min(Kt(t),Qt(Pt(t),s));return l?t.setUTCMonth(s,u):t.setMonth(s,u),t}function nt(t,s,l){return l?t.setUTCDate(s):t.setDate(s),t}function it(t){return new Date(t.getTime())}function bt(t,s,l){const u=it(t);switch(s){case"year":Pe(u,0,l);case"quarter":case"month":nt(u,1,l);case"week":case"isoWeek":case"day":case"date":!function Me(t,s,l){l?t.setUTCHours(s):t.setHours(s)}(u,0,l);case"hours":!function Ve(t,s,l){l?t.setUTCMinutes(s):t.setMinutes(s)}(u,0,l);case"minutes":!function de(t,s,l){l?t.setUTCSeconds(s):t.setSeconds(s)}(u,0,l);case"seconds":!function $e(t,s,l){l?t.setUTCMilliseconds(s):t.setMilliseconds(s)}(u,0,l)}return"week"===s&&function yo(t,s,l={}){Gt(t,s-Li(t,l.locale,l.isUTC),"day")}(u,0,{isUTC:l}),"isoWeek"===s&&function us(t,s,l={}){const u=function dr(t,s=an()){return j(t)?s.weekdaysParse(t)%7||7:B(t)&&isNaN(t)?null:t}(s,l.locale);un(t,function Ft(t,s){return xt(t,s)}(t)%7?u:u-7)}(u,1),"quarter"===s&&Pe(u,3*Math.floor(mt(u,l)/3),l),u}function Tt(t,s,l){let u=s;return"date"===u&&(u="day"),function tn(t,s,l,u){return Cn(t,f(s,l),-1,u)}(Gt(bt(t,u,l),1,"isoWeek"===u?"week":u,l),1,"milliseconds",l)}function Bt(t,s){const l=+bt(t,"day",s),u=+bt(t,"year",s);return Math.round((l-u)/864e5)+1}function yn(t,s,l){const u=s-l+7;return-(N(t,0,u).getUTCDay()-s+7)%7+u-1}function An(t,s,l,u){const v=yn(Pt(t,u),s,l),I=Math.floor((Bt(t,u)-v-1)/7)+1;let ne,Ee;return I<1?(Ee=Pt(t,u)-1,ne=I+In(Ee,s,l)):I>In(Pt(t,u),s,l)?(ne=I-In(Pt(t,u),s,l),Ee=Pt(t,u)+1):(Ee=Pt(t,u),ne=I),{week:ne,year:Ee}}function In(t,s,l){const u=yn(t,s,l),v=yn(t+1,s,l);return(Nt(t)-u+v)/7}const ui=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,bi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),wi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Jn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Di="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),si="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ti={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"},Pn=le,$n=le;class ps{constructor(s){s&&this.set(s)}set(s){let l;for(l in s){if(!s.hasOwnProperty(l))continue;const u=s[l];this[b(u)?l:`_${l}`]=u}this._config=s}calendar(s,l,u){const v=this._calendar[s]||this._calendar.sameElse;return b(v)?v.call(null,l,u):v}longDateFormat(s){const l=this._longDateFormat[s],u=this._longDateFormat[s.toUpperCase()];return l||!u?l:(this._longDateFormat[s]=u.replace(/MMMM|MM|DD|dddd/g,function(v){return v.slice(1)}),this._longDateFormat[s])}get invalidDate(){return this._invalidDate}set invalidDate(s){this._invalidDate=s}ordinal(s,l){return this._ordinal.replace("%d",s.toString(10))}preparse(s,l){return s}getFullYear(s,l=!1){return Pt(s,l)}postformat(s){return s}relativeTime(s,l,u,v){const I=this._relativeTime[u];return b(I)?I(s,l,u,v):I.replace(/%d/i,s.toString(10))}pastFuture(s,l){const u=this._relativeTime[s>0?"future":"past"];return b(u)?u(l):u.replace(/%s/i,l)}months(s,l,u=!1){if(!s)return k(this._months)?this._months:this._months.standalone;if(k(this._months))return this._months[mt(s,u)];const v=(this._months.isFormat||ui).test(l)?"format":"standalone";return this._months[v][mt(s,u)]}monthsShort(s,l,u=!1){if(!s)return k(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(k(this._monthsShort))return this._monthsShort[mt(s,u)];const v=ui.test(l)?"format":"standalone";return this._monthsShort[v][mt(s,u)]}monthsParse(s,l,u){let v,I,ne;if(this._monthsParseExact)return this.handleMonthStrictParse(s,l,u);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ne=0;ne<12;ne++){if(v=new Date(Date.UTC(2e3,ne)),u&&!this._longMonthsParse[ne]){const Ee=this.months(v,"",!0).replace(".",""),at=this.monthsShort(v,"",!0).replace(".","");this._longMonthsParse[ne]=new RegExp(`^${Ee}$`,"i"),this._shortMonthsParse[ne]=new RegExp(`^${at}$`,"i")}if(!u&&!this._monthsParse[ne]&&(I=`^${this.months(v,"",!0)}|^${this.monthsShort(v,"",!0)}`,this._monthsParse[ne]=new RegExp(I.replace(".",""),"i")),u&&"MMMM"===l&&this._longMonthsParse[ne].test(s)||u&&"MMM"===l&&this._shortMonthsParse[ne].test(s)||!u&&this._monthsParse[ne].test(s))return ne}}monthsRegex(s){return this._monthsParseExact?(E(this,"_monthsRegex")||this.computeMonthsParse(),s?this._monthsStrictRegex:this._monthsRegex):(E(this,"_monthsRegex")||(this._monthsRegex=$n),this._monthsStrictRegex&&s?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(s){return this._monthsParseExact?(E(this,"_monthsRegex")||this.computeMonthsParse(),s?this._monthsShortStrictRegex:this._monthsShortRegex):(E(this,"_monthsShortRegex")||(this._monthsShortRegex=Pn),this._monthsShortStrictRegex&&s?this._monthsShortStrictRegex:this._monthsShortRegex)}week(s,l){return An(s,this._week.dow,this._week.doy,l).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(s,l,u){if(!s)return k(this._weekdays)?this._weekdays:this._weekdays.standalone;if(k(this._weekdays))return this._weekdays[xt(s,u)];const v=this._weekdays.isFormat.test(l)?"format":"standalone";return this._weekdays[v][xt(s,u)]}weekdaysMin(s,l,u){return s?this._weekdaysMin[xt(s,u)]:this._weekdaysMin}weekdaysShort(s,l,u){return s?this._weekdaysShort[xt(s,u)]:this._weekdaysShort}weekdaysParse(s,l,u){let v,I;if(this._weekdaysParseExact)return this.handleWeekStrictParse(s,l,u);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),v=0;v<7;v++){const ne=un(new Date(Date.UTC(2e3,1)),v,null,!0);if(u&&!this._fullWeekdaysParse[v]&&(this._fullWeekdaysParse[v]=new RegExp(`^${this.weekdays(ne,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[v]=new RegExp(`^${this.weekdaysShort(ne,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[v]=new RegExp(`^${this.weekdaysMin(ne,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[v]||(I=`^${this.weekdays(ne,"",!0)}|^${this.weekdaysShort(ne,"",!0)}|^${this.weekdaysMin(ne,"",!0)}`,this._weekdaysParse[v]=new RegExp(I.replace(".",""),"i")),!(k(this._fullWeekdaysParse)&&k(this._shortWeekdaysParse)&&k(this._minWeekdaysParse)&&k(this._weekdaysParse)))return;if(u&&"dddd"===l&&this._fullWeekdaysParse[v].test(s))return v;if(u&&"ddd"===l&&this._shortWeekdaysParse[v].test(s))return v;if(u&&"dd"===l&&this._minWeekdaysParse[v].test(s))return v;if(!u&&this._weekdaysParse[v].test(s))return v}}weekdaysRegex(s){return this._weekdaysParseExact?(E(this,"_weekdaysRegex")||this.computeWeekdaysParse(),s?this._weekdaysStrictRegex:this._weekdaysRegex):(E(this,"_weekdaysRegex")||(this._weekdaysRegex=le),this._weekdaysStrictRegex&&s?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(s){return this._weekdaysParseExact?(E(this,"_weekdaysRegex")||this.computeWeekdaysParse(),s?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(E(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=le),this._weekdaysShortStrictRegex&&s?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(s){return this._weekdaysParseExact?(E(this,"_weekdaysRegex")||this.computeWeekdaysParse(),s?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(E(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=le),this._weekdaysMinStrictRegex&&s?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(s){return"p"===s.toLowerCase().charAt(0)}meridiem(s,l,u){return s>11?u?"pm":"PM":u?"am":"AM"}formatLongDate(s){this._longDateFormat=this._longDateFormat?this._longDateFormat:Ti;const l=this._longDateFormat[s],u=this._longDateFormat[s.toUpperCase()];return l||!u?l:(this._longDateFormat[s]=u.replace(/MMMM|MM|DD|dddd/g,v=>v.slice(1)),this._longDateFormat[s])}handleMonthStrictParse(s,l,u){const v=s.toLocaleLowerCase();let I,ne,Ee;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],I=0;I<12;++I)Ee=new Date(2e3,I),this._shortMonthsParse[I]=this.monthsShort(Ee,"").toLocaleLowerCase(),this._longMonthsParse[I]=this.months(Ee,"").toLocaleLowerCase();return u?"MMM"===l?(ne=this._shortMonthsParse.indexOf(v),-1!==ne?ne:null):(ne=this._longMonthsParse.indexOf(v),-1!==ne?ne:null):"MMM"===l?(ne=this._shortMonthsParse.indexOf(v),-1!==ne?ne:(ne=this._longMonthsParse.indexOf(v),-1!==ne?ne:null)):(ne=this._longMonthsParse.indexOf(v),-1!==ne?ne:(ne=this._shortMonthsParse.indexOf(v),-1!==ne?ne:null))}handleWeekStrictParse(s,l,u){let v;const I=s.toLocaleLowerCase();if(!this._weekdaysParse){let ne;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ne=0;ne<7;++ne){const Ee=un(new Date(Date.UTC(2e3,1)),ne,null,!0);this._minWeekdaysParse[ne]=this.weekdaysMin(Ee).toLocaleLowerCase(),this._shortWeekdaysParse[ne]=this.weekdaysShort(Ee).toLocaleLowerCase(),this._weekdaysParse[ne]=this.weekdays(Ee,"").toLocaleLowerCase()}}if(k(this._weekdaysParse)&&k(this._shortWeekdaysParse)&&k(this._minWeekdaysParse))return u?"dddd"===l?(v=this._weekdaysParse.indexOf(I),-1!==v?v:null):"ddd"===l?(v=this._shortWeekdaysParse.indexOf(I),-1!==v?v:null):(v=this._minWeekdaysParse.indexOf(I),-1!==v?v:null):"dddd"===l?(v=this._weekdaysParse.indexOf(I),-1!==v||(v=this._shortWeekdaysParse.indexOf(I),-1!==v)?v:(v=this._minWeekdaysParse.indexOf(I),-1!==v?v:null)):"ddd"===l?(v=this._shortWeekdaysParse.indexOf(I),-1!==v||(v=this._weekdaysParse.indexOf(I),-1!==v)?v:(v=this._minWeekdaysParse.indexOf(I),-1!==v?v:null)):(v=this._minWeekdaysParse.indexOf(I),-1!==v||(v=this._weekdaysParse.indexOf(I),-1!==v)?v:(v=this._shortWeekdaysParse.indexOf(I),-1!==v?v:null))}computeMonthsParse(){const s=[],l=[],u=[];let v,I;for(I=0;I<12;I++)v=new Date(2e3,I),s.push(this.monthsShort(v,"")),l.push(this.months(v,"")),u.push(this.months(v,"")),u.push(this.monthsShort(v,""));for(s.sort(dn),l.sort(dn),u.sort(dn),I=0;I<12;I++)s[I]=De(s[I]),l[I]=De(l[I]);for(I=0;I<24;I++)u[I]=De(u[I]);this._monthsRegex=new RegExp(`^(${u.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${l.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${s.join("|")})`,"i")}computeWeekdaysParse(){const s=[],l=[],u=[],v=[];let I;for(I=0;I<7;I++){const ne=un(new Date(Date.UTC(2e3,1)),I,null,!0),Ee=this.weekdaysMin(ne),at=this.weekdaysShort(ne),$t=this.weekdays(ne);s.push(Ee),l.push(at),u.push($t),v.push(Ee),v.push(at),v.push($t)}for(s.sort(dn),l.sort(dn),u.sort(dn),v.sort(dn),I=0;I<7;I++)l[I]=De(l[I]),u[I]=De(u[I]),v[I]=De(v[I]);this._weekdaysRegex=new RegExp(`^(${v.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${u.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${l.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${s.join("|")})`,"i")}}function dn(t,s){return s.length-t.length}const Rn={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:Ti,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:bi,monthsShort:wi,week:{dow:0,doy:6},weekdays:Jn,weekdaysMin:si,weekdaysShort:Di,meridiemParse:/[ap]\.?m?\.?/i};function Us(t,s,l){const u=Math.min(t.length,s.length),v=Math.abs(t.length-s.length);let ne,I=0;for(ne=0;ne<u;ne++)(l&&t[ne]!==s[ne]||!l&&A(t[ne])!==A(s[ne]))&&I++;return I+v}function oi(t,s){H(null,[t,t.length,!1],null,s)}function wn(t,s){return zi(t,s.locale).toString()}function Dn(t){return bs(t).toString()}function zi(t,s=an(),l){return An(t,s.firstDayOfWeek(),s.firstDayOfYear(),l).year}function bs(t,s){return An(t,1,4,s).year}function Ji(t,s){H(t,null,null,function(l,u){let v=function zt(t,s={}){return s._isUTC?s._offset||0:function Xt(t){return 15*-Math.round(t.getTimezoneOffset()/15)}(t)}(l,{_isUTC:u.isUTC,_offset:u.offset}),I="+";return v<0&&(v=-v,I="-"),I+ie(~~(v/60),2)+s+ie(~~v%60,2)})}const Yn=/([\+\-]|\d\d)/gi;const Jt={},kn={};let Gn;function Ci(t){return t&&t.toLowerCase().replace("_","-")}function ai(t){return Jt[t]||console.error(`Khronos locale error: please load locale "${t}" before using it`),Jt[t]}function di(t,s){let l;return t&&(_e(s)?l=an(t):j(t)&&(l=ts(t,s)),l&&(Gn=l)),Gn&&Gn._abbr}function ts(t,s){if(null===s)return delete Jt[t],Gn=an("en"),null;if(!s)return;let l=Rn;if(s.abbr=t,null!=s.parentLocale){if(null==Jt[s.parentLocale])return kn[s.parentLocale]||(kn[s.parentLocale]=[]),kn[s.parentLocale].push({name:t,config:s}),null;l=Jt[s.parentLocale]._config}return Jt[t]=new ps(function Hi(t,s){const l=Object.assign({},t);for(const u in s)E(s,u)&&(L(t[u])&&L(s[u])?(l[u]={},Object.assign(l[u],t[u]),Object.assign(l[u],s[u])):null!=s[u]?l[u]=s[u]:delete l[u]);for(const u in t)E(t,u)&&!E(s,u)&&L(t[u])&&(l[u]=Object.assign({},l[u]));return l}(l,s)),kn[t]&&kn[t].forEach(function(u){ts(u.name,u.config)}),di(t),Jt[t]}function an(t){return function ji(){Jt.en||(di("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(t){const s=t%10;return t+(1===A(t%100/10)?"th":1===s?"st":2===s?"nd":3===s?"rd":"th")}}),function vs(){H("w",["ww",2,!1],"wo",function(t,s){return function ri(t,s=an(),l){return s.week(t,l)}(t,s.locale).toString(10)}),H("W",["WW",2,!1],"Wo",function(t){return function Zn(t,s){return An(t,1,4,s).week}(t).toString(10)}),pe("week","w"),pe("isoWeek","W"),ct("week",5),ct("isoWeek",5),oe("w",q),oe("ww",q,Yt),oe("W",q),oe("WW",q,Yt),yt(["w","ww","W","WW"],function(t,s,l,u){return s[u.substr(0,1)]=A(t),l})}(),function $s(){H(null,["gg",2,!1],null,function(t,s){return(zi(t,s.locale)%100).toString()}),H(null,["GG",2,!1],null,function(t){return(bs(t)%100).toString()}),oi("gggg",wn),oi("ggggg",wn),oi("GGGG",Dn),oi("GGGGG",Dn),pe("weekYear","gg"),pe("isoWeekYear","GG"),ct("weekYear",1),ct("isoWeekYear",1),oe("G",rt),oe("g",rt),oe("GG",q,Yt),oe("gg",q,Yt),oe("GGGG",qe,ee),oe("gggg",qe,ee),oe("GGGGG",ut,ge),oe("ggggg",ut,ge),yt(["gggg","ggggg","GGGG","GGGGG"],function(t,s,l,u){return s[u.substr(0,2)]=A(t),l}),yt(["gg","GG"],function(t,s,l,u){return s[u]=Lt(t),l})}(),function vn(){H("Y",null,null,function(t,s){const l=Pt(t,s.isUTC);return l<=9999?l.toString(10):`+${l}`}),H(null,["YY",2,!1],null,function(t,s){return(Pt(t,s.isUTC)%100).toString(10)}),H(null,["YYYY",4,!1],null,Zt),H(null,["YYYYY",5,!1],null,Zt),H(null,["YYYYYY",6,!0],null,Zt),pe("year","y"),ct("year",1),oe("Y",rt),oe("YY",q,Yt),oe("YYYY",qe,ee),oe("YYYYY",ut,ge),oe("YYYYYY",ut,ge),Ie(["YYYYY","YYYYYY"],we),Ie("YYYY",function(t,s,l){return s[we]=2===t.length?Lt(t):A(t),l}),Ie("YY",function(t,s,l){return s[we]=Lt(t),l}),Ie("Y",function(t,s,l){return s[we]=parseInt(t,10),l})}(),function Gs(){H("z",null,null,function(t,s){return s.isUTC?"UTC":""}),H("zz",null,null,function(t,s){return s.isUTC?"Coordinated Universal Time":""})}(),function nn(){H("X",null,null,function(t){return function be(t){return Math.floor(t.valueOf()/1e3)}(t).toString(10)}),H("x",null,null,function(t){return t.valueOf().toString(10)}),oe("x",rt),oe("X",J),Ie("X",function(t,s,l){return l._d=new Date(1e3*parseFloat(t)),l}),Ie("x",function(t,s,l){return l._d=new Date(A(t)),l})}(),function zs(){H("s",["ss",2,!1],null,function(t,s){return ot(t,s.isUTC).toString(10)}),pe("second","s"),ct("second",15),oe("s",q),oe("ss",q,Yt),Ie(["s","ss"],Ce)}(),function en(){H("Q",null,"Qo",function(t,s){return function Ct(t,s=!1){return Math.ceil((mt(t,s)+1)/3)}(t,s.isUTC).toString(10)}),pe("quarter","Q"),ct("quarter",7),oe("Q",gn),Ie("Q",function(t,s,l){return s[ue]=3*(A(t)-1),l})}(),function sn(){Ji("Z",":"),Ji("ZZ",""),oe("Z",U),oe("ZZ",U),Ie(["Z","ZZ"],function(t,s,l){return l._useUTC=!0,l._tzm=function on(t,s){const l=(s||"").match(t);if(null===l)return null;const v=l[l.length-1].match(Yn)||["-","0","0"],I=60*parseInt(v[1],10)+A(v[2]);return 0===I?0:"+"===v[0]?I:-I}(U,t),l})}(),function Wt(){H("M",["MM",2,!1],"Mo",function(t,s){return(mt(t,s.isUTC)+1).toString(10)}),H("MMM",null,null,function(t,s){return s.locale.monthsShort(t,s.format,s.isUTC)}),H("MMMM",null,null,function(t,s){return s.locale.months(t,s.format,s.isUTC)}),pe("month","M"),ct("month",8),oe("M",q),oe("MM",q,Yt),oe("MMM",function(t,s){return s.monthsShortRegex(t)}),oe("MMMM",function(t,s){return s.monthsRegex(t)}),Ie(["M","MM"],function(t,s,l){return s[ue]=A(t)-1,l}),Ie(["MMM","MMMM"],function(t,s,l,u){const v=l._locale.monthsParse(t,u,l._strict);return null!=v?s[ue]=v:Ue(l).invalidMonth=!!t,l})}(),function qi(){H("m",["mm",2,!1],null,function(t,s){return je(t,s.isUTC).toString(10)}),pe("minute","m"),ct("minute",14),oe("m",q),oe("mm",q,Yt),Ie(["m","mm"],Se)}(),function Js(){let t;for(H("S",null,null,function(l,u){return(~~(pt(l,u.isUTC)/100)).toString(10)}),H(null,["SS",2,!1],null,function(l,u){return(~~(pt(l,u.isUTC)/10)).toString(10)}),H(null,["SSS",3,!1],null,function(l,u){return pt(l,u.isUTC).toString(10)}),H(null,["SSSS",4,!1],null,function(l,u){return(10*pt(l,u.isUTC)).toString(10)}),H(null,["SSSSS",5,!1],null,function(l,u){return(100*pt(l,u.isUTC)).toString(10)}),H(null,["SSSSSS",6,!1],null,function(l,u){return(1e3*pt(l,u.isUTC)).toString(10)}),H(null,["SSSSSSS",7,!1],null,function(l,u){return(1e4*pt(l,u.isUTC)).toString(10)}),H(null,["SSSSSSSS",8,!1],null,function(l,u){return(1e5*pt(l,u.isUTC)).toString(10)}),H(null,["SSSSSSSSS",9,!1],null,function(l,u){return(1e6*pt(l,u.isUTC)).toString(10)}),pe("millisecond","ms"),ct("millisecond",16),oe("S",tt,gn),oe("SS",tt,Yt),oe("SSS",tt,F),t="SSSS";t.length<=9;t+="S")oe(t,gt);function s(l,u,v){return u[Re]=A(1e3*parseFloat(`0.${l}`)),v}for(t="S";t.length<=9;t+="S")Ie(t,s)}(),function Qs(){function t(v,I){return $(v,I)%12||12}function l(v,I){H(v,null,null,function(ne,Ee){return Ee.locale.meridiem($(ne,Ee.isUTC),je(ne,Ee.isUTC),I)})}function u(v,I){return I._meridiemParse}H("H",["HH",2,!1],null,function(v,I){return $(v,I.isUTC).toString(10)}),H("h",["hh",2,!1],null,function(v,I){return t(v,I.isUTC).toString(10)}),H("k",["kk",2,!1],null,function(v,I){return function s(v,I){return $(v,I)||24}(v,I.isUTC).toString(10)}),H("hmm",null,null,function(v,I){return`${t(v,I.isUTC)}${ie(je(v,I.isUTC),2)}`}),H("hmmss",null,null,function(v,I){return`${t(v,I.isUTC)}${ie(je(v,I.isUTC),2)}${ie(ot(v,I.isUTC),2)}`}),H("Hmm",null,null,function(v,I){return`${$(v,I.isUTC)}${ie(je(v,I.isUTC),2)}`}),H("Hmmss",null,null,function(v,I){return`${$(v,I.isUTC)}${ie(je(v,I.isUTC),2)}${ie(ot(v,I.isUTC),2)}`}),l("a",!0),l("A",!1),pe("hour","h"),ct("hour",13),oe("a",u),oe("A",u),oe("H",q),oe("h",q),oe("k",q),oe("HH",q,Yt),oe("hh",q,Yt),oe("kk",q,Yt),oe("hmm",Te),oe("hmmss",Ne),oe("Hmm",Te),oe("Hmmss",Ne),Ie(["H","HH"],Le),Ie(["k","kk"],function(v,I,ne){const Ee=A(v);return I[Le]=24===Ee?0:Ee,ne}),Ie(["a","A"],function(v,I,ne){return ne._isPm=ne._locale.isPM(v),ne._meridiem=v,ne}),Ie(["h","hh"],function(v,I,ne){return I[Le]=A(v),Ue(ne).bigHour=!0,ne}),Ie("hmm",function(v,I,ne){const Ee=v.length-2;return I[Le]=A(v.substr(0,Ee)),I[Se]=A(v.substr(Ee)),Ue(ne).bigHour=!0,ne}),Ie("hmmss",function(v,I,ne){const Ee=v.length-4,at=v.length-2;return I[Le]=A(v.substr(0,Ee)),I[Se]=A(v.substr(Ee,2)),I[Ce]=A(v.substr(at)),Ue(ne).bigHour=!0,ne}),Ie("Hmm",function(v,I,ne){const Ee=v.length-2;return I[Le]=A(v.substr(0,Ee)),I[Se]=A(v.substr(Ee)),ne}),Ie("Hmmss",function(v,I,ne){const Ee=v.length-4,at=v.length-2;return I[Le]=A(v.substr(0,Ee)),I[Se]=A(v.substr(Ee,2)),I[Ce]=A(v.substr(at)),ne})}(),function Et(){H("DDD",["DDDD",3,!1],"DDDo",function(t){return Bt(t).toString(10)}),pe("dayOfYear","DDD"),ct("dayOfYear",4),oe("DDD",tt),oe("DDDD",F),Ie(["DDD","DDDD"],function(t,s,l){return l._dayOfYear=A(t),l})}(),function Mn(){H("d",null,"do",function(t,s){return xt(t,s.isUTC).toString(10)}),H("dd",null,null,function(t,s){return s.locale.weekdaysMin(t,s.format,s.isUTC)}),H("ddd",null,null,function(t,s){return s.locale.weekdaysShort(t,s.format,s.isUTC)}),H("dddd",null,null,function(t,s){return s.locale.weekdays(t,s.format,s.isUTC)}),H("e",null,null,function(t,s){return Li(t,s.locale,s.isUTC).toString(10)}),H("E",null,null,function(t,s){return function Jr(t,s){return xt(t,s)||7}(t,s.isUTC).toString(10)}),pe("day","d"),pe("weekday","e"),pe("isoWeekday","E"),ct("day",11),ct("weekday",11),ct("isoWeekday",11),oe("d",q),oe("e",q),oe("E",q),oe("dd",function(t,s){return s.weekdaysMinRegex(t)}),oe("ddd",function(t,s){return s.weekdaysShortRegex(t)}),oe("dddd",function(t,s){return s.weekdaysRegex(t)}),yt(["dd","ddd","dddd"],function(t,s,l,u){const v=l._locale.weekdaysParse(t,u,l._strict);return null!=v?s.d=v:Ue(l).invalidWeekday=!!t,l}),yt(["d","e","E"],function(t,s,l,u){return s[u]=A(t),l})}(),function Xe(){H("D",["DD",2,!1],"Do",function(t,s){return Kt(t,s.isUTC).toString(10)}),pe("date","D"),ct("date",9),oe("D",q),oe("DD",q,Yt),oe("Do",function(t,s){return s._dayOfMonthOrdinalParse||s._ordinalParse}),Ie(["D","DD"],G),Ie("Do",function(t,s,l){return s[G]=A(t.match(q)[0]),l})}())}(),t?function es(t){let s,l,u=0;for(;u<t.length;){const v=Ci(t[u]).split("-");let I=v.length;for(s=Ci(t[u+1]),s=s?s.split("-"):null;I>0;){if(l=ai(v.slice(0,I).join("-")),l)return l;if(s&&s.length>=I&&Us(v,s,!0)>=I-1)break;I--}u++}return null}(k(t)?t:[t]):Gn}const Mi=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],qs=Mi.reduce((t,s)=>(t[s]=!0,t),{});function Nn(t){return t<0?Math.floor(t):Math.ceil(t)}function ns(t){return 4800*t/146097}function is(t){return 146097*t/4800}let qn=Math.round;const Bn_ss=44,Bn_s=45,Bn_m=45,Bn_h=22,Bn_d=26,Bn_M=11;function Cs(t,s,l,u,v){return v.relativeTime(s||1,!!l,t,u)}class Ei{constructor(s,l={}){this._data={},this._locale=an(),this._locale=l&&l._locale||an();const v=s.year||0,I=s.quarter||0,ne=s.month||0,Ee=s.week||0,at=s.day||0,$t=s.hours||0,Vs=s.minutes||0,Ir=s.seconds||0,Pr=s.milliseconds||0;return this._isValid=function Ts(t){if(Object.keys(t).some(u=>u in qs&&null===t[u]||isNaN(t[u])))return!1;let l=!1;for(let u=0;u<Mi.length;++u)if(t[Mi[u]]){if(l)return!1;t[Mi[u]]!==A(t[Mi[u]])&&(l=!0)}return!0}(s),this._milliseconds=+Pr+1e3*Ir+60*Vs*1e3+1e3*$t*60*60,this._days=+at+7*Ee,this._months=+ne+3*I+12*v,function er(t){let s=t._milliseconds,l=t._days,u=t._months;const v=t._data;s>=0&&l>=0&&u>=0||s<=0&&l<=0&&u<=0||(s+=864e5*Nn(is(u)+l),l=0,u=0),v.milliseconds=s%1e3;const I=T(s/1e3);v.seconds=I%60;const ne=T(I/60);v.minutes=ne%60;const Ee=T(ne/60);v.hours=Ee%24,l+=T(Ee/24);const at=T(ns(l));u+=at,l-=Nn(is(at));const $t=T(u/12);return u%=12,v.day=l,v.month=u,v.year=$t,t}(this)}isValid(){return this._isValid}humanize(s){if(!this.isValid())return this.localeData().invalidDate;const l=this.localeData();let u=function tr(t,s,l){const u=f(t).abs(),v=qn(u.as("s")),I=qn(u.as("m")),ne=qn(u.as("h")),Ee=qn(u.as("d")),at=qn(u.as("M")),$t=qn(u.as("y")),Vs=v<=Bn_ss&&["s",v]||v<Bn_s&&["ss",v]||I<=1&&["m"]||I<Bn_m&&["mm",I]||ne<=1&&["h"]||ne<Bn_h&&["hh",ne]||Ee<=1&&["d"]||Ee<Bn_d&&["dd",Ee]||at<=1&&["M"]||at<Bn_M&&["MM",at]||$t<=1&&["y"]||["yy",$t];return Cs.apply(null,[Vs[0],Vs[1],s,+t>0,l])}(this,!s,l);return s&&(u=l.pastFuture(+this,u)),l.postformat(u)}localeData(){return this._locale}locale(s){return s?(this._locale=an(s)||this._locale,this):this._locale._abbr}abs(){const s=Math.abs,l=this._data;return this._milliseconds=s(this._milliseconds),this._days=s(this._days),this._months=s(this._months),l.milliseconds=s(l.milliseconds),l.seconds=s(l.seconds),l.minutes=s(l.minutes),l.hours=s(l.hours),l.month=s(l.month),l.year=s(l.year),this}as(s){if(!this.isValid())return NaN;let l,u;const v=this._milliseconds,I=re(s);if("month"===I||"year"===I)return l=this._days+v/864e5,u=this._months+ns(l),"month"===I?u:u/12;switch(l=this._days+Math.round(is(this._months)),I){case"week":return l/7+v/6048e5;case"day":return l+v/864e5;case"hours":return 24*l+v/36e5;case"minutes":return 1440*l+v/6e4;case"seconds":return 86400*l+v/1e3;case"milliseconds":return Math.floor(864e5*l)+v;default:throw new Error(`Unknown unit ${I}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*A(this._months/12):NaN}}function Si(t){if(null==t._isValid){const s=Ue(t),l=Array.prototype.some.call(s.parsedDateParts,function(v){return null!=v});let u=!isNaN(t._d&&t._d.getTime())&&s.overflow<0&&!s.empty&&!s.invalidMonth&&!s.invalidWeekday&&!s.weekdayMismatch&&!s.nullInput&&!s.invalidFormat&&!s.userInvalidated&&(!s.meridiem||s.meridiem&&l);if(t._strict&&(u=u&&0===s.charsLeftOver&&0===s.unusedTokens.length&&void 0===s.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return u;t._isValid=u}return t._isValid}function hi(t,s){return t._d=new Date(NaN),Object.assign(Ue(t),s||{userInvalidated:!0}),t}const nr=/^\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)?)?$/,ir=/^\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)?)?$/,li=/Z|[+-]\d\d(?::?\d\d)?/,ki=[["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]],ss=[["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/]],sr=/^\/?Date\((\-?\d+)/i,rr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},or=/^(?:(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 xs(t){if(!j(t._i))return t;const s=t._i,l=nr.exec(s)||ir.exec(s);let u,v,I,ne,Ee,at;if(!l)return t._isValid=!1,t;for(Ee=0,at=ki.length;Ee<at;Ee++)if(ki[Ee][1].exec(l[1])){v=ki[Ee][0],u=!1!==ki[Ee][2];break}if(null==v)return t._isValid=!1,t;if(l[3]){for(Ee=0,at=ss.length;Ee<at;Ee++)if(ss[Ee][1].exec(l[3])){I=(l[2]||" ")+ss[Ee][0];break}if(null==I)return t._isValid=!1,t}if(!u&&null!=I)return t._isValid=!1,t;if(l[4]){if(!li.exec(l[4]))return t._isValid=!1,t;ne="Z"}return t._f=v+(I||"")+(ne||""),Ys(t)}function rs(t){const s=parseInt(t,10);return s<=49?s+2e3:s}function ei(t){if(!j(t._i))return t;const s=or.exec(function Os(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t._i));if(!s)return function ks(t){return t._isValid=!1,t}(t);const l=function _i(t,s,l,u,v,I){const ne=[rs(t),wi.indexOf(s),parseInt(l,10),parseInt(u,10),parseInt(v,10)];return I&&ne.push(parseInt(I,10)),ne}(s[4],s[3],s[2],s[5],s[6],s[7]);return function xi(t,s,l){return!t||Di.indexOf(t)===new Date(s[0],s[1],s[2]).getDay()||(Ue(l).weekdayMismatch=!0,l._isValid=!1,!1)}(s[1],l,t)&&(t._a=l,t._tzm=function Ls(t,s,l){if(t)return rr[t];if(s)return 0;{const u=parseInt(l,10),v=u%100;return(u-v)/100*60+v}}(s[8],s[9],s[10]),t._d=N.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),Ue(t).rfc2822=!0),t}function Oi(t,s,l,u,v=0){const I=an(l||"en");if(!I)throw new Error(`Locale "${l}" is not defined, please add it with "defineLocale(...)"`);const Ee=function os(t,s,l,u,v=0){if(!V(t))return l.invalidDate;const I=fi(s,l);return ye[I]=ye[I]||function Je(t){const s=t.match(He),l=s.length,u=new Array(l);for(let v=0;v<l;v++)u[v]=Oe[s[v]]?Oe[s[v]]:D(s[v]);return function(v,I,ne,Ee=0){let at="";for(let $t=0;$t<l;$t++)at+=b(u[$t])?u[$t].call(null,v,{format:t,locale:I,isUTC:ne,offset:Ee}):u[$t];return at}}(I),ye[I](t,l,u,v)}(t,s||(u?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),I,u,v);return Ee&&I.postformat(Ee)}function fi(t,s){let l=t,u=5;const v=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I=ne=>s.formatLongDate(ne)||ne;for(v.lastIndex=0;u>=0&&v.test(l);)l=l.replace(v,I),v.lastIndex=0,u-=1;return l}function ti(t,s,l){return t??s??l}function Vi(t){const s=[];let l,u,v;if(t._d)return t;const I=function As(t){const s=new Date;return t._useUTC?[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()]:[s.getFullYear(),s.getMonth(),s.getDate()]}(t);for(t._w&&null==t._a[G]&&null==t._a[ue]&&function Is(t){let s,l,u,v,I,ne,Ee;const at=t._w;if(null!=at.GG||null!=at.W||null!=at.E)v=1,I=4,s=ti(at.GG,t._a[we],An(new Date,1,4).year),l=ti(at.W,1),u=ti(at.E,1),(u<1||u>7)&&(Ee=!0);else{v=t._locale._week.dow,I=t._locale._week.doy;const $t=An(new Date,v,I);s=ti(at.gg,t._a[we],$t.year),l=ti(at.w,$t.week),null!=at.d?(u=at.d,(u<0||u>6)&&(Ee=!0)):null!=at.e?(u=at.e+v,(at.e<0||at.e>6)&&(Ee=!0)):u=v}l<1||l>In(s,v,I)?Ue(t)._overflowWeeks=!0:null!=Ee?Ue(t)._overflowWeekday=!0:(ne=function bn(t,s,l,u,v){const Ee=1+7*(s-1)+(7+l-u)%7+yn(t,u,v);let at,$t;return Ee<=0?(at=t-1,$t=Nt(at)+Ee):Ee>Nt(t)?(at=t+1,$t=Ee-Nt(t)):(at=t,$t=Ee),{year:at,dayOfYear:$t}}(s,l,u,v,I),t._a[we]=ne.year,t._dayOfYear=ne.dayOfYear)}(t),null!=t._dayOfYear&&(v=ti(t._a[we],I[we]),(t._dayOfYear>Nt(v)||0===t._dayOfYear)&&(Ue(t)._overflowDayOfYear=!0),u=new Date(Date.UTC(v,0,t._dayOfYear)),t._a[ue]=u.getUTCMonth(),t._a[G]=u.getUTCDate()),l=0;l<3&&null==t._a[l];++l)t._a[l]=s[l]=I[l];for(;l<7;l++)t._a[l]=s[l]=null==t._a[l]?2===l?1:0:t._a[l];24===t._a[Le]&&0===t._a[Se]&&0===t._a[Ce]&&0===t._a[Re]&&(t._nextDay=!0,t._a[Le]=0),t._d=(t._useUTC?N:R).apply(null,s);const ne=t._useUTC?t._d.getUTCDay():t._d.getDay();return null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Le]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==ne&&(Ue(t).weekdayMismatch=!0),t}function Ps(t){let s;const l=t._a;return l&&-2===Ue(t).overflow&&(s=l[ue]<0||l[ue]>11?ue:l[G]<1||l[G]>Qt(l[we],l[ue])?G:l[Le]<0||l[Le]>24||24===l[Le]&&(0!==l[Se]||0!==l[Ce]||0!==l[Re])?Le:l[Se]<0||l[Se]>59?Se:l[Ce]<0||l[Ce]>59?Ce:l[Re]<0||l[Re]>999?Re:-1,Ue(t)._overflowDayOfYear&&(s<we||s>G)&&(s=G),Ue(t)._overflowWeeks&&-1===s&&(s=Ye),Ue(t)._overflowWeekday&&-1===s&&(s=Z),Ue(t).overflow=s),t}const pi="ISO_8601",Rs="RFC_2822";function Ys(t){if(t._f===pi)return xs(t);if(t._f===Rs)return ei(t);if(t._a=[],Ue(t).empty=!0,k(t._f)||!t._i&&0!==t._i)return t;let s=t._i.toString(),l=0;const u=s.length,v=fi(t._f,t._locale).match(He)||[];let I,ne,Ee,at;for(I=0;I<v.length;I++)ne=v[I],Ee=(s.match(Be(ne,t._locale))||[])[0],Ee&&(at=s.substr(0,s.indexOf(Ee)),at.length>0&&Ue(t).unusedInput.push(at),s=s.slice(s.indexOf(Ee)+Ee.length),l+=Ee.length),Oe[ne]?(Ee?Ue(t).empty=!1:Ue(t).unusedTokens.push(ne),_t(ne,Ee,t)):t._strict&&!Ee&&Ue(t).unusedTokens.push(ne);return Ue(t).charsLeftOver=u-l,s.length>0&&Ue(t).unusedInput.push(s),t._a[Le]<=12&&!0===Ue(t).bigHour&&t._a[Le]>0&&(Ue(t).bigHour=void 0),Ue(t).parsedDateParts=t._a.slice(0),Ue(t).meridiem=t._meridiem,t._a[Le]=function Ur(t,s,l){let u=s;if(null==l)return u;if(null!=t.meridiemHour)return t.meridiemHour(u,l);if(null==t.isPM)return u;const v=t.isPM(l);return v&&u<12&&(u+=12),!v&&12===u&&(u=0),u}(t._locale,t._a[Le],t._meridiem),Vi(t),Ps(t)}function lr(t){const s=Ps(function Gr(t){let s=t._i;const l=t._f;return t._locale=t._locale||an(t._l),null===s||void 0===l&&""===s?hi(t,{nullInput:!0}):(j(s)&&(t._i=s=t._locale.preparse(s,l)),Y(s)?(t._d=it(s),t):(k(l)?function $r(t){let s,l,u,v,I;if(!t._f||0===t._f.length)return Ue(t).invalidFormat=!0,hi(t);for(I=0;I<t._f.length;I++)v=0,s=Object.assign({},t),null!=t._useUTC&&(s._useUTC=t._useUTC),s._f=t._f[I],Ys(s),Si(s)&&(v+=Ue(s).charsLeftOver,v+=10*Ue(s).unusedTokens.length,Ue(s).score=v,(null==u||v<u)&&(u=v,l=s));Object.assign(t,l||s)}(t):l?Ys(t):function Ns(t){const s=t._i;if(_e(s))t._d=new Date;else if(Y(s))t._d=it(s);else if(j(s))!function ar(t){if(!j(t._i))return t;const s=sr.exec(t._i);null!==s?t._d=new Date(+s[1]):(xs(t),!1!==t._isValid||(delete t._isValid,ei(t),!1!==t._isValid||(delete t._isValid,hi(t))))}(t);else if(k(s)&&s.length){const l=s.slice(0);t._a=l.map(u=>j(u)?parseInt(u,10):u),Vi(t)}else if(L(s))!function Zr(t){if(t._d)return t;const s=t._i;if(L(s)){const l=function Ge(t){const s={};let l,u;for(u in t)E(t,u)&&(l=re(u),l&&(s[l]=t[u]));return s}(s);t._a=[l.year,l.month,l.day,l.hours,l.minutes,l.seconds,l.milliseconds].map(u=>j(u)?parseInt(u,10):u)}return Vi(t)}(t);else{if(!B(s))return hi(t);t._d=new Date(s)}}(t),Si(t)||(t._d=null),t))}(t));return s._d=new Date(null!=s._d?s._d.getTime():NaN),Si(Object.assign({},s,{_isValid:null}))||(s._d=new Date(NaN)),s}function as(t,s,l,u,v){return Y(t)?t:function cr(t,s,l,u,v){const I={};let ne=t;return(L(ne)&&function W(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;let s;for(s in t)if(t.hasOwnProperty(s))return!1;return!0}(ne)||k(ne)&&0===ne.length)&&(ne=void 0),I._useUTC=I._isUTC=v,I._l=l,I._i=ne,I._f=s,I._strict=u,lr(I)}(t,s,l,u,v)._d}function Bs(t){return t instanceof Date?new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()):null}function ls(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function En(t,s,l="milliseconds"){return!(!t||!s)&&("milliseconds"===l?t.valueOf()>s.valueOf():s.valueOf()<bt(t,l).valueOf())}function mi(t,s,l="milliseconds"){return!(!t||!s)&&("milliseconds"===l?t.valueOf()<s.valueOf():Tt(t,l).valueOf()<s.valueOf())}function ur(t,s){return!(typeof s>"u"||!s||!s.length)&&s.some(l=>l===t.getDay())}function Wi(t,s,l="milliseconds"){if(!t||!s)return!1;if("milliseconds"===l)return t.valueOf()===s.valueOf();const u=s.valueOf();return bt(t,l).valueOf()<=u&&u<=Tt(t,l).valueOf()}const i=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function f(t,s,l={}){const u=function C(t,s){if(null==t)return{};if(function Ss(t){return t instanceof Ei}(t))return{milliseconds:t._milliseconds,day:t._days,month:t._months};if(B(t))return s?{[s]:t}:{milliseconds:t};if(j(t)){let l=i.exec(t);if(l){const u="-"===l[1]?-1:1;return{year:0,day:A(l[G])*u,hours:A(l[Le])*u,minutes:A(l[Se])*u,seconds:A(l[Ce])*u,milliseconds:A(ls(1e3*A(l[Re])))*u}}if(l=c.exec(t),l){const u="-"===l[1]?-1:1;return{year:fe(l[2],u),month:fe(l[3],u),week:fe(l[4],u),day:fe(l[5],u),hours:fe(l[6],u),minutes:fe(l[7],u),seconds:fe(l[8],u)}}}if(L(t)&&("from"in t||"to"in t)){const l=function Ht(t,s){if(!V(t)||!V(s))return{milliseconds:0,months:0};let l;const u=function Qi(t,s,l={}){if(!l._isUTC)return t;const u=it(s),v=6e4*(l._offset||0),I=t.valueOf()-u.valueOf()+v;return u.setTime(u.valueOf()+I),u}(s,t,{_offset:t.getTimezoneOffset()});return mi(t,u)?l=At(t,u):(l=At(u,t),l.milliseconds=-l.milliseconds,l.months=-l.months),l}(as(t.from),as(t.to));return{milliseconds:l.milliseconds,month:l.months}}return t}(t,s);return new Ei(u,l)}function fe(t,s){const l=t&&parseFloat(t.replace(",","."));return(isNaN(l)?0:l)*s}function At(t,s){const l={milliseconds:0,months:0};return l.months=mt(s)-mt(t)+12*(Pt(s)-Pt(t)),En(Gt(it(t),l.months,"month"),s)&&--l.months,l.milliseconds=+s-+Gt(it(t),l.months,"month"),l}function Gt(t,s,l,u){return Cn(t,f(s,l),1,u)}function Cn(t,s,l,u){const v=s._milliseconds,I=ls(s._days),ne=ls(s._months);return ne&&Pe(t,mt(t,u)+ne*l,u),I&&nt(t,Kt(t,u)+I*l,u),v&&function vt(t,s){t.setTime(s)}(t,function kt(t){return t.getTime()}(t)+v*l),it(t)}function un(t,s,l=an(),u){const v=xt(t,u),I=function cs(t,s){if(!j(t))return t;const l=parseInt(t,10);if(!isNaN(l))return l;const u=s.weekdaysParse(t);return B(u)?u:null}(s,l);return Gt(t,I-v,"day")}function Li(t,s=an(),l){return(xt(t,l)+7-s.firstDayOfWeek())%7}const Qr=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},Do={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"]},Fn=function(t){return function(s,l){const u=Qr(s);let v=Do[t][Qr(s)];return 2===u&&(v=v[l?0:1]),v.replace(/%d/i,s.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("_"),Fn("s"),Fn("s"),Fn("m"),Fn("m"),Fn("h"),Fn("h"),Fn("d"),Fn("d"),Fn("M"),Fn("M"),Fn("y"),Fn("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 fr="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),pr="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(t,s){let l,u=[];for(l=0;l<12;l++)u[l]=new RegExp("^"+t[l]+"$|^"+s[l]+"$","i")})(fr,pr),function(t){let s,l=[];for(s=0;s<12;s++)l[s]=new RegExp("^"+t[s]+"$","i")}(pr),function(t){let s,l=[];for(s=0;s<12;s++)l[s]=new RegExp("^"+t[s]+"$","i")}(fr),"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".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("_"),"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\u05d9\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_spalio_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".split("_"),"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 xr={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:t=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t,meridiem:(t,s,l)=>t<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(t,s){const l=xr.longDateFormat[s]?xr.longDateFormat[s]:s;return-1!==l.indexOf("YYYY",l.length-4)?t.substr(0,t.length-4)+(parseInt(t.substr(t.length-4),10)-543):t},getFullYear:(t,s=!1)=>543+(s?t.getUTCFullYear():t.getFullYear())};function Ri(t){return function(s){return t+"\u043e"+(11===$(s)?"\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("_"),Ri("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),Ri("[\u0417\u0430\u0432\u0442\u0440\u0430 "),Ri("[\u0412\u0447\u043e\u0440\u0430 "),Ri("[\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("_")},1835:(We,z,m)=>{m.d(z,{oj:()=>B});var e=m(5879),T=m(3161),j=m(2066),Y=m(6814);class V{constructor(E,L,W){this.nodes=E,this.viewRef=L,this.componentRef=W}}class b{constructor(E,L,W,_e,A,ce,me,pe,re){this._viewContainerRef=E,this._renderer=L,this._elementRef=W,this._injector=_e,this._componentFactoryResolver=A,this._ngZone=ce,this._applicationRef=me,this._posService=pe,this._document=re,this.onBeforeShow=new e.vpe,this.onShown=new e.vpe,this.onBeforeHide=new e.vpe,this.onHidden=new e.vpe,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(E){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(E),this}to(E){return this.container=E||this.container,this}position(E){return E?(this.attachment=E.attachment||this.attachment,this._elementRef=E.target||this._elementRef,this):this}provide(E){return this._providers.push(E),this}show(E={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(E.content,E.context,E.initialState);const L=e.zs3.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(L,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,E),this.container instanceof e.SBq&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const W=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!W)return;W.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(E.id?{id:E.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(E){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const L=this._componentRef.location.nativeElement;return L.parentNode?.removeChild(L),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(E?{id:E}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(E){this.triggers=E.triggers||this.triggers,this._listenOpts.outsideClick=E.outsideClick,this._listenOpts.outsideEsc=E.outsideEsc,E.target=E.target||this._elementRef?.nativeElement;const L=this._listenOpts.hide=()=>E.hide?E.hide():void this.hide(),W=this._listenOpts.show=A=>{E.show?E.show(A):this.show(A),A()};return this._renderer&&(this._unregisterListenersFn=(0,T.wo)(this._renderer,{target:E.target,triggers:E.triggers,show:W,hide:L,toggle:A=>{this.isShown?L():W(A)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(E,L){return E&&L&&(this._inlineViewRef=E.createEmbeddedView(L)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const E=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=(0,T.Rg)(this._renderer,{targets:[E,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=(0,T.C)(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(E,L,W){if(!E)return new V([]);if(E instanceof e.Rgc){if(this._viewContainerRef){const ce=this._viewContainerRef.createEmbeddedView(E,L);return ce.markForCheck(),new V([ce.rootNodes],ce)}const A=E.createEmbeddedView({});return this._applicationRef.attachView(A),new V([A.rootNodes],A)}if("function"==typeof E){const A=this._componentFactoryResolver.resolveComponentFactory(E),ce=e.zs3.create({providers:this._providers,parent:this._injector}),me=A.create(ce);return Object.assign(me.instance,W),this._applicationRef.attachView(me.hostView),new V([[me.location.nativeElement]],me.hostView,me)}const _e=this._renderer?[this._renderer.createText(`${E}`)]:[];return new V([_e])}}let B=(()=>{class k{constructor(L,W,_e,A,ce,me){this._componentFactoryResolver=L,this._ngZone=W,this._injector=_e,this._posService=A,this._applicationRef=ce,this._document=me}createLoader(L,W,_e){return new b(W,_e,L,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static{this.\u0275fac=function(W){return new(W||k)(e.LFG(e._Vd),e.LFG(e.R0b),e.LFG(e.zs3),e.LFG(j.sA),e.LFG(e.z2F),e.LFG(Y.K0))}}static{this.\u0275prov=e.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}}return k})()},3279:(We,z,m)=>{m.d(z,{Np:()=>Rs,kn:()=>zr,FR:()=>mi});var e=m(5879),T=m(2181),j=m(7398),Y=m(8180),x=m(9773),V=m(3997),b=m(2389),B=m(2066),k=m(6223),E=m(5619),L=m(1954),_e=m(2631);const ce=new class A extends _e.v{}(class W extends L.o{constructor(p,i){super(p,i),this.scheduler=p,this.work=i}schedule(p,i=0){return i>0?super.schedule(p,i):(this.delay=i,this.state=p,this.scheduler.flush(this),this)}execute(p,i){return i>0||this.closed?super.execute(p,i):this._execute(p,i)}requestAsyncId(p,i,c=0){return null!=c&&c>0||null==c&&this.delay>0?super.requestAsyncId(p,i,c):(p.flush(this),0)}});var pe=m(5592),re=m(3093),Ge=m(6699);class we extends E.X{constructor(p,i,c){super(p),i.pipe((0,re.Q)(ce)).pipe((0,Ge.R)((fe,At)=>At?c(fe,At):fe,p)).subscribe(fe=>this.next(fe))}}class ue extends pe.y{constructor(p,i,c){super(),this._dispatcher=p,this._reducer=i,this.source=c}select(p){return(this.source?.pipe((0,j.U)(p))||(new pe.y).pipe((0,j.U)(p))).pipe((0,V.x)())}lift(p){const i=new ue(this._dispatcher,this._reducer,this);return i.operator=p,i}dispatch(p){this._dispatcher.next(p)}next(p){this._dispatcher.next(p)}error(p){this._dispatcher.error(p)}complete(){}}var G=m(6814);function Le(r,p){1&r&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Se(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.changeMinutes(f.minuteStep))}),e._UZ(2,"span",2),e.qZA()()}if(2&r){const i=e.oxw();e.xp6(1),e.ekj("disabled",!i.canIncrementMinutes||!i.isEditable)}}function Ce(r,p){1&r&&(e.TgZ(0,"td"),e._uU(1,"\xa0"),e.qZA())}function Re(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.changeSeconds(f.secondsStep))}),e._UZ(2,"span",2),e.qZA()()}if(2&r){const i=e.oxw();e.xp6(1),e.ekj("disabled",!i.canIncrementSeconds||!i.isEditable)}}function Ye(r,p){1&r&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Z(r,p){1&r&&e._UZ(0,"td")}function ie(r,p){1&r&&(e.TgZ(0,"td"),e._uU(1,"\xa0:\xa0"),e.qZA())}function ye(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"td",4)(1,"input",5),e.NdJ("wheel",function(f){e.CHM(i);const C=e.oxw();return C.prevDef(f),e.KtG(C.changeMinutes(C.minuteStep*C.wheelSign(f),"wheel"))})("keydown.ArrowUp",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.changeMinutes(f.minuteStep,"key"))})("keydown.ArrowDown",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.changeMinutes(-f.minuteStep,"key"))})("change",function(f){e.CHM(i);const C=e.oxw();return e.KtG(C.updateMinutes(f.target))}),e.qZA()()}if(2&r){const i=e.oxw();e.ekj("has-error",i.invalidMinutes),e.xp6(1),e.ekj("is-invalid",i.invalidMinutes),e.Q6J("placeholder",i.minutesPlaceholder)("readonly",i.readonlyInput)("disabled",i.disabled)("value",i.minutes),e.uIk("aria-label",i.labelMinutes)}}function Oe(r,p){1&r&&(e.TgZ(0,"td"),e._uU(1,"\xa0:\xa0"),e.qZA())}function He(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"td",4)(1,"input",5),e.NdJ("wheel",function(f){e.CHM(i);const C=e.oxw();return C.prevDef(f),e.KtG(C.changeSeconds(C.secondsStep*C.wheelSign(f),"wheel"))})("keydown.ArrowUp",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.changeSeconds(f.secondsStep,"key"))})("keydown.ArrowDown",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.changeSeconds(-f.secondsStep,"key"))})("change",function(f){e.CHM(i);const C=e.oxw();return e.KtG(C.updateSeconds(f.target))}),e.qZA()()}if(2&r){const i=e.oxw();e.ekj("has-error",i.invalidSeconds),e.xp6(1),e.ekj("is-invalid",i.invalidSeconds),e.Q6J("placeholder",i.secondsPlaceholder)("readonly",i.readonlyInput)("disabled",i.disabled)("value",i.seconds),e.uIk("aria-label",i.labelSeconds)}}function H(r,p){1&r&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Je(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"td")(1,"button",8),e.NdJ("click",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.toggleMeridian())}),e._uU(2),e.qZA()()}if(2&r){const i=e.oxw();e.xp6(1),e.ekj("disabled",!i.isEditable||!i.canToggleMeridian),e.Q6J("disabled",!i.isEditable||!i.canToggleMeridian),e.xp6(1),e.hij("",i.meridian," ")}}function D(r,p){1&r&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function N(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.changeMinutes(-f.minuteStep))}),e._UZ(2,"span",7),e.qZA()()}if(2&r){const i=e.oxw();e.xp6(1),e.ekj("disabled",!i.canDecrementMinutes||!i.isEditable)}}function R(r,p){1&r&&(e.TgZ(0,"td"),e._uU(1,"\xa0"),e.qZA())}function $(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.changeSeconds(-f.secondsStep))}),e._UZ(2,"span",7),e.qZA()()}if(2&r){const i=e.oxw();e.xp6(1),e.ekj("disabled",!i.canDecrementSeconds||!i.isEditable)}}function je(r,p){1&r&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function ot(r,p){1&r&&e._UZ(0,"td")}let pt=(()=>{class r{static{this.WRITE_VALUE="[timepicker] write value from ng model"}static{this.CHANGE_HOURS="[timepicker] change hours"}static{this.CHANGE_MINUTES="[timepicker] change minutes"}static{this.CHANGE_SECONDS="[timepicker] change seconds"}static{this.SET_TIME_UNIT="[timepicker] set time unit"}static{this.UPDATE_CONTROLS="[timepicker] update controls"}writeValue(i){return{type:r.WRITE_VALUE,payload:i}}changeHours(i){return{type:r.CHANGE_HOURS,payload:i}}changeMinutes(i){return{type:r.CHANGE_MINUTES,payload:i}}changeSeconds(i){return{type:r.CHANGE_SECONDS,payload:i}}setTime(i){return{type:r.SET_TIME_UNIT,payload:i}}updateControls(i){return{type:r.UPDATE_CONTROLS,payload:i}}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"platform"})}}return r})();const kt=10,xt=24,Kt=12,mt=60,Pt=60;function pn(r){return!(!r||r instanceof Date&&isNaN(r.getHours()))&&("string"!=typeof r||pn(new Date(r)))}function be(r,p){return!(r.min&&p<r.min||r.max&&p>r.max)}function te(r){return typeof r>"u"?NaN:"number"==typeof r?r:parseInt(r,kt)}function O(r,p=!1){const i=te(r);return isNaN(i)||i<0||i>(p?Kt:xt)?NaN:i}function ve(r){const p=te(r);return isNaN(p)||p<0||p>mt?NaN:p}function ht(r){const p=te(r);return isNaN(p)||p<0||p>Pt?NaN:p}function Ot(r){return"string"==typeof r?new Date(r):r}function Ut(r,p){if(!r)return Ut(Yt(new Date,0,0,0),p);if(!p)return r;let i=r.getHours(),c=r.getMinutes(),f=r.getSeconds();return p.hour&&(i+=te(p.hour)),p.minute&&(c+=te(p.minute)),p.seconds&&(f+=te(p.seconds)),Yt(r,i,c,f)}function gn(r,p){let i=O(p.hour);const c=ve(p.minute),f=ht(p.seconds)||0;return p.isPM&&12!==i&&(i+=Kt),r?isNaN(i)||isNaN(c)?r:Yt(r,i,c,f):isNaN(i)||isNaN(c)?r:Yt(new Date,i,c,f)}function Yt(r,p,i,c){const f=new Date(r.getFullYear(),r.getMonth(),r.getDate(),p,i,c,r.getMilliseconds());return f.setFullYear(r.getFullYear()),f.setMonth(r.getMonth()),f.setDate(r.getDate()),f}function F(r){const p=r.toString();return p.length>1?p:`0${p}`}function ee(r,p){return!isNaN(O(r,p))}function ge(r){return!isNaN(ve(r))}function q(r){return!isNaN(ht(r))}function tt(r,p="0",i="0",c){return ee(r,c)&&ge(p)&&q(i)}function qe(r,p){return!(r.readonlyInput||r.disabled||p&&("wheel"===p.source&&!r.mousewheel||"key"===p.source&&!r.arrowkeys))}function y(r){const{hourStep:p,minuteStep:i,secondsStep:c,readonlyInput:f,disabled:C,mousewheel:fe,arrowkeys:At,showSpinners:Ht,showMeridian:Gt,showSeconds:tn,meridians:Cn,min:Mn,max:cs}=r;return{hourStep:p,minuteStep:i,secondsStep:c,readonlyInput:f,disabled:C,mousewheel:fe,arrowkeys:At,showSpinners:Ht,showMeridian:Gt,showSeconds:tn,meridians:Cn,min:Mn,max:cs}}let J=(()=>{class r{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{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();const le={value:void 0,config:new J,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function Ae(r=le,p){switch(p.type){case pt.WRITE_VALUE:return Object.assign({},r,{value:p.payload});case pt.CHANGE_HOURS:{if(!qe(r.config,p.payload)||!function ut(r,p){return!(!r.step||r.step>0&&!p.canIncrementHours||r.step<0&&!p.canDecrementHours)}(p.payload,r.controls))return r;const i=Ut(r.value,{hour:p.payload.step});return!r.config.max&&!r.config.min||be(r.config,i)?Object.assign({},r,{value:i}):r}case pt.CHANGE_MINUTES:{if(!qe(r.config,p.payload)||!function gt(r,p){return!(!r.step||r.step>0&&!p.canIncrementMinutes||r.step<0&&!p.canDecrementMinutes)}(p.payload,r.controls))return r;const i=Ut(r.value,{minute:p.payload.step});return!r.config.max&&!r.config.min||be(r.config,i)?Object.assign({},r,{value:i}):r}case pt.CHANGE_SECONDS:{if(!qe(r.config,p.payload)||!function rt(r,p){return!(!r.step||r.step>0&&!p.canIncrementSeconds||r.step<0&&!p.canDecrementSeconds)}(p.payload,r.controls))return r;const i=Ut(r.value,{seconds:p.payload.step});return!r.config.max&&!r.config.min||be(r.config,i)?Object.assign({},r,{value:i}):r}case pt.SET_TIME_UNIT:{if(!qe(r.config))return r;const i=gn(r.value,p.payload);return Object.assign({},r,{value:i})}case pt.UPDATE_CONTROLS:{const i=function U(r,p){const{min:f,max:C,hourStep:fe,minuteStep:At,secondsStep:Ht,showSeconds:Gt}=p,tn={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!r)return tn;if(C){const Cn=Ut(r,{hour:fe});if(tn.canIncrementHours=C>Cn&&r.getHours()+fe<24,!tn.canIncrementHours){const Mn=Ut(r,{minute:At});tn.canIncrementMinutes=Gt?C>Mn:C>=Mn}if(!tn.canIncrementMinutes){const Mn=Ut(r,{seconds:Ht});tn.canIncrementSeconds=C>=Mn}r.getHours()<12&&(tn.canToggleMeridian=Ut(r,{hour:12})<C)}if(f){const Cn=Ut(r,{hour:-fe});if(tn.canDecrementHours=f<Cn,!tn.canDecrementHours){const Mn=Ut(r,{minute:-At});tn.canDecrementMinutes=Gt?f<Mn:f<=Mn}if(!tn.canDecrementMinutes){const Mn=Ut(r,{seconds:-Ht});tn.canDecrementSeconds=f<=Mn}r.getHours()>=12&&(tn.canToggleMeridian=Ut(r,{hour:-12})>f)}return tn}(r.value,p.payload),c={value:r.value,config:p.payload,controls:i};return r.config.showMeridian!==c.config.showMeridian&&r.value&&(c.value=new Date(r.value)),Object.assign({},r,c)}default:return r}}let oe=(()=>{class r extends ue{constructor(){const i=new E.X({type:"[mini-ngrx] dispatcher init"});super(i,Ae,new we(le,i,Ae))}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"platform"})}}return r})();const Be={provide:k.JU,useExisting:(0,e.Gpc)(()=>ke),multi:!0};let ke=(()=>{class r{constructor(i,c,f,C){this._cd=c,this._store=f,this._timepickerActions=C,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 e.vpe,this.meridianChange=new e.vpe,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=i,Object.assign(this,this.config),this.timepickerSub=f.select(fe=>fe.value).subscribe(fe=>{this._renderTime(fe),this.onChange(fe),this._store.dispatch(this._timepickerActions.updateControls(y(this)))}),f.select(fe=>fe.controls).subscribe(fe=>{const At=tt(this.hours,this.minutes,this.seconds,this.isPM()),Ht=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||At;this.isValid.emit(Ht),Object.assign(this,fe),c.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(i){i.preventDefault()}wheelSign(i){return-1*Math.sign(i.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(y(this)))}changeHours(i,c=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:i,source:c}))}changeMinutes(i,c=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:i,source:c}))}changeSeconds(i,c=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:i,source:c}))}updateHours(i){this.resetValidation(),this.hours=i.value;const c=ee(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||c))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(i){this.resetValidation(),this.minutes=i.value;const c=ge(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||c))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(i){this.resetValidation(),this.seconds=i.value;const c=q(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||c))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function Te(r,p,i){const c=gn(new Date,r);return!(!c||p&&c>p||i&&c<i)}({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()},this.max,this.min)}isOneOfDatesIsEmpty(){return function Ne(r,p,i){return 0===r.length||0===p.length||0===i.length}(this.hours,this.minutes,this.seconds)}_updateTime(){const f=tt(this.hours,this.showMinutes?this.minutes:void 0,this.showSeconds?this.seconds:void 0,this.isPM());if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||f))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(i){pn(i)?(this.resetValidation(),this._store.dispatch(this._timepickerActions.writeValue(Ot(i)))):null==i&&this._store.dispatch(this._timepickerActions.writeValue())}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.disabled=i,this._cd.markForCheck()}ngOnDestroy(){this.timepickerSub?.unsubscribe()}_renderTime(i){if(!i||!pn(i))return this.hours="",this.minutes="",this.seconds="",this.meridian=this.meridians[0],void this.meridianChange.emit(this.meridian);const c=Ot(i);if(!c)return;let C=c.getHours();this.showMeridian&&(this.meridian=this.meridians[C>=12?1:0],this.meridianChange.emit(this.meridian),C%=12,0===C&&(C=12)),this.hours=F(C),this.minutes=F(c.getMinutes()),this.seconds=F(c.getUTCSeconds())}static{this.\u0275fac=function(c){return new(c||r)(e.Y36(J),e.Y36(e.sBO),e.Y36(oe),e.Y36(pt))}}static{this.\u0275cmp=e.Xpm({type:r,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",meridians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[e._Bn([Be,oe]),e.TTD],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(c,f){1&c&&(e.TgZ(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),e.NdJ("click",function(){return f.changeHours(f.hourStep)}),e._UZ(5,"span",2),e.qZA()(),e.YNc(6,Le,2,0,"td",3),e.YNc(7,Se,3,2,"td",3),e.YNc(8,Ce,2,0,"td",3),e.YNc(9,Re,3,2,"td",3),e.YNc(10,Ye,2,0,"td",3),e.YNc(11,Z,1,0,"td",3),e.qZA(),e.TgZ(12,"tr")(13,"td",4)(14,"input",5),e.NdJ("wheel",function(fe){return f.prevDef(fe),f.changeHours(f.hourStep*f.wheelSign(fe),"wheel")})("keydown.ArrowUp",function(){return f.changeHours(f.hourStep,"key")})("keydown.ArrowDown",function(){return f.changeHours(-f.hourStep,"key")})("change",function(fe){return f.updateHours(fe.target)}),e.qZA()(),e.YNc(15,ie,2,0,"td",3),e.YNc(16,ye,2,9,"td",6),e.YNc(17,Oe,2,0,"td",3),e.YNc(18,He,2,9,"td",6),e.YNc(19,H,2,0,"td",3),e.YNc(20,Je,3,4,"td",3),e.qZA(),e.TgZ(21,"tr",0)(22,"td")(23,"a",1),e.NdJ("click",function(){return f.changeHours(-f.hourStep)}),e._UZ(24,"span",7),e.qZA()(),e.YNc(25,D,2,0,"td",3),e.YNc(26,N,3,2,"td",3),e.YNc(27,R,2,0,"td",3),e.YNc(28,$,3,2,"td",3),e.YNc(29,je,2,0,"td",3),e.YNc(30,ot,1,0,"td",3),e.qZA()()()),2&c&&(e.xp6(2),e.Q6J("hidden",!f.showSpinners),e.xp6(2),e.ekj("disabled",!f.canIncrementHours||!f.isEditable),e.xp6(2),e.Q6J("ngIf",f.showMinutes),e.xp6(1),e.Q6J("ngIf",f.showMinutes),e.xp6(1),e.Q6J("ngIf",f.showSeconds),e.xp6(1),e.Q6J("ngIf",f.showSeconds),e.xp6(1),e.Q6J("ngIf",f.showMeridian),e.xp6(1),e.Q6J("ngIf",f.showMeridian),e.xp6(2),e.ekj("has-error",f.invalidHours),e.xp6(1),e.ekj("is-invalid",f.invalidHours),e.Q6J("placeholder",f.hoursPlaceholder)("readonly",f.readonlyInput)("disabled",f.disabled)("value",f.hours),e.uIk("aria-label",f.labelHours),e.xp6(1),e.Q6J("ngIf",f.showMinutes),e.xp6(1),e.Q6J("ngIf",f.showMinutes),e.xp6(1),e.Q6J("ngIf",f.showSeconds),e.xp6(1),e.Q6J("ngIf",f.showSeconds),e.xp6(1),e.Q6J("ngIf",f.showMeridian),e.xp6(1),e.Q6J("ngIf",f.showMeridian),e.xp6(1),e.Q6J("hidden",!f.showSpinners),e.xp6(2),e.ekj("disabled",!f.canDecrementHours||!f.isEditable),e.xp6(2),e.Q6J("ngIf",f.showMinutes),e.xp6(1),e.Q6J("ngIf",f.showMinutes),e.xp6(1),e.Q6J("ngIf",f.showSeconds),e.xp6(1),e.Q6J("ngIf",f.showSeconds),e.xp6(1),e.Q6J("ngIf",f.showMeridian),e.xp6(1),e.Q6J("ngIf",f.showMeridian))},dependencies:[G.O5],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 r})(),De=(()=>{class r{static forRoot(){return{ngModule:r,providers:[pt,oe]}}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275mod=e.oAB({type:r})}static{this.\u0275inj=e.cJS({providers:[oe],imports:[G.ez]})}}return r})();var Ke=m(6825),Ie=m(7394),yt=m(2572),_t=m(8645),Ze=m(2268),ct=m(1835);function Xe(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"button",2),e.NdJ("click",function(){const C=e.CHM(i).$implicit,fe=e.oxw();return e.KtG(fe.selectFromRanges(C))}),e._uU(1),e.qZA()}if(2&r){const i=p.$implicit,c=e.oxw();e.ekj("selected",i.value===c.selectedRange),e.xp6(1),e.hij(" ",i.label," ")}}function Dt(r,p){1&r&&e._UZ(0,"bs-current-date",4)}function Ue(r,p){1&r&&e._UZ(0,"bs-timepicker")}const Zt=[[["bs-datepicker-navigation-view"]],"*"],vn=["bs-datepicker-navigation-view","*"],Lt=["bsDatepickerDayDecorator",""];function Nt(r,p){if(1&r){const i=e.EpF();e.ynx(0),e._uU(1," \u200b "),e.TgZ(2,"button",2),e.NdJ("click",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.view("month"))}),e.TgZ(3,"span"),e._uU(4),e.qZA()(),e.BQk()}if(2&r){const i=e.oxw();e.xp6(2),e.Q6J("disabled",i.isDisabled),e.xp6(2),e.Oqu(i.calendar.monthTitle)}}function rn(r,p){1&r&&e._UZ(0,"th")}function Qt(r,p){if(1&r&&(e.TgZ(0,"th",5),e._uU(1),e.qZA()),2&r){const i=p.index,c=e.oxw();e.xp6(1),e.hij("",c.calendar.weekdays[i]," ")}}function Wt(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"span",11),e.NdJ("click",function(){e.CHM(i);const f=e.oxw(2).$implicit,C=e.oxw();return e.KtG(C.selectWeek(f))}),e._uU(1),e.qZA()}if(2&r){const i=e.oxw(2).index,c=e.oxw();e.xp6(1),e.Oqu(c.calendar.weekNumbers[i])}}function K(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(){e.CHM(i);const f=e.oxw(2).$implicit,C=e.oxw();return e.KtG(C.selectWeek(f))})("mouseenter",function(){e.CHM(i);const f=e.oxw(2).$implicit,C=e.oxw();return e.KtG(C.weekHoverHandler(f,!0))})("mouseleave",function(){e.CHM(i);const f=e.oxw(2).$implicit,C=e.oxw();return e.KtG(C.weekHoverHandler(f,!1))}),e._uU(1),e.qZA()}if(2&r){const i=e.oxw(2).index,c=e.oxw();e.xp6(1),e.Oqu(c.calendar.weekNumbers[i])}}function M(r,p){if(1&r&&(e.TgZ(0,"td",8),e.YNc(1,Wt,2,1,"span",9),e.YNc(2,K,2,1,"span",10),e.qZA()),2&r){const i=e.oxw(2);e.ekj("active-week",i.isWeekHovered),e.xp6(1),e.Q6J("ngIf",i.isiOS),e.xp6(1),e.Q6J("ngIf",!i.isiOS)}}function d(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(i);const f=e.oxw().$implicit,C=e.oxw(2);return e.KtG(C.selectDay(f))})("mouseenter",function(){e.CHM(i);const f=e.oxw().$implicit,C=e.oxw(2);return e.KtG(C.hoverDay(f,!0))})("mouseleave",function(){e.CHM(i);const f=e.oxw().$implicit,C=e.oxw(2);return e.KtG(C.hoverDay(f,!1))}),e._uU(1),e.qZA()}if(2&r){const i=e.oxw().$implicit;e.s9C("tooltip",i.tooltipText),e.Q6J("day",i),e.xp6(1),e.hij("",i.label," 3")}}function w(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"span",18),e.NdJ("click",function(){e.CHM(i);const f=e.oxw().$implicit,C=e.oxw(2);return e.KtG(C.selectDay(f))})("mouseenter",function(){e.CHM(i);const f=e.oxw().$implicit,C=e.oxw(2);return e.KtG(C.hoverDay(f,!0))})("mouseleave",function(){e.CHM(i);const f=e.oxw().$implicit,C=e.oxw(2);return e.KtG(C.hoverDay(f,!1))}),e._uU(1),e.qZA()}if(2&r){const i=e.oxw().$implicit;e.Q6J("day",i),e.xp6(1),e.hij("",i.label," 2")}}function ae(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(i);const f=e.oxw().$implicit,C=e.oxw(2);return e.KtG(C.selectDay(f))}),e._uU(1),e.qZA()}if(2&r){const i=e.oxw().$implicit;e.Q6J("day",i),e.xp6(1),e.hij("",i.label," 1")}}function Pe(r,p){if(1&r&&(e.TgZ(0,"td",13),e.YNc(1,d,2,3,"span",14),e.YNc(2,w,2,2,"span",15),e.YNc(3,ae,2,2,"span",16),e.qZA()),2&r){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!i.isiOS&&i.isShowTooltip),e.xp6(1),e.Q6J("ngIf",!i.isiOS&&!i.isShowTooltip),e.xp6(1),e.Q6J("ngIf",i.isiOS)}}function et(r,p){if(1&r&&(e.TgZ(0,"tr"),e.YNc(1,M,3,4,"td",6),e.YNc(2,Pe,4,3,"td",7),e.qZA()),2&r){const i=p.$implicit,c=e.oxw();e.xp6(1),e.Q6J("ngIf",c.options&&c.options.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",i.days)}}function Me(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"td",4),e.NdJ("click",function(){const C=e.CHM(i).$implicit,fe=e.oxw(2);return e.KtG(fe.viewMonth(C))})("mouseenter",function(){const C=e.CHM(i).$implicit,fe=e.oxw(2);return e.KtG(fe.hoverMonth(C,!0))})("mouseleave",function(){const C=e.CHM(i).$implicit,fe=e.oxw(2);return e.KtG(fe.hoverMonth(C,!1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&r){const i=p.$implicit;e.ekj("disabled",i.isDisabled)("is-highlighted",i.isHovered),e.xp6(1),e.ekj("selected",i.isSelected),e.xp6(1),e.Oqu(i.label)}}function Ve(r,p){if(1&r&&(e.TgZ(0,"tr"),e.YNc(1,Me,3,7,"td",3),e.qZA()),2&r){const i=p.$implicit;e.xp6(1),e.Q6J("ngForOf",i)}}function de(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"td",4),e.NdJ("click",function(){const C=e.CHM(i).$implicit,fe=e.oxw(2);return e.KtG(fe.viewYear(C))})("mouseenter",function(){const C=e.CHM(i).$implicit,fe=e.oxw(2);return e.KtG(fe.hoverYear(C,!0))})("mouseleave",function(){const C=e.CHM(i).$implicit,fe=e.oxw(2);return e.KtG(fe.hoverYear(C,!1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&r){const i=p.$implicit;e.ekj("disabled",i.isDisabled)("is-highlighted",i.isHovered),e.xp6(1),e.ekj("selected",i.isSelected),e.xp6(1),e.Oqu(i.label)}}function $e(r,p){if(1&r&&(e.TgZ(0,"tr"),e.YNc(1,de,3,7,"td",3),e.qZA()),2&r){const i=p.$implicit;e.xp6(1),e.Q6J("ngForOf",i)}}const nt=["startTP"];function vt(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"bs-days-calendar-view",11),e.NdJ("onNavigate",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.navigateTo(f))})("onViewMode",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.setViewMode(f))})("onHover",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.dayHoverHandler(f))})("onHoverWeek",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.weekHoverHandler(f))})("onSelect",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.daySelectHandler(f))}),e.ALo(1,"async"),e.qZA()}if(2&r){const i=p.$implicit,c=e.oxw(3);e.ekj("bs-datepicker-multiple",c.multipleCalendars),e.Q6J("calendar",i)("isDisabled",c.isDatePickerDisabled)("options",e.lcZ(1,5,c.options$))}}function it(r,p){if(1&r&&e._UZ(0,"timepicker",13,16),2&r){const i=e.oxw(4);e.Q6J("disabled",i.isDatePickerDisabled)}}function bt(r,p){if(1&r&&(e.TgZ(0,"div",12),e._UZ(1,"timepicker",13,14),e.YNc(3,it,2,1,"timepicker",15),e.qZA()),2&r){const i=e.oxw(3);e.xp6(1),e.Q6J("disabled",i.isDatePickerDisabled),e.xp6(2),e.Q6J("ngIf",i.isRangePicker)}}function Tt(r,p){if(1&r&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,vt,2,7,"bs-days-calendar-view",9),e.ALo(3,"async"),e.qZA(),e.YNc(4,bt,4,2,"div",10),e.BQk()),2&r){const i=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,i.daysCalendar$)),e.xp6(2),e.Q6J("ngIf",i.withTimepicker)}}function Et(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"bs-month-calendar-view",18),e.NdJ("onNavigate",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.navigateTo(f))})("onViewMode",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.setViewMode(f))})("onHover",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.monthHoverHandler(f))})("onSelect",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.monthSelectHandler(f))}),e.qZA()}if(2&r){const i=p.$implicit,c=e.oxw(3);e.ekj("bs-datepicker-multiple",c.multipleCalendars),e.Q6J("calendar",i)}}function Bt(r,p){if(1&r&&(e.TgZ(0,"div",8),e.YNc(1,Et,1,3,"bs-month-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&r){const i=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,i.monthsCalendar))}}function jt(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"bs-years-calendar-view",18),e.NdJ("onNavigate",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.navigateTo(f))})("onViewMode",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.setViewMode(f))})("onHover",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.yearHoverHandler(f))})("onSelect",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.yearSelectHandler(f))}),e.qZA()}if(2&r){const i=p.$implicit,c=e.oxw(3);e.ekj("bs-datepicker-multiple",c.multipleCalendars),e.Q6J("calendar",i)}}function yn(r,p){if(1&r&&(e.TgZ(0,"div",8),e.YNc(1,jt,1,3,"bs-years-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&r){const i=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,i.yearsCalendar))}}function bn(r,p){1&r&&(e.TgZ(0,"div",19)(1,"button",20),e._uU(2,"Apply"),e.qZA(),e.TgZ(3,"button",21),e._uU(4,"Cancel"),e.qZA()())}function An(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"div",24)(1,"button",25),e.NdJ("click",function(){e.CHM(i);const f=e.oxw(3);return e.KtG(f.setToday())}),e._uU(2),e.qZA()()}if(2&r){const i=e.oxw(3);e.ekj("today-left","left"===i.todayPos)("today-right","right"===i.todayPos)("today-center","center"===i.todayPos),e.xp6(2),e.Oqu(i.todayBtnLbl)}}function In(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"div",26)(1,"button",25),e.NdJ("click",function(){e.CHM(i);const f=e.oxw(3);return e.KtG(f.clearDate())}),e._uU(2),e.qZA()()}if(2&r){const i=e.oxw(3);e.ekj("clear-left","left"===i.clearPos)("clear-right","right"===i.clearPos)("clear-center","center"===i.clearPos),e.xp6(2),e.Oqu(i.clearBtnLbl)}}function ui(r,p){if(1&r&&(e.TgZ(0,"div",19),e.YNc(1,An,3,7,"div",22),e.YNc(2,In,3,7,"div",23),e.qZA()),2&r){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.showTodayBtn),e.xp6(1),e.Q6J("ngIf",i.showClearBtn)}}function bi(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"div",27)(1,"bs-custom-date-view",28),e.NdJ("onSelect",function(f){e.CHM(i);const C=e.oxw(2);return e.KtG(C.setRangeOnCalendar(f))}),e.qZA()()}if(2&r){const i=e.oxw(2);e.xp6(1),e.Q6J("selectedRange",i.chosenRange)("ranges",i.customRanges)("customRangeLabel",i.customRangeBtnLbl)}}function wi(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.NdJ("@datepickerAnimation.done",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.positionServiceEnable())}),e.TgZ(2,"div",3),e.ALo(3,"async"),e.YNc(4,Tt,5,4,"ng-container",4),e.YNc(5,Bt,3,3,"div",5),e.YNc(6,yn,3,3,"div",5),e.qZA(),e.YNc(7,bn,5,0,"div",6),e.YNc(8,ui,3,2,"div",6),e.qZA(),e.YNc(9,bi,2,3,"div",7),e.qZA()}if(2&r){const i=e.oxw();e.Q6J("ngClass",i.containerClass),e.xp6(1),e.Q6J("@datepickerAnimation",i.animationState),e.xp6(1),e.Q6J("ngSwitch",e.lcZ(3,9,i.viewMode)),e.xp6(2),e.Q6J("ngSwitchCase","day"),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",i.showTodayBtn||i.showClearBtn),e.xp6(1),e.Q6J("ngIf",i.customRanges&&i.customRanges.length>0)}}const cn=["endTP"];function Rn(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"bs-days-calendar-view",11),e.NdJ("onNavigate",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.navigateTo(f))})("onViewMode",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.setViewMode(f))})("onHover",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.dayHoverHandler(f))})("onHoverWeek",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.weekHoverHandler(f))})("onSelect",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.daySelectHandler(f))}),e.ALo(1,"async"),e.qZA()}if(2&r){const i=p.$implicit,c=e.oxw(3);e.ekj("bs-datepicker-multiple",c.multipleCalendars),e.Q6J("calendar",i)("isDisabled",c.isDatePickerDisabled)("options",e.lcZ(1,5,c.options$))}}function Us(r,p){if(1&r&&e._UZ(0,"timepicker",13,16),2&r){const i=e.oxw(4);e.Q6J("disabled",i.isDatePickerDisabled)}}function vs(r,p){if(1&r&&(e.TgZ(0,"div",12),e._UZ(1,"timepicker",13,14),e.YNc(3,Us,2,1,"timepicker",15),e.qZA()),2&r){const i=e.oxw(3);e.xp6(1),e.Q6J("disabled",i.isDatePickerDisabled),e.xp6(2),e.Q6J("ngIf",i.isRangePicker)}}function Nr(r,p){if(1&r&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,Rn,2,7,"bs-days-calendar-view",9),e.ALo(3,"async"),e.qZA(),e.YNc(4,vs,4,2,"div",10),e.BQk()),2&r){const i=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,i.daysCalendar$)),e.xp6(2),e.Q6J("ngIf",i.withTimepicker)}}function ri(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"bs-month-calendar-view",18),e.NdJ("onNavigate",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.navigateTo(f))})("onViewMode",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.setViewMode(f))})("onHover",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.monthHoverHandler(f))})("onSelect",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.monthSelectHandler(f))}),e.qZA()}if(2&r){const i=p.$implicit,c=e.oxw(3);e.ekj("bs-datepicker-multiple",c.multipleCalendars),e.Q6J("calendar",i)}}function Br(r,p){if(1&r&&(e.TgZ(0,"div",8),e.YNc(1,ri,1,3,"bs-month-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&r){const i=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,i.monthsCalendar))}}function Zn(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"bs-years-calendar-view",18),e.NdJ("onNavigate",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.navigateTo(f))})("onViewMode",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.setViewMode(f))})("onHover",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.yearHoverHandler(f))})("onSelect",function(f){e.CHM(i);const C=e.oxw(3);return e.KtG(C.yearSelectHandler(f))}),e.qZA()}if(2&r){const i=p.$implicit,c=e.oxw(3);e.ekj("bs-datepicker-multiple",c.multipleCalendars),e.Q6J("calendar",i)}}function $s(r,p){if(1&r&&(e.TgZ(0,"div",8),e.YNc(1,Zn,1,3,"bs-years-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&r){const i=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,i.yearsCalendar))}}function oi(r,p){1&r&&(e.TgZ(0,"div",19)(1,"button",20),e._uU(2,"Apply"),e.qZA(),e.TgZ(3,"button",21),e._uU(4,"Cancel"),e.qZA()())}function wn(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"div",24)(1,"button",25),e.NdJ("click",function(){e.CHM(i);const f=e.oxw(3);return e.KtG(f.setToday())}),e._uU(2),e.qZA()()}if(2&r){const i=e.oxw(3);e.ekj("today-left","left"===i.todayPos)("today-right","right"===i.todayPos)("today-center","center"===i.todayPos),e.xp6(2),e.Oqu(i.todayBtnLbl)}}function Dn(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"div",26)(1,"button",25),e.NdJ("click",function(){e.CHM(i);const f=e.oxw(3);return e.KtG(f.clearDate())}),e._uU(2),e.qZA()()}if(2&r){const i=e.oxw(3);e.ekj("clear-left","left"===i.clearPos)("clear-right","right"===i.clearPos)("clear-center","center"===i.clearPos),e.xp6(2),e.Oqu(i.clearBtnLbl)}}function Fr(r,p){if(1&r&&(e.TgZ(0,"div",19),e.YNc(1,wn,3,7,"div",22),e.YNc(2,Dn,3,7,"div",23),e.qZA()),2&r){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.showTodayBtn),e.xp6(1),e.Q6J("ngIf",i.showClearBtn)}}function zi(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"div",27)(1,"bs-custom-date-view",28),e.NdJ("onSelect",function(f){e.CHM(i);const C=e.oxw(2);return e.KtG(C.setRangeOnCalendar(f))}),e.qZA()()}if(2&r){const i=e.oxw(2);e.xp6(1),e.Q6J("selectedRange",i.chosenRange)("ranges",i.customRanges)("customRangeLabel",i.customRangeBtnLbl)}}function ys(r,p){if(1&r){const i=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.NdJ("@datepickerAnimation.done",function(){e.CHM(i);const f=e.oxw();return e.KtG(f.positionServiceEnable())}),e.TgZ(2,"div",3),e.ALo(3,"async"),e.YNc(4,Nr,5,4,"ng-container",4),e.YNc(5,Br,3,3,"div",5),e.YNc(6,$s,3,3,"div",5),e.qZA(),e.YNc(7,oi,5,0,"div",6),e.YNc(8,Fr,3,2,"div",6),e.qZA(),e.YNc(9,zi,2,3,"div",7),e.qZA()}if(2&r){const i=e.oxw();e.Q6J("ngClass",i.containerClass),e.xp6(1),e.Q6J("@datepickerAnimation",i.animationState),e.xp6(1),e.Q6J("ngSwitch",e.lcZ(3,9,i.viewMode)),e.xp6(2),e.Q6J("ngSwitchCase","day"),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",i.showTodayBtn||i.showClearBtn),e.xp6(1),e.Q6J("ngIf",i.customRanges&&i.customRanges.length>0)}}let sn=(()=>{class r{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{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();const Yn="220ms cubic-bezier(0, 0, 0.2, 1)",on=(0,Ke.X$)("datepickerAnimation",[(0,Ke.SB)("animated-down",(0,Ke.oB)({height:"*",overflow:"hidden"})),(0,Ke.eR)("* => animated-down",[(0,Ke.oB)({height:0,overflow:"hidden"}),(0,Ke.jt)(Yn)]),(0,Ke.SB)("animated-up",(0,Ke.oB)({height:"*",overflow:"hidden"})),(0,Ke.eR)("* => animated-up",[(0,Ke.oB)({height:"*",overflow:"hidden"}),(0,Ke.jt)(Yn)]),(0,Ke.eR)("* => unanimated",(0,Ke.jt)("0s"))]);class Qi{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new Ie.w0,this.selectedTimeSub=new Ie.w0}set minDate(p){this._effects?.setMinDate(p)}set maxDate(p){this._effects?.setMaxDate(p)}set daysDisabled(p){this._effects?.setDaysDisabled(p)}set datesDisabled(p){this._effects?.setDatesDisabled(p)}set datesEnabled(p){this._effects?.setDatesEnabled(p)}set isDisabled(p){this._effects?.setDisabled(p)}set dateCustomClasses(p){this._effects?.setDateCustomClasses(p)}set dateTooltipTexts(p){this._effects?.setDateTooltipTexts(p)}set daysCalendar$(p){this._daysCalendar$=p,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(i=>{this.multipleCalendars=!!i&&i.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(p){}navigateTo(p){}dayHoverHandler(p){}weekHoverHandler(p){}monthHoverHandler(p){}yearHoverHandler(p){}timeSelectHandler(p,i){}daySelectHandler(p){}monthSelectHandler(p){}yearSelectHandler(p){}setRangeOnCalendar(p){}setToday(){}clearDate(){}_stopPropagation(p){p.stopPropagation()}}let Xt=(()=>{class r{static{this.CALCULATE="[datepicker] calculate dates matrix"}static{this.FORMAT="[datepicker] format datepicker values"}static{this.FLAG="[datepicker] set flags"}static{this.SELECT="[datepicker] select date"}static{this.NAVIGATE_OFFSET="[datepicker] shift view date"}static{this.NAVIGATE_TO="[datepicker] change view date"}static{this.SET_OPTIONS="[datepicker] update render options"}static{this.HOVER="[datepicker] hover date"}static{this.CHANGE_VIEWMODE="[datepicker] switch view mode"}static{this.SET_MIN_DATE="[datepicker] set min date"}static{this.SET_MAX_DATE="[datepicker] set max date"}static{this.SET_DAYSDISABLED="[datepicker] set days disabled"}static{this.SET_DATESDISABLED="[datepicker] set dates disabled"}static{this.SET_DATESENABLED="[datepicker] set dates enabled"}static{this.SET_IS_DISABLED="[datepicker] set is disabled"}static{this.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes"}static{this.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts"}static{this.SET_LOCALE="[datepicker] set datepicker locale"}static{this.SELECT_TIME="[datepicker] select time"}static{this.SELECT_RANGE="[daterangepicker] select dates range"}calculate(){return{type:r.CALCULATE}}format(){return{type:r.FORMAT}}flag(){return{type:r.FLAG}}select(i){return{type:r.SELECT,payload:i}}selectTime(i,c){return{type:r.SELECT_TIME,payload:{date:i,index:c}}}changeViewMode(i){return{type:r.CHANGE_VIEWMODE,payload:i}}navigateTo(i){return{type:r.NAVIGATE_TO,payload:i}}navigateStep(i){return{type:r.NAVIGATE_OFFSET,payload:i}}setOptions(i){return{type:r.SET_OPTIONS,payload:i}}selectRange(i){return{type:r.SELECT_RANGE,payload:i}}hoverDay(i){return{type:r.HOVER,payload:i.isHovered?i.cell.date:null}}minDate(i){return{type:r.SET_MIN_DATE,payload:i}}maxDate(i){return{type:r.SET_MAX_DATE,payload:i}}daysDisabled(i){return{type:r.SET_DAYSDISABLED,payload:i}}datesDisabled(i){return{type:r.SET_DATESDISABLED,payload:i}}datesEnabled(i){return{type:r.SET_DATESENABLED,payload:i}}isDisabled(i){return{type:r.SET_IS_DISABLED,payload:i}}setDateCustomClasses(i){return{type:r.SET_DATE_CUSTOM_CLASSES,payload:i}}setDateTooltipTexts(i){return{type:r.SET_DATE_TOOLTIP_TEXTS,payload:i}}setLocale(i){return{type:r.SET_LOCALE,payload:i}}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"platform"})}}return r})(),zt=(()=>{class r{constructor(){this._defaultLocale="en",this._locale=new E.X(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(i){i!==this.currentLocale&&this._locale.next(i)}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"platform"})}}return r})(),Xn=(()=>{class r{constructor(i,c){this._actions=i,this._localeService=c,this._subs=[]}init(i){return this._store=i,this}setValue(i){this._store?.dispatch(this._actions.select(i))}setRangeValue(i){this._store?.dispatch(this._actions.selectRange(i))}setMinDate(i){return this._store?.dispatch(this._actions.minDate(i)),this}setMaxDate(i){return this._store?.dispatch(this._actions.maxDate(i)),this}setDaysDisabled(i){return this._store?.dispatch(this._actions.daysDisabled(i)),this}setDatesDisabled(i){return this._store?.dispatch(this._actions.datesDisabled(i)),this}setDatesEnabled(i){return this._store?.dispatch(this._actions.datesEnabled(i)),this}setDisabled(i){return this._store?.dispatch(this._actions.isDisabled(i)),this}setDateCustomClasses(i){return this._store?.dispatch(this._actions.setDateCustomClasses(i)),this}setDateTooltipTexts(i){return this._store?.dispatch(this._actions.setDateTooltipTexts(i)),this}setOptions(i){const c=Object.assign({locale:this._localeService.currentLocale},i);return this._store?.dispatch(this._actions.setOptions(c)),this}setBindings(i){return this._store?(i.selectedTime=this._store.select(c=>c.selectedTime).pipe((0,T.h)(c=>!!c)),i.daysCalendar$=this._store.select(c=>c.flaggedMonths).pipe((0,T.h)(c=>!!c)),i.monthsCalendar=this._store.select(c=>c.flaggedMonthsCalendar).pipe((0,T.h)(c=>!!c)),i.yearsCalendar=this._store.select(c=>c.yearsCalendarFlagged).pipe((0,T.h)(c=>!!c)),i.viewMode=this._store.select(c=>c.view?.mode),i.options$=(0,yt.a)([this._store.select(c=>c.showWeekNumbers),this._store.select(c=>c.displayMonths)]).pipe((0,j.U)(c=>({showWeekNumbers:c[0],displayMonths:c[1]}))),this):this}setEventHandlers(i){return i.setViewMode=c=>{this._store?.dispatch(this._actions.changeViewMode(c))},i.navigateTo=c=>{this._store?.dispatch(this._actions.navigateStep(c.step))},i.dayHoverHandler=c=>{const f=c.cell;f.isOtherMonth||f.isDisabled||(this._store?.dispatch(this._actions.hoverDay(c)),f.isHovered=c.isHovered)},i.monthHoverHandler=c=>{c.cell.isHovered=c.isHovered},i.yearHoverHandler=c=>{c.cell.isHovered=c.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(i=>i.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(i=>i.monthsModel).pipe((0,T.h)(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(i=>i.formattedMonths).pipe((0,T.h)(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.selectedDate).pipe((0,T.h)(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.selectedRange).pipe((0,T.h)(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.yearsCalendarModel).pipe((0,T.h)(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.hoveredDate).pipe((0,T.h)(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.dateCustomClasses).pipe((0,T.h)(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.dateTooltipTexts).pipe((0,T.h)(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(i=>this._store?.dispatch(this._actions.setLocale(i)))),this):this}destroy(){for(const i of this._subs)i.unsubscribe()}static{this.\u0275fac=function(c){return new(c||r)(e.LFG(Xt),e.LFG(zt))}}static{this.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"platform"})}}return r})();const Tn={date:new Date,mode:"day"},qi=Object.assign(new sn,{locale:"en",view:Tn,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function Jt(r,p,i){const c=p&&(0,b.RR)((0,b.Dz)(r,"month"),p,"day"),f=i&&(0,b.Ax)((0,b.gl)(r,"month"),i,"day");return c||f||!1}function kn(r,p,i){const c=p&&(0,b.RR)((0,b.Dz)(r,"year"),p,"day"),f=i&&(0,b.Ax)((0,b.gl)(r,"year"),i,"day");return c||f||!1}function Gn(r,p,i){return!!(p&&(0,b.kJ)(p)&&p.length)&&(i&&"year"===i&&!p[0].getDate()?p.some(c=>(0,b.ZG)(r,c,"year")):p.some(c=>(0,b.ZG)(r,c,"date")))}function Ci(r,p,i){return!!(p&&(0,b.kJ)(p)&&p.length)&&!p.some(c=>(0,b.ZG)(r,c,i||"date"))}function es(r,p=0){const i=r&&r.yearsCalendarModel&&r.yearsCalendarModel[p];return i?.years[0]&&i.years[0][0]&&i.years[0][0].date}function Hi(r,p){return!r||!p||!r.length&&!r[0].value||r.forEach(i=>(!i||!i.value||i.value instanceof Date||!(i.value instanceof Array&&i.value.length)||(i.value=di(i.value,p)),r)),r}function ai(r,p){return!r||!p||r instanceof Array&&!r.length||r instanceof Date?r:di(r,p)}function di(r,p){return r instanceof Array?r.map(c=>c&&((0,b.Ax)(c,p,"date")&&(c=p),c)):r}function ts(r){return r&&an(r)}function Xs(r){return r?.length&&r.map(p=>p&&an(p)),r}function an(r){const p=new Date;return r.setMilliseconds(p.getMilliseconds()),r.setSeconds(p.getSeconds()),r.setMinutes(p.getMinutes()),r.setHours(p.getHours()),r}function Ds(r,p){let i=r.initialDate;const c=new Array(r.height);for(let f=0;f<r.height;f++){c[f]=new Array(r.width);for(let C=0;C<r.width;C++)c[f][C]=p(i),i=(0,b.rg)(i,r.shift)}return c}function ji(r,p){const i=(0,b.nr)(r),c=function Js(r,p){if((0,b.AZ)(r,p.firstDayOfWeek))return r;const c=function Qs(r,p){const i=Number(p);if(isNaN(i))return 0;if(0===i)return r;const c=r-i%7;return c<0?c+7:c}((0,b.wf)(r),p.firstDayOfWeek);return(0,b.rg)(r,{day:-c})}(i,p);return{daysMatrix:Ds({width:p.width||0,height:p.height||0,initialDate:c,shift:{day:1}},fe=>fe),month:i}}function qs(r,p,i){return r.map(c=>c[0]?(0,b.p6)(c[0],p,i):"")}function Ts(r){const p=(0,b.Kd)(r),i=p.weekdaysShort(),c=p.firstDayOfWeek();return[...i.slice(c),...i.slice(0,c)]}function ns(r,p){return!p||r>=p}const is=4,qn=3,Bn={month:1};function Cs(r,p){const i=(0,b.gl)(r,"year");return{months:Ds({width:qn,height:is,initialDate:i,shift:Bn},C=>({date:C,label:(0,b.p6)(C,p.monthLabel,p.locale)})),monthTitle:"",yearTitle:(0,b.p6)(r,p.yearTitle,p.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const Ms=4,Es=4,Ei=Ms*Es,Ss=-1*(Math.floor(Ei/2)-1),Si={year:1};function hi(r,p,i){const c=function ks(r,p){return p&&r.getFullYear()>=p.getFullYear()&&r.getFullYear()<p.getFullYear()+Ei?p:(0,b.rg)(r,{year:Ss})}(r,i),C=Ds({width:Es,height:Ms,initialDate:c,shift:Si},At=>({date:At,label:(0,b.p6)(At,p.yearLabel,p.locale)})),fe=function nr(r,p){return`${(0,b.p6)(r[0][0].date,p.yearTitle,p.locale)} - ${(0,b.p6)(r[Ms-1][Es-1].date,p.yearTitle,p.locale)}`}(C,p);return{years:C,monthTitle:"",yearTitle:fe,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function li(r,p){!r||!isNaN(r.getTime())||(r.setHours(p.getHours()),r.setMinutes(p.getMinutes()),r.setSeconds(p.getSeconds()),r.setMilliseconds(p.getMilliseconds()))}function ki(r=qi,p){switch(p.type){case Xt.CALCULATE:return function ss(r){if(!r.view)return r;let p;p=r.displayOneMonthRange&&Os(r.view.date,r.minDate,r.maxDate)?1:r.displayMonths||1;let i=r.view.date;if("day"===r.view.mode&&r.monthViewOptions){r.showPreviousMonth&&r.selectedRange&&0===r.selectedRange.length&&(i=(0,b.rg)(i,{month:-1})),r.monthViewOptions.firstDayOfWeek=(0,b.Kd)(r.locale).firstDayOfWeek();let c=new Array(p);for(let f=0;f<p;f++)c[f]=ji(i,r.monthViewOptions),i=(0,b.rg)(i,{month:1});if(r.preventChangeToNextMonth&&r.flaggedMonths&&r.hoveredDate){const f=ji(r.view.date,r.monthViewOptions);r.flaggedMonths.length&&r.flaggedMonths[1].month.getMonth()===f.month.getMonth()&&(c=r.flaggedMonths.map(C=>r.monthViewOptions?ji(C.month,r.monthViewOptions):null).filter(C=>null!==C))}return Object.assign({},r,{monthsModel:c})}if("month"===r.view.mode){const c=new Array(p);for(let f=0;f<p;f++)c[f]=Cs(i,_i(r)),i=(0,b.rg)(i,{year:1});return Object.assign({},r,{monthsCalendar:c})}if("year"===r.view.mode){const c=new Array(p);for(let f=0;f<p;f++)c[f]=hi(i,_i(r),"year"===r.minMode?es(r,f):void 0),i=(0,b.rg)(i,{year:Ei});return Object.assign({},r,{yearsCalendarModel:c})}return r}(r);case Xt.FORMAT:return function sr(r){if(!r.view)return r;if("day"===r.view.mode&&r.monthsModel){const c=r.monthsModel.map((f,C)=>function Mi(r,p,i){return{month:r.month,monthTitle:(0,b.p6)(r.month,p.monthTitle,p.locale),yearTitle:(0,b.p6)(r.month,p.yearTitle,p.locale),weekNumbers:qs(r.daysMatrix,p.weekNumbers,p.locale),weekdays:Ts(p.locale),weeks:r.daysMatrix.map((c,f)=>({days:c.map((C,fe)=>({date:C,label:(0,b.p6)(C,p.dayLabel,p.locale),monthIndex:i,weekIndex:f,dayIndex:fe}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(f,_i(r),C));return Object.assign({},r,{formattedMonths:c})}const p=r.displayMonths||1;let i=r.view.date;if("month"===r.view.mode){const c=new Array(p);for(let f=0;f<p;f++)c[f]=Cs(i,_i(r)),i=(0,b.rg)(i,{year:1});return Object.assign({},r,{monthsCalendar:c})}if("year"===r.view.mode){const c=new Array(p);for(let f=0;f<p;f++)c[f]=hi(i,_i(r)),i=(0,b.rg)(i,{year:16});return Object.assign({},r,{yearsCalendarModel:c})}return r}(r);case Xt.FLAG:return function rr(r){if(!r.view)return r;const p=Os(r.view.date,r.minDate,r.maxDate)?1:r.displayMonths;if(r.formattedMonths&&"day"===r.view.mode){const i=r.formattedMonths.map((c,f)=>function Nn(r,p){return r.weeks.forEach(i=>{i.days.forEach((c,f)=>{const C=!(0,b.xj)(c.date,r.month),fe=!C&&(0,b.KC)(c.date,p.hoveredDate),At=!C&&p.selectedRange&&(0,b.KC)(c.date,p.selectedRange[0]),Ht=!C&&p.selectedRange&&(0,b.KC)(c.date,p.selectedRange[1]),Gt=!C&&(0,b.KC)(c.date,p.selectedDate)||At||Ht,tn=!C&&p.selectedRange&&function er(r,p,i){return!!(r&&p&&p[0])&&(p[1]?r>p[0]&&r<=p[1]:!!i&&r>p[0]&&r<=i)}(c.date,p.selectedRange,p.hoveredDate),Cn=p.isDisabled||(0,b.RR)(c.date,p.minDate,"day")||(0,b.Ax)(c.date,p.maxDate,"day")||(0,b.DB)(c.date,p.daysDisabled)||Gn(c.date,p.datesDisabled)||Ci(c.date,p.datesEnabled),cs=!C&&(0,b.KC)(c.date,new Date),dr=p.dateCustomClasses&&p.dateCustomClasses.map(Ft=>(0,b.KC)(c.date,Ft.date)?Ft.classes:[]).reduce((Ft,Li)=>Ft.concat(Li),[]).join(" ")||"",hr=p.dateTooltipTexts&&p.dateTooltipTexts.map(Ft=>(0,b.KC)(c.date,Ft.date)?Ft.tooltipText:"").reduce((Ft,Li)=>(Ft.push(Li),Ft),[]).join(" ")||"",un=Object.assign({},c,{isOtherMonth:C,isHovered:fe,isSelected:Gt,isSelectionStart:At,isSelectionEnd:Ht,isInRange:tn,isDisabled:Cn,isToday:cs,customClasses:dr,tooltipText:hr});(c.isOtherMonth!==un.isOtherMonth||c.isHovered!==un.isHovered||c.isSelected!==un.isSelected||c.isSelectionStart!==un.isSelectionStart||c.isSelectionEnd!==un.isSelectionEnd||c.isDisabled!==un.isDisabled||c.isInRange!==un.isInRange||c.customClasses!==un.customClasses||c.tooltipText!==un.tooltipText)&&(i.days[f]=un)})}),r.hideLeftArrow=p.isDisabled||!!p.monthIndex&&p.monthIndex>0&&p.monthIndex!==p.displayMonths,r.hideRightArrow=p.isDisabled||(!!p.monthIndex||0===p.monthIndex)&&!!p.displayMonths&&p.monthIndex<p.displayMonths&&p.monthIndex+1!==p.displayMonths,r.disableLeftArrow=Jt((0,b.rg)(r.month,{month:-1}),p.minDate,p.maxDate),r.disableRightArrow=Jt((0,b.rg)(r.month,{month:1}),p.minDate,p.maxDate),r}(c,{isDisabled:r.isDisabled,minDate:r.minDate,maxDate:r.maxDate,daysDisabled:r.daysDisabled,datesDisabled:r.datesDisabled,datesEnabled:r.datesEnabled,hoveredDate:r.hoveredDate,selectedDate:r.selectedDate,selectedRange:r.selectedRange,displayMonths:p,dateCustomClasses:r.dateCustomClasses,dateTooltipTexts:r.dateTooltipTexts,monthIndex:f}));return Object.assign({},r,{flaggedMonths:i})}if("month"===r.view.mode&&r.monthsCalendar){const i=r.monthsCalendar.map((c,f)=>function tr(r,p){return r.months.forEach((i,c)=>{i.forEach((f,C)=>{let fe;const At=(0,b.xj)(f.date,p.hoveredMonth),Ht=p.isDisabled||Gn(f.date,p.datesDisabled)||Ci(f.date,p.datesEnabled,"month")||Jt(f.date,p.minDate,p.maxDate);!p.selectedDate&&p.selectedRange?(fe=(0,b.xj)(f.date,p.selectedRange[0]),fe||(fe=(0,b.xj)(f.date,p.selectedRange[1]))):fe=(0,b.xj)(f.date,p.selectedDate);const Gt=Object.assign(f,{isHovered:At,isDisabled:Ht,isSelected:fe});(f.isHovered!==Gt.isHovered||f.isDisabled!==Gt.isDisabled||f.isSelected!==Gt.isSelected)&&(r.months[c][C]=Gt)})}),r.hideLeftArrow=!!p.monthIndex&&p.monthIndex>0&&p.monthIndex!==p.displayMonths,r.hideRightArrow=(!!p.monthIndex||0===p.monthIndex)&&(!!p.displayMonths||0===p.displayMonths)&&p.monthIndex<p.displayMonths&&p.monthIndex+1!==p.displayMonths,r.disableLeftArrow=kn((0,b.rg)(r.months[0][0].date,{year:-1}),p.minDate,p.maxDate),r.disableRightArrow=kn((0,b.rg)(r.months[0][0].date,{year:1}),p.minDate,p.maxDate),r}(c,{isDisabled:r.isDisabled,minDate:r.minDate,maxDate:r.maxDate,hoveredMonth:r.hoveredMonth,selectedDate:r.selectedDate,datesDisabled:r.datesDisabled,datesEnabled:r.datesEnabled,selectedRange:r.selectedRange,displayMonths:p,monthIndex:f}));return Object.assign({},r,{flaggedMonthsCalendar:i})}if("year"===r.view.mode&&r.yearsCalendarModel){const i=r.yearsCalendarModel.map((c,f)=>function ir(r,p){r.years.forEach((f,C)=>{f.forEach((fe,At)=>{let Ht;const Gt=(0,b.FT)(fe.date,p.hoveredYear),tn=p.isDisabled||Gn(fe.date,p.datesDisabled,"year")||Ci(fe.date,p.datesEnabled,"year")||kn(fe.date,p.minDate,p.maxDate);!p.selectedDate&&p.selectedRange?(Ht=(0,b.FT)(fe.date,p.selectedRange[0]),Ht||(Ht=(0,b.FT)(fe.date,p.selectedRange[1]))):Ht=(0,b.FT)(fe.date,p.selectedDate);const Cn=Object.assign(fe,{isHovered:Gt,isDisabled:tn,isSelected:Ht});(fe.isHovered!==Cn.isHovered||fe.isDisabled!==Cn.isDisabled||fe.isSelected!==Cn.isSelected)&&(r.years[C][At]=Cn)})}),r.hideLeftArrow=!!p.yearIndex&&p.yearIndex>0&&p.yearIndex!==p.displayMonths,r.hideRightArrow=!!p.yearIndex&&!!p.displayMonths&&p.yearIndex<p.displayMonths&&p.yearIndex+1!==p.displayMonths,r.disableLeftArrow=kn((0,b.rg)(r.years[0][0].date,{year:-1}),p.minDate,p.maxDate);const i=r.years.length-1;return r.disableRightArrow=kn((0,b.rg)(r.years[i][r.years[i].length-1].date,{year:1}),p.minDate,p.maxDate),r}(c,{isDisabled:r.isDisabled,minDate:r.minDate,maxDate:r.maxDate,hoveredYear:r.hoveredYear,selectedDate:r.selectedDate,datesDisabled:r.datesDisabled,datesEnabled:r.datesEnabled,selectedRange:r.selectedRange,displayMonths:p,yearIndex:f}));return Object.assign({},r,{yearsCalendarFlagged:i})}return r}(r);case Xt.NAVIGATE_OFFSET:return function or(r,p){if(!r.view)return r;const i=function xs(r,p){if(r.view){if("year"===r.view.mode&&"year"===r.minMode){const i=es(r,0);if(i){const c=(0,b.rg)(i,{year:-Ss});return(0,b.rg)(c,p.payload)}}return(0,b.rg)((0,b.gl)(r.view.date,"month"),p.payload)}}(r,p);if(!i)return r;return Object.assign({},r,{view:{mode:r.view.mode,date:i}})}(r,p);case Xt.NAVIGATE_TO:{const i=p.payload;if(!r.view||!i.unit)return r;const c=(0,b.Rw)(r.view.date,i.unit);let f,C;return ns(i.viewMode,r.minMode)?(C=i.viewMode,f={view:{date:c,mode:C}}):(C=r.view.mode,f={selectedDate:c,view:{date:c,mode:C}}),Object.assign({},r,f)}case Xt.CHANGE_VIEWMODE:return ns(p.payload,r.minMode)&&r.view?Object.assign({},r,{view:{date:r.view.date,mode:p.payload}}):r;case Xt.HOVER:return Object.assign({},r,{hoveredDate:p.payload});case Xt.SELECT:{if(!r.view)return r;const i={selectedDate:p.payload,view:r.view};if(Array.isArray(r.selectedTime)){const fe=r.selectedTime[0];i.selectedDate&&fe&&li(i.selectedDate,fe)}const c=r.view.mode,C=rs(p.payload||r.view.date,r.minDate,r.maxDate);return i.view={mode:c,date:C},Object.assign({},r,i)}case Xt.SELECT_TIME:{const{date:i,index:c}=p.payload,f=r.selectedTime?[...r.selectedTime]:[];return f[c]=i,Object.assign({},r,{selectedTime:f})}case Xt.SET_OPTIONS:{if(!r.view)return r;const i=p.payload,c=i.minMode?i.minMode:r.view.mode,C=rs((0,b.Rp)(i.value)&&i.value||(0,b.kJ)(i.value)&&(0,b.Rp)(i.value[0])&&i.value[0]||r.view.date,i.minDate,i.maxDate);return i.view={mode:c,date:C},i.value&&((0,b.kJ)(i.value)&&(i.selectedRange=i.value,i.selectedTime=i.value.map(fe=>fe)),i.value instanceof Date&&(i.selectedDate=i.value,i.selectedTime=[i.value])),Object.assign({},r,i)}case Xt.SELECT_RANGE:{if(!r.view)return r;const i={selectedRange:p.payload,view:r.view};i.selectedRange?.forEach((fe,At)=>{if(Array.isArray(r.selectedTime)){const Ht=r.selectedTime[At];Ht&&li(fe,Ht)}});const c=r.view.mode,C=rs(p.payload&&p.payload[0]||r.view.date,r.minDate,r.maxDate);return i.view={mode:c,date:C},Object.assign({},r,i)}case Xt.SET_MIN_DATE:return Object.assign({},r,{minDate:p.payload});case Xt.SET_MAX_DATE:return Object.assign({},r,{maxDate:p.payload});case Xt.SET_IS_DISABLED:return Object.assign({},r,{isDisabled:p.payload});case Xt.SET_DATE_CUSTOM_CLASSES:return Object.assign({},r,{dateCustomClasses:p.payload});case Xt.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},r,{dateTooltipTexts:p.payload});default:return r}}function _i(r){return{locale:r.locale,monthTitle:r.monthTitle,yearTitle:r.yearTitle,dayLabel:r.dayLabel,monthLabel:r.monthLabel,yearLabel:r.yearLabel,weekNumbers:r.weekNumbers}}function rs(r,p,i){const c=Array.isArray(r)?r[0]:r;return p&&(0,b.Ax)(p,c,"day")?p:i&&(0,b.RR)(i,c,"day")?i:c}function Os(r,p,i){return!(!i||!(0,b.ZG)(i,r,"day"))||p&&i&&p.getMonth()===i.getMonth()}let xi=(()=>{class r extends ue{constructor(){const i=new E.X({type:"[datepicker] dispatcher init"});super(i,ki,new we(qi,i,ki))}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"platform"})}}return r})(),Ls=(()=>{class r{constructor(){this.onSelect=new e.vpe}selectFromRanges(i){this.onSelect.emit(i)}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275cmp=e.Xpm({type:r,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(c,f){1&c&&(e.TgZ(0,"div",0),e.YNc(1,Xe,2,3,"button",1),e.qZA()),2&c&&(e.xp6(1),e.Q6J("ngForOf",f.ranges))},dependencies:[G.sg],encapsulation:2,changeDetection:0})}}return r})();var ei=function(r){return r[r.UP=0]="UP",r[r.DOWN=1]="DOWN",r}(ei||{});let pi,ar=(()=>{class r{static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275cmp=e.Xpm({type:r,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(c,f){1&c&&(e.TgZ(0,"div",0)(1,"span"),e._uU(2),e.qZA()()),2&c&&(e.xp6(2),e.Oqu(f.title))},encapsulation:2})}}return r})(),Oi=(()=>{class r{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275cmp=e.Xpm({type:r,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(c,f){1&c&&(e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e._uU(3,"-"),e.qZA(),e._UZ(4,"input",3),e.TgZ(5,"button",4),e._uU(6,"+"),e.qZA()(),e.TgZ(7,"div",1)(8,"button",2),e._uU(9,"-"),e.qZA(),e._UZ(10,"input",3),e.TgZ(11,"button",4),e._uU(12,"+"),e.qZA()(),e.TgZ(13,"button",5),e._uU(14),e._UZ(15,"img",6),e.qZA()()),2&c&&(e.xp6(4),e.Q6J("value",f.hours),e.xp6(6),e.Q6J("value",f.minutes),e.xp6(4),e.hij("",f.ampm," "))},encapsulation:2})}}return r})(),os=(()=>{class r{static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275cmp=e.Xpm({type:r,selectors:[["bs-calendar-layout"]],ngContentSelectors:vn,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(c,f){1&c&&(e.F$t(Zt),e.YNc(0,Dt,1,0,"bs-current-date",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.TgZ(3,"div",2),e.Hsn(4,1),e.qZA(),e.YNc(5,Ue,1,0,"bs-timepicker",3)),2&c&&(e.Q6J("ngIf",!1),e.xp6(5),e.Q6J("ngIf",!1))},dependencies:[G.O5,ar,Oi],encapsulation:2})}}return r})(),fi=(()=>{class r{constructor(i,c,f){this._config=i,this._elRef=c,this._renderer=f,this.day={date:new Date,label:""}}ngOnInit(){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(i=>i).forEach(i=>{this._renderer.addClass(this._elRef.nativeElement,i)})}static{this.\u0275fac=function(c){return new(c||r)(e.Y36(sn),e.Y36(e.SBq),e.Y36(e.Qsj))}}static{this.\u0275cmp=e.Xpm({type:r,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(c,f){2&c&&e.ekj("disabled",f.day.isDisabled)("is-highlighted",f.day.isHovered)("is-other-month",f.day.isOtherMonth)("is-active-other-month",f.day.isOtherMonthHovered)("in-range",f.day.isInRange)("select-start",f.day.isSelectionStart)("select-end",f.day.isSelectionEnd)("selected",f.day.isSelected)},inputs:{day:"day"},attrs:Lt,decls:1,vars:1,template:function(c,f){1&c&&e._uU(0),2&c&&e.Oqu(f.day&&f.day.label||"")},encapsulation:2,changeDetection:0})}}return r})(),ti=(()=>{class r{constructor(){this.isDisabled=!1,this.onNavigate=new e.vpe,this.onViewMode=new e.vpe}navTo(i){this.onNavigate.emit(i?ei.DOWN:ei.UP)}view(i){this.isDisabled||this.onViewMode.emit(i)}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275cmp=e.Xpm({type:r,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(c,f){1&c&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return f.navTo(!0)}),e.TgZ(1,"span"),e._uU(2,"\u2039"),e.qZA()(),e.YNc(3,Nt,5,2,"ng-container",1),e._uU(4," \u200b "),e.TgZ(5,"button",2),e.NdJ("click",function(){return f.view("year")}),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e._uU(8," \u200b "),e.TgZ(9,"button",3),e.NdJ("click",function(){return f.navTo(!1)}),e.TgZ(10,"span"),e._uU(11,"\u203a"),e.qZA()()),2&c&&(e.Udp("visibility",f.calendar.hideLeftArrow?"hidden":"visible"),e.Q6J("disabled",f.calendar.disableLeftArrow),e.xp6(3),e.Q6J("ngIf",f.calendar&&f.calendar.monthTitle),e.xp6(2),e.Q6J("disabled",f.isDisabled),e.xp6(2),e.Oqu(f.calendar.yearTitle),e.xp6(2),e.Udp("visibility",f.calendar.hideRightArrow?"hidden":"visible"),e.Q6J("disabled",f.calendar.disableRightArrow))},dependencies:[G.O5],encapsulation:2,changeDetection:0})}}return r})(),As=(()=>{class r{constructor(i){this._config=i,this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe,this.onHoverWeek=new e.vpe,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(i){this.onNavigate.emit({step:{month:ei.DOWN===i?-1:1}})}changeViewMode(i){this.onViewMode.emit(i)}selectDay(i){this.onSelect.emit(i)}selectWeek(i){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===i.days.length)return;if(this._config.selectWeek&&i.days[0]&&!i.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(i.days[0]);const c=i.days.find(f=>(this._config.selectFromOtherMonth||!f.isOtherMonth)&&!f.isDisabled);if(this.onSelect.emit(c),this._config.selectWeekDateRange){const C=i.days.slice(0).reverse().find(fe=>(this._config.selectFromOtherMonth||!fe.isOtherMonth)&&!fe.isDisabled);this.onSelect.emit(C)}}weekHoverHandler(i,c){(this._config.selectWeek||this._config.selectWeekDateRange)&&i.days.find(C=>(this._config.selectFromOtherMonth||!C.isOtherMonth)&&!C.isDisabled)&&(i.isHovered=c,this.isWeekHovered=c,this.onHoverWeek.emit(i))}hoverDay(i,c){this._config.selectFromOtherMonth&&i.isOtherMonth&&(i.isOtherMonthHovered=c),this._config.dateTooltipTexts&&(i.tooltipText="",this._config.dateTooltipTexts.forEach(f=>{(0,b.KC)(f.date,i.date)&&(i.tooltipText=f.tooltipText)})),this.onHover.emit({cell:i,isHovered:c})}static{this.\u0275fac=function(c){return new(c||r)(e.Y36(sn))}}static{this.\u0275cmp=e.Xpm({type:r,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(c,f){1&c&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(fe){return f.navigateTo(fe)})("onViewMode",function(fe){return f.changeViewMode(fe)}),e.qZA(),e.TgZ(2,"table",1)(3,"thead")(4,"tr"),e.YNc(5,rn,1,0,"th",2),e.YNc(6,Qt,2,1,"th",3),e.qZA()(),e.TgZ(7,"tbody"),e.YNc(8,et,3,2,"tr",4),e.qZA()()()),2&c&&(e.xp6(1),e.Q6J("calendar",f.calendar)("isDisabled",!!f.isDisabled),e.xp6(4),e.Q6J("ngIf",f.options&&f.options.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",f.calendar.weekdays),e.xp6(2),e.Q6J("ngForOf",f.calendar.weeks))},dependencies:[G.sg,G.O5,Ze.i9,os,fi,ti],encapsulation:2})}}return r})(),Vi=(()=>{class r{constructor(){this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe}navigateTo(i){this.onNavigate.emit({step:{year:ei.DOWN===i?-1:1}})}viewMonth(i){this.onSelect.emit(i)}hoverMonth(i,c){this.onHover.emit({cell:i,isHovered:c})}changeViewMode(i){this.onViewMode.emit(i)}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275cmp=e.Xpm({type:r,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(c,f){1&c&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(fe){return f.navigateTo(fe)})("onViewMode",function(fe){return f.changeViewMode(fe)}),e.qZA(),e.TgZ(2,"table",1)(3,"tbody"),e.YNc(4,Ve,2,1,"tr",2),e.qZA()()()),2&c&&(e.xp6(1),e.Q6J("calendar",f.calendar),e.xp6(3),e.Q6J("ngForOf",null==f.calendar?null:f.calendar.months))},dependencies:[G.sg,os,ti],encapsulation:2})}}return r})(),Is=(()=>{class r{constructor(){this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe}navigateTo(i){this.onNavigate.emit({step:{year:(ei.DOWN===i?-1:1)*Ei}})}viewYear(i){this.onSelect.emit(i)}hoverYear(i,c){this.onHover.emit({cell:i,isHovered:c})}changeViewMode(i){this.onViewMode.emit(i)}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275cmp=e.Xpm({type:r,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(c,f){1&c&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(fe){return f.navigateTo(fe)})("onViewMode",function(fe){return f.changeViewMode(fe)}),e.qZA(),e.TgZ(2,"table",1)(3,"tbody"),e.YNc(4,$e,2,1,"tr",2),e.qZA()()()),2&c&&(e.xp6(1),e.Q6J("calendar",f.calendar),e.xp6(3),e.Q6J("ngForOf",null==f.calendar?null:f.calendar.years))},dependencies:[G.sg,os,ti],encapsulation:2})}}return r})(),Ps=(()=>{class r extends Qi{set value(i){this._effects?.setValue(i)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(i,c,f,C,fe,At,Ht){super(),this._config=c,this._store=f,this._element=C,this._actions=fe,this._positionService=Ht,this.valueChange=new e.vpe,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=At,i.setStyle(C.nativeElement,"display","block"),i.setStyle(C.nativeElement,"position","absolute")}ngOnInit(){let i;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,Y.q)(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(c=>c.selectedDate).subscribe(c=>{i=c,this.valueChange.emit(c)})),this._subs.push(this._store.select(c=>c.selectedTime).subscribe(c=>{!c[0]||!(c[0]instanceof Date)||c[0]===i||this.valueChange.emit(c[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(i=>{Array.isArray(i)&&i.length>=1&&this.startTimepicker?.writeValue(i[0])})),this.startTimepicker?.registerOnChange(i=>{this.timeSelectHandler(i,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(i,c){this._store.dispatch(this._actions.selectTime(i,c))}daySelectHandler(i){!i||(this.isOtherMonthsActive?i.isDisabled:i.isOtherMonth||i.isDisabled)||this._store.dispatch(this._actions.select(i.date))}monthSelectHandler(i){!i||i.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:(0,b.jw)(i.date),year:(0,b.D$)(i.date)},viewMode:"day"}))}yearSelectHandler(i){!i||i.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:(0,b.D$)(i.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const i of this._subs)i.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static{this.\u0275fac=function(c){return new(c||r)(e.Y36(e.Qsj),e.Y36(sn),e.Y36(xi),e.Y36(e.SBq),e.Y36(Xt),e.Y36(Xn),e.Y36(B.sA))}}static{this.\u0275cmp=e.Xpm({type:r,selectors:[["bs-datepicker-container"]],viewQuery:function(c,f){if(1&c&&e.Gf(nt,5),2&c){let C;e.iGM(C=e.CRH())&&(f.startTimepicker=C.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(c,f){1&c&&e.NdJ("click",function(fe){return f._stopPropagation(fe)}),2&c&&e.uIk("disabled",f.isDatepickerDisabled)("readonly",f.isDatepickerReadonly)},features:[e._Bn([xi,Xn]),e.qOj],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(c,f){1&c&&(e.YNc(0,wi,10,11,"div",0),e.ALo(1,"async")),2&c&&e.Q6J("ngIf",e.lcZ(1,1,f.viewMode))},dependencies:[G.mk,G.sg,G.O5,G.RF,G.n9,ke,Ls,As,Vi,Is,G.Ov],encapsulation:2,data:{animation:[on]}})}}return r})(),Rs=(()=>{class r{get readonlyValue(){return this.isDisabled?"":null}constructor(i,c,f,C,fe){this._config=i,this._elementRef=c,this._renderer=f,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new _t.x,this.isDisabled=!1,this.bsValueChange=new e.vpe,this._subs=[],this._dateInputFormat$=new _t.x,Object.assign(this,this._config),this._datepicker=fe.createLoader(c,C,f),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new E.X(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(i){this.isOpen$.next(i)}set bsValue(i){this._bsValue&&i&&this._bsValue.getTime()===i.getTime()||(!this._bsValue&&i&&!this._config.withTimepicker&&li(i,new Date),i&&this.bsConfig?.initCurrentTime&&(i=ts(i)),this.initPreviousValue(),this._bsValue=i,this.bsValueChange.emit(i))}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(){pi=this._bsValue}ngOnChanges(i){i.bsConfig&&(i.bsConfig.currentValue?.initCurrentTime&&i.bsConfig.currentValue?.initCurrentTime!==i.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=ts(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(i.minDate&&(this._datepickerRef.instance.minDate=this.minDate),i.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),i.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),i.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),i.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),i.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),i.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),i.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(i=>{this._datepickerRef&&(this._datepickerRef.instance.value=i)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(i=>{this.initPreviousValue(),this.bsValue=i,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!!(pi&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return pi instanceof Date&&this._bsValue?.getDate()===pi?.getDate()&&this._bsValue?.getMonth()===pi?.getMonth()&&this._bsValue?.getFullYear()===pi?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe((0,T.h)(i=>i!==this.isOpen),(0,x.R)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:sn,useValue:this._config}).attach(Ps).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const i of this._subs)i.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:ai(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(i=>i.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{this.\u0275fac=function(c){return new(c||r)(e.Y36(sn),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(ct.oj))}}static{this.\u0275dir=e.lG2({type:r,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(c,f){2&c&&e.uIk("readonly",f.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:[e.TTD]})}}return r})(),lr=(()=>{class r extends Qi{set value(i){this._effects?.setRangeValue(i)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(i,c,f,C,fe,At,Ht){super(),this._config=c,this._store=f,this._element=C,this._actions=fe,this._positionService=Ht,this.valueChange=new e.vpe,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=At,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,i.setStyle(C.nativeElement,"display","block"),i.setStyle(C.nativeElement,"position","absolute")}ngOnInit(){let i;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,Y.q)(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(c=>c.selectedRange).subscribe(c=>{i=c,this.valueChange.emit(c),this.chosenRange=c||[]})),this._subs.push(this._store.select(c=>c.selectedTime).subscribe(c=>{!c[0]||!c[1]||!(c[0]instanceof Date)||!(c[1]instanceof Date)||i&&c[0]===i[0]&&c[1]===i[1]||(this.valueChange.emit(c),this.chosenRange=c||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(i=>{Array.isArray(i)&&i.length>=2&&(this.startTimepicker?.writeValue(i[0]),this.endTimepicker?.writeValue(i[1]))})),this.startTimepicker?.registerOnChange(i=>{this.timeSelectHandler(i,0)}),this.endTimepicker?.registerOnChange(i=>{this.timeSelectHandler(i,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(i,c){this._store.dispatch(this._actions.selectTime(i,c))}daySelectHandler(i){!i||(this.isOtherMonthsActive?i.isDisabled:i.isOtherMonth||i.isDisabled)||this.rangesProcessing(i)}monthSelectHandler(i){if(i&&!i.isDisabled){if(i.isSelected=!0,"month"!==this._config.minMode){if(i.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:(0,b.jw)(i.date),year:(0,b.D$)(i.date)},viewMode:"day"}))}this.rangesProcessing(i)}}yearSelectHandler(i){if(i&&!i.isDisabled){if(i.isSelected=!0,"year"!==this._config.minMode){if(i.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:(0,b.D$)(i.date)},viewMode:"month"}))}this.rangesProcessing(i)}}rangesProcessing(i){1===this._rangeStack.length&&(this._rangeStack=i.date>=this._rangeStack[0]?[this._rangeStack[0],i.date]:[i.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(i.date),0===this._rangeStack.length&&(this._rangeStack=[i.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(i.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const i of this._subs)i.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(i){i&&(this._rangeStack=i.value instanceof Date?[i.value]:i.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(i){let c=new Date(i);if(this._config.maxDate){const f=this._config.maxDate.getTime(),C=i.getTime()+864e5*(this._config.maxDateRange||0);c=C>f?new Date(this._config.maxDate):new Date(C)}else c.setDate(i.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(c)}static{this.\u0275fac=function(c){return new(c||r)(e.Y36(e.Qsj),e.Y36(sn),e.Y36(xi),e.Y36(e.SBq),e.Y36(Xt),e.Y36(Xn),e.Y36(B.sA))}}static{this.\u0275cmp=e.Xpm({type:r,selectors:[["bs-daterangepicker-container"]],viewQuery:function(c,f){if(1&c&&(e.Gf(nt,5),e.Gf(cn,5)),2&c){let C;e.iGM(C=e.CRH())&&(f.startTimepicker=C.first),e.iGM(C=e.CRH())&&(f.endTimepicker=C.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(c,f){1&c&&e.NdJ("click",function(fe){return f._stopPropagation(fe)}),2&c&&e.uIk("disabled",f.isDatepickerDisabled)("readonly",f.isDatepickerReadonly)},features:[e._Bn([xi,Xn]),e.qOj],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(c,f){1&c&&(e.YNc(0,ys,10,11,"div",0),e.ALo(1,"async")),2&c&&e.Q6J("ngIf",e.lcZ(1,1,f.viewMode))},dependencies:[G.mk,G.sg,G.O5,G.RF,G.n9,ke,Ls,As,Vi,Is,G.Ov],encapsulation:2,data:{animation:[on]}})}}return r})();const cr={provide:k.JU,useExisting:(0,e.Gpc)(()=>Bs),multi:!0},as={provide:k.Cf,useExisting:(0,e.Gpc)(()=>Bs),multi:!0};let En,Bs=(()=>{class r{constructor(i,c,f,C,fe){this._picker=i,this._localeService=c,this._renderer=f,this._elRef=C,this.changeDetection=fe,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Ie.w0}ngOnInit(){const i=c=>{this._setInputValue(c),this._value!==c&&(this._value=c,this._onChange(c),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&i(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(i)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe((0,V.x)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(i){(13===i.keyCode||"Enter"===i.code)&&this.hide()}_setInputValue(i){const c=i?(0,b.p6)(i,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",c)}onChange(i){this.writeValue(i.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(i){const c=i.value;if(null==c||""===c)return null;if((0,b.J_)(c)){if(!(0,b.Rp)(c))return{bsDate:{invalid:c}};if(this._picker&&this._picker.minDate&&(0,b.RR)(c,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&(0,b.Ax)(c,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(i){this._validatorChange=i}writeValue(i){if(i){const c=this._localeService.currentLocale;if(!(0,b.Kd)(c))throw new Error(`Locale "${c}" is not defined, please add it with "defineLocale(...)"`);this._value=(0,b.sG)(i,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=(0,b.Ji)(this._value))}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(i){this._picker.isDisabled=i,i?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}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{this.\u0275fac=function(c){return new(c||r)(e.Y36(Rs,1),e.Y36(zt),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO))}}static{this.\u0275dir=e.lG2({type:r,selectors:[["input","bsDatepicker",""]],hostBindings:function(c,f){1&c&&e.NdJ("change",function(fe){return f.onChange(fe)})("keyup.esc",function(){return f.hide()})("keydown",function(fe){return f.onKeydownEvent(fe)})("blur",function(){return f.onBlur()})},features:[e._Bn([cr,as])]})}}return r})(),ls=(()=>{class r extends sn{constructor(){super(...arguments),this.displayMonths=2}static{this.\u0275fac=function(){let i;return function(f){return(i||(i=e.n5z(r)))(f||r)}}()}static{this.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})(),mi=(()=>{class r{get isOpen(){return this._datepicker.isShown}set isOpen(i){this.isOpen$.next(i)}set bsValue(i){this._bsValue!==i&&(i&&this.bsConfig?.initCurrentTime&&(i=Xs(i)),this.initPreviousValue(),this._bsValue=i,this.bsValueChange.emit(i))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(i,c,f,C,fe){this._config=i,this._elementRef=c,this._renderer=f,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new _t.x,this.isDisabled=!1,this.bsValueChange=new e.vpe,this._subs=[],this._rangeInputFormat$=new _t.x,this._datepicker=fe.createLoader(c,C,f),Object.assign(this,i),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new E.X(this.isOpen)}ngOnInit(){this.isDestroy$=new _t.x,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(i){i.bsConfig&&(i.bsConfig.currentValue?.initCurrentTime&&i.bsConfig.currentValue?.initCurrentTime!==i.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Xs(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(i.bsConfig.currentValue&&i.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(i.minDate&&(this._datepickerRef.instance.minDate=this.minDate),i.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),i.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),i.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),i.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),i.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),i.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe((0,T.h)(i=>i!==this.isOpen),(0,x.R)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:sn,useValue:this._config}).attach(lr).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(i=>{this._datepickerRef&&(this._datepickerRef.instance.value=i)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe((0,T.h)(i=>i&&i[0]&&!!i[1])).subscribe(i=>{this.initPreviousValue(),this.bsValue=i,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){En=this._bsValue}keepDatepickerModalOpened(){return!!(En&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===En?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===En?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===En?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===En?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===En?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===En?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:ai(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:Hi(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 i of this._subs)i.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(i=>i.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{this.\u0275fac=function(c){return new(c||r)(e.Y36(ls),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(ct.oj))}}static{this.\u0275dir=e.lG2({type:r,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(c,f){2&c&&e.uIk("readonly",f.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:[e.TTD]})}}return r})();const ur={provide:k.JU,useExisting:(0,e.Gpc)(()=>Wi),multi:!0},Kr={provide:k.Cf,useExisting:(0,e.Gpc)(()=>Wi),multi:!0};let Wi=(()=>{class r{constructor(i,c,f,C,fe){this._picker=i,this._localeService=c,this._renderer=f,this._elRef=C,this.changeDetection=fe,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Ie.w0}ngOnInit(){this._picker._bsValue&&(c=>{this._setInputValue(c),this._value!==c&&(this._value=c,this._onChange(c),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(c=>{this._setInputValue(c),this._value!==c&&(this._value=c,this._onChange(c),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe((0,V.x)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(i){(13===i.keyCode||"Enter"===i.code)&&this.hide()}_setInputValue(i){let c="";if(i){const f=i[0]?(0,b.p6)(i[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",C=i[1]?(0,b.p6)(i[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";c=f&&C?f+this._picker._config.rangeSeparator+C:""}this._renderer.setProperty(this._elRef.nativeElement,"value",c)}onChange(i){this.writeValue(i.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(i){let c=i.value;const f=[];if(null==c||!(0,b.kJ)(c))return null;c=c.slice().sort((At,Ht)=>At.getTime()-Ht.getTime());const C=(0,b.Rp)(c[0]),fe=(0,b.Rp)(c[1]);return C?fe?(this._picker&&this._picker.minDate&&(0,b.RR)(c[0],this._picker.minDate,"date")&&(c[0]=this._picker.minDate,f.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&(0,b.Ax)(c[1],this._picker.maxDate,"date")&&(c[1]=this._picker.maxDate,f.push({bsDate:{maxDate:this._picker.maxDate}})),f.length>0?(this.writeValue(c),f):null):{bsDate:{invalid:c[1]}}:{bsDate:{invalid:c[0]}}}registerOnValidatorChange(i){this._validatorChange=i}writeValue(i){if(i){const c=this._localeService.currentLocale;if(!(0,b.Kd)(c))throw new Error(`Locale "${c}" is not defined, please add it with "defineLocale(...)"`);let C=[];if("string"==typeof i){const fe=this._picker._config.rangeSeparator.trim();C=i.replace(/[^-]/g,"").length>1?i.split(this._picker._config.rangeSeparator):i.split(fe.length>0?fe:this._picker._config.rangeSeparator).map(At=>At.trim())}Array.isArray(i)&&(C=i),this._value=C.map(fe=>this._picker._config.useUtc?(0,b.Ji)((0,b.sG)(fe,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):(0,b.sG)(fe,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(fe=>isNaN(fe.valueOf())?void 0:fe)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(i){this._picker.isDisabled=i,i?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}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{this.\u0275fac=function(c){return new(c||r)(e.Y36(mi,1),e.Y36(zt),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO))}}static{this.\u0275dir=e.lG2({type:r,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(c,f){1&c&&e.NdJ("change",function(fe){return f.onChange(fe)})("keyup.esc",function(){return f.hide()})("keydown",function(fe){return f.onKeydownEvent(fe)})("blur",function(){return f.onBlur()})},features:[e._Bn([ur,Kr])]})}}return r})(),zr=(()=>{class r{static forRoot(){return{ngModule:r,providers:[ct.oj,B.sA,xi,Xt,Xn,zt,pt]}}static{this.\u0275fac=function(c){return new(c||r)}}static{this.\u0275mod=e.oAB({type:r})}static{this.\u0275inj=e.cJS({imports:[G.ez,Ze.z8,De]})}}return r})()},2500:(We,z,m)=>{m.d(z,{Hz:()=>ce,Mq:()=>me,TO:()=>A,mr:()=>pe});var e=m(5879),T=m(2181),j=m(1835),Y=m(6825),x=m(6814),V=m(2066);const b=function(re){return{dropdown:re}},B=["*"];let k=(()=>{class re{constructor(){this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1}static{this.\u0275fac=function(ue){return new(ue||re)}}static{this.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}}return re})(),E=(()=>{class re{constructor(){this.direction="down",this.autoClose=!0,this.insideClick=!1,this.isAnimated=!1,this.stopOnClickPropagation=!1,this.isOpenChange=new e.vpe,this.isDisabledChange=new e.vpe,this.toggleClick=new e.vpe,this.counts=0,this.dropdownMenu=new Promise(we=>{this.resolveDropdownMenu=we})}static{this.\u0275fac=function(ue){return new(ue||re)}}static{this.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"platform"})}}return re})();const W=[(0,Y.oB)({height:0,overflow:"hidden"}),(0,Y.jt)("220ms cubic-bezier(0, 0, 0.2, 1)",(0,Y.oB)({height:"*",overflow:"hidden"}))];let _e=(()=>{class re{get direction(){return this._state.direction}constructor(we,ue,G,Le,Se){this._state=we,this.cd=ue,this._renderer=G,this._element=Le,this.isOpen=!1,this._factoryDropDownAnimation=Se.build(W),this._subscription=we.isOpenChange.subscribe(Ce=>{this.isOpen=Ce;const Re=this._element.nativeElement.querySelector(".dropdown-menu");this._renderer.addClass(this._element.nativeElement.querySelector("div"),"open"),Re&&(this._renderer.addClass(Re,"show"),(Re.classList.contains("dropdown-menu-right")||Re.classList.contains("dropdown-menu-end"))&&(this._renderer.setStyle(Re,"left","auto"),this._renderer.setStyle(Re,"right","0")),"up"===this.direction&&(this._renderer.setStyle(Re,"top","auto"),this._renderer.setStyle(Re,"transform","translateY(-101%)"))),Re&&this._state.isAnimated&&this._factoryDropDownAnimation.create(Re).play(),this.cd.markForCheck(),this.cd.detectChanges()})}_contains(we){return this._element.nativeElement.contains(we)}ngOnDestroy(){this._subscription.unsubscribe()}static{this.\u0275fac=function(ue){return new(ue||re)(e.Y36(E),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(Y._j))}}static{this.\u0275cmp=e.Xpm({type:re,selectors:[["bs-dropdown-container"]],hostAttrs:[2,"display","block","position","absolute","z-index","1040"],ngContentSelectors:B,decls:2,vars:9,consts:[[3,"ngClass"]],template:function(ue,G){1&ue&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA()),2&ue&&(e.ekj("dropup","up"===G.direction)("show",G.isOpen)("open",G.isOpen),e.Q6J("ngClass",e.VKq(7,b,"down"===G.direction)))},dependencies:[x.mk],encapsulation:2,changeDetection:0})}}return re})(),A=(()=>{class re{set autoClose(we){this._state.autoClose=we}get autoClose(){return this._state.autoClose}set isAnimated(we){this._state.isAnimated=we}get isAnimated(){return this._state.isAnimated}set insideClick(we){this._state.insideClick=we}get insideClick(){return this._state.insideClick}set isDisabled(we){this._isDisabled=we,this._state.isDisabledChange.emit(we),we&&this.hide()}get isDisabled(){return this._isDisabled}get isOpen(){return this._showInline?this._isInlineOpen:this._dropdown.isShown}set isOpen(we){we?this.show():this.hide()}get _showInline(){return!this.container}constructor(we,ue,G,Le,Se,Ce,Re){this._elementRef=we,this._renderer=ue,this._viewContainerRef=G,this._cis=Le,this._state=Se,this._config=Ce,this.dropup=!1,this._isInlineOpen=!1,this._isDisabled=!1,this._subscriptions=[],this._isInited=!1,this._state.autoClose=this._config.autoClose,this._state.insideClick=this._config.insideClick,this._state.isAnimated=this._config.isAnimated,this._state.stopOnClickPropagation=this._config.stopOnClickPropagation,this._factoryDropDownAnimation=Re.build(W),this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:E,useValue:this._state}),this.onShown=this._dropdown.onShown,this.onHidden=this._dropdown.onHidden,this.isOpenChange=this._state.isOpenChange}ngOnInit(){this._isInited||(this._isInited=!0,this._dropdown.listen({outsideClick:!1,triggers:this.triggers,show:()=>this.show()}),this._subscriptions.push(this._state.toggleClick.subscribe(we=>this.toggle(we))),this._subscriptions.push(this._state.isDisabledChange.pipe((0,T.h)(we=>we)).subscribe(()=>this.hide())))}show(){if(!this.isOpen&&!this.isDisabled){if(this._showInline)return this._inlinedMenu||this._state.dropdownMenu.then(we=>{this._dropdown.attachInline(we.viewContainer,we.templateRef),this._inlinedMenu=this._dropdown._inlineViewRef,this.addBs4Polyfills(),this._inlinedMenu&&this._renderer.addClass(this._inlinedMenu.rootNodes[0].parentNode,"open"),this.playAnimation()}).catch(),this.addBs4Polyfills(),this._isInlineOpen=!0,this.onShown.emit(!0),this._state.isOpenChange.emit(!0),void this.playAnimation();this._state.dropdownMenu.then(we=>{const ue=this.dropup||typeof this.dropup<"u"&&this.dropup;this._state.direction=ue?"up":"down";const G=this.placement||(ue?"top start":"bottom start");this._dropdown.attach(_e).to(this.container).position({attachment:G}).show({content:we.templateRef,placement:G}),this._state.isOpenChange.emit(!0)}).catch()}}hide(){this.isOpen&&(this._showInline?(this.removeShowClass(),this.removeDropupStyles(),this._isInlineOpen=!1,this.onHidden.emit(!0)):this._dropdown.hide(),this._state.isOpenChange.emit(!1))}toggle(we){return this.isOpen||!we?this.hide():this.show()}_contains(we){return this._elementRef.nativeElement.contains(we.target)||this._dropdown.instance&&this._dropdown.instance._contains(we.target)}navigationClick(we){const ue=this._elementRef.nativeElement.querySelector(".dropdown-menu");if(!ue)return;const G=this._elementRef.nativeElement.ownerDocument.activeElement,Le=ue.querySelectorAll(".dropdown-item");switch(we.keyCode){case 38:this._state.counts>0&&Le[--this._state.counts].focus();break;case 40:this._state.counts+1<Le.length&&(G.classList!==Le[this._state.counts].classList?Le[this._state.counts].focus():Le[++this._state.counts].focus())}we.preventDefault()}ngOnDestroy(){for(const we of this._subscriptions)we.unsubscribe();this._dropdown.dispose()}addBs4Polyfills(){this.addShowClass(),this.checkRightAlignment(),this.addDropupStyles()}playAnimation(){this._state.isAnimated&&this._inlinedMenu&&setTimeout(()=>{this._inlinedMenu&&this._factoryDropDownAnimation.create(this._inlinedMenu.rootNodes[0]).play()})}addShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.addClass(this._inlinedMenu.rootNodes[0],"show")}removeShowClass(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&this._renderer.removeClass(this._inlinedMenu.rootNodes[0],"show")}checkRightAlignment(){if(this._inlinedMenu&&this._inlinedMenu.rootNodes[0]){const we=this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-right")||this._inlinedMenu.rootNodes[0].classList.contains("dropdown-menu-end");this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"left",we?"auto":"0"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"right",we?"0":"auto")}}addDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"top",this.dropup?"auto":"100%"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"transform",this.dropup?"translateY(-101%)":"translateY(0)"),this._renderer.setStyle(this._inlinedMenu.rootNodes[0],"bottom","auto"))}removeDropupStyles(){this._inlinedMenu&&this._inlinedMenu.rootNodes[0]&&(this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"top"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"transform"),this._renderer.removeStyle(this._inlinedMenu.rootNodes[0],"bottom"))}static{this.\u0275fac=function(ue){return new(ue||re)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(j.oj),e.Y36(E),e.Y36(k),e.Y36(Y._j))}}static{this.\u0275dir=e.lG2({type:re,selectors:[["","bsDropdown",""],["","dropdown",""]],hostVars:6,hostBindings:function(ue,G){1&ue&&e.NdJ("keydown.arrowDown",function(Se){return G.navigationClick(Se)})("keydown.arrowUp",function(Se){return G.navigationClick(Se)}),2&ue&&e.ekj("dropup",G.dropup)("open",G.isOpen)("show",G.isOpen)},inputs:{placement:"placement",triggers:"triggers",container:"container",dropup:"dropup",autoClose:"autoClose",isAnimated:"isAnimated",insideClick:"insideClick",isDisabled:"isDisabled",isOpen:"isOpen"},outputs:{isOpenChange:"isOpenChange",onShown:"onShown",onHidden:"onHidden"},exportAs:["bs-dropdown"],features:[e._Bn([E])]})}}return re})(),ce=(()=>{class re{constructor(we,ue,G){we.resolveDropdownMenu({templateRef:G,viewContainer:ue})}static{this.\u0275fac=function(ue){return new(ue||re)(e.Y36(E),e.Y36(e.s_b),e.Y36(e.Rgc))}}static{this.\u0275dir=e.lG2({type:re,selectors:[["","bsDropdownMenu",""],["","dropdownMenu",""]],exportAs:["bs-dropdown-menu"]})}}return re})(),me=(()=>{class re{constructor(we,ue,G,Le,Se){this._changeDetectorRef=we,this._dropdown=ue,this._element=G,this._renderer=Le,this._state=Se,this.isOpen=!1,this._subscriptions=[],this._subscriptions.push(this._state.isOpenChange.subscribe(Ce=>{this.isOpen=Ce,Ce?(this._documentClickListener=this._renderer.listen("document","click",Re=>{this._state.autoClose&&2!==Re.button&&!this._element.nativeElement.contains(Re.target)&&(!this._state.insideClick||!this._dropdown._contains(Re))&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())}),this._escKeyUpListener=this._renderer.listen(this._element.nativeElement,"keyup.esc",()=>{this._state.autoClose&&(this._state.toggleClick.emit(!1),this._changeDetectorRef.detectChanges())})):(this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener())})),this._subscriptions.push(this._state.isDisabledChange.subscribe(Ce=>this.isDisabled=Ce||void 0))}onClick(we){this._state.stopOnClickPropagation&&we.stopPropagation(),!this.isDisabled&&this._state.toggleClick.emit(!0)}ngOnDestroy(){this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();for(const we of this._subscriptions)we.unsubscribe()}static{this.\u0275fac=function(ue){return new(ue||re)(e.Y36(e.sBO),e.Y36(A),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(E))}}static{this.\u0275dir=e.lG2({type:re,selectors:[["","bsDropdownToggle",""],["","dropdownToggle",""]],hostVars:3,hostBindings:function(ue,G){1&ue&&e.NdJ("click",function(Se){return G.onClick(Se)}),2&ue&&e.uIk("aria-haspopup",!0)("disabled",G.isDisabled)("aria-expanded",G.isOpen)},exportAs:["bs-dropdown-toggle"]})}}return re})(),pe=(()=>{class re{static forRoot(){return{ngModule:re,providers:[j.oj,V.sA,E]}}static{this.\u0275fac=function(ue){return new(ue||re)}}static{this.\u0275mod=e.oAB({type:re})}static{this.\u0275inj=e.cJS({imports:[x.ez]})}}return re})()},2051:(We,z,m)=>{m.d(z,{UZ:()=>ye,tT:()=>mt,zk:()=>pn});var e=m(5879),T=m(3161),j=m(6814),Y=m(8180);let V,x=(()=>{class be{constructor(){this._focusTrapStack=[]}register(S){this._focusTrapStack=this._focusTrapStack.filter(ve=>ve!==S);let O=this._focusTrapStack;O.length&&O[O.length-1]._disable(),O.push(S),S._enable()}deregister(S){S._disable();const O=this._focusTrapStack,ve=O.indexOf(S);-1!==ve&&(O.splice(ve,1),O.length&&O[O.length-1]._enable())}static{this.\u0275fac=function(O){return new(O||be)}}static{this.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})();try{V=typeof Intl<"u"&&Intl.v8BreakIterator}catch{V=!1}let b=(()=>{class be{constructor(S){this._platformId=S,this.isBrowser=this._platformId?(0,j.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!V)&&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{this.\u0275fac=function(O){return new(O||be)(e.LFG(e.Lbi))}}static{this.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})(),k=(()=>{class be{constructor(S){this._platform=S}isDisabled(S){return S.hasAttribute("disabled")}isVisible(S){return function L(be){return!!(be.offsetWidth||be.offsetHeight||"function"==typeof be.getClientRects&&be.getClientRects().length)}(S)&&"visible"===getComputedStyle(S).visibility}isTabbable(S){if(!this._platform.isBrowser)return!1;const O=function E(be){try{return be.frameElement}catch{return null}}(function ue(be){return be.ownerDocument&&be.ownerDocument.defaultView||window}(S));if(O&&(-1===re(O)||!this.isVisible(O)))return!1;let ve=S.nodeName.toLowerCase(),ht=re(S);return S.hasAttribute("contenteditable")?-1!==ht:!("iframe"===ve||"object"===ve||this._platform.WEBKIT&&this._platform.IOS&&!function Ge(be){let te=be.nodeName.toLowerCase(),S="input"===te&&be.type;return"text"===S||"password"===S||"select"===te||"textarea"===te}(S))&&("audio"===ve?!!S.hasAttribute("controls")&&-1!==ht:"video"===ve?-1!==ht&&(null!==ht||this._platform.FIREFOX||S.hasAttribute("controls")):S.tabIndex>=0)}isFocusable(S,O){return function we(be){return!function _e(be){return function ce(be){return"input"==be.nodeName.toLowerCase()}(be)&&"hidden"==be.type}(be)&&(function W(be){let te=be.nodeName.toLowerCase();return"input"===te||"select"===te||"button"===te||"textarea"===te}(be)||function A(be){return function me(be){return"a"==be.nodeName.toLowerCase()}(be)&&be.hasAttribute("href")}(be)||be.hasAttribute("contenteditable")||pe(be))}(S)&&!this.isDisabled(S)&&(O?.ignoreVisibility||this.isVisible(S))}static{this.\u0275fac=function(O){return new(O||be)(e.LFG(b))}}static{this.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})();function pe(be){if(!be.hasAttribute("tabindex")||void 0===be.tabIndex)return!1;let te=be.getAttribute("tabindex");return"-32768"!=te&&!(!te||isNaN(parseInt(te,10)))}function re(be){if(!pe(be))return null;const te=parseInt(be.getAttribute("tabindex")||"",10);return isNaN(te)?-1:te}function G(be){return null!=be&&"false"!=`${be}`}class Le{get enabled(){return this._enabled}set enabled(te){this._enabled=te,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(te,this._startAnchor),this._toggleAnchorTabIndex(te,this._endAnchor))}constructor(te,S,O,ve,ht=!1){this._element=te,this._checker=S,this._ngZone=O,this._document=ve,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ht||this.attachAnchors()}destroy(){const te=this._startAnchor,S=this._endAnchor;te&&(te.removeEventListener("focus",this.startAnchorListener),te.parentNode&&te.parentNode.removeChild(te)),S&&(S.removeEventListener("focus",this.endAnchorListener),S.parentNode&&S.parentNode.removeChild(S)),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(te=>{this._executeOnStable(()=>te(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(te=>{this._executeOnStable(()=>te(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(te=>{this._executeOnStable(()=>te(this.focusLastTabbableElement()))})}_getRegionBoundary(te){let S=this._element.querySelectorAll(`[cdk-focus-region-${te}], [cdkFocusRegion${te}], [cdk-focus-${te}]`);for(let O=0;O<S.length;O++)S[O].hasAttribute(`cdk-focus-${te}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${te}', use 'cdkFocusRegion${te}' instead. The deprecated attribute will be removed in 8.0.0.`,S[O]):S[O].hasAttribute(`cdk-focus-region-${te}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${te}', use 'cdkFocusRegion${te}' instead. The deprecated attribute will be removed in 8.0.0.`,S[O]);return"start"==te?S.length?S[0]:this._getFirstTabbableElement(this._element):S.length?S[S.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const te=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(te){if(te.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",te),!this._checker.isFocusable(te)){const S=this._getFirstTabbableElement(te);return S?.focus(),!!S}return te.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const te=this._getRegionBoundary("start");return te&&te.focus(),!!te}focusLastTabbableElement(){const te=this._getRegionBoundary("end");return te&&te.focus(),!!te}hasAttached(){return this._hasAttached}_getFirstTabbableElement(te){if(this._checker.isFocusable(te)&&this._checker.isTabbable(te))return te;let S=te.children||te.childNodes;for(let O=0;O<S.length;O++){let ve=S[O].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(S[O]):null;if(ve)return ve}return null}_getLastTabbableElement(te){if(this._checker.isFocusable(te)&&this._checker.isTabbable(te))return te;let S=te.children||te.childNodes;for(let O=S.length-1;O>=0;O--){let ve=S[O].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(S[O]):null;if(ve)return ve}return null}_createAnchor(){const te=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,te),te.classList.add("cdk-visually-hidden"),te.classList.add("cdk-focus-trap-anchor"),te.setAttribute("aria-hidden","true"),te}_toggleAnchorTabIndex(te,S){te?S.setAttribute("tabindex","0"):S.removeAttribute("tabindex")}toggleAnchors(te){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(te,this._startAnchor),this._toggleAnchorTabIndex(te,this._endAnchor))}_executeOnStable(te){this._ngZone.isStable?te():this._ngZone.onStable.pipe((0,Y.q)(1)).subscribe(te)}}let Se=(()=>{class be{constructor(S,O,ve){this._checker=S,this._ngZone=O,this._document=ve}create(S,O=!1){return new Le(S,this._checker,this._ngZone,this._document,O)}static{this.\u0275fac=function(O){return new(O||be)(e.LFG(k),e.LFG(e.R0b),e.LFG(j.K0))}}static{this.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"})}}return be})(),Ce=(()=>{class be{get enabled(){return this.focusTrap.enabled}set enabled(S){this.focusTrap.enabled=G(S)}get autoCapture(){return this._autoCapture}set autoCapture(S){this._autoCapture=G(S)}constructor(S,O,ve){this._elementRef=S,this._focusTrapFactory=O,this._previouslyFocusedElement=null,this._autoCapture=!1,this._document=ve,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(S){const O=S.autoCapture;O&&!O.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}static{this.\u0275fac=function(O){return new(O||be)(e.Y36(e.SBq),e.Y36(Se),e.Y36(j.K0))}}static{this.\u0275dir=e.lG2({type:be,selectors:[["","focusTrap",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["focusTrap"],features:[e.TTD]})}}return be})(),Re=(()=>{class be{static forRoot(){return{ngModule:be,providers:[x,b,k]}}static{this.\u0275fac=function(O){return new(O||be)}}static{this.\u0275mod=e.oAB({type:be})}static{this.\u0275inj=e.cJS({imports:[j.ez]})}}return be})();var Ye=m(1835),Z=m(2066);const ie=["*"];let ye=(()=>{class be{constructor(){this.hide=()=>{},this.setClass=()=>{}}static{this.\u0275fac=function(O){return new(O||be)}}static{this.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac,providedIn:"platform"})}}return be})(),He=(()=>{class be{static{this.\u0275fac=function(O){return new(O||be)}}static{this.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac,providedIn:"platform"})}}return be})();const H={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{},closeInterceptor:void 0},Je=new e.OlP("override-default-config");let je=(()=>{class be{constructor(S,O,ve){this._element=O,this._renderer=ve,this.isShown=!1,this.isAnimated=!1,this._focusEl=null,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},S)}ngOnInit(){this._focusEl=T.tj.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),T.tj&&T.tj.body&&(this.bsModalService&&1===this.bsModalService.getModalsCount()&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(T.tj.body,"modal-open"),this._renderer.setStyle(T.tj.body,"overflow-y","hidden")),this._element.nativeElement&&this._element.nativeElement.focus()}onClickStarted(S){this.clickStartedInContent=S.target!==this._element.nativeElement}onClickStop(S){this.config.ignoreBackdropClick||"static"===this.config.backdrop||S.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(S){this.isShown&&((27===S.keyCode||"Escape"===S.key)&&S.preventDefault(),this.config.keyboard&&this.level===this.bsModalService?.getModalsCount()&&(this.bsModalService?.setDismissReason("esc"),this.hide()))}ngOnDestroy(){this.isShown&&this._hide()}hide(){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,T.tj&&T.tj.body&&1===this.bsModalService?.getModalsCount()&&(this._renderer.removeClass(T.tj.body,"modal-open"),this._renderer.setStyle(T.tj.body,"overflow-y","")),this.bsModalService?.hide(this.config.id),this.isModalHiding=!1,this._focusEl&&this._focusEl.focus()},this.isAnimated?300:0)}static{this.\u0275fac=function(O){return new(O||be)(e.Y36(He),e.Y36(e.SBq),e.Y36(e.Qsj))}}static{this.\u0275cmp=e.Xpm({type:be,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(O,ve){1&O&&e.NdJ("mousedown",function(Ot){return ve.onClickStarted(Ot)})("click",function(Ot){return ve.onClickStop(Ot)})("popstate",function(){return ve.onPopState()},!1,e.Jf7)("keydown.esc",function(Ot){return ve.onEsc(Ot)},!1,e.Jf7),2&O&&e.uIk("aria-modal",!0)("aria-labelledby",ve.config.ariaLabelledBy)("aria-describedby",ve.config.ariaDescribedby)},ngContentSelectors:ie,decls:3,vars:2,consts:[["role","document","focusTrap",""],[1,"modal-content"]],template:function(O,ve){1&O&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA()()),2&O&&e.Tol("modal-dialog"+(ve.config.class?" "+ve.config.class:""))},dependencies:[Ce],encapsulation:2})}}return be})(),ot=(()=>{class be{get isAnimated(){return this._isAnimated}set isAnimated(S){this._isAnimated=S}get isShown(){return this._isShown}set isShown(S){this._isShown=S,S?this.renderer.addClass(this.element.nativeElement,"show"):this.renderer.removeClass(this.element.nativeElement,"show")}constructor(S,O){this._isAnimated=!1,this._isShown=!1,this.element=S,this.renderer=O}ngOnInit(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,"fade"),T.cQ.reflow(this.element.nativeElement)),this.isShown=!0}static{this.\u0275fac=function(O){return new(O||be)(e.Y36(e.SBq),e.Y36(e.Qsj))}}static{this.\u0275cmp=e.Xpm({type:be,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(O,ve){},encapsulation:2})}}return be})(),Kt=1,mt=(()=>{class be{constructor(S,O,ve){this.clf=O,this.modalDefaultOption=ve,this.onShow=new e.vpe,this.onShown=new e.vpe,this.onHide=new e.vpe,this.onHidden=new e.vpe,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.loaders=[],this._focusEl=null,this._backdropLoader=this.clf.createLoader(),this._renderer=S.createRenderer(null,null),this.config=ve?Object.assign({},H,ve):H}show(S,O){this._focusEl=T.tj.activeElement,this.modalsCount++,this._createLoaders();const ve=O?.id||Kt++;return this.config=this.modalDefaultOption?Object.assign({},H,this.modalDefaultOption,O):Object.assign({},H,O),this.config.id=ve,this._showBackdrop(),this.lastDismissReason=void 0,this._showModal(S)}hide(S){(1===this.modalsCount||null==S)&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1&&null!=S?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(S),this.removeLoaders(S)},this.config.animated?150:0),this._focusEl&&this._focusEl.focus()}_showBackdrop(){const S=!0===this.config.backdrop||"static"===this.config.backdrop,O=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),S&&O&&(this._backdropLoader.attach(ot).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(S){const O=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)for(const Ot of this.config.providers)O.provide(Ot);const ve=new ye,ht=O.provide({provide:He,useValue:this.config}).provide({provide:ye,useValue:ve}).attach(je).to("body");return ve.hide=()=>this.hide(ve.id),ve.setClass=Ot=>{ht.instance&&(ht.instance.config.class=Ot)},ve.onHidden=new e.vpe,ve.onHide=new e.vpe,this.copyEvent(O.onBeforeHide,ve.onHide),this.copyEvent(O.onHidden,ve.onHidden),ht.show({content:S,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this,id:this.config.id}),ht.instance&&(ht.instance.level=this.getModalsCount(),ve.content=O.getInnerComponent(),ve.id=ht.instance.config?.id),ve}_hideModal(S){if(null!=S){const O=this.loaders.findIndex(ht=>ht.instance?.config.id===S),ve=this.loaders[O];ve&&ve.hide(S)}else this.loaders.forEach(O=>{O.instance&&O.hide(O.instance.config.id)})}getModalsCount(){return this.modalsCount}setDismissReason(S){this.lastDismissReason=S}removeBackdrop(){this._renderer.removeClass(T.tj.body,"modal-open"),this._renderer.setStyle(T.tj.body,"overflow-y",""),this._backdropLoader.hide(),this.backdropRef=void 0}checkScrollbar(){this.isBodyOverflowing=T.tj.body.clientWidth<window.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()}setScrollbar(){T.tj&&(this.originalBodyPadding=parseInt(window.getComputedStyle(T.tj.body).getPropertyValue("padding-right")||"0",10),this.isBodyOverflowing&&(T.tj.body.style.paddingRight=`${this.originalBodyPadding+this.scrollbarWidth}px`))}resetScrollbar(){T.tj.body.style.paddingRight=`${this.originalBodyPadding}px`}getScrollbarWidth(){const S=this._renderer.createElement("div");this._renderer.addClass(S,"modal-scrollbar-measure"),this._renderer.appendChild(T.tj.body,S);const O=S.offsetWidth-S.clientWidth;return this._renderer.removeChild(T.tj.body,S),O}_createLoaders(){const S=this.clf.createLoader();this.copyEvent(S.onBeforeShow,this.onShow),this.copyEvent(S.onShown,this.onShown),this.copyEvent(S.onBeforeHide,this.onHide),this.copyEvent(S.onHidden,this.onHidden),this.loaders.push(S)}removeLoaders(S){if(null!=S){const O=this.loaders.findIndex(ve=>ve.instance?.config.id===S);O>=0&&(this.loaders.splice(O,1),this.loaders.forEach((ve,ht)=>{ve.instance&&(ve.instance.level=ht+1)}))}else this.loaders.splice(0,this.loaders.length)}copyEvent(S,O){S.subscribe(ve=>{O.emit(this.lastDismissReason||ve)})}static{this.\u0275fac=function(O){return new(O||be)(e.LFG(e.FYo),e.LFG(Ye.oj),e.LFG(Je,8))}}static{this.\u0275prov=e.Yz7({token:be,factory:be.\u0275fac,providedIn:"platform"})}}return be})();Re.forRoot();let pn=(()=>{class be{static forRoot(){return{ngModule:be,providers:[mt,Ye.oj,Z.sA]}}static forChild(){return{ngModule:be,providers:[mt,Ye.oj,Z.sA]}}static{this.\u0275fac=function(O){return new(O||be)}}static{this.\u0275mod=e.oAB({type:be})}static{this.\u0275inj=e.cJS({imports:[Re]})}}return be})()},641:(We,z,m)=>{m.d(z,{UU:()=>_e,k5:()=>W});var e=m(5879),T=m(1835),j=m(3161),Y=m(2066),x=m(6814),V=m(20);function b(A,ce){if(1&A&&(e.TgZ(0,"h3",3),e._uU(1),e.qZA()),2&A){const me=e.oxw();e.xp6(1),e.Oqu(me.title)}}const B=["*"];let k=(()=>{class A{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="click",this.outsideClick=!1,this.delay=0}static{this.\u0275fac=function(pe){return new(pe||A)}}static{this.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})(),E=(()=>{class A{set placement(me){this._placement=this._bsVersions.isBs5?Y.Bz[me]:me}get _bsVersions(){return(0,j.Wl)()}constructor(me){this._placement="top",Object.assign(this,me)}checkMarginNecessity(){return(0,Y.lx)(this._placement)}static{this.\u0275fac=function(pe){return new(pe||A)(e.Y36(k))}}static{this.\u0275cmp=e.Xpm({type:A,selectors:[["popover-container"]],hostAttrs:["role","tooltip",2,"display","block","position","absolute"],hostVars:7,hostBindings:function(pe,re){2&pe&&(e.uIk("id",re.popoverId),e.Tol("popover in popover-"+re._placement+" bs-popover-"+re._placement+" "+re._placement+" "+re.containerClass+" "+re.checkMarginNecessity()),e.ekj("show",!re._bsVersions.isBs3)("bs3",re._bsVersions.isBs3))},inputs:{placement:"placement",title:"title"},ngContentSelectors:B,decls:4,vars:1,consts:[[1,"popover-arrow","arrow"],["class","popover-title popover-header",4,"ngIf"],[1,"popover-content","popover-body"],[1,"popover-title","popover-header"]],template:function(pe,re){1&pe&&(e.F$t(),e._UZ(0,"div",0),e.YNc(1,b,2,1,"h3",1),e.TgZ(2,"div",2),e.Hsn(3),e.qZA()),2&pe&&(e.xp6(1),e.Q6J("ngIf",re.title))},dependencies:[x.O5],styles:[".popover.bottom[_nghost-%COMP%] > .arrow[_ngcontent-%COMP%]{margin-left:-4px}[_nghost-%COMP%]   .popover-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}}return A})(),L=0,W=(()=>{class A{get isOpen(){return this._popover.isShown}set isOpen(me){me?this.show():this.hide()}constructor(me,pe,re,Ge,we,ue){this._elementRef=pe,this._renderer=re,this._positionService=ue,this.popoverId=L++,this.adaptivePosition=!0,this.placement="top",this.outsideClick=!1,this.triggers="click",this.containerClass="",this.delay=0,this._isInited=!1,this._popover=we.createLoader(pe,Ge,re).provide({provide:k,useValue:me}),Object.assign(this,me),this.onShown=this._popover.onShown,this.onHidden=this._popover.onHidden,typeof window<"u"&&pe.nativeElement.addEventListener("click",function(){try{pe.nativeElement.focus()}catch{return}})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`ngx-popover-${this.popoverId}`:void 0,this._ariaDescribedby?(this._popover.instance&&(this._popover.instance.popoverId=this._ariaDescribedby),this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby)):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}show(){if(this._popover.isShown||!this.popover||this._delayTimeoutId)return;this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}});const me=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._popover.attach(E).to(this.container).position({attachment:this.placement}).show({content:this.popover,context:this.popoverContext,placement:this.placement,title:this.popoverTitle,containerClass:this.containerClass}),!this.adaptivePosition&&this._popover._componentRef&&(this._positionService.calcPosition(),this._positionService.deletePositionElement(this._popover._componentRef.location)),this.isOpen=!0,this.setAriaDescribedBy()},pe=()=>{this._popoverCancelShowFn&&this._popoverCancelShowFn()};if(this.delay){const re=(0,V.H)(this.delay).subscribe(()=>{me(),pe()});this.triggers&&(0,j.AL)(this.triggers).forEach(Ge=>{Ge.close&&(this._popoverCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,Ge.close,()=>{re.unsubscribe(),pe()}))})}else me()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this.isOpen&&(this._popover.hide(),this.setAriaDescribedBy(),this.isOpen=!1)}toggle(){if(this.isOpen)return this.hide();this.show()}ngOnInit(){this._isInited||(this._isInited=!0,this._popover.listen({triggers:this.triggers,outsideClick:this.outsideClick,show:()=>this.show(),hide:()=>this.hide()}))}ngOnDestroy(){this._popover.dispose()}static{this.\u0275fac=function(pe){return new(pe||A)(e.Y36(k),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(T.oj),e.Y36(Y.sA))}}static{this.\u0275dir=e.lG2({type:A,selectors:[["","popover",""]],inputs:{adaptivePosition:"adaptivePosition",boundariesElement:"boundariesElement",popover:"popover",popoverContext:"popoverContext",popoverTitle:"popoverTitle",placement:"placement",outsideClick:"outsideClick",triggers:"triggers",container:"container",containerClass:"containerClass",isOpen:"isOpen",delay:"delay"},outputs:{onShown:"onShown",onHidden:"onHidden"},exportAs:["bs-popover"]})}}return A})(),_e=(()=>{class A{static forRoot(){return{ngModule:A,providers:[T.oj,Y.sA]}}static{this.\u0275fac=function(pe){return new(pe||A)}}static{this.\u0275mod=e.oAB({type:A})}static{this.\u0275inj=e.cJS({imports:[x.ez]})}}return A})()},2066:(We,z,m)=>{m.d(z,{Bz:()=>Le,sA:()=>gt,lx:()=>gn});var e=m(3161),T=m(5879),j=m(6814),Y=m(8645),x=m(3019),V=m(4829),b=m(5592),B=m(1631),k=m(4266),E=m(4674),L=m(7400);const W=["addListener","removeListener"],_e=["addEventListener","removeEventListener"],A=["on","off"];function ce(y,U,J,le){if((0,E.m)(J)&&(le=J,J=void 0),le)return ce(y,U,J).pipe((0,L.Z)(le));const[Ae,oe]=function Ge(y){return(0,E.m)(y.addEventListener)&&(0,E.m)(y.removeEventListener)}(y)?_e.map(Be=>ke=>y[Be](U,ke,J)):function pe(y){return(0,E.m)(y.addListener)&&(0,E.m)(y.removeListener)}(y)?W.map(me(y,U)):function re(y){return(0,E.m)(y.on)&&(0,E.m)(y.off)}(y)?A.map(me(y,U)):[];if(!Ae&&(0,k.z)(y))return(0,B.z)(Be=>ce(Be,U,J))((0,V.Xf)(y));if(!Ae)throw new TypeError("Invalid event target");return new b.y(Be=>{const ke=(...De)=>Be.next(1<De.length?De:De[0]);return Ae(ke),()=>oe(ke)})}function me(y,U){return J=>le=>y[J](U,le)}var we=m(2096),ue=m(927),G=function(y){return y.top="top",y.bottom="bottom",y.left="left",y.right="right",y.auto="auto",y.end="right",y.start="left",y["top left"]="top left",y["top right"]="top right",y["right top"]="right top",y["right bottom"]="right bottom",y["bottom right"]="bottom right",y["bottom left"]="bottom left",y["left bottom"]="left bottom",y["left top"]="left top",y["top start"]="top left",y["top end"]="top right",y["end top"]="right top",y["end bottom"]="right bottom",y["bottom end"]="bottom right",y["bottom start"]="bottom left",y["start bottom"]="start bottom",y["start top"]="left top",y}(G||{}),Le=function(y){return y.top="top",y.bottom="bottom",y.left="start",y.right="end",y.auto="auto",y.end="end",y.start="start",y["top left"]="top start",y["top right"]="top end",y["right top"]="end top",y["right bottom"]="end bottom",y["bottom right"]="bottom end",y["bottom left"]="bottom start",y["left bottom"]="start bottom",y["left top"]="start top",y["top start"]="top start",y["top end"]="top end",y["end top"]="end top",y["end bottom"]="end bottom",y["bottom end"]="bottom end",y["bottom start"]="bottom start",y["start bottom"]="start bottom",y["start top"]="start top",y}(Le||{});function Se(y,U){if(1!==y.nodeType)return[];const le=y.ownerDocument.defaultView?.getComputedStyle(y,null);return U?le&&le[U]:le}function Ce(y){if(!y)return document.documentElement;let le,J=y?.offsetParent;for(;null===J&&y.nextElementSibling&&le!==y.nextElementSibling;)le=y.nextElementSibling,J=le.offsetParent;const Ae=J&&J.nodeName;return Ae&&"BODY"!==Ae&&"HTML"!==Ae?J&&-1!==["TH","TD","TABLE"].indexOf(J.nodeName)&&"static"===Se(J,"position")?Ce(J):J:le?le.ownerDocument.documentElement:document.documentElement}function Ye(y){return null!==y.parentNode?Ye(y.parentNode):y}function Z(y,U){if(!(y&&y.nodeType&&U&&U.nodeType))return document.documentElement;const J=y.compareDocumentPosition(U)&Node.DOCUMENT_POSITION_FOLLOWING,le=J?y:U,Ae=J?U:y,oe=document.createRange();oe.setStart(le,0),oe.setEnd(Ae,0);const Be=oe.commonAncestorContainer;if(y!==Be&&U!==Be||le.contains(Ae))return function Re(y){const{nodeName:U}=y;return"BODY"!==U&&("HTML"===U||Ce(y.firstElementChild)===y)}(Be)?Be:Ce(Be);const ke=Ye(y);return ke.host?Z(ke.host,U):Z(y,Ye(U).host)}function ie(y){if(!y||!y.parentElement)return document.documentElement;let U=y.parentElement;for(;U?.parentElement&&"none"===Se(U,"transform");)U=U.parentElement;return U||document.documentElement}function ye(y,U){const J="x"===U?"Left":"Top",le="Left"===J?"Right":"Bottom";return parseFloat(y[`border${J}Width`])+parseFloat(y[`border${le}Width`])}function Oe(y,U,J,le){return Math.max(U[`offset${y}`],U[`scroll${y}`],J[`client${y}`],J[`offset${y}`],J[`scroll${y}`],0)}function He(y){const U=y.body,J=y.documentElement;return{height:Oe("Height",U,J),width:Oe("Width",U,J)}}function H(y){return{...y,right:(y.left||0)+y.width,bottom:(y.top||0)+y.height}}function D(y){return"number"==typeof y||"[object Number]"===Object.prototype.toString.call(y)}function N(y){const U=y.getBoundingClientRect();if(!(U&&D(U.top)&&D(U.left)&&D(U.bottom)&&D(U.right)))return U;const J={left:U.left,top:U.top,width:U.right-U.left,height:U.bottom-U.top},le="HTML"===y.nodeName?He(y.ownerDocument):void 0,Ae=le?.width||y.clientWidth||D(U.right)&&D(J.left)&&U.right-J.left||0,oe=le?.height||y.clientHeight||D(U.bottom)&&D(J.top)&&U.bottom-J.top||0;let Be=y.offsetWidth-Ae,ke=y.offsetHeight-oe;if(Be||ke){const De=Se(y);Be-=ye(De,"x"),ke-=ye(De,"y"),J.width-=Be,J.height-=ke}return H(J)}function R(y){return"HTML"===y.nodeName?y:y.parentNode||y.host}function $(y){if(!y)return document.body;switch(y.nodeName){case"HTML":case"BODY":return y.ownerDocument.body;case"#document":return y.body}const{overflow:U,overflowX:J,overflowY:le}=Se(y);return/(auto|scroll|overlay)/.test(String(U)+String(le)+String(J))?y:$(R(y))}function je(y,U,J=!1){const le="HTML"===U.nodeName,Ae=N(y),oe=N(U),ke=($(y),Se(U)),De=parseFloat(ke.borderTopWidth),Ke=parseFloat(ke.borderLeftWidth);J&&le&&(oe.top=Math.max(oe.top??0,0),oe.left=Math.max(oe.left??0,0));const Ie=H({top:(Ae.top??0)-(oe.top??0)-De,left:(Ae.left??0)-(oe.left??0)-Ke,width:Ae.width,height:Ae.height});if(Ie.marginTop=0,Ie.marginLeft=0,le){const yt=parseFloat(ke.marginTop),_t=parseFloat(ke.marginLeft);D(Ie.top)&&(Ie.top-=De-yt),D(Ie.bottom)&&(Ie.bottom-=De-yt),D(Ie.left)&&(Ie.left-=Ke-_t),D(Ie.right)&&(Ie.right-=Ke-_t),Ie.marginTop=yt,Ie.marginLeft=_t}return Ie}function ot(y,U="top"){const J="top"===U?"scrollTop":"scrollLeft",le=y.nodeName;return"BODY"===le||"HTML"===le?(y.ownerDocument.scrollingElement||y.ownerDocument.documentElement)[J]:y[J]}function kt(y){const U=y.nodeName;return"BODY"!==U&&"HTML"!==U&&("fixed"===Se(y,"position")||kt(R(y)))}function xt(y,U,J=0,le,Ae=!1){let oe={top:0,left:0};const Be=Ae?ie(y):Z(y,U);if("viewport"===le)oe=function pt(y,U=!1){const J=y.ownerDocument.documentElement,le=je(y,J),Ae=Math.max(J.clientWidth,window.innerWidth||0),oe=Math.max(J.clientHeight,window.innerHeight||0),Be=U?0:ot(J),ke=U?0:ot(J,"left");return H({top:Be-Number(le?.top)+Number(le?.marginTop),left:ke-Number(le?.left)+Number(le?.marginLeft),width:Ae,height:oe})}(Be,Ae);else{let ke;"scrollParent"===le?(ke=$(R(U)),"BODY"===ke.nodeName&&(ke=y.ownerDocument.documentElement)):ke="window"===le?y.ownerDocument.documentElement:le;const De=je(ke,Be,Ae);if(De&&"HTML"===ke.nodeName&&!kt(Be)){const{height:Ke,width:Ie}=He(y.ownerDocument);D(oe.top)&&D(De.top)&&D(De.marginTop)&&(oe.top+=De.top-De.marginTop),D(oe.top)&&(oe.bottom=Number(Ke)+Number(De.top)),D(oe.left)&&D(De.left)&&D(De.marginLeft)&&(oe.left+=De.left-De.marginLeft),D(oe.top)&&(oe.right=Number(Ie)+Number(De.left))}else De&&(oe=De)}return D(oe.left)&&(oe.left+=J),D(oe.top)&&(oe.top+=J),D(oe.right)&&(oe.right-=J),D(oe.bottom)&&(oe.bottom-=J),oe}function Kt({width:y,height:U}){return y*U}function mt(y,U,J,le,Ae=["top","bottom","right","left"],oe="viewport",Be=0){if(-1===y.indexOf("auto"))return y;const ke=xt(J,le,Be,oe),De={top:{width:ke?.width??0,height:(U?.top??0)-(ke?.top??0)},right:{width:(ke?.right??0)-(U?.right??0),height:ke?.height??0},bottom:{width:ke?.width??0,height:(ke?.bottom??0)-(U?.bottom??0)},left:{width:(U.left??0)-(ke?.left??0),height:ke?.height??0}},Ke=Object.keys(De).map(Ze=>({position:Ze,...De[Ze],area:Kt(De[Ze])})).sort((Ze,ct)=>ct.area-Ze.area);let Ie=Ke.filter(({width:Ze,height:ct})=>Ze>=J.clientWidth&&ct>=J.clientHeight);Ie=Ie.filter(({position:Ze})=>Ae.some(ct=>ct===Ze));const yt=Ie.length>0?Ie[0].position:Ke[0].position,_t=y.split(" ")[1];return J.className=J.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${(0,e.Wl)().isBs5?Le[yt]:yt}`),yt+(_t?`-${_t}`:"")}const te=(y,U=0)=>y?parseFloat(y):U;function S(y){const J=y.ownerDocument.defaultView?.getComputedStyle(y),le=te(J?.marginTop)+te(J?.marginBottom),Ae=te(J?.marginLeft)+te(J?.marginRight);return{width:Number(y.offsetWidth)+Ae,height:Number(y.offsetHeight)+le}}function O(y,U,J){return je(U,J?ie(y):Z(y,U),J)}function ve(y,U,J){const le=J.split(" ")[0],Ae=S(y),oe={width:Ae.width,height:Ae.height},Be=-1!==["right","left"].indexOf(le),ke=Be?"top":"left",De=Be?"left":"top",Ke=Be?"height":"width",Ie=Be?"width":"height";return oe[ke]=(U[ke]??0)+U[Ke]/2-Ae[Ke]/2,oe[De]=le===De?(U[De]??0)-Ae[Ie]:U[function pn(y){const U={left:"right",right:"left",bottom:"top",top:"bottom"};return y.replace(/left|right|bottom|top/g,J=>U[J])}(De)]??0,oe}function ht(y,U){return!!y.modifiers[U]?.enabled}const Ot={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 Ut(y,U){return!!(0,e.Wl)().isBs5&&Ot[U].includes(y)}function gn(y){return(0,e.Wl)().isBs5?Ut(y,"end")?"ms-2":Ut(y,"start")?"me-2":Ut(y,"top")?"mb-2":Ut(y,"bottom")?"mt-2":"":""}function F(y,U,J){!y||!U||Object.keys(U).forEach(le=>{let Ae="";-1!==["width","height","top","right","bottom","left"].indexOf(le)&&function Je(y){return""!==y&&!isNaN(parseFloat(y))&&isFinite(Number(y))}(U[le])&&(Ae="px"),J?J.setStyle(y,le,`${String(U[le])}${Ae}`):y.style[le]=String(U[le])+Ae})}function ee(y){let U=y.offsets.target;const J=y.instance.target.querySelector(".arrow");if(!J)return y;const le=-1!==["left","right"].indexOf(y.placement.split(" ")[0]),Ae=le?"height":"width",oe=le?"Top":"Left",Be=oe.toLowerCase(),ke=le?"left":"top",De=le?"bottom":"right",Ke=S(J)[Ae],Ie=y.placement.split(" ")[1];(y.offsets.host[De]??0)-Ke<(U[Be]??0)&&(U[Be]-=(U[Be]??0)-((y.offsets.host[De]??0)-Ke)),Number(y.offsets.host[Be])+Number(Ke)>(U[De]??0)&&(U[Be]+=Number(y.offsets.host[Be])+Number(Ke)-Number(U[De])),U=H(U);const yt=Se(y.instance.target),_t=parseFloat(yt[`margin${oe}`])||0,Ze=parseFloat(yt[`border${oe}Width`])||0;let ct;if(Ie){const Dt=parseFloat(yt.borderRadius)||0,Ue=Number(_t+Ze+Dt);ct=Be===Ie?Number(y.offsets.host[Be])+Ue:Number(y.offsets.host[Be])+Number(y.offsets.host[Ae]-Ue)}else ct=Number(y.offsets.host[Be])+Number(y.offsets.host[Ae]/2-Ke/2);let Xe=ct-(U[Be]??0)-_t-Ze;return Xe=Math.max(Math.min(U[Ae]-(Ke+5),Xe),0),y.offsets.arrow={[Be]:Math.round(Xe),[ke]:""},y.instance.arrow=J,y}function ge(y){if(y.offsets.target=H(y.offsets.target),!ht(y.options,"flip"))return y.offsets.target={...y.offsets.target,...ve(y.instance.target,y.offsets.host,y.placement)},y;const U=xt(y.instance.target,y.instance.host,0,"viewport",!1);let J=y.placement.split(" ")[0],le=y.placement.split(" ")[1]||"";const ke=mt("auto",y.offsets.host,y.instance.target,y.instance.host,y.options.allowedPositions),De=[J,ke];return De.forEach((Ke,Ie)=>{if(J!==Ke||De.length===Ie+1)return;J=y.placement.split(" ")[0];const yt="left"===J&&Math.floor(y.offsets.target.right??0)>Math.floor(y.offsets.host.left??0)||"right"===J&&Math.floor(y.offsets.target.left??0)<Math.floor(y.offsets.host.right??0)||"top"===J&&Math.floor(y.offsets.target.bottom??0)>Math.floor(y.offsets.host.top??0)||"bottom"===J&&Math.floor(y.offsets.target.top??0)<Math.floor(y.offsets.host.bottom??0),_t=Math.floor(y.offsets.target.left??0)<Math.floor(U.left??0),Ze=Math.floor(y.offsets.target.right??0)>Math.floor(U.right??0),ct=Math.floor(y.offsets.target.top??0)<Math.floor(U.top??0),Xe=Math.floor(y.offsets.target.bottom??0)>Math.floor(U.bottom??0),Dt="left"===J&&_t||"right"===J&&Ze||"top"===J&&ct||"bottom"===J&&Xe,Ue=-1!==["top","bottom"].indexOf(J),Zt=Ue&&"left"===le&&_t||Ue&&"right"===le&&Ze||!Ue&&"left"===le&&ct||!Ue&&"right"===le&&Xe;(yt||Dt||Zt)&&((yt||Dt)&&(J=De[Ie+1]),Zt&&(le=function be(y){return"right"===y?"left":"left"===y?"right":y}(le)),y.placement=J+(le?` ${le}`:""),y.offsets.target={...y.offsets.target,...ve(y.instance.target,y.offsets.host,y.placement)})}),y}function Te(y){if(!ht(y.options,"preventOverflow"))return y;const U="transform",J=y.instance.target.style,{top:le,left:Ae,[U]:oe}=J;J.top="",J.left="",J[U]="";const Be=xt(y.instance.target,y.instance.host,0,y.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);J.top=le,J.left=Ae,J[U]=oe;const De={primary(Ke){let Ie=y.offsets.target[Ke];return(y.offsets.target[Ke]??0)<(Be[Ke]??0)&&(Ie=Math.max(y.offsets.target[Ke]??0,Be[Ke]??0)),{[Ke]:Ie}},secondary(Ke){const Ie="right"===Ke,yt=Ie?"left":"top";let Ze=y.offsets.target[yt];return(y.offsets.target[Ke]??0)>(Be[Ke]??0)&&(Ze=Math.min(y.offsets.target[yt]??0,(Be[Ke]??0)-y.offsets.target[Ie?"width":"height"])),{[yt]:Ze}}};return["left","right","top","bottom"].forEach(Ke=>{const Ie=-1!==["left","top","start"].indexOf(Ke)?De.primary:De.secondary;y.offsets.target={...y.offsets.target,...Ie(Ke)}}),y}function Ne(y){const U=y.placement,J=U.split(" ")[0],le=U.split(" ")[1];if(le){const{host:Ae,target:oe}=y.offsets,Be=-1!==["bottom","top"].indexOf(J),ke=Be?"left":"top",De=Be?"width":"height",Ke={start:{[ke]:Ae[ke]},end:{[ke]:(Ae[ke]??0)+Ae[De]-oe[De]}};y.offsets.target={...oe,[ke]:ke===le?Ke.start[ke]:Ke.end[ke]}}return y}const qe=new class tt{position(U,J){return this.offset(U,J)}offset(U,J){return O(J,U)}positionElements(U,J,le,Ae,oe){const Be=[ge,Ne,Te,ee],De=function q(y,U,J,le){if(!y||!U)return;const Ae=O(y,U);!J.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!J.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(J="auto");const oe=!!J.match(/auto/g);let Be=J.match(/auto\s(left|right|top|bottom|start|end)/)?J.split(" ")[1]||"auto":J;const ke=Be.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return ke&&(Be=ke[1]+(ke[2]?` ${ke[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(Be)&&(Be="auto"),Be=mt(Be,Ae,y,U,le?le.allowedPositions:void 0),{options:le||{modifiers:{}},instance:{target:y,host:U,arrow:void 0},offsets:{target:ve(y,Ae,Be),host:Ae,arrow:void 0},positionFixed:!1,placement:Be,placementAuto:oe}}(J,U,G[le],oe);if(De)return Be.reduce((Ke,Ie)=>Ie(Ke),De)}};let gt=(()=>{class y{constructor(J,le,Ae){this.update$$=new Y.x,this.positionElements=new Map,this.isDisabled=!1,(0,j.NF)(Ae)&&J.runOutsideAngular(()=>{this.triggerEvent$=(0,x.T)(ce(window,"scroll",{passive:!0}),ce(window,"resize",{passive:!0}),(0,we.of)(0,ue.Z),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(oe=>{!function ut(y,U,J,le,Ae,oe){const Be=qe.positionElements(y,U,J,le,Ae);if(!Be)return;const ke=function Pt(y){return{width:y.offsets.target.width,height:y.offsets.target.height,left:Math.floor(y.offsets.target.left??0),top:Math.round(y.offsets.target.top??0),bottom:Math.round(y.offsets.target.bottom??0),right:Math.floor(y.offsets.target.right??0)}}(Be);F(U,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${ke.left}px, ${ke.top}px, 0px)`},oe),Be.instance.arrow&&F(Be.instance.arrow,Be.offsets.arrow,oe),function Yt(y,U){const J=y.instance.target;let le=J.className;const Ae=(0,e.Wl)().isBs5?Le[y.placement]:y.placement;y.placementAuto&&(le=le.replace(/bs-popover-auto/g,`bs-popover-${Ae}`),le=le.replace(/ms-2|me-2|mb-2|mt-2/g,""),le=le.replace(/bs-tooltip-auto/g,`bs-tooltip-${Ae}`),le=le.replace(/\sauto/g,` ${Ae}`),-1!==le.indexOf("popover")&&(le=le+" "+gn(Ae)),-1!==le.indexOf("popover")&&-1===le.indexOf("popover-auto")&&(le+=" popover-auto"),-1!==le.indexOf("tooltip")&&-1===le.indexOf("tooltip-auto")&&(le+=" tooltip-auto")),le=le.replace(/left|right|top|bottom|end|start/g,`${Ae.split(" ")[0]}`),U?U.setAttribute(J,"class",le):J.className=le}(Be,oe)}(rt(oe.target),rt(oe.element),oe.attachment,oe.appendToBody,this.options,le.createRenderer(null,null))})})})}position(J){this.addPositionElement(J)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(J){this.positionElements.set(rt(J.element),J)}calcPosition(){this.update$$.next(null)}deletePositionElement(J){this.positionElements.delete(rt(J))}setOptions(J){this.options=J}static{this.\u0275fac=function(le){return new(le||y)(T.LFG(T.R0b),T.LFG(T.FYo),T.LFG(T.Lbi))}}static{this.\u0275prov=T.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})();function rt(y){return"string"==typeof y?document.querySelector(y):y instanceof T.SBq?y.nativeElement:y??null}},2268:(We,z,m)=>{m.d(z,{i9:()=>W,z8:()=>_e});var e=m(5879),T=m(3161),j=m(2066),Y=m(655),x=m(1835),V=m(20),b=m(6814);const B=["*"];let k=(()=>{class A{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static{this.\u0275fac=function(pe){return new(pe||A)}}static{this.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})(),E=(()=>{class A{get _bsVersions(){return(0,T.Wl)()}constructor(me){Object.assign(this,me)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=j.Bz[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{this.\u0275fac=function(pe){return new(pe||A)(e.Y36(k))}}static{this.\u0275cmp=e.Xpm({type:A,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(pe,re){2&pe&&(e.uIk("id",re.id),e.Tol("show tooltip in tooltip-"+re.placement+" bs-tooltip-"+re.placement+" "+re.placement+" "+re.containerClass))},ngContentSelectors:B,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(pe,re){1&pe&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%]   .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}}return A})(),L=0,W=(()=>{class A{get isOpen(){return this._tooltip.isShown}set isOpen(me){me?this.show():this.hide()}set htmlContent(me){(0,T.O4)("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=me}set _placement(me){(0,T.O4)("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=me}set _isOpen(me){(0,T.O4)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=me}get _isOpen(){return(0,T.O4)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(me){(0,T.O4)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!me}get _enable(){return(0,T.O4)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(me){(0,T.O4)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=me?"body":this.container}get _appendToBody(){return(0,T.O4)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(me){(0,T.O4)("tooltipClass deprecated")}set _tooltipContext(me){(0,T.O4)("tooltipContext deprecated")}set _tooltipPopupDelay(me){(0,T.O4)("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=me}get _tooltipTrigger(){return(0,T.O4)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(me){(0,T.O4)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(me||"").toString()}constructor(me,pe,re,Ge,we,ue){this._elementRef=Ge,this._renderer=we,this._positionService=ue,this.tooltipId=L++,this.adaptivePosition=!0,this.tooltipChange=new e.vpe,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new e.vpe,this._tooltip=pe.createLoader(this._elementRef,me,this._renderer).provide({provide:k,useValue:re}),Object.assign(this,re),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(me=>{me||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 me=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(E).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},pe=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=(0,V.H)(this.delay).subscribe(()=>{me(),pe()}),this.triggers&&(0,T.AL)(this.triggers).forEach(re=>{re.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,re.close,()=>{this._delaySubscription?.unsubscribe(),pe()}))})):me()}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{this.\u0275fac=function(pe){return new(pe||A)(e.Y36(e.s_b),e.Y36(x.oj),e.Y36(k),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(j.sA))}}static{this.\u0275dir=e.lG2({type:A,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(0,Y.gn)([(0,T.GU)(),(0,Y.w6)("design:type",Object)],A.prototype,"tooltip",void 0),A})(),_e=(()=>{class A{static forRoot(){return{ngModule:A,providers:[x.oj,j.sA]}}static{this.\u0275fac=function(pe){return new(pe||A)}}static{this.\u0275mod=e.oAB({type:A})}static{this.\u0275inj=e.cJS({imports:[b.ez]})}}return A})()},3161:(We,z,m)=>{m.d(z,{AL:()=>Y,C:()=>B,Dc:()=>Se,GU:()=>ye,O4:()=>Je,Rg:()=>b,Wl:()=>Ye,cQ:()=>Oe,tj:()=>E,wo:()=>V});var e=m(5879);class T{constructor(N,R){this.open=N,this.close=R||N}isManual(){return"manual"===this.open||"manual"===this.close}}const j={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function Y(D,N=j){const R=(D||"").trim();if(0===R.length)return[];const $=R.split(/\s+/).map(ot=>ot.split(":")).map(ot=>{const pt=N[ot[0]]||ot;return new T(pt[0],pt[1])}),je=$.filter(ot=>ot.isManual());if(je.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===je.length&&$.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return $}function V(D,N){const R=Y(N.triggers),$=N.target;if(1===R.length&&R[0].isManual())return Function.prototype;const je=[],ot=[],pt=()=>{ot.forEach(kt=>je.push(kt())),ot.length=0};return R.forEach(kt=>{const xt=kt.open===kt.close,Kt=xt?N.toggle:N.show;if(!xt&&kt.close&&N.hide){const mt=kt.close,Pt=N.hide;ot.push(()=>D.listen($,mt,Pt))}Kt&&je.push(D.listen($,kt.open,()=>Kt(pt)))}),()=>{je.forEach(kt=>kt())}}function b(D,N){return N.outsideClick?D.listen("document","click",R=>{N.target&&N.target.contains(R.target)||N.targets&&N.targets.some($=>$.contains(R.target))||N.hide&&N.hide()}):Function.prototype}function B(D,N){return N.outsideEsc?D.listen("document","keyup.esc",R=>{N.target&&N.target.contains(R.target)||N.targets&&N.targets.some($=>$.contains(R.target))||N.hide&&N.hide()}):Function.prototype}const k=typeof window<"u"&&window||{},E=k.document;var ue=function(D){return D.isBs4="bs4",D.isBs5="bs5",D}(ue||{});let G;function Le(){const D=k.document.createElement("span");D.innerText="testing bs version",D.classList.add("d-none"),D.classList.add("pl-1"),k.document.head.appendChild(D);const N=k.getComputedStyle(D).paddingLeft;return N&&parseFloat(N)?(k.document.head.removeChild(D),"bs4"):(k.document.head.removeChild(D),"bs5")}function Se(D){G=D}function Ye(){return{isBs4:(G||(G=Le()),"bs4"===G),isBs5:(G||(G=Le()),"bs5"===G)}}function ye(){const D="Change";return function(R,$){const je=` __${$}Value`;Object.defineProperty(R,$,{get(){return this[je]},set(ot){const pt=this[je];this[je]=ot,pt!==ot&&this[$+D]&&this[$+D].emit(ot)}})}}class Oe{static reflow(N){}static getStyles(N){let R=N.ownerDocument.defaultView;return(!R||!R.opener)&&(R=k),R.getComputedStyle(N)}static stackOverflowConfig(){const N=function Z(){const D=Ye(),N=Object.keys(D).find(R=>D[R]);return ue[N]}();return{crossorigin:"anonymous",integrity:"bs5"===N?"sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65":"sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2",cdnLink:"bs5"===N?"https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css":"https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"}}}const He={},H=typeof console>"u"||!("warn"in console);function Je(D){!(0,e.X6Q)()||H||D in He||(He[D]=!0,console.warn(D))}},8672:(We,z,m)=>{m.d(z,{Ro:()=>G,ef:()=>Le,t2:()=>Ge});var e=m(5879),T=m(5619),j=m(8645),Y=m(2181),x=m(9773),V=m(6825),b=m(6593),B=m(6814);const k=["overlay"];function E(Ce,Re){1&Ce&&e._UZ(0,"div")}function L(Ce,Re){if(1&Ce&&(e.TgZ(0,"div"),e.YNc(1,E,1,0,"div",6),e.qZA()),2&Ce){const Ye=e.oxw(2);e.Tol(Ye.spinner.class),e.Udp("color",Ye.spinner.color),e.xp6(1),e.Q6J("ngForOf",Ye.spinner.divArray)}}function W(Ce,Re){if(1&Ce&&(e._UZ(0,"div",7),e.ALo(1,"safeHtml")),2&Ce){const Ye=e.oxw(2);e.Q6J("innerHTML",e.lcZ(1,1,Ye.template),e.oJD)}}function _e(Ce,Re){if(1&Ce&&(e.TgZ(0,"div",1,2),e.YNc(2,L,2,5,"div",3),e.YNc(3,W,2,3,"div",4),e.TgZ(4,"div",5),e.Hsn(5),e.qZA()()),2&Ce){const Ye=e.oxw();e.Udp("background-color",Ye.spinner.bdColor)("z-index",Ye.spinner.zIndex)("position",Ye.spinner.fullScreen?"fixed":"absolute"),e.Q6J("@.disabled",Ye.disableAnimation)("@fadeIn","in"),e.xp6(2),e.Q6J("ngIf",!Ye.template),e.xp6(1),e.Q6J("ngIf",Ye.template),e.xp6(1),e.Udp("z-index",Ye.spinner.zIndex)}}const A=["*"],ce={"ball-8bits":16,"ball-atom":4,"ball-beat":3,"ball-circus":5,"ball-climbing-dot":4,"ball-clip-rotate":1,"ball-clip-rotate-multiple":2,"ball-clip-rotate-pulse":2,"ball-elastic-dots":5,"ball-fall":3,"ball-fussion":4,"ball-grid-beat":9,"ball-grid-pulse":9,"ball-newton-cradle":4,"ball-pulse":3,"ball-pulse-rise":5,"ball-pulse-sync":3,"ball-rotate":1,"ball-running-dots":5,"ball-scale":1,"ball-scale-multiple":3,"ball-scale-pulse":2,"ball-scale-ripple":1,"ball-scale-ripple-multiple":3,"ball-spin":8,"ball-spin-clockwise":8,"ball-spin-clockwise-fade":8,"ball-spin-clockwise-fade-rotating":8,"ball-spin-fade":8,"ball-spin-fade-rotating":8,"ball-spin-rotate":2,"ball-square-clockwise-spin":8,"ball-square-spin":8,"ball-triangle-path":3,"ball-zig-zag":2,"ball-zig-zag-deflect":2,cog:1,"cube-transition":2,fire:3,"line-scale":5,"line-scale-party":5,"line-scale-pulse-out":5,"line-scale-pulse-out-rapid":5,"line-spin-clockwise-fade":8,"line-spin-clockwise-fade-rotating":8,"line-spin-fade":8,"line-spin-fade-rotating":8,pacman:6,"square-jelly-box":2,"square-loader":1,"square-spin":1,timer:1,"triangle-skew-spin":1},pe="primary";class re{constructor(Re){Object.assign(this,Re)}static create(Re){return!Re?.template&&!Re?.type&&console.warn('[ngx-spinner]: Property "type" is missed. Please, provide animation type to <ngx-spinner> component\n        and ensure css is added to angular.json file'),new re(Re)}}let Ge=(()=>{class Ce{constructor(){this.spinnerObservable=new T.X(null)}getSpinner(Ye){return this.spinnerObservable.asObservable().pipe((0,Y.h)(Z=>Z&&Z.name===Ye))}show(Ye=pe,Z){return new Promise((ie,ye)=>{setTimeout(()=>{Z&&Object.keys(Z).length?(Z.name=Ye,this.spinnerObservable.next(new re({...Z,show:!0})),ie(!0)):(this.spinnerObservable.next(new re({name:Ye,show:!0})),ie(!0))},10)})}hide(Ye=pe,Z=10){return new Promise((ie,ye)=>{setTimeout(()=>{this.spinnerObservable.next(new re({name:Ye,show:!1})),ie(!0)},Z)})}static{this.\u0275fac=function(Z){return new(Z||Ce)}}static{this.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}}return Ce})();const we=new e.OlP("NGX_SPINNER_CONFIG");let ue=(()=>{class Ce{constructor(Ye){this._sanitizer=Ye}transform(Ye){if(Ye)return this._sanitizer.bypassSecurityTrustHtml(Ye)}static{this.\u0275fac=function(Z){return new(Z||Ce)(e.Y36(b.H7,16))}}static{this.\u0275pipe=e.Yjl({name:"safeHtml",type:Ce,pure:!0,standalone:!0})}}return Ce})(),G=(()=>{class Ce{constructor(Ye,Z,ie,ye){this.spinnerService=Ye,this.changeDetector=Z,this.elementRef=ie,this.globalConfig=ye,this.disableAnimation=!1,this.spinner=new re,this.ngUnsubscribe=new j.x,this.setDefaultOptions=()=>{const{type:Oe}=this.globalConfig??{};this.spinner=re.create({name:this.name,bdColor:this.bdColor,size:this.size,color:this.color,type:this.type??Oe,fullScreen:this.fullScreen,divArray:this.divArray,divCount:this.divCount,show:this.show,zIndex:this.zIndex,template:this.template,showSpinner:this.showSpinner})},this.bdColor="rgba(51,51,51,0.8)",this.zIndex=99999,this.color="#fff",this.size="large",this.fullScreen=!0,this.name=pe,this.template=null,this.showSpinner=!1,this.divArray=[],this.divCount=0,this.show=!1}initObservable(){this.spinnerService.getSpinner(this.name).pipe((0,x.R)(this.ngUnsubscribe)).subscribe(Ye=>{this.setDefaultOptions(),Object.assign(this.spinner,Ye),Ye.show&&this.onInputChange(),this.changeDetector.detectChanges()})}ngOnInit(){this.setDefaultOptions(),this.initObservable()}isSpinnerZone(Ye){return Ye===this.elementRef.nativeElement.parentElement||Ye.parentNode&&this.isSpinnerZone(Ye.parentNode)}ngOnChanges(Ye){for(const Z in Ye)if(Z){const ie=Ye[Z];if(ie.isFirstChange())return;typeof ie.currentValue<"u"&&ie.currentValue!==ie.previousValue&&""!==ie.currentValue&&(this.spinner[Z]=ie.currentValue,"showSpinner"===Z&&(ie.currentValue?this.spinnerService.show(this.spinner.name,this.spinner):this.spinnerService.hide(this.spinner.name)),"name"===Z&&this.initObservable())}}getClass(Ye,Z){this.spinner.divCount=ce[Ye],this.spinner.divArray=Array(this.spinner.divCount).fill(0).map((ye,Oe)=>Oe);let ie="";switch(Z.toLowerCase()){case"small":ie="la-sm";break;case"medium":ie="la-2x";break;case"large":ie="la-3x"}return"la-"+Ye+" "+ie}onInputChange(){this.spinner.class=this.getClass(this.spinner.type,this.spinner.size)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static{this.\u0275fac=function(Z){return new(Z||Ce)(e.Y36(Ge),e.Y36(e.sBO),e.Y36(e.SBq),e.Y36(we,8))}}static{this.\u0275cmp=e.Xpm({type:Ce,selectors:[["ngx-spinner"]],viewQuery:function(Z,ie){if(1&Z&&e.Gf(k,5),2&Z){let ye;e.iGM(ye=e.CRH())&&(ie.spinnerDOM=ye.first)}},inputs:{bdColor:"bdColor",size:"size",color:"color",type:"type",fullScreen:"fullScreen",name:"name",zIndex:"zIndex",template:"template",showSpinner:"showSpinner",disableAnimation:"disableAnimation"},standalone:!0,features:[e.TTD,e.jDz],ngContentSelectors:A,decls:1,vars:1,consts:[["class","ngx-spinner-overlay",3,"background-color","z-index","position",4,"ngIf"],[1,"ngx-spinner-overlay"],["overlay",""],[3,"class","color",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"loading-text"],[4,"ngFor","ngForOf"],[3,"innerHTML"]],template:function(Z,ie){1&Z&&(e.F$t(),e.YNc(0,_e,6,12,"div",0)),2&Z&&e.Q6J("ngIf",ie.spinner.show)},dependencies:[ue,B.O5,B.ax],styles:[".ngx-spinner-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%}.ngx-spinner-overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.loading-text){top:50%;left:50%;margin:0;position:absolute;transform:translate(-50%,-50%)}.loading-text[_ngcontent-%COMP%]{position:absolute;top:60%;left:50%;transform:translate(-50%,-60%)}"],data:{animation:[(0,V.X$)("fadeIn",[(0,V.SB)("in",(0,V.oB)({opacity:1})),(0,V.eR)(":enter",[(0,V.oB)({opacity:0}),(0,V.jt)(300)]),(0,V.eR)(":leave",(0,V.jt)(200,(0,V.oB)({opacity:0})))])]},changeDetection:0})}}return Ce})(),Le=(()=>{class Ce{static forRoot(Ye){return{ngModule:Ce,providers:[{provide:we,useValue:Ye}]}}static{this.\u0275fac=function(Z){return new(Z||Ce)}}static{this.\u0275mod=e.oAB({type:Ce})}static{this.\u0275inj=e.cJS({imports:[B.ez]})}}return Ce})()},8656:(We,z,m)=>{m.d(z,{RP:()=>be,n2:()=>N});var e=m(2181),T=m(4664),j=m(3997),Y=m(7081),x=m(5879),V=m(8645),b=m(2096),B=m(6814),k=function(te){return te.Local="local_strategy",te.Session="session_strategy",te.InMemory="in_memory_strategy",te}(k||{});class E{static isStorageAvailable(S){let O=!0;try{"object"==typeof S?(S.setItem("test-storage","foobar"),S.removeItem("test-storage")):O=!1}catch{O=!1}return O}}function L(){}let ce=(()=>{class te{static{this.prefix="ngx-webstorage"}static{this.separator="|"}static{this.isCaseSensitive=!1}static normalize(O){return O=te.isCaseSensitive?O:O.toLowerCase(),`${te.prefix}${te.separator}${O}`}static isNormalizedKey(O){return 0===O.indexOf(te.prefix+te.separator)}static setPrefix(O){te.prefix=O}static setSeparator(O){te.separator=O}static setCaseSensitive(O){te.isCaseSensitive=O}static consumeConfiguration(O){"prefix"in O&&this.setPrefix(O.prefix),"separator"in O&&this.setSeparator(O.separator),"caseSensitive"in O&&this.setCaseSensitive(O.caseSensitive)}}return te})();class me{constructor(S){this.strategy=S}retrieve(S){let O;return this.strategy.get(ce.normalize(S)).subscribe(ve=>O=typeof ve>"u"?null:ve),O}store(S,O){return this.strategy.set(ce.normalize(S),O).subscribe(L),O}clear(S){void 0!==S?this.strategy.del(ce.normalize(S)).subscribe(L):this.strategy.clear().subscribe(L)}getStrategyName(){return this.strategy.name}observe(S){return S=ce.normalize(S),this.strategy.keyChanges.pipe((0,e.h)(O=>null===O||O===S),(0,T.w)(()=>this.strategy.get(S)),(0,j.x)(),(0,Y.d)({refCount:!0,bufferSize:1}))}}let re=(()=>{class te{constructor(){this.caches={}}get(O,ve){return this.getCacheStore(O)[ve]}set(O,ve,ht){this.getCacheStore(O)[ve]=ht}del(O,ve){delete this.getCacheStore(O)[ve]}clear(O){this.caches[O]={}}getCacheStore(O){return O in this.caches?this.caches[O]:this.caches[O]={}}static{this.\u0275fac=function(ve){return new(ve||te)}}static{this.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}}return te})();const Ge=new x.OlP("window_local_storage"),ue={provide:Ge,useFactory:function we(){return typeof window<"u"?window.localStorage:null}},G=new x.OlP("window_session_storage"),Se={provide:G,useFactory:function Le(){return typeof window<"u"?window.sessionStorage:null}};class Ce{constructor(S,O){this.storage=S,this.cache=O,this.keyChanges=new V.x}get isAvailable(){return void 0===this._isAvailable&&(this._isAvailable=E.isStorageAvailable(this.storage)),this._isAvailable}get(S){let O=this.cache.get(this.name,S);if(void 0!==O)return(0,b.of)(O);try{const ve=this.storage.getItem(S);null!==ve&&(O=JSON.parse(ve),this.cache.set(this.name,S,O))}catch(ve){console.warn(ve)}return(0,b.of)(O)}set(S,O){const ve=JSON.stringify(O);return this.storage.setItem(S,ve),this.cache.set(this.name,S,O),this.keyChanges.next(S),(0,b.of)(O)}del(S){return this.storage.removeItem(S),this.cache.del(this.name,S),this.keyChanges.next(S),(0,b.of)(null)}clear(){return this.storage.clear(),this.cache.clear(this.name),this.keyChanges.next(null),(0,b.of)(null)}}class Re extends Ce{static{this.strategyName=k.Local}constructor(S,O,ve,ht){super(S,O),this.storage=S,this.cache=O,this.platformId=ve,this.zone=ht,this.name=Re.strategyName,(0,B.NF)(this.platformId)&&this.listenExternalChanges()}listenExternalChanges(){window.addEventListener("storage",S=>this.zone.run(()=>{if(S.storageArea!==this.storage)return;const O=S.key;null!==O?this.cache.del(this.name,S.key):this.cache.clear(this.name),this.keyChanges.next(O)}))}static{this.\u0275fac=function(O){return new(O||Re)(x.LFG(Ge),x.LFG(re),x.LFG(x.Lbi),x.LFG(x.R0b))}}static{this.\u0275prov=x.Yz7({token:Re,factory:Re.\u0275fac})}}class Ye extends Ce{static{this.strategyName=k.Session}constructor(S,O,ve,ht){super(S,O),this.storage=S,this.cache=O,this.platformId=ve,this.zone=ht,this.name=Ye.strategyName,(0,B.NF)(this.platformId)&&this.listenExternalChanges()}listenExternalChanges(){window.addEventListener("storage",S=>this.zone.run(()=>{if(S.storageArea!==this.storage)return;const O=S.key;null!==S.key?this.cache.del(this.name,S.key):this.cache.clear(this.name),this.keyChanges.next(O)}))}static{this.\u0275fac=function(O){return new(O||Ye)(x.LFG(G),x.LFG(re),x.LFG(x.Lbi),x.LFG(x.R0b))}}static{this.\u0275prov=x.Yz7({token:Ye,factory:Ye.\u0275fac})}}class Z{static{this.strategyName=k.InMemory}constructor(S){this.cache=S,this.keyChanges=new V.x,this.isAvailable=!0,this.name=Z.strategyName}get(S){return(0,b.of)(this.cache.get(this.name,S))}set(S,O){return this.cache.set(this.name,S,O),this.keyChanges.next(S),(0,b.of)(O)}del(S){return this.cache.del(this.name,S),this.keyChanges.next(S),(0,b.of)(null)}clear(){return this.cache.clear(this.name),this.keyChanges.next(null),(0,b.of)(null)}static{this.\u0275fac=function(O){return new(O||Z)(x.LFG(re))}}static{this.\u0275prov=x.Yz7({token:Z,factory:Z.\u0275fac})}}const ie=new x.OlP("STORAGE_STRATEGIES"),ye=[{provide:ie,useClass:Z,multi:!0},{provide:ie,useClass:Re,multi:!0},{provide:ie,useClass:Ye,multi:!0}],Je="invalid_strategy";let D=(()=>{class te{static{this.index={}}constructor(O){this.strategies=O,this.registration$=new V.x,O||(O=[]),this.strategies=O.reverse().map((ve,ht,Ot)=>ve.name).map((ve,ht,Ot)=>Ot.indexOf(ve)===ht?ht:null).filter(ve=>null!==ve).map(ve=>O[ve])}static get(O){if(!this.isStrategyRegistered(O))throw Error(Je);let ve=this.index[O];return ve.isAvailable||(ve=this.index[k.InMemory]),ve}static set(O,ve){this.index[O]=ve}static clear(O){void 0!==O?delete this.index[O]:this.index={}}static isStrategyRegistered(O){return O in this.index}static hasRegistredStrategies(){return Object.keys(this.index).length>0}getStrategy(O){return te.get(O)}indexStrategies(){this.strategies.forEach(O=>this.register(O.name,O))}indexStrategy(O,ve=!1){if(te.isStrategyRegistered(O)&&!ve)return te.get(O);const ht=this.strategies.find(Ot=>Ot.name===O);if(!ht)throw new Error(Je);return this.register(O,ht,ve),ht}register(O,ve,ht=!1){(!te.isStrategyRegistered(O)||ht)&&(te.set(O,ve),this.registration$.next(O))}static{this.\u0275fac=function(ve){return new(ve||te)(x.LFG(ie,8))}}static{this.\u0275prov=x.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}}return te})();class N extends me{}const mt=[{provide:N,useFactory:function R(te){const S=te.indexStrategy(k.Local);return new me(S)},deps:[D]},{provide:class je extends me{},useFactory:function ot(te){const S=te.indexStrategy(k.Session);return new me(S)},deps:[D]}],Pt=new x.OlP("ngx_webstorage_config");function pn(te){return te.indexStrategies(),()=>D.index}let be=(()=>{class te{constructor(O,ve){ve?ce.consumeConfiguration(ve):console.error("NgxWebstorage : Possible misconfiguration (The forRoot method usage is mandatory since the 3.0.0)")}static forRoot(O={}){return{ngModule:te,providers:[{provide:Pt,useValue:O},ue,Se,...mt,...ye,{provide:x.ip1,useFactory:pn,deps:[D],multi:!0}]}}static{this.\u0275fac=function(ve){return new(ve||te)(x.LFG(D),x.LFG(Pt,8))}}static{this.\u0275mod=x.oAB({type:te})}static{this.\u0275inj=x.cJS({})}}return te})()}}]);
Back to Directory File Manager