1import{d as So}from"./chunk-46LPOCZ6.js";import{a as fl}from"./chunk-NGECTTPR.js";import{a as ll}from"./chunk-SGKQ6Q6Z.js";import{a as cl}from"./chunk-NF6WQ3JT.js";import{a as vs}from"./chunk-CLH276SB.js";import{b as Mo}from"./chunk-ZJXHSEQI.js";import{a as Nt,b as Wt,c as Ut,d as ol}from"./chunk-GH3ZTNPN.js";import{a as si,b as al}from"./chunk-NU7WWYF2.js";import{a as xo}from"./chunk-GS4S6AZ2.js";import"./chunk-QNAUP6ED.js";import{b as wa,c as el,f as il}from"./chunk-B6MX6MBU.js";import"./chunk-FJBAU3OZ.js";import{a as qe}from"./chunk-KS7R6D5N.js";import{a as dl}from"./chunk-Y6GYABZI.js";import{a as sl}from"./chunk-WQ5W7LEO.js";import{e as ml,f as ul,g as _l,h as pl}from"./chunk-EEBQT56P.js";import{a as Zs}from"./chunk-ANTVCVZF.js";import"./chunk-R6WTFZQU.js";import{a as wo}from"./chunk-5WRDJ3KZ.js";import{a as rl}from"./chunk-BKKN5ITU.js";import{b as Da}from"./chunk-4DFOLJR4.js";import{a as Us}from"./chunk-YZS5NDHW.js";import{b as Xs}from"./chunk-DTBJ74TT.js";import{a as Ks}from"./chunk-ONCRFWYH.js";import{a as Fs}from"./chunk-XQB4EFHX.js";import"./chunk-XWKB2LPB.js";import"./chunk-EGLOUU7F.js";import{b as Rs,d as yo}from"./chunk-7NJKCXRI.js";import{a as Li,b as Ii}from"./chunk-XOKXITOD.js";import"./chunk-JSI5CEUU.js";import"./chunk-XUEAOQ6S.js";import{a as nl}from"./chunk-JOW6JZCC.js";import{a as tl}from"./chunk-KKDQO2G2.js";import{Ba as Js,I as qs}from"./chunk-SXXSTVKM.js";import{a as $s}from"./chunk-NBCEDQV7.js";import"./chunk-RSZXPKVY.js";import{f as zs,i as Gs}from"./chunk-A36COIJN.js";import"./chunk-V2LCGCHA.js";import{E as Ns,F as bo,G as Ws,r as Bs,s as js,t as xa}from"./chunk-YL73HO5A.js";import"./chunk-WLMZXFIY.js";import"./chunk-BON6DGXC.js";import"./chunk-J5RTUER6.js";import{a as xt}from"./chunk-WH6553TB.js";import{a as Do,b as Qs}from"./chunk-RFZRNKEH.js";import"./chunk-KJMCXC2Q.js";import"./chunk-HXXP6ZLT.js";import"./chunk-2NAKW6AO.js";import{n as Ma}from"./chunk-DFWATXFW.js";import{a as ao}from"./chunk-CR65ICOX.js";import"./chunk-VBCT6I3Q.js";import{f as _o,g as Ds,k as po,l as xs,v as Os}from"./chunk-GFSCGPQ4.js";import"./chunk-OHK4JWWL.js";import"./chunk-GAWBVHDV.js";import"./chunk-466IXCVS.js";import{b as Hs}from"./chunk-SVOCP6NS.js";import{a as vo}from"./chunk-2DJPIUU2.js";import"./chunk-M6DXYQZY.js";import{a as Ti,b as Pi,c as fs}from"./chunk-4H263KZ2.js";import{a as Ms,d as ws}from"./chunk-I4SNZ2Q5.js";import"./chunk-6FG4KXI6.js";import{d as Ts}from"./chunk-XCS72FDQ.js";import"./chunk-WLL3BAAB.js";import"./chunk-EDF3FQZZ.js";import{l as Is}from"./chunk-IJOQMYIR.js";import"./chunk-O474YC64.js";import{b as _s,c as ps}from"./chunk-PNPW23CE.js";import"./chunk-LHDTM7CQ.js";import"./chunk-DIEYCNP2.js";import"./chunk-TQPKTQAL.js";import"./chunk-V5UUD3QI.js";import"./chunk-IVUCFRAW.js";import{b as Ss,c as ks,d as fo,e as ho}from"./chunk-D7VEHFH6.js";import{a as lo,c as co,d as mo,e as gs,g as Co,h as As}from"./chunk-BJEDNTAC.js";import{g as ki,i as ro}from"./chunk-OSUWHDPV.js";import"./chunk-7365YTCK.js";import"./chunk-6TQOBFCS.js";import"./chunk-PPMQE2JW.js";import{a as us}from"./chunk-FUUHAJX4.js";import"./chunk-6VVDVILU.js";import"./chunk-2UQAVQ45.js";import"./chunk-JKUHAAK3.js";import{c as go,d as Ys,i as Vs}from"./chunk-ZEOBUA47.js";import"./chunk-Z5XG4XOC.js";import"./chunk-TPNIEUA4.js";import"./chunk-OUVQIOMK.js";import{a as ys}from"./chunk-5SRAOHH7.js";import"./chunk-S2WGG3O5.js";import{t as ss}from"./chunk-2VXHONUW.js";import{a as rs}from"./chunk-BTWHZXKR.js";import"./chunk-CKFV7ZF2.js";import"./chunk-FL4RUWUP.js";import"./chunk-W6TXBZ6D.js";import"./chunk-NQRRLVFI.js";import"./chunk-HTF3JALH.js";import"./chunk-RJGQFZWE.js";import"./chunk-RYGMUVZO.js";import"./chunk-6LHHOJ67.js";import{a as Cs}from"./chunk-YDRZG5W4.js";import"./chunk-C2K24JJO.js";import"./chunk-SKLK4QB7.js";import{ca as Xr,ha as Zr,ia as Gn,o as Kr}from"./chunk-AFY537I3.js";import"./chunk-FOX6PFLG.js";import"./chunk-JUTCCWXP.js";import"./chunk-4BJWPEWV.js";import"./chunk-IHXXJ3FS.js";import"./chunk-XIR7RIPN.js";import"./chunk-EQEHDPN2.js";import{a as uo}from"./chunk-KQNKCWSB.js";import"./chunk-7GS6EP74.js";import"./chunk-W3NQXQOX.js";import"./chunk-FN5PQSEI.js";import{a as Qn}from"./chunk-DORVKHI7.js";import{a as bs,b as va}from"./chunk-TN75OO2P.js";import"./chunk-YR7EQSKE.js";import{c as Kn}from"./chunk-7A4O647I.js";import"./chunk-LO6CADJZ.js";import"./chunk-BE6I22JN.js";import{a as ls}from"./chunk-4Z5RL6QO.js";import"./chunk-ASA3TRRD.js";
1import{b as Es,c as Ls}from"./chunk-HQANNBNX.js";import{c as Ps}from"./chunk-AE6ER5EQ.js";import{a as so,b as hs}from"./chunk-VCDKFT4V.js";import"./chunk-U7DEF5TX.js";import"./chunk-PFMUUSHO.js";import"./chunk-2TFAGBRS.js";import"./chunk-BUYGALCV.js";import{A as Dt,E as He,F as _e,a as yn,b as ds,c as Fe,d as Ca,e as Zn,g as Te,h as Ke,j as ri,k as Bt,l as eo,m as ya,n as Xe,o as Ze,s as cs,t as ms,u as to,v as io,w as no,x as oo}from"./chunk-2QYSD5RO.js";import{a as K}from"./chunk-5PO4QCCX.js";import"./chunk-DMHJZRXD.js";import"./chunk-K4QTA3A5.js";import{g as ns,i as os,m as Si,o as as}from"./chunk-54W4P7NA.js";import{a as es,b as ts,c as ga,d as is}from"./chunk-XYUM3QGQ.js";import{K as Qr,L as Jr}from"./chunk-AJRHK7D2.js";import{a as Ve}from"./chunk-QGTBO2LV.js";import{e as ba,j as jt,k as Ei}from"./chunk-BPCMKL7S.js";import{a as ha}from"./chunk-PCGUCIEY.js";import"./chunk-TBVUQWMS.js";import{f as Br,g as jr,h as Mi,i as Nr,n as pa}from"./chunk-FAGCLODN.js";import"./chunk-VUDRL6AY.js";import"./chunk-PNKQO6EM.js";import"./chunk-3DSD7D2T.js";import"./chunk-ROUGUONR.js";import"./chunk-63HL2L7R.js";import{b as Jn}from"./chunk-SVLM2ECX.js";import{a as Gr}from"./chunk-MY5YK5O5.js";import{c as wi}from"./chunk-4NGQH4V6.js";import"./chunk-PWQXPZVK.js";import"./chunk-UKHQPMQZ.js";import"./chunk-Y4AYZAWK.js";import{B as $r,C as zr,O as fa,_ as P,w as zn,x as qr}from"./chunk-7WAXKT5I.js";import{e as ke}from"./chunk-MHLI7EB3.js";import"./chunk-KIBC2ZGT.js";import{$ as Re,Z as Un,_ as Wr,ba as qn,ca as $n,da as Ur}from"./chunk-6K3X73CK.js";import"./chunk-DLTOIL4G.js";import"./chunk-334MXCTX.js";import{a as ue,b as Xn}from"./chunk-U5TOGEJX.js";import{A as Ft,F as _a,H as Ht,L as _t,m as ai,w as ut,y as Hr}from"./chunk-OD4FXCMW.js";import{$c as Nn,Ac as D,Bc as me,C as Be,D as Tt,E as Me,Fa as p,Fc as C,Ga as f,Gc as ae,Hb as vt,Hc as d,Ib as y,Ic as Ar,Ja as Ae,Jc as ca,Jd as ua,Kb as da,Kd as be,Lc as We,M as Er,Mc as we,Na as de,Nc as Se,Ob as Y,Pb as Je,Q as ce,Qb as gn,Ra as Yr,Rc as v,S as Hn,Sc as ma,Ta as Vr,Tb as Ne,Tc as S,Td as Ue,Ub as jn,V as je,Wa as la,Wc as c,Xa as Bn,Xc as I,Yc as M,Z as hn,Za as bt,Zc as oi,_ as Lr,_c as Or,a as fn,ca as sa,cb as xi,dd as H,e as ra,ec as Oe,ed as B,fd as j,g as Q,ga as Ir,hc as u,i as kt,ic as Cn,jc as _,jd as G,kd as Rr,la as re,lc as J,m as wr,ma as q,mc as R,na as se,nc as F,nd as De,o as Sr,oc as g,pc as l,pd as Pt,qc as s,rc as x,sa as ni,sc as L,sd as Fr,ta as fe,tb as Rt,tc as E,ua as Qe,uc as Ye,ud as w,vd as O,w as kr,wd as ye,x as Tr,xa as mt,y as Di,yd as le,z as Pr,zb as r,zd as Wn}from"./chunk-T2TVCV7P.js";import{a as ne,b as ct,g as aa}from"./chunk-BBHHUGUF.js";var cc=()=>({position:"relative","bottom.px":1});function mc(t,i){if(t&1){let e=D();l(0,"a",18),C("click",function(o){p(e);let a=d();return o.preventDefault(),f(a.hideNaviAndNavigate("/profile-setting/passport"))}),c(1," Ausmed Passport "),s()}if(t&2){let e=d();S("is-active",e.isLinkActive("/profile-setting/passport"))}}var Yi=class t{constructor(i,e){this.router=i;this.injector=e;this.navClick=new Q;this.displayPassport$=So(this.injector)}ngOnInit(){}hideNaviAndNavigate(i,e=!1){this.navClick.next({url:i,leaveNavOpen:e})}hideNav(){this.navClick.next({hideNav:!0})}isLinkActive(i){return this.router.url.split("?")[0]===i}static{this.\u0275fac=function(e){return new(e||t)(y(Mi),y(Ae))}}static{this.\u0275cmp=Y({type:t,selectors:[["account-setting-nav"]],decls:30,vars:27,consts:[[3,"navClick$","menuBtnName"],["adaptiveMinHeight","",1,"d-flex","align-items-start","nav-container"],[1,"w-100"],[1,"btn","btn-sm","btn-quiet","float-right","close-btn","d-lg-none",3,"click"],["theme","bold","name","close","size","f-caption",3,"svgStyle"],[1,"f-2","ml-7","mt-0","mb-7"],[1,"portfolio-nav","mb-7"],["href","/profile-setting/profile",1,"portfolio-nav-item",3,"click"],["href","/profile-setting/passport",1,"portfolio-nav-item",3,"is-active"],["href","/profile-setting/account-info",1,"portfolio-nav-item",3,"click"],["href","/profile-setting/professional-setting",1,"portfolio-nav-item",3,"click"],["href","/profile-setting/work-experience",1,"portfolio-nav-item",3,"click"],["href","/profile-setting/education-history",1,"portfolio-nav-item",3,"click"],["href","/profile-setting/ausmed-pro",1,"portfolio-nav-item",3,"click"],["href","/profile-setting/invoice",1,"portfolio-nav-item",3,"click"],["href","/profile-setting/social-setting",1,"portfolio-nav-item",3,"click"],["href","/profile-setting/email-preference",1,"portfolio-nav-item",3,"click"],["href","/profile-setting/reset-password",1,"portfolio-nav-item",3,"click"],["href","/profile-setting/passport",1,"portfolio-nav-item",3,"click"]],template:function(e,n){e&1&&(l(0,"mn-shared-nav",0)(1,"div",1)(2,"div",2)(3,"button",3),C("click",function(){return n.hideNav()}),x(4,"ui-streamline-icon",4),s(),l(5,"h1",5),c(6,"Account settings"),s(),l(7,"div",6)(8,"a",7),C("click",function(a){return a.preventDefault(),n.hideNaviAndNavigate("/profile-setting/profile")}),c(9," Profile "),s(),u(10,mc,2,2,"a",8),w(11,"async"),l(12,"a",9),C("click",function(a){return a.preventDefault(),n.hideNaviAndNavigate("/profile-setting/account-info")}),c(13," Account details "),s(),l(14,"a",10),C("click",function(a){return a.preventDefault(),n.hideNaviAndNavigate("/profile-setting/professional-setting")}),c(15," Professional settings "),s(),l(16,"a",11),C("click",function(a){return a.preventDefault(),n.hideNaviAndNavigate("/profile-setting/work-experience")}),c(17," Employment history "),s(),l(18,"a",12),C("click",function(a){return a.preventDefault(),n.hideNaviAndNavigate("/profile-setting/education-history")}),c(19," Education history "),s(),l(20,"a",13),C("click",function(a){return a.preventDefault(),n.hideNaviAndNavigate("/profile-setting/ausmed-pro")}),c(21," Subscription "),s(),l(22,"a",14),C("click",function(a){return a.preventDefault(),n.hideNaviAndNavigate("/profile-setting/invoice")}),c(23," Tax statements "),s(),l(24,"a",15),C("click",function(a){return a.preventDefault(),n.hideNaviAndNavigate("/profile-setting/social-setting")}),c(25," Linked accounts "),s(),l(26,"a",16),C("click",function(a){return a.preventDefault(),n.hideNaviAndNavigate("/profile-setting/email-preference")}),c(27," Email settings "),s(),l(28,"a",17),C("click",function(a){return a.preventDefault(),n.hideNaviAndNavigate("/profile-setting/reset-password")}),c(29," Change password "),s()()()()()),e&2&&(g("navClick$",n.navClick)("menuBtnName","Account settings menu"),r(4),g("svgStyle",Pt(26,cc)),r(4),S("is-active",n.isLinkActive("/profile-setting/profile")),r(2),_(O(11,24,n.displayPassport$)?10:-1),r(2),S("is-active",n.isLinkActive("/profile-setting/account-info")),r(2),S("is-active",n.isLinkActive("/profile-setting/professional-setting")),r(2),S("is-active",n.isLinkActive("/profile-setting/work-experience")),r(2),S("is-active",n.isLinkActive("/profile-setting/education-history")),r(2),S("is-active",n.isLinkActive("/profile-setting/ausmed-pro")),r(2),S("is-active",n.isLinkActive("/profile-setting/invoice")),r(2),S("is-active",n.isLinkActive("/profile-setting/social-setting")),r(2),S("is-active",n.isLinkActive("/profile-setting/email-preference")),r(2),S("is-active",n.isLinkActive("/profile-setting/reset-password")))},dependencies:[Qs,Do,ke,ut],styles:[".nav-container[_ngcontent-%COMP%]{width:100%;background-color:#f8f9fb;z-index:6;min-width:287px;width:287px;margin-left:0;padding-right:19px;padding-top:24px;position:sticky;top:65px}@media(max-width:1023.98px){.nav-container[_ngcontent-%COMP%]{min-height:100vh!important;max-height:100vh;overflow:auto}}.portfolio-nav[_ngcontent-%COMP%]{display:flex;width:100%;padding:0 0 1.25rem;text-align:left;flex-direction:column;white-space:normal;max-width:300px;gap:0}.portfolio-nav-item[_ngcontent-%COMP%]{font-weight:600;padding:8px 32px;text-decoration:none;transition:background-color ease-in-out .1s;border-radius:0 30px 30px 0}.portfolio-nav-item[_ngcontent-%COMP%]:hover{background:#edeff2;color:#171d29}.portfolio-nav-item.is-active[_ngcontent-%COMP%]{color:#ac021e;background:#fde3e7}.portfolio-nav-item.sub-item-active[_ngcontent-%COMP%]{background:#edeff2;color:#171d29}"]})}};var ko=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=Je({type:t})}static{this.\u0275inj=Qe({imports:[Ht,rl,ke,wo,Yi]})}};
1var Vi=class t{constructor(i,e,n,o){this.userService=i;this.shareService=e;this.qualificationService=n;this.cpdoService=o;this.ngUnsubscribe=new Q;this.professionalProfiles=[];this.professionPractices=[];this.menuToggle=!1}ngOnInit(){Me([this.userService.getUser().pipe(ce(i=>i.userID),se(i=>this.user=i)),this.qualificationService.getProfessionalProfiles().pipe(se((i=>this.professionalProfiles=i))),this.cpdoService.getProfessionalPractices().pipe(se(i=>this.professionPractices=i))]).pipe(q(this.ngUnsubscribe)).subscribe(()=>{this.loadError=null,this.loaded=!0},()=>{this.loadError=!0})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}setReferralContext(){this.shareService.setReferralContext("settings page")}static{this.\u0275fac=function(e){return new(e||t)(y(K),y(Qr),y(Si),y(ro))}}static{this.\u0275cmp=Y({type:t,selectors:[["ng-component"]],decls:4,vars:1,consts:[["adaptiveMinHeight","",1,"d-lg-flex",3,"hidden"],[1,"account-settings-container","mx-auto","w-100","px-4","px-lg-8","pt-4"]],template:function(e,n){e&1&&(l(0,"div",0),x(1,"account-setting-nav"),l(2,"div",1),x(3,"router-outlet"),s()()),e&2&&g("hidden",!n.loaded)},dependencies:[Do,Yi,jr],styles:[".account-settings-container[_ngcontent-%COMP%]{max-width:1200px}"]})}};var To=class t{constructor(i,e){this.userService=i;this.router=e}resolve(i,e){return new Promise((n,o)=>{this.userService.fetchUser().subscribe(a=>{a&&n(a)})})}static{this.\u0275fac=function(e){return new(e||t)(mt(K),mt(Mi))}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac})}};function _c(t,i){if(t&1&&(l(0,"label",7),c(1),s()),t&2){let e=d();r(),I(e.profileImage.name)}}function pc(t,i){if(t&1&&(l(0,"div",8),c(1),s()),t&2){let e=d();r(),I(e.uploadError)}}function fc(t,i){if(t&1&&(l(0,"div",8),c(1),s()),t&2){let e=d();r(),I(e.uploadProfileMsg)}}function hc(t,i){t&1&&x(0,"ui-spinner",12)}var Ai=class t{constructor(i,e){this.userService=i;this.dialogRef=e;this.ngUnsubscribe=new Q;this.submittingRequest=!1;this.uploadError="";this.uploadSuccessMsg="";this.uploadProfileMsg="";this.allowedUploadImageType=Da}fileSelected(i){this.uploadError="";let e=i.target.files[0];if(e){if(e&&e.size>=5242880){this.uploadError="This file exceeds our size limit of 5 MB. Please upload a smaller file or compress your current file.";return}else if(!Da.includes(e.type)){this.uploadError="The file type is not supported";return}this.profileImage=e}}upload(){this.uploadProfileMsg="",this.submittingRequest=!0,this.userService.deleteProfilePic().then(()=>{this.submittingRequest=!0,this.userService.uploadProfileImage(this.profileImage).then(()=>{this.submittingRequest=!0,this.userService.setProfilePic().then(()=>{this.submittingRequest=!1,this.uploadSuccessMsg="Upload successfully.",this.userService.fetchUser().pipe(q(this.ngUnsubscribe)).subscribe(()=>{this.close()},()=>{this.close()})},i=>{this.submittingRequest=!1,console.log(i),this.uploadProfileMsg="Oops! Something has gone wrong, please try again later."})},i=>{this.submittingRequest=!1,console.log(i),this.uploadProfileMsg="Upload failed:"+i.statusText})},()=>{this.submittingRequest=!1,this.uploadProfileMsg="Oops! Something has gone wrong, please try again later."})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}close(){this.dialogRef.close()}static{this.\u0275fac=function(e){return new(e||t)(y(K),y(Un))}}static{this.\u0275cmp=Y({type:t,selectors:[["ng-component"]],decls:23,vars:8,consts:[["mat-dialog-title",""],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["mat-dialog-content",""],[1,"input-group","input-group-sm","mb-4"],["for","profileImage",1,"custom-file-label"],["type","file","name","profileImage","id","profileImage",1,"custom-file-input",3,"change","accept"],[1,"custom-file-label"],[1,"invalid-feedback"],[1,"valid-feedback",3,"hidden"],["mat-dialog-actions","",1,"justify-content-end","mb-2","mr-2"],[1,"btn","btn-success","d-flex","flex-row","align-items-center",3,"click","disabled"],["color","light",1,"mr-2"],["name","cloud-upload","theme","bold","size","f-caption",1,"sl-icon","mr-1"]],template:function(e,n){e&1&&(l(0,"div",0),c(1," Upload a Profile Image "),l(2,"button",1),C("click",function(){return n.close()}),l(3,"span",2),c(4,"\xD7"),s()(),x(5,"hr"),s(),l(6,"div",3)(7,"p"),
1c(8,"Choose a file and click upload"),s(),l(9,"div",4)(10,"label",5),c(11,"Choose file"),s(),l(12,"input",6),C("change",function(a){return n.fileSelected(a)}),s(),u(13,_c,2,1,"label",7),s(),u(14,pc,2,1,"div",8),u(15,fc,2,1,"div",8),l(16,"div",9),c(17),s()(),l(18,"div",10)(19,"button",11),C("click",function(){return n.upload()}),u(20,hc,1,0,"ui-spinner",12),x(21,"ui-streamline-icon",13),c(22," Upload "),s()()),e&2&&(r(12),g("accept",n.allowedUploadImageType),r(),_(n.profileImage!=null&&n.profileImage.name?13:-1),r(),_(n.uploadError?14:-1),r(),_(n.uploadProfileMsg?15:-1),r(),g("hidden",!n.uploadSuccessMsg),r(),I(n.uploadSuccessMsg),r(2),g("disabled",n.submittingRequest||n.uploadError||!n.profileImage),r(),_(n.submittingRequest?20:-1))},dependencies:[qn,$n,Ur,ue,ke],styles:[".sl-icon[_ngcontent-%COMP%]{padding-bottom:1px}"]})}};function gc(t,i){t&1&&(l(0,"div",9),c(1,"Required"),s())}function Cc(t,i){if(t&1&&(l(0,"div"),u(1,gc,2,0,"div",9),s()),t&2){d();let e=v(3);r(),_(e.errors.required&&e.control.dirty?1:-1)}}function yc(t,i){t&1&&x(0,"ui-spinner",8)}function bc(t,i){if(t&1){let e=D();l(0,"div",4)(1,"div",5)(2,"textarea",6,0),j("ngModelChange",function(o){p(e);let a=d();return B(a.biography,o)||(a.biography=o),f(o)}),s(),u(4,Cc,2,1,"div"),s(),l(5,"button",7),C("click",function(){p(e);let o=d();return f(o.add())}),u(6,yc,1,0,"ui-spinner",8),c(7," Save "),s()()}if(t&2){let e=v(3),n=d();r(2),H("ngModel",n.biography),r(2),_(e.errors?4:-1),r(),g("disabled",n.submittingRequest||e.errors),r(),_(n.submittingRequest?6:-1)}}function vc(t,i){t&1&&(l(0,"div",9),c(1,"Required"),s())}function Dc(t,i){if(t&1&&(l(0,"div"),u(1,vc,2,0,"div",9),s()),t&2){d();let e=v(9);r(),_(e.errors.required&&e.control.dirty?1:-1)}}function xc(t,i){t&1&&x(0,"ui-spinner",8)}function Mc(t,i){t&1&&x(0,"ui-spinner",15)}function wc(t,i){if(t&1){let e=D();l(0,"div")(1,"div",10)(2,"p"),c(3),s(),l(4,"button",11),C("click",function(){p(e);let o=d();return o.editorEnabled=!o.editorEnabled,f(o.cancel())}),c(5," Edit Bio "),s()(),l(6,"div",10)(7,"div",5)(8,"textarea",12,0),j("ngModelChange",function(o){p(e);let a=d();return B(a.biography,o)||(a.biography=o),f(o)}),s(),u(10,Dc,2,1,"div"),s(),l(11,"button",13),C("click",function(){p(e);let o=d();return f(o.save())}),u(12,xc,1,0,"ui-spinner",8),c(13," Save "),s(),l(14,"button",14),C("click",function(){p(e);let o=d();return f(o.editorEnabled=!o.editorEnabled)}),u(15,Mc,1,0,"ui-spinner",15),c(16," Cancel "),s()()()}if(t&2){let e=v(9),n=d();r(),g("hidden",n.editorEnabled),r(2),I(n.publicProfile.biography),r(3),g("hidden",!n.editorEnabled),r(2),H("ngModel",n.biography),r(2),_(e.errors?10:-1),r(),g("disabled",n.submittingRequest||e.errors),r(),_(n.submittingRequest?12:-1),r(3),_(n.submittingRequest?15:-1)}}var bn=class t{constructor(i){this.userService=i;this.editorEnabled=!1;this.submittingRequest=!1;this.destroyed$=new Q;this.success=()=>{this.publicProfile.biography=this.biography,this.submittingRequest=!1,this.editorEnabled=!1};this.fail=i=>{this.submittingRequest=!1,console.log(i),alert("Oops! Something has gone wrong, please try again later.")}}ngOnInit(){this.publicProfile||(this.publicProfile={biography:""}),this.biography=this.publicProfile.biography}add(){this.submittingRequest=!0,this.userService.createPublicProfile({biography:this.biography}).pipe(q(this.destroyed$)).subscribe(this.success,this.fail)}save(){this.submittingRequest=!0,this.userService.savePublicProfile(ct(ne({},this.publicProfile),{biography:this.biography})).pipe(q(this.destroyed$)).subscribe(this.success,this.fail)}cancel(){this.biography=this.publicProfile.biography}ngOnDestroy(){this.destroyed$.next()}static{this.\u0275fac=function(e){return new(e||t)(y(K))}}static{this.\u0275cmp=Y({type:t,selectors:[["profile-biography"]],inputs:{publicProfile:"publicProfile"},standalone:!1,decls:6,vars:2,consts:[["bio","ngModel"],[1,"card","mb-4"],[1,"card-header"],[1,"card-body"],[1,"form-group"],[1,"mb-4"],["name","biography","required","","placeholder","Write a brief biography for yourself...",1,"form-control",2,"height","96px","width","100%",3,"ngModelChange","ngModel"],[1,"btn","btn-secondary","d-flex","flex-row","align-items-center",3,"click","disabled"],["color","light",1,"mr-2"],[1,"invalid-feedback"],[3,"hidden"],["type","button",1,"btn","btn-default","btn-sm",3,"click"],["name","biography","required","",1,"form-control",2,"height","96px","width","100%",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-secondary","mr-2","d-inline-flex","align-items-center",3,"click","disabled"],["type","button",1,"btn","btn-default","d-inline-flex","align-items-center",3,"click"],["color","dark",1,"mr-2"]],template:function(e,n){e&1&&(l(0,"div",1)(1,"h5",2),c(2,"Your Biography"),s(),l(3,"div",3),u(4,bc,8,4,"div",4),u(5,wc,17,8,"div"),s()()),e&2&&(r(4),_(n.publicProfile.biography?-1:4),r(),_(n.publicProfile.biography?5:-1))},dependencies:[Fe,Te,Dt,Xe,ue],encapsulation:2,changeDetection:0})}};var Oi=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=Je({type:t})}static{this.\u0275inj=Qe({imports:[He,Ht,yo,_e,Xn]})}};function kc(t,i){if(t&1){let e=D();l(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"ui-avatar",5),C("click",function(){p(e);let o=d();return f(o.openUploadProfileModal())}),s()(),l(5,"div",6)(6,"h5",7),c(7),s(),l(8,"p",8),c(9),s()()()()(),l(10,"div",1)(11,"h5",9),
1c(12,"Your Stats"),s(),l(13,"ul",10)(14,"li",11),c(15," Total completed activities "),l(16,"span",12),c(17),s()(),l(18,"li",11),c(19),w(20,"translate"),x(21,"cpd-badge",13),s()()(),x(22,"profile-biography",14)}if(t&2){let e=d();r(4),g("alt","profile picture")("avatarImg",(e.user==null?null:e.user.profilePicURL)||(e.user==null?null:e.user.avatarURL))("avatarID",e.user==null?null:e.user.userID)("firstName",e.user==null?null:e.user.firstName)("lastName",e.user==null?null:e.user.lastName)("size","sm"),r(3),I(e.user.fullName),r(2),M("Username: ",e.user.username),r(8),I(e.activities==null?null:e.activities.length),r(2),M(" Total ",O(20,12,"CPD")," time of completed activities "),r(2),g("cpdMin",e.timeDocumented),r(),g("publicProfile",e.publicProfile)}}var Ri=class t{constructor(i,e,n){this.userService=i;this.activityService=e;this.dialog=n;this.ngUnsubscribe=new Q;this.editorEnabled=!1;this.submittingRequest=!1;this.loaded=!1}ngOnInit(){Me([this.userService.getUser(),this.activityService.getActivities().pipe(ce(i=>typeof i<"u")),this.userService.getPublicProfiles()]).pipe(q(this.ngUnsubscribe)).subscribe(([i,e,n])=>{this.user=i,this.activities=e,this.timeDocumented=qr(e,(o,a)=>o+(a.min?a.min:0),0),n.length>0&&(this.publicProfile=n[0]),this.loaded=!0})}openUploadProfileModal(){this.dialog.open(Ai,{disableClose:!0})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static{this.\u0275fac=function(e){return new(e||t)(y(K),y(rs),y(Re))}}static{this.\u0275cmp=Y({type:t,selectors:[["ng-component"]],decls:3,vars:1,consts:[[1,"mt-1","mb-4"],[1,"card","mb-4"],[1,"card-body"],[1,"row","md-gutters","align-items-center"],[1,"col-auto"],["innerClass","avatar-round--fit",1,"has-pointer",3,"click","alt","avatarImg","avatarID","firstName","lastName","size"],[1,"col"],[1,"card-title","mb-1"],[1,"card-text","small","text-muted"],[1,"card-header"],[1,"list-group","list-group-flush"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"badge","badge-primary","badge-pill"],["size","sm",3,"cpdMin"],[3,"publicProfile"]],template:function(e,n){e&1&&(l(0,"h4",0),c(1,"Profile"),s(),u(2,kc,23,14)),e&2&&(r(2),_(n.loaded?2:-1))},dependencies:[Es,ys,Oi,bn,Kn],encapsulation:2})}};function Pc(t,i){if(t&1){let e=D();l(0,"span",19),C("click",function(){p(e);let o=d();return f(o.showPassword=!o.showPassword)}),x(1,"ui-streamline-icon",20),s()}}function Ec(t,i){if(t&1){let e=D();l(0,"span",19),C("click",function(){p(e);let o=d();return f(o.showPassword=!o.showPassword)}),x(1,"ui-streamline-icon",21),s()}}function Lc(t,i){t&1&&(l(0,"div",10),c(1," The current password you have provided is incorrect. "),s())}function Ic(t,i){if(t&1){let e=D();l(0,"span",19),C("click",function(){p(e);let o=d();return f(o.showPassword=!o.showPassword)}),x(1,"ui-streamline-icon",20),s()}}function Yc(t,i){if(t&1){let e=D();l(0,"span",19),C("click",function(){p(e);let o=d();return f(o.showPassword=!o.showPassword)}),x(1,"ui-streamline-icon",21),s()}}function Vc(t,i){if(t&1&&(l(0,"div",10),c(1),s()),t&2){let e=d();r(),M(" ",e.formErrors.newPassword," ")}}function Ac(t,i){if(t&1&&x(0,"password-category-list",12),t&2){let e=d();g("passwordControl",e.passwordForm.controls.newPassword)}}function Oc(t,i){if(t&1){let e=D();l(0,"span",19),C("click",function(){p(e);let o=d();return f(o.showPassword=!o.showPassword)}),x(1,"ui-streamline-icon",20),s()}}function Rc(t,i){if(t&1){let e=D();l(0,"span",19),C("click",function(){p(e);let o=d();return f(o.showPassword=!o.showPassword)}),x(1,"ui-streamline-icon",21),s()}}function Fc(t,i){if(t&1&&(l(0,"div",10),c(1),s()),t&2){let e=d();r(),I(e.formErrors.confirmPassword)}}function Hc(t,i){t&1&&x(0,"ui-spinner",16)}function Bc(t,i){if(t&1&&(l(0,"div",18),c(1),s()),t&2){let e=d();r(),I(e.updateSuccessMsg)}}var Fi=class t extends Jn(){constructor(e,n,o,a){super();this.userService=e;this.auth=n;this.cd=o;this.toaster=a;this.submittingRequest=!1;this.resetError="";this.updateSuccessMsg="";this.showPassword=!1;this.passwordForm=new ri({oldPassword:new eo("",{validators:[Zn.required],updateOn:"change"}),newPassword:new eo("",[Zn.required,ml()]),confirmPassword:new eo("",{val
1idators:[Zn.required],updateOn:"blur"})});this.isIncorrectCurrentPassword=!1;this.isPasswordSectionVisible=!1;this.validationMessages={newPassword:{required:"Please enter a password.",passwordStrength:ul()},confirmPassword:{required:"Please enter a password.",equalTo:"Passwords do not match."}};this.formErrors={}}ngOnInit(){this.userService.getUser().pipe(se(e=>this.user=e),re(()=>Zs(this.passwordForm.controls,this.validationMessages).pipe(se(e=>{this.formErrors=e,this.cd.markForCheck()}))),this.untilDestroyed()).subscribe(),this.passwordForm.get("oldPassword").valueChanges.pipe(this.untilDestroyed()).subscribe(()=>this.isIncorrectCurrentPassword=!1)}updatePassword(){this.resetError="",this.updateSuccessMsg="",this.passwordForm.valid&&(this.passwordForm.value?.newPassword&&(this.user.password=this.passwordForm.value.newPassword,this.user.currentPassword=this.passwordForm.value.oldPassword),this.submittingRequest=!0,this.passwordForm.disable(),this.userService.resetPassword(this.user).subscribe(e=>{this.submittingRequest=!1,this.passwordForm.enable(),e?.token&&(this.auth.setToken(e.token),this.userService.fetchUser().pipe(je(1)).subscribe(()=>{this.toaster.clear(),this.toaster.success('<p class="mb-0">Success - your password was successfully changed.</p>',null,{enableHtml:!0,tapToDismiss:!1,positionClass:"toast-bottom-right",timeOut:4e3,closeButton:!0}),this.passwordForm.reset(),this.isIncorrectCurrentPassword=!1}))},e=>{this.submittingRequest=!1,this.passwordForm.enable(),console.log(e),e.error?.code&&e.error.code==="currentPassword.notMatch"?this.isIncorrectCurrentPassword=!0:e.error.message?this.resetError=e.error.message:this.resetError="We're sorry, something's not right at our end. Please try again later."}))}static{this.\u0275fac=function(n){return new(n||t)(y(K),y(Jr),y(Ue),y(uo))}}static{this.\u0275cmp=Y({type:t,selectors:[["ng-component"]],features:[Ne],decls:40,vars:25,consts:[[1,"mt-1"],[1,"card","mt-7"],[1,"card-body"],["name","passwordForm","id","passwordForm","novalidate","",3,"formGroup"],[1,"mb-6"],[1,"form-group","mb-7"],["for","password"],[1,"validation-group"],["id","oldPassword","formControlName","oldPassword",1,"form-control","pr-6",3,"type"],[1,"validation-group__overlay"],[1,"invalid-feedback"],["id","password","formControlName","newPassword",1,"form-control","pr-6",3,"focus","blur","type"],[3,"passwordControl"],["for","confirmPassword"],["id","confirmPassword","formControlName","confirmPassword",1,"form-control","pr-6",3,"type","equalTo"],["type","button","aria-label","submit form",1,"btn","btn-secondary","d-inline-flex","align-items-center",3,"click","disabled"],["color","light",1,"mr-2"],[1,"text-danger",3,"hidden"],[1,"text-success"],[3,"click"],["size","f-caption","name","view-1"],["size","f-caption","name","view-off","theme","bold"]],template:function(n,o){n&1&&(l(0,"h4",0),c(1,"Change Password"),s(),l(2,"div",1)(3,"div",2)(4,"form",3)(5,"div",4)(6,"div",5)(7,"label",6),c(8,"Current Password *"),s(),l(9,"div",7),x(10,"input",8),l(11,"div",9),u(12,Pc,2,0,"span"),u(13,Ec,2,0,"span"),s()(),u(14,Lc,2,0,"div",10),s(),l(15,"div",5)(16,"label",6),c(17,"New Password *"),s(),l(18,"div",7)(19,"input",11),C("focus",function(){return o.isPasswordSectionVisible=!0})("blur",function(){return o.isPasswordSectionVisible=!1}),s(),l(20,"div",9),u(21,Ic,2,0,"span"),u(22,Yc,2,0,"span"),s()(),u(23,Vc,2,1,"div",10),u(24,Ac,1,1,"password-category-list",12),s(),l(25,"div",5)(26,"label",13),c(27,"Confirm Password *"),s(),l(28,"div",7),x(29,"input",14),l(30,"div",9),u(31,Oc,2,0,"span"),u(32,Rc,2,0,"span"),s()(),u(33,Fc,2,1,"div",10),s()(),l(34,"button",15),C("click",function(){return o.updatePassword()}),u(35,Hc,1,0,"ui-spinner",16),c(36," Save new password "),s(),l(37,"div",17),c(38),s(),u(39,Bc,2,1,"div",18),s()()()),n&2&&(r(4),g("formGroup",o.passwordForm),r(6),S("ng-invalid",o.isIncorrectCurrentPassword),g("type",G(o.showPassword?"text":"password")),r(2),_(o.showPassword?-1:12),r(),_(o.showPassword?13:-1),r(),_(o.isIncorrectCurrentPassword?14:-1),r(5),g("type",G(o.showPassword?"text":"password")),r(2),_(o.showPassword?-1:21),r(),_(o.showPassword?22:-1),r(),_(o.formErrors.newPassword&&!o.isPasswordSectionVisible?23:-1),r(),_(o.isPasswordSectionVisible?24:-1),r(5),g("type",G(o.showPassword?"text":"password"))("equalTo",o.passwordForm.controls.newPassword),r(2),_(o.showPassword?-1:31),r(),_(o.showPassword?32:-1),r(),_(o.formErrors.confirmPassword?33:-1),r(),g("disabled",o.submittingRequest||!o.passwordForm.valid),r(),_(o.submittingRequest?35:-1),r(2),g("hidden",!o.resetError),r(),I(o.resetError),r(),_(o.updateSuccessMsg?39:-1))},dependencies:[_e,Ze,Fe,Te,Ke,to,ms,ke,_l,Rs,ue],styles:[".card[_ngcontent-%COMP%]{border-radius:4px;box-shadow:0 1px 4px #171d292e,0 2px 4px #171d290a}"]})}};var Po=class t{constructor(i){this.injector=i}_getService(i){return i==="ppa"?import("./chunk-IDLBRSWM.js").then(e=>this.injector.get(e.PPAService)):Promise.reject("Service not found")}removeLink(i){return Tr(this._getService(i)).pipe(re(e=>e.removeLink()))}static{this.\u0275fac=function(e){return new(e||t)(mt(Ae))}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"root"})}};function Nc(t,i){t&1&&x(0,"ui-spinner",6)}
1var Eo=class t{constructor(i,e,n,o){this.partnerService=i;this.analyticsService=e;this.platformId=n;this.cd=o;this.unlinkError=""}unlink(){this.submittingRequest=!0;let i=this.partnerMembership.provider;this.partnerService.removeLink(i).subscribe(()=>{this.analyticsService.track("A-partner_link-removed",{provider:i}),this.submittingRequest=!1,this.cd.markForCheck(),_t(this.platformId)&&window.location.reload()},()=>{this.submittingRequest=!1,this.unlinkError="We're sorry, there is something wrong. Please try again later.",this.cd.markForCheck()})}static{this.\u0275fac=function(e){return new(e||t)(y(Po),y(wi),y(xi),y(Ue))}}static{this.\u0275cmp=Y({type:t,selectors:[["partner-membership-card"]],inputs:{partnerMembership:"partnerMembership"},decls:12,vars:9,consts:[[1,"card","mb-4"],[1,"card-header"],[1,"card-body"],[3,"src","alt"],[1,"card-text","mt-2"],[1,"btn","btn-outline-primary","d-inline-flex","align-items-center",3,"click","disabled"],["color","dark",1,"mr-2"],[1,"invalid-feedback",3,"hidden"]],template:function(e,n){e&1&&(l(0,"div",0)(1,"h5",1),c(2),s(),l(3,"div",2),x(4,"img",3),l(5,"p",4),c(6),s(),l(7,"button",5),C("click",function(){return n.unlink()}),u(8,Nc,1,0,"ui-spinner",6),c(9," Unlink "),s(),l(10,"div",7),c(11),s()()()),e&2&&(r(2),I(n.partnerMembership.partnerModel.name),r(2),g("alt",Rr("Logo for ",n.partnerMembership.partnerModel.name))("src",n.partnerMembership.partnerModel.logoURL,Rt),r(2),M(" Membership ID: ",n.partnerMembership.identity," "),r(),g("disabled",n.submittingRequest),r(),_(n.submittingRequest?8:-1),r(2),g("hidden",!n.unlinkError),r(),I(n.unlinkError))},dependencies:[ue],encapsulation:2,changeDetection:0})}};var Wc=()=>({position:"relative","bottom.px":2}),Uc=(t,i)=>i.orgUser.orgUserID;function qc(t,i){if(t&1&&x(0,"partner-membership-card",2),t&2){let e=i.$implicit;g("partnerMembership",e)}}function $c(t,i){if(t&1&&(l(0,"div",13)(1,"div",15),c(2,"Work Email:"),s(),l(3,"div",16),c(4),l(5,"span",17),x(6,"ui-streamline-icon",18),s()()()),t&2){let e=d().$implicit;d(2);let n=v(6);r(4),M("",e.orgUser==null?null:e.orgUser.orgEmail," "),r(),g("popover",n)("outsideClick",!0)("triggers","hover click")("placement","right"),r(),g("svgStyle",Pt(6,Wc))}}function zc(t,i){if(t&1&&(l(0,"p",14),c(1),s()),t&2){let e=d().$implicit;r(),M(" Staff ID: ",e.orgUser==null?null:e.orgUser.staffID," ")}}function Gc(t,i){if(t&1&&(l(0,"div",4)(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9)(5,"div",10),x(6,"img",11),s(),l(7,"div")(8,"h5",12),c(9),s(),u(10,$c,7,7,"div",13),u(11,zc,2,1,"p",14),s()()()()()()),t&2){let e=i.$implicit;r(6),g("src",e.orgLogoURL,Rt),r(3),M(" ",e.orgUser==null||e.orgUser.orgDetail==null?null:e.orgUser.orgDetail.name," "),r(),_(e.orgUser!=null&&e.orgUser.orgEmail?10:-1),r(),_(e.orgUser!=null&&e.orgUser.staffID?11:-1)}}function Qc(t,i){if(t&1&&(l(0,"div",3),R(1,Gc,12,4,"div",4,Uc),l(3,"p",5),c(4,"To unlink your account, please contact your organisation manager."),s()()),t&2){let e=d();r(),F(e.orgLinks)}}function Jc(t,i){t&1&&(l(0,"div",19)(1,"div",20),c(2,"What is Work Email?"),s(),l(3,"div",21),c(4,"Work Email is the email address that was used to invite you to join this organisation. All emails related to this organisation will go to this email address. If the email needs to be changed, please contact your system manager to make the change."),s()())}function Kc(t,i){t&1&&(l(0,"div"),x(1,"empty-state",22),s()),t&2&&(r(),g("body","You don't have any linked accounts. Organisations that are linked to your Ausmed account will appear here."))}var Hi=class t{constructor(i,e){this.userService=i;this.organisationService=e;this.ngUnsubscribe=new Q;this.loaded=!1}ngOnInit(){Me([this.userService.fetchCachedUser(),this.organisationService.getActiveOrgLinks$()]).pipe(se(([i,e])=>{this.user=i,this.orgLinks=zn(e,n=>{let o=n.orgUser.orgDetail;return ct(ne({},n),{orgLogoURL:o?sl(o.code):null})}),this.partnerMemberships=el(i.socials||[])}),q(this.ngUnsubscribe)).subscribe({complete:()=>{this.loaded=!0}})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static{this.\u0275fac=function(e){return new(e||t)(y(K),y(ss))}}static{this.\u0275cmp=Y({type:t,selectors:[["ng-component"]],decls:8,vars:2,consts:[["orgEmailInfo",""],[1,"mt-1","mb-4"],[3,"partnerMembership"],[1,"mb-4"],[1,"card","card-height-max"],[1,"mt-2"],[1,"card-body"],[1,"row"],[1,"col-12","bottom-border-responsive"],[1,"d-flex","flex-row","align-items-center","h-100"],[1,"avatar","mr-4"],["onerror","this.src='./images/image-missing.gif';","alt","org image",1,"avatar-img","rounded-circle",3,"src"],[1,"f-3","text-dark"],[1,"f-4","d-flex","flex-column","flex-sm-row","text-dark"],[1,"f-6","text-dark","mt-1","mb-0"],[1,"text-nowrap","mr-2"],[1,"text-nowrap"],[3,"popover","outsideClick","triggers","placement"],["name","information-circle","size","f-paragraph",3,"svgStyle"],[1,"org-email__tooltip"],[1,"tooltip__title","mb-2"],[1,"tooltip__content"],[3,"body"]],template:function(e,n){e&1&&(l(0,"h4",1),c(1,"Linked A
1ccounts"),s(),R(2,qc,1,1,"partner-membership-card",2,J),u(4,Qc,5,0,"div",3),jn(5,Jc,5,0,"ng-template",null,0,Wn),u(7,Kc,2,1,"div")),e&2&&(r(2),F(n.partnerMemberships),r(2),_(n.orgLinks&&n.orgLinks.length>0?4:-1),r(3),_(n.loaded&&!(n.orgLinks!=null&&n.orgLinks.length)?7:-1))},dependencies:[Eo,so,ke,Fs],styles:[".sl-icon[_ngcontent-%COMP%]{padding-bottom:4px}.org-email__tooltip[_ngcontent-%COMP%] .tooltip__title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;line-height:24px}.org-email__tooltip[_ngcontent-%COMP%] .tooltip__content[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px}"]})}};var zt=aa(ha());var Zc=["qualificationForm"],bl=()=>({position:"relative","bottom.px":2}),Lo=(t,i)=>i.qualID,em=(t,i)=>i.boardID;function tm(t,i){if(t&1&&(l(0,"tr")(1,"td")(2,"strong"),c(3,"State"),s()(),l(4,"td"),c(5),w(6,"stateName"),s()()),t&2){let e=d();r(5),M(" ",ye(6,1,e.professionalProfile==null?null:e.professionalProfile.state,e.professionalProfile==null?null:e.professionalProfile.country)," ")}}function im(t,i){if(t&1&&(l(0,"tr")(1,"td")(2,"strong"),c(3,"Profession Title"),s()(),l(4,"td"),c(5),s()()),t&2){let e=d();r(5),M(" ",e.professionalProfile!=null&&e.professionalProfile.otherProfession?e.professionalProfile==null?null:e.professionalProfile.otherProfession:"Not Provided"," ")}}function nm(t,i){if(t&1){let e=D();l(0,"div")(1,"select-plus-text",30),j("ngModelChange",function(o){p(e);let a=d(2);return B(a.ptDropdownSelection,o)||(a.ptDropdownSelection=o),f(o)}),C("change",function(){p(e);let o=d(2);return f(o.changeProfessionTitleChosen())}),s()()}if(t&2){let e=d(2);r(),H("ngModel",e.ptDropdownSelection),g("options",e.availablePTitles)("placeholder","Please provide your profession title")("showQ2When","other")("initialSelection","Please select your profession title")}}function om(t,i){if(t&1){let e=D();l(0,"div")(1,"div",31),c(2,"Please provide your profession title:"),s(),l(3,"input",32),j("ngModelChange",function(o){p(e);let a=d(2);return B(a.updateData.professionTitle,o)||(a.updateData.professionTitle=o),f(o)}),C("change",function(){p(e);let o=d(2);return f(o.modifyPT())}),s()()}if(t&2){let e=d(2);r(3),H("ngModel",e.updateData.professionTitle)}}function am(t,i){t&1&&x(0,"ui-spinner",23)}function rm(t,i){if(t&1&&(l(0,"div",26),c(1),s()),t&2){let e=d(2);r(),M(" ",e.updateDetailErrorMsg," ")}}function sm(t,i){if(t&1){let e=D();l(0,"div"),u(1,nm,2,5,"div"),u(2,om,4,1,"div"),l(3,"button",28),C("click",function(){p(e);let o=d();return f(o.updateProfessionTitle())}),u(4,am,1,0,"ui-spinner",23),c(5," Save profession title "),s(),l(6,"div",29),c(7),s(),u(8,rm,2,1,"div",26),s()}if(t&2){let e=d();r(),_(e.existData.hasOtherPorf&&e.existData.hasOtherBoard?1:-1),r(),_(e.existData.hasOtherPorf&&!e.existData.hasOtherBoard?2:-1),r(),g("disabled",e.submittingRequest),r(),_(e.submittingRequest?4:-1),r(2),g("hidden",!e.updateDetailSuccessMsg),r(),M(" ",e.updateDetailSuccessMsg," "),r(),_(e.updateDetailErrorMsg?8:-1)}}function lm(t,i){t&1&&(l(0,"div",26),c(1," Required "),s())}function dm(t,i){if(t&1){let e=D();l(0,"div",16)(1,"label",33)(2,"strong"),c(3,"Date of Birth"),s()(),l(4,"div",34)(5,"input",35,2),j("ngModelChange",function(o){p(e);let a=d();return B(a.updateData.dateOfBirth,o)||(a.updateData.dateOfBirth=o),f(o)}),C("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(8);return f(o.open())})("click",function(){p(e);let o=v(8);return f(o.open())})("dateChange",function(){p(e);let o=d();return f(o.dateOfBirthChange())}),s()(),x(7,"mat-datepicker",null,3),u(9,lm,2,0,"div",26),s()}if(t&2){let e=v(8),n=d(),o=v(3);r(5),g("matDatepicker",e),H("ngModel",n.updateData.dateOfBirth),g("required",n.updateData.needDoB),r(4),_((o==null?null:o.controls).dob!=null&&(o==null?null:o.controls).dob.invalid?9:-1)}}function cm(t,i){if(t&1){let e=D();l(0,"div")(1,"a",36),C("click",function(){p(e);let o=d();return f(o.startChangePT())}),l(2,"small"),c(3,"Change your profession title?"),s()()()}}function mm(t,i){if(t&1){let e=D();l(0,"div")(1,"a",36),C("click",function(){p(e);let o=d();return f(o.startMigState())}),l(2,"small"),c(3,"Move to new state?"),s()()()}}function um(t,i){t&1&&(l(0,"div"),x(1,"ui-spinner",37),s())}function _m(t,i){if(t&1&&(l(0,"div",41),c(1),s()),t&2){let e=d().$implicit,n=d();r(),M(" ",n.extraDescriptionByQual[e.qualID]," ")}}function pm(t,i){if(t&1){let e=D();l(0,"div",16)(1,"label",47),c(2),s(),l(3,"input",48),C("ngModelChange",function(o){p(e);let a=d(),m=d(3);return a.regNum=o,f(m.updateMEDDisclaimer())}),s()()}if(t&2){let e=d(),n=d(2).$implicit,o=d();r(),g("for",G("regNum-"+n.qualID)),r(),I(o.getRegTitle()),r(),g("id",G("regNum-"+n.qualID))("name",G("regNum-"+n.qualID))("ngModel",e.reg
1Num)}}function fm(t,i){t&1&&(l(0,"small",26),c(1,"Please set your registration start date"),s())}function hm(t,i){if(t&1){let e=D();l(0,"div",16)(1,"label"),c(2),s(),l(3,"div",34)(4,"input",45),C("ngModelChange",function(o){p(e);let a=d(),m=d(2).$implicit,h=d();return a.endDate=o,h.validateProfession(),f(h.validateProfessionDates(m.qualID))})("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(6);return f(o.open())})("click",function(){p(e);let o=v(6);return f(o.open())}),s()(),x(5,"mat-datepicker",null,5),s()}if(t&2){let e=v(6),n=d(),o=d(3);r(2),M("When did you finish?",o.updateData.needStartDate?"*":""),r(2),g("name",G("practiceEndDate-"+n.qualification))("matDatepicker",e)("ngModel",n.endDate)("required",o.updateData.needStartDate)("min",n.startDate||null)("max",o.datePickerConfig.maxDate)}}function gm(t,i){if(t&1){let e=D();l(0,"div",42),u(1,pm,4,8,"div",16),l(2,"div",16)(3,"label"),c(4),s(),l(5,"button",43),x(6,"ui-streamline-icon",44),s(),l(7,"div",34)(8,"input",45),C("ngModelChange",function(o){let a=p(e),m=d(2).$implicit,h=d();return a.startDate=o,h.validateProfession(),f(h.validateProfessionDates(m.qualID))})("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(10);return f(o.open())})("click",function(){p(e);let o=v(10);return f(o.open())}),s()(),x(9,"mat-datepicker",null,4),u(11,fm,2,0,"small",26),s(),u(12,hm,7,8,"div",16),l(13,"div",16)(14,"div",38)(15,"input",46),C("change",function(){let o=p(e),a=d(2).$implicit,m=d();return m.toggleIsCurrent(o),f(m.validateProfessionDates(a.qualID))}),s(),l(16,"label",40),c(17,"Add an end date"),s()()()()}if(t&2){let e=i,n=v(10),o=d(2).$implicit,a=d(),m=v(3),h=v(52);r(),_(a.showRegNumInput(o.name)?1:-1),r(3),M("When did you start?",a.updateData.needStartDate?"*":""),r(),g("popover",h)("outsideClick",!0),Oe("aria-label","Show more information"),r(),g("svgStyle",Pt(22,bl)),r(2),g("name",G("practiceStartDate-"+e.qualification))("matDatepicker",n)("ngModel",e.startDate)("required",a.updateData.needStartDate)("min",a.datePickerConfig.minDate)("max",a.today),r(3),_((m==null?null:m.controls)["practiceStartDate-"+e.qualification]!=null&&(m==null?null:m.controls)["practiceStartDate-"+e.qualification].invalid?11:-1),r(),_(e.isCurrent?-1:12),r(3),g("id",G("isCurrent-"+e.qualification))("name",G("practiceIsCurrent-"+e.qualification))("checked",!e.isCurrent),r(),g("for",G("isCurrent-"+e.qualification))}}function Cm(t,i){if(t&1&&u(0,gm,18,23,"div",42),t&2){let e,n=d().$implicit,o=d();_((e=o.getProfessionPracticeByQualId(n.qualID))?0:-1,e)}}function ym(t,i){if(t&1){let e=D();l(0,"div",38)(1,"input",39),C("change",function(){let o=p(e).$implicit,a=d();return a.chooseProfession(o,o.qualID),f(a.validateProfessionDates(o.qualID))}),s(),l(2,"label",40),c(3),w(4,"professionName"),s()(),u(5,_m,2,1,"div",41),u(6,Cm,1,1)}if(t&2){let e=i.$implicit,n=d();r(),g("id",G("update-"+e.qualID))("checked",n.updateData.chosenProfessions[e.qualID])("disabled",n.availableProfessions.length===1&&n.availableProfessions[0].endorsements.length<1),r(),g("for",G("update-"+e.qualID)),r(),oi("",O(4,10,e.name),"",n.isNonPractisingProf(e.qualID)?"*":""),r(2),_(n.updateData!=null&&n.updateData.chosenProfessions[e.qualID]&&n.extraDescriptionByQual[e.qualID]?5:-1),r(),_(n.updateData.chosenProfessions[e.qualID]?6:-1)}}function bm(t,i){if(t&1&&(l(0,"small"),c(1),l(2,"a",49),c(3,"+61 1300 287 633"),s(),c(4,", or send an email to "),l(5,"a",50),c(6,"[email protected]"),s()()),t&2){let e=d();r(),M("You are currently signed up as ",e.nonPractisingProfSummary,". If you would like to change to 'Practising' please contact our Customer Service team at ")}}function vm(t,i){t&1&&(l(0,"div",18),c(1,"Ausmed is a CPD portfolio tool, not an Australian Medical Council (AMC) accredited CPD home. Remember to upload your PDF report to your chosen CPD home to meet your registration requirements"),s())}function Dm(t,i){if(t&1&&(l(0,"div",52),c(1),s()),t&2){let e=d().$implicit;r(),I(e.name)}}function xm(t,i){if(t&1){let e=D();l(0,"div",34)(1,"input",55),C("ngModelChange",function(o){p(e);let a=d(),m=d(3).$implicit,h=d(2);
1return a.startDate=o,f(h.validateProfessionDates(m.qualID))})("paste",function(o){return o.preventDefault()})("focus",function(){p(e),d();let o=v(8);return f(o.open())})("click",function(){p(e),d();let o=v(8);return f(o.open())}),s()()}if(t&2){let e=i,n=d(),o=v(8);r(),g("name",G("practiceStartDate-"+n.qualification))("matDatepicker",o)("ngModel",n.startDate)("min",e.min)("max",e.max)}}function Mm(t,i){if(t&1){let e=D();l(0,"div",34)(1,"input",55),C("ngModelChange",function(o){p(e);let a=d(2),m=d(3).$implicit,h=d(2);return a.endDate=o,f(h.validateProfessionDates(m.qualID))})("paste",function(o){return o.preventDefault()})("focus",function(){p(e),d();let o=v(5);return f(o.open())})("click",function(){p(e),d();let o=v(5);return f(o.open())}),s()()}if(t&2){let e=i;d();let n=v(5),o=d();r(),g("name",G("practiceEndDate-"+o.qualification))("matDatepicker",n)("ngModel",o.endDate)("min",e.min)("max",e.max)}}function wm(t,i){if(t&1&&(l(0,"div",16)(1,"label"),c(2,"When did you finish?"),s(),u(3,Mm,2,6,"div",34),x(4,"mat-datepicker",null,7),s()),t&2){let e,n=d(),o=d(3).$implicit,a=d(2);r(3),_((e=a.getEndorsEndDateRestriction(o.qualID,n.startDate))?3:-1,e)}}function Sm(t,i){if(t&1){let e=D();l(0,"div",42)(1,"div",16)(2,"label"),c(3,"When did you start?"),s(),l(4,"button",43),x(5,"ui-streamline-icon",44),s(),u(6,xm,2,6,"div",34),x(7,"mat-datepicker",null,6),s(),u(9,wm,6,1,"div",16),l(10,"div",16)(11,"div",38)(12,"input",46),C("change",function(){let o=p(e),a=d(3).$implicit,m=d(2);return m.toggleIsCurrent(o),f(m.validateProfessionDates(a.qualID))}),s(),l(13,"label",40),c(14,"Add an end date"),s()()()()}if(t&2){let e,n=i,o=d(3).$implicit,a=d(2),m=v(52);r(4),g("popover",m)("outsideClick",!0),Oe("aria-label","Show more information"),r(),g("svgStyle",Pt(13,bl)),r(),_((e=a.getEndorsStartDateRestriction(o.qualID))?6:-1,e),r(3),_(n.isCurrent?-1:9),r(3),g("id",G("isCurrent-"+n.qualification))("name",G("practiceIsCurrent-"+n.qualification))("checked",!n.isCurrent),r(),g("for",G("isCurrent-"+n.qualification))}}function km(t,i){if(t&1&&u(0,Sm,15,14,"div",42),t&2){let e,n=d().$implicit,o=d().$implicit,a=d(2);_((e=a.getEndorsPracticeByQualId(n.qualID,o.qualID))?0:-1,e)}}function Tm(t,i){if(t&1){let e=D();l(0,"div",53)(1,"div",38)(2,"input",54),C("change",function(){let o=p(e).$implicit,a=d().$implicit,m=d(2);return m.chooseEndorsement(o,a.qualID),f(m.validateProfessionDatesByPractice(a.qualID))}),s(),l(3,"label",40),c(4),s()(),u(5,km,1,1),s()}if(t&2){let e=i.$implicit,n=d().$implicit,o=d(2);g("id",G("update-endorse-"+n.qualID)),r(2),g("id",G("update-"+e.qualID))("checked",o.updateData.chosenEndorsements[e.qualID]),r(),g("for",G("update-"+e.qualID)),r(),I(e.name),r(),_(o.updateData.chosenEndorsements[e.qualID]?5:-1)}}function Pm(t,i){if(t&1&&(l(0,"div"),u(1,Dm,2,1,"div",52),R(2,Tm,6,9,"div",53,Lo),s()),t&2){let e=i.$implicit,n=d(2);S("d-none",!n.updateData.chosenProfessions[e.qualID]),r(),_(e.endorsements.length!==0?1:-1),r(),F(e.endorsements)}}function Em(t,i){if(t&1&&(l(0,"div",19)(1,"div",17)(2,"h5",13),c(3,"Endorsements"),s(),l(4,"div",14)(5,"p"),c(6,"The endorsement of registration identifies health professionals with additional qualifications and specific expertise who meet the requirements of the relevant registration standard."),s(),R(7,Pm,4,3,"div",51,Lo),s()()()),t&2){let e=d();g("hidden",e.reloadPage),r(),g("hidden",!e.showEndorseArea||e.availableEndorsements.length<1||e.showMigArea),r(6),F(e.availableProfessions)}}function Lm(t,i){t&1&&x(0,"ui-spinner",23)}function Im(t,i){if(t&1){let e=D();l(0,"div",16)(1,"label",56),c(2," Select the state you would like to move to "),s(),l(3,"div",57),C("stateChanged",function(o){p(e);let a=d(2);return f(a.updateAvailableBoards(a.professionalProfile.country,o))}),s()()}if(t&2){let e=d(2);r(3),g("initState",e.dropDownSelect.state)("selectedCountry",e.professionalProfile.country)("isRequired",!1)}}function Ym(t,i){if(t&1&&(l(0,"option",62),c(1),s()),t&2){let e=i.$implicit;g("value",e.boardID),r(),M(" ",e.name," ")}}function Vm(t,i){if(t&1){let e=D();l(0,"div",16)(1,"label",58),c(2," Select the board you would like to move to "),s(),l(3,"div",59)(4,"select",60,8),j("ngModelChange",function(o){p(e);let a=d(2);return B(a.dropDownSelect.board,o)||(a.dropDownSelect.board=o),f(o)}),C("change",function(){p(e);let o=d(2);return f(o.chooseNewBoard())}),l(6,"option",61),c(7,"Select your board"),s(),R(8,Ym,2,2,"option",62,em),s()()()}if(t&2){let e=d(2);r(4),H("ngModel",e.dropDownSelect.board),g("required",!1),r(4),F(e.availableBoards)}}function Am(t,i){if(t&1&&(l(0,"option",62),c(1),w(2,"professionName"),s()),t&2){let e=i.$implicit;g("value",e.qualID),r(),M(" ",O(2,2,e.name)," ")}}
1function Om(t,i){if(t&1){let e=D();l(0,"div",16)(1,"label",63),c(2," Select the profession you would like to move to "),s(),l(3,"div",59)(4,"select",64,9),j("ngModelChange",function(o){p(e);let a=d(2);return B(a.dropDownSelect.prof,o)||(a.dropDownSelect.prof=o),f(o)}),C("change",function(){p(e);let o=d(2);return f(o.chooseNewProf())}),l(6,"option",61),c(7,"Select your profession"),s(),R(8,Am,3,4,"option",62,Lo),s()()()}if(t&2){let e=d(2);r(4),H("ngModel",e.dropDownSelect.prof),g("required",!1),r(4),F(e.availableProfessions)}}function Rm(t,i){if(t&1){let e=D();l(0,"div",16)(1,"label",65),c(2,"Select your date of birth"),s(),l(3,"div",34)(4,"input",66,2),j("ngModelChange",function(o){p(e);let a=d(2);return B(a.updateData.dateOfBirth,o)||(a.updateData.dateOfBirth=o),f(o)}),C("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(7);return f(o.open())})("click",function(){p(e);let o=v(7);return f(o.open())})("dateChange",function(){p(e);let o=d(2);return f(o.dateOfBirthChange())}),s()(),x(6,"mat-datepicker",null,3),s()}if(t&2){let e=v(7),n=d(2);r(4),g("matDatepicker",e),H("ngModel",n.updateData.dateOfBirth),g("required",!1)}}function Fm(t,i){if(t&1&&(l(0,"div",17)(1,"h5",13),c(2),s(),l(3,"div",14)(4,"p")(5,"small"),c(6),s()(),u(7,Im,4,3,"div",16),u(8,Vm,10,2,"div",16),u(9,Om,10,2,"div",16),u(10,Rm,8,3,"div",16),s()()),t&2){let e=d();g("hidden",e.reloadPage),r(2),M(" Migrate to a New ",e.startMigrateState?"State":e.updateData.migProf?"Profession":"Board"," "),r(4),M(" *All activities documented will be moved to your selected ",e.startMigrateState?"state":e.updateData.migProf?"profession":"board"," "),r(),_(e.updateData.needState&&e.updateData.changeBoard?7:-1),r(),_(e.updateData.changeBoard?8:-1),r(),_(e.updateData.migProf?9:-1),r(),_(e.updateData.needDoB&&e.showMigArea&&e.updateData.changeBoard?10:-1)}}function Hm(t,i){t&1&&x(0,"ui-spinner",23)}function Bm(t,i){if(t&1){let e=D();l(0,"button",21),C("click",function(){p(e);let o=d();return f(o.migrateQualification())}),l(1,"span",22),u(2,Hm,1,0,"ui-spinner",23),c(3," Migrate"),s()()}if(t&2){let e=d(),n=v(3);g("hidden",e.reloadPage)("disabled",e.submittingRequest||n.invalid||e.nonPractisingClash||e.otherProfClash),r(2),_(e.submittingRequest?2:-1)}}function jm(t,i){if(t&1){let e=D();l(0,"button",67),C("click",function(){p(e);let o=d();return f(o.cancelMigState())}),c(1," Cancel "),s()}if(t&2){let e=d();g("disabled",e.submittingRequest)}}function Nm(t,i){t&1&&(l(0,"div"),c(1," Please select a profession "),s())}function Wm(t,i){t&1&&(l(0,"div"),c(1," You cannot choose another profession when you are non-practising "),s())}function Um(t,i){t&1&&(l(0,"div"),c(1," You cannot choose another profession when you are a student "),s())}function qm(t,i){t&1&&(l(0,"div"),c(1,' You cannot choose another profession when you choose "Other profession" '),s())}function $m(t,i){t&1&&(l(0,"div"),c(1," Please make sure your endorsement start and end date range are within your profession start and end date range. "),s())}function zm(t,i){if(t&1&&(l(0,"div",26),u(1,Nm,2,0,"div"),u(2,Wm,2,0,"div"),u(3,Um,2,0,"div"),u(4,qm,2,0,"div"),u(5,$m,2,0,"div"),s()),t&2){let e=d();r(),_(e.requiredProfession?1:-1),r(),_(e.nonPractisingClash?2:-1),r(),_(e.studentClash?3:-1),r(),_(e.otherProfClash?4:-1),r(),_(e.durationConflict?5:-1)}}function Gm(t,i){if(t&1&&(l(0,"div",26),c(1),s()),t&2){let e=d(2);r(),I(e.updateErrorMsg)}}function Qm(t,i){if(t&1&&(u(0,Gm,2,1,"div",26),l(1,"div",68),c(2),s()),t&2){let e=d();_(e.updateErrorMsg?0:-1),r(),g("hidden",!e.updateSuccessMsg),r(),I(e.updateSuccessMsg)}}function Jm(t,i){if(t&1&&(l(0,"div",27),c(1),s()),t&2){let e=d();r(),M(" ",e.saveErrorMessage," ")}}function Km(t,i){t&1&&(l(0,"div",69)(1,"div",70),c(2,"Enabling pro rata CPD"),s(),l(3,"div",71),c(4,"In some cases your CPD may be pro rata. For example, if you became registered or gained an endorsement part way through a CPD period. By entering the date you started, your Portfolio will accurately reflect your CPD requirement in each period."),s()())}var Bi=class t extends ao(){constructor(e,n,o,a,m,h,b,k,V){super(k);
1this.qualificationService=e;this.mnInitializeService=n;this.cpdoService=o;this.qualificationIdToName=a;this.userService=m;this.platformId=h;this.dialog=b;this.injector=k;this.changeDetectorRef=V;this.ngUnsubscribe=new Q;this.countryNeedState={USA:!0};this.boardMigrateBoards={[ns]:!0};this.profMigrateProfs={[es]:!0};this.currentBoardName="";this.existData={};this.datePickerConfig={};this.updateSuccessMsg="";this.updateErrorMsg="";this.updateDetailSuccessMsg="";this.updateDetailErrorMsg="";this.today=new Date;this.availableBoards=[];this.availableQualifications=[];this.availableProfessions=[];this.availableEndorsements=[];this.availableRegulations=[];this.updateData={chosenProfessions:{},chosenEndorsements:{},hasOtherBoard:!1};this.dropDownSelect={state:"",board:"",prof:""};this.showEndorseArea=!1;this.startMigrateState=!1;this.startChangeProfessionTitle=!1;this.startMigrateBoard=!1;this.reloadPage=!1;this.showMEDDisclaimer=!1;this.extraDescriptionByQual={};this.toggleIsCurrent=e=>{e.isCurrent=!e.isCurrent,e.isCurrent&&(e.endDate=void 0)}}ngOnInit(){this.datePickerConfig.minDate=new Date,this.datePickerConfig.minDate.setFullYear(this.today.getFullYear()-50),this.datePickerConfig.maxDate=new Date,this.datePickerConfig.maxDate.setFullYear(this.today.getFullYear()+10),this.datePickerConfig.yearRange=`${this.datePickerConfig.minDate.getFullYear()}:${this.datePickerConfig.maxDate.getFullYear()}`,this.availablePTitles=P.map(this.qualificationService.getOtherProfessionalTitles(),e=>({key:e!=="Other (please enter)"?e:"other",text:e})),this.getRawUserData()}getRawUserData(e){Me([this.userService.getUser(),this.qualificationService.fetchProfessionalProfiles(),this.runSubsQuery$(["pii"])]).pipe(q(this.ngUnsubscribe),sa(([n,o])=>{this.getExtraDescriptionForProfs(),this.user=JSON.parse(JSON.stringify(n)),this.professionalProfile=ne({},o[0]),this.isNMBA=o&&o[0]?o[0].board===os:!1;let a=[this.qualificationService.fetchCachedPractices(this.professionalProfile.pProfileID,e)];return P.isEmpty(this.professionalProfile)||(a.push(this.qualificationService.fetchRegulations(this.professionalProfile.board)),a.push(this.qualificationService.fetchBoards(this.professionalProfile)),a.push(this.qualificationService.fetchQualificationsByBoard(!1,this.professionalProfile.board))),Me([...a]).pipe(q(this.ngUnsubscribe))})).subscribe(n=>{n&&n.length>0&&(this.existData.existPractices=this.modifyPracticesDate(JSON.parse(JSON.stringify(n[0]))),n.length>1&&(this.availableRegulations=n[1],this.availableBoards=n[2],this.availableQualifications=JSON.parse(JSON.stringify(n[3])),this.constructQualificationList())),this.initialPageStatus(),e&&this.updateChosenFiles(e)},n=>{console.log(n),alert("Oops! Something has gone wrong when preparing your page, please try again later or contact us for more information.")})}modifyPracticesDate(e){let n=o=>{o.startDate&&(o.startDate=ki(o.startDate)),o.endDate&&(o.endDate=ki(o.endDate)),o.endDate||(o.isCurrent=!0)};for(let o of e){n(o);let a=o.endorsementPractices;if(a)for(let m of a)n(m)}return e}initialPageStatus(){this.existData.existBoard=this.professionalProfile.boardModel,this.existData.hasOtherBoard=this.boardMigrateBoards[this.existData.existBoard.boardID],this.existData.hasOtherPorf=P.some(this.existData.existPractices,e=>!!this.profMigrateProfs[e.qualification]),this.submittingRequest=!1,this.dataChanged=!1,this.startMigrateBoard=!1,this.nonPractisingClash=!1,this.studentClash=!1,this.otherProfClash=!1,this.requiredProfession=!1,this.durationConflict=!1,this.updateDetailSuccessMsg="",this.updateDetailErrorMsg="",this.showMigArea=this.existData.hasOtherBoard||this.existData.hasOtherPorf||this.startMigrateState,this.existData.hasOtherPorf&&this.existData.hasOtherBoard?this.processProfessionTitleSelection(this.professionalProfile.otherProfession):this.existData.hasOtherPorf&&!this.existData.hasOtherBoard&&(this.updateData.professionTitle=this.professionalProfile.otherProfession?this.professionalProfile.otherProfession:null),this.checkDBandSD(),this.updateData.needState=this.countryNeedState[this.professionalProfile.country],this.updateData.changeBoard=this.startMigrateState?this.startMigrateState:this.existData.hasOtherBoard,this.updateData.migProf=this.startMigrateState?!this.startMigrateState:this.existData.existPractices&&this.existData.existPractices.length===1&&this.existData.hasOtherPorf&&!this.existData.hasOtherBoard,this.updateData.state=this.professionalProfile.state?this.professionalProfile.state:null,this.updateData.board=this.professionalProfile.boardModel?this.professionalProfile.boardModel:null,this.updateData.practices=[...this.existData.existPractices],this.updateMEDDisclaimer(),this.updateData.hasOtherBoard=this.boardMigrateBoards[this.updateData.board.boardID],this.checkEndorsementChooseDis
1play(),this.existData.savedDoB=this.updateData.dateOfBirth=this.user.dateOfBirth?this.user.dateOfBirth:null,(this.startMigrateState||this.showMigArea)&&this.prepfillDropDownSelect(),this.validateProfession(),this.generateNonPractisingProfSummary()}checkDBandSD(){this.updateData.needDoB=P.some(this.availableRegulations,e=>!!e.birthDayMonths),this.updateData.needStartDate=P.some(this.availableRegulations,e=>!e.renewalStartDay)}processProfessionTitleSelection(e){if(e&&e!==""){let n=P.find(this.availablePTitles,o=>o.text===e);n?this.ptDropdownSelection=n:this.ptDropdownSelection={key:"other",text:e},this.updateData.professionTitle=e}else this.ptDropdownSelection={key:""},this.updateData.professionTitle=null}updateAvailableBoards(e,n){this.dropDownSelect.state=n,n!==this.professionalProfile.state&&(this.dataChanged=!0,this.updateData.state=n,this.qualificationService.fetchBoards({country:e,state:n}).pipe(q(this.ngUnsubscribe)).subscribe(o=>{this.availableBoards=o}),this.dropDownSelect.board="",this.updateData.board=null,this.initialiseAvailableProfs(),this.initialiseChosenPractices())}ngAfterContentInit(){this.updateChosenFiles()}updateChosenFiles(e){this.cpdoService.getProfessionalPractices().pipe(q(this.ngUnsubscribe)).subscribe(n=>{if(n.length>0){this.updateData.chosenProfessions={};for(let o of n)this.updateData.chosenProfessions[o.qualification]=!0,_t(this.platformId)&&($("#update-"+o.qualification+" .endorsement-mark").text(o.endorsementPractices.length),o.endorsementPractices.length<1?$("#update-"+o.qualification+" .endorsement-mark").hide():$("#update-"+o.qualification+" .endorsement-mark").show())}e&&(this.reloadPage=!1)}),this.cpdoService.getEndorsementPractices().pipe(q(this.ngUnsubscribe)).subscribe(n=>{if(n.length>0){this.updateData.chosenEndorsements={};for(let o of n)this.updateData.chosenEndorsements[o.qualification]=!0}})}changeBoard(){this.updateData.board?Me([this.qualificationService.fetchRegulations(this.updateData.board.boardID),this.qualificationService.fetchQualificationsByBoard(!0,this.updateData.board.boardID)]).pipe(q(this.ngUnsubscribe)).subscribe(([e,n])=>{this.availableRegulations=e,this.availableQualifications=JSON.parse(JSON.stringify(n)),this.constructQualificationList(),this.checkDBandSD(),this.boardMigrateBoards[this.updateData.board.boardID]&&this.availableProfessions.length===1&&this.chooseProfession(this.availableProfessions[0],this.availableProfessions[0].qualID),this.updateMEDDisclaimer()}):(this.initialiseAvailableProfs(),this.showMEDDisclaimer=!1),this.initialiseChosenPractices()}constructQualificationList(){this.availableProfessions=[],this.availableEndorsements=[];for(let e of this.availableQualifications){e.qualType==="Profession"&&this.availableProfessions.push(e),e.qualType==="Endorsement"&&this.availableEndorsements.push(e);let n;for(let o of this.availableProfessions)o.name==="Other"&&(n=o),o.endorsements=P.filter(this.availableEndorsements,a=>P.contains(a.professions,o.qualID));this.availableProfessions=P.without(this.availableProfessions,n)}}dateOfBirthChange(){this.dataChanged=!0}updateRegstoPracs(e){P.map(this.updateData.practices,n=>{let o=P.find(e,a=>P.contains(a.qualifications,n.qualification));n.regulation=o?o.regulationID:null})}modifyPT(){this.dataChanged=!0}updateProfessionTitle(){this.submittingRequest=!0,this.updateProfessionProf(!0).pipe(sa(()=>
1this.qualificationService.fetchProfessionalProfiles()),re(()=>(this.updateSuccessMsg="",this.updateErrorMsg="",this.updateDetailSuccessMsg="Update Successfully",this.getRawUserData(!0),this.startChangeProfessionTitle=!1,this.submittingRequest=!1,this.mnInitializeService.initializeAsync({calculatePlan:!0,redirect:!1,refreshRecent:!0}).pipe(je(1)))),q(this.ngUnsubscribe),Hn(e=>(console.log(e),this.updateDetailErrorMsg="Failed in update Profession Title",Pr(e)))).subscribe()}updateProfessionProf(e){return e?this.professionalProfile.otherProfession=this.updateData.professionTitle?this.updateData.professionTitle:null:(this.professionalProfile.otherProfession=this.updateData.practices&&this.updateData.practices.length===1&&this.profMigrateProfs[this.updateData.practices[0].qualification]&&this.updateData.professionTitle?this.updateData.professionTitle:null,this.professionalProfile.board=this.updateData.board?this.updateData.board.boardID:this.professionalProfile.board,this.professionalProfile.state=this.updateData.state?this.updateData.state:this.professionalProfile.state),this.qualificationService.updateProfessionalProfile(this.professionalProfile.pProfileID,this.professionalProfile)}updateDoBandRegs(){return this.user.dateOfBirth=(0,zt.default)(this.updateData.dateOfBirth).format("YYYY-MM-DD"),Be(this.userService.updateUser(this.user)).then(()=>new Promise(e=>{setTimeout(e,4e3)})).then(()=>{let e=this.qualificationService.fetchRegulations(this.professionalProfile.board).pipe(q(this.ngUnsubscribe));return Be(e).then(n=>{this.availableRegulations=n,this.updateRegstoPracs(this.availableRegulations)})})}prepareSubmission(){return this.requiredProfession=!1,this.updateSuccessMsg="",this.updateErrorMsg="",this.qualificationForm.invalid?!1:(this.professionalProfile.board&&this.availableProfessions.length===1&&this.availableProfessions[0].endorsements.length<1&&!this.updateData.chosenProfessions[this.availableProfessions[0].qualID]&&(this.updateData.practices=[],this.chooseProfession(this.availableProfessions[0],this.availableProfessions[0].qualID)),this.updateData.practices.length<1?(this.requiredProfession=!0,!1):(this.submittingRequest=!0,this.dataChanged=!1,!0))}updateQualification(){if(!this.prepareSubmission())return;if(this.updateData.practices.forEach(n=>{this.validateProfessionDatesByPractice(n)}),this.durationConflict){this.submittingRequest=!1;return}let e;this.existData.savedDoB&&this.updateData.dateOfBirth&&this.existData.savedDoB!==(0,zt.default)(this.updateData.dateOfBirth).format("YYYY-MM-DD")||!this.existData.savedDoB&&this.updateData.dateOfBirth?e=this.updateDoBandRegs():e=Promise.resolve(),e.then(()=>{let n=this.processPractices(),o=this.qualificationService.setPractices(n,this.professionalProfile.pProfileID);Be(o).then(()=>new Promise(a=>{this.updateData.needDoB?setTimeout(a,4e3):setTimeout(a,2e3)})).then(()=>{this.accessDict.pii&&this.updateData.chosenProfessions[ga]&&this.dialog.open(Ve,{disableClose:!0,panelClass:"ui-dialog",data:{title:"Professional Details",message:`<p>Your profession details have been updated. </p> 2 <p>However, please note that <strong>Ausmed\u2019s PII policy does not cover midwifery practice</strong>. To ensure compliance and protection, you will need to explore a separate policy specifically for midwifery.</p> 3 <p>You can contact our insurance partner for assistance in obtaining individual coverage for midwifery.</p> 4 <p><strong>Shaw Insurance:</strong> [email protected]</p> 5 `,acceptMessage:"Got it"}})}).then(()=>{this.submittingRequest=!1,this.updateSuccessMsg="Updated Successfully",this.getRawUserData(!0);let a=this.mnInitializeService.initializeAsync({calculatePlan:!0,redirect:!1,refreshRecent:!0});return Be(a)}).catch(a=>{console.log(a),this.submittingRequest=!1,alert("Oops! Something has gone wrong, please try again later.")})}).catch(n=>{console.log(n),this.submittingRequest=!1,n.error&&n.error.data&&n.error.data.message?this.updateErrorMsg=n.error.data.message:alert("Oops! Something has gone wrong, please try again later.")})}migrateQualification(){this.updateSuccessMsg="",this.updateErrorMsg="";let e=this.checkValidMigrationForm();if(!e.result){alert(e.message);return}if(!this.prepareSubmission())return;let n="",o=0,a=[{qualification:this.updateData.practices[0].qualification,regulation:this.updateData.practices[0].regulation}];
5Promise.all([Be(this.qualificationService.bulkFetchGroups(!1,this.updateData.practices.map(m=>m.qualification))),this.qualificationService.checkBoardMigration(this.professionalProfile.pProfileID,a)]).then(([m,h])=>{m.length>0&&(n=m[0].groupID),h&&h.noQualActivityNum&&(o=h.noQualActivityNum),this.dialog.open(Ve,{disableClose:!0,panelClass:"ui-dialog",data:{title:this.updateData.changeBoard?"Migrate to New Board":"Migrate to New Profession",message:`This is important<p>You are about to move ${o>0?o+" activities":""} to the <strong>${this.updateData.changeBoard?this.updateData.board.name:this.getProfFromId(this.updateData.practices[0].qualification).name}</strong>.</p>`+(n===""?"":`<p>${this.qualificationIdToName.transform(this.updateData.practices[0].qualification,this.availableProfessions)} is required to document CPD/CE by groups. You will need to review each activity and manually assign it to a group for this to work.</p>`)+"<p>Click Yes to proceed.</p>",rejectMessage:"No",acceptMessage:"Yes"}}).afterClosed().subscribe(k=>{k?Be(this.updateProfessionProf()).then(V=>{V.pProfileID!==this.professionalProfile.pProfileID&&(this.professionalProfile=V);let Z;return this.updateData.needDoB&&this.updateData.dateOfBirth?Z=this.updateDoBandRegs():Z=Promise.resolve(),Z}).then(()=>{let V=this.processPractices();return Promise.all([Be(this.qualificationService.setPractices(V,this.professionalProfile.pProfileID)),this.qualificationService.migrateBoard(this.professionalProfile.pProfileID,V,n)])}).then(()=>new Promise(V=>{setTimeout(V,2e3)})).then(()=>{this.dialog.open(Ve,{disableClose:!0,panelClass:"ui-dialog",data:{title:"Migration Successful!",message:`${o>0?"The "+o+" activities":"You"} have been migrated to the <strong>${this.updateData.changeBoard?this.updateData.board.name:this.getProfFromId(this.updateData.practices[0].qualification).name}</strong>.<p>`+(this.updateData.practices.length>1?"<p>Since you have selected multiple qualifications, you'll need make sure that each of activity in your Portfolio is assigned to the right qualification(s).</p>":"")+(n===""?"":"<p>You will need to manually assign each activity to a group by reviewing each activity manually in your Portfolio.</p>"),rejectMessage:"No",acceptMessage:"Ok"}}).afterClosed().pipe(re(Z=>Z?(this.submittingRequest=!1,this.updateSuccessMsg="Updated Successfully",_t(this.platformId)&&location.reload(),Di(null)):(this.submittingRequest=!1,this.mnInitializeService.initializeAsync({calculatePlan:!0,redirect:!1,refreshRecent:!0}))),je(1)).subscribe()}).catch(V=>{console.log(V),this.submittingRequest=!1,V.error&&V.error.data&&V.error.data.message?this.updateErrorMsg=V.error.data.message:alert("Oops! Something has gone wrong, please try again later.")}):this.submittingRequest=!1})})}processPractices(){let e=JSON.parse(JSON.stringify(this.updateData.practices)),n=o=>{o.startDate&&(o.startDate=(0,zt.default)(o.startDate).format("YYYY-MM-DD")),o.endDate&&(o.endDate=(0,zt.default)(o.endDate).format("YYYY-MM-DD")),o.isCurrent&&(o.endDate=null)};for(let o of e){n(o);let a=o.endorsementPractices;if(a)for(let m of a)n(m)}return e}chooseProfession(e,n){this.dataChanged=!0;let o;if(o=P.find(this.updateData.practices,a=>a.qualification===n)){if(this.updateData.practices=P.without(this.updateData.practices,o),_t(this.platformId)&&$("#update-"+n+" .endorsement-mark").hide(),delete this.updateData.chosenProfessions[e.qualID],o.endorsementPractices)for(let a of o.endorsementPractices)delete this.updateData.chosenEndorsements[a.qualification]}else{let a=P.find(this.existData.existPractices,m=>m.qualification===n);if(a){let m=ne({},a);if(delete m.practiceID,m.endorsementPractices&&m.endorsementPractices.length>0){let h=[...m.endorsementPractices];delete m.endorsementPractices,this.updateData.practices.push(m),h.forEach(b=>{let k=P.find(this.availableEndorsements,V=>V.qualID===b.qualification);k&&this.chooseEndorsement(k,e.qualID,!0)})}else this.updateData.practices.push(m)}else{let m=P.find(this.availableRegulations,h=>P.contains(h.qualifications,e.qualID));this.updateData.practices.push({qualification:e.qualID,regulation:m.regulationID,isCurrent:!0})}this.updateData.chosenProfessions[e.qualID]=!0}
5this.checkEndorsementChooseDisplay(),this.validateProfession(),this.generateNonPractisingProfSummary()}isNonPractisingProf(e){let n=P.find(this.updateData.practices,o=>o.qualification===e);return n&&n.registrationType&&n.registrationType==="non-practising"}generateNonPractisingProfSummary(){let e=P.filter(this.updateData.practices,n=>n.registrationType&&n.registrationType==="non-practising");this.nonPractisingProfSummary=e&&e.length>0?e.length===1?`a Non-Practising ${this.getProfFromId(e[0].qualification).name}`:P.map(e,(n,o)=>`Non-Practising ${this.getProfFromId(n.qualification).name+(o+1<e.length?", ":"")}`).join(""):null}checkEndorsementChooseDisplay(){this.showEndorseArea=P.some(this.updateData.practices,e=>{let n=this.getProfFromId(e.qualification);return n&&n.endorsements?n.endorsements.length>0:!1})}checkNoProf(){return this.updateData.practices.length<1}checkQualification(e){return this.updateData?.practices.length>=1&&P.some(this.updateData.practices,n=>n.qualification===e)}validateProfession(){let e="db3920af-ed12-426e-a4bc-b0c501ff01ee",n="db56fbf1-21c0-472e-b159-08e927ec692d";this.nonPractisingClash=!this.isNMBA&&Cl(e,this.updateData.practices),this.studentClash=!this.isNMBA&&Cl(n,this.updateData.practices),this.otherProfClash=this.checkOtherProf(),this.requiredProfession=this.requiredProfession?this.checkNoProf():this.requiredProfession,this.isPIIRequirementNotMet=this.accessDict.pii&&!this.checkQualification(is)&&!this.checkQualification(ts),this.isPIIRequirementNotMet?this.saveErrorMessage="Your current subscription includes Professional Indemnity Insurance. You have unselected all professions that your insurance applies to. Please call (1300 AUSMED) or email ([email protected]) our support team to action this change.":this.saveErrorMessage=""}validateProfessionDates(e){let n=this.getProfessionPracticeByQualId(e);n&&(this.validateProfessionDatesByPractice(n),this.changeDetectorRef.detectChanges())}validateProfessionDatesByPractice(e){let n=e.startDate,o=e.endDate;this.durationConflict=!1,e.endorsementPractices&&e.endorsementPractices.forEach(a=>{if(n&&(!a.startDate||(0,zt.default)(a.startDate).isBefore(n))){this.durationConflict=!0;return}if(o&&(!a.endDate||(0,zt.default)(a.endDate).isAfter(o))){this.durationConflict=!0;return}})}checkOtherProf(){let e="ff9180f1-30fd-4ab4-8dd3-9832b5cda6c9";return this.updateData.practices.length>1&&P.some(this.updateData.practices,n=>n.qualification===e)}chooseEndorsement(e,n,o){this.dataChanged=!0;let a=e.qualID,m;if(_t(this.platformId)){if(o||$("#update-"+a)[0].checked){m=this.getProfessionPracticeByQualId(n);let h=P.find(this.availableRegulations,k=>P.contains(k.qualifications,a));m.endorsementPractices||(m.endorsementPractices=[]);let b={qualification:a,regulation:h.regulationID,pPractice:n,isCurrent:!m.endDate,startDate:m.startDate||void 0,endDate:m.endDate||void 0};m.endorsementPractices.push(b),this.updateData.chosenEndorsements[a]=!0}else m=P.find(this.updateData.practices,h=>h.qualification===n),m.endorsementPractices.splice(P.findIndex(m.endorsementPractices,h=>h.qualification===a),1),delete this.updateData.chosenEndorsements[a];$("#update-"+n+" .endorsement-mark").text(m.endorsementPractices.length),m.endorsementPractices.length<1?$("#update-"+n+" .endorsement-mark").hide():$("#update-"+n+" .endorsement-mark").show()}}chooseNewBoard(){this.dataChanged=!0,this.startMigrateBoard=!!this.dropDownSelect.board&&(this.dropDownSelect.board!==this.existData.existBoard.boardID||this.updateData.state!==this.professionalProfile.state);let e=P.find(this.availableBoards,n=>n.boardID===this.dropDownSelect.board);e?(this.updateData.board=e,this.updateData.hasOtherBoard=this.boardMigrateBoards[this.updateData.board.boardID]):this.updateData.board=null,this.changeBoard()}chooseNewProf(){this.dataChanged=!0;let e=this.getProfFromId(this.dropDownSelect.prof);this.initialiseChosenPractices(),e&&this.chooseProfession(e,e.qualID)}changeProfessionTitleChosen(){this.dataChanged=!0,this.ptDropdownSelection.key===""?this.updateData.professionTitle=null:this.ptDropdownSelection.key==="other"?this.updateData.professionTitle=this.ptDropdownSelection.text?this.ptDropdownSelection.text:null:this.updateData.professionTitle=this.ptDropdownSelection.key}getEndorsStartDateRestriction(e){let n={min:this.datePickerConfig.minDate,max:this.today},o=this.getProfessionPracticeByQualId(e);return o&&(o.startDate&&(n.min=o.startDate),o.endDate&&(n.max=o.endDate)),n}getEndorsEndDateRestriction(e,n){let o={min:n||null,max:this.datePickerConfig.maxDate},a=this.getProfessionPracticeByQualId(e);return a&&(a.startDate&&(!o.min||(0,zt.default)(a.startDate).isAfter(o.min))&&(o.min=a.startDate),a.endDate&&(o.max=a.endDate)),o}startMigState(){this.startMigrateState=!0,this.showMigArea=this.startMigrateState,this.updateData.changeBoard=this.startMigrateState,this.updateData.migProf=!this.startMigrateState,this.availableBoards=[],this.initialiseAvailableProfs(),this.updateData.state=null,this.updateData.board=null,this.initialiseChosenPractices(),this.prepfillDropDownSelect()}startChangePT(){this.startChangeProfessionTitle=!0}cancelMigState(){this.startMigrateState=!1,this.reloadPage=!0,this.updateSuccessMsg="",this.updateErrorMsg="",this.getRawUserData(!0)}prepfillDropDownSelect(){this.dropDownSelect.state=this.startMigrateState?"":this.professionalProfile.state?this.professionalProfile.state:"",this.dropDownSelect.board=this.startMigrateState?"":this.professionalProfile.boardModel?this.professionalProfile.boardModel.boardID:"",this.dropDownSelect.prof=this.startMigrateState?"":this.updateData.migProf?this.updateData.practices[0].qualification:""}initialiseAvailableProfs(){this.availableQualifications=[],this.availableProfessions=[],this.availableEndorsements=[],this.availableRegulations=[]}initialiseChosenPractices(){this.updateData.practices=[],this.updateData.chosenProfessions={},this.updateData.chosenEndorsements={}}getProfFromId(e){return P.find(this.availableProfessions,n=>n.qualID===e)}
5checkValidMigrationForm(){return this.updateData.needState&&!this.updateData.state?{result:!1,message:"Please choose one of the states you would like to migrate."}:this.updateData.changeBoard&&!this.updateData.board?{result:!1,message:"Please choose one of the boards you would like to migrate."}:this.updateData.migProf&&!this.updateData.practices?{result:!1,message:"Please choose one of the professions you would like to migrate."}:this.updateData.needDoB&&!this.updateData.dateOfBirth?{result:!1,message:"Please provide your date of birth."}:{result:!0,message:""}}canDeactivate(){return this.dataChanged?new Promise(e=>{this.dialog.open(Ve,{disableClose:!0,panelClass:"ui-dialog",data:{title:"Leave without saving?",message:"Please click the save button below to confirm your changes",rejectMessage:"No",acceptMessage:"Yes, Leave without saving"}}).afterClosed().subscribe(o=>{e(!!o)})}):!0}getProfessionPracticeByQualId(e){return this.updateData.practices.find(n=>n.qualification===e)}getEndorsPracticeByQualId(e,n){let o=this.getProfessionPracticeByQualId(n),a=o&&o.endorsementPractices;return!a||!a.length?null:a.find(m=>m.qualification===e)}showRegNumInput(e){let n=this.updateData&&this.updateData.board&&this.updateData.board.boardID;return as(n)&&!dl(e)}getRegTitle(){let e=this.updateData&&this.updateData.board&&this.updateData.board.countries;return e&&zr(e,"AUS")?"Ahpra Registration Number":"Registration Number"}getExtraDescriptionForProfs(){this.accessDict.pii&&(this.extraDescriptionByQual[ga]="For your information, your Professional Indemnity & Liability Insurance + Liability Insurance does not cover Registered midwifery practices. You can continue being covered for your nursing practice but you will need to take out a policy specifically to cover midwifery.")}updateMEDDisclaimer(){this.showMEDDisclaimer=!!(this.boardMigrateBoards[this.updateData?.board?.boardID]&&$r(this.updateData?.practices,e=>e.regNum&&e.regNum.toUpperCase().startsWith("MED")))}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static{this.\u0275fac=function(n){return new(n||t)(y(Si),y(Gs),y(ro),y(_o),y(K),y(xi),y(Re),y(Ae),y(Ue))}}static{this.\u0275cmp=Y({type:t,selectors:[["ng-component"]],viewQuery:function(n,o){if(n&1&&We(Zc,5),n&2){let a;we(a=Se())&&(o.qualificationForm=a.first)}},features:[De([_o]),Ne],decls:53,vars:23,consts:[["qualificationForm","ngForm"],["startDateDetail",""],["dateOfBirth","ngModel"],["dobDatepicker",""],["profStartDatePicker",""],["profEndDatePicker",""],["endorStartDatePicker",""],["endorEndDatePicker",""],["newboard","ngModel"],["newprof","ngModel"],[1,"mt-1","mb-4"],["name","qualificationForm","id","qualificationForm","novalidate","",2,"margin-bottom","150px"],[1,"card","mb-4"],[1,"card-header"],[1,"card-body"],[1,"table","table-loose","mb-4"],[1,"form-group"],[1,"card","mb-7",3,"hidden"],[1,"alert","alert-warning","text-dark","invalid-feedback"],[3,"hidden"],[1,"mt-4","spaced"],["type","button",1,"btn","btn-secondary","ladda-button",3,"click","hidden","disabled"],[1,"d-inline-flex","align-items-center"],["color","light",1,"mr-2"],["type","button",1,"btn","btn-secondary","ladda-button",3,"hidden","disabled"],["type","button",1,"btn","btn-default","float-right",3,"disabled"],[1,"invalid-feedback"],[1,"option-extra-description-box-style","save-error-box-color","f-small","p-3"],["type","button",1,"btn","btn-secondary","ladda-button","btn-sm","mt-4","mb-2","d-inline-flex","align-items-center",3,"click","disabled"],[1,"alert-message","-save",3,"hidden"],["name","professionTitleChosen",1,"removeBorder",3,"ngModelChange","change","ngModel","options","placeholder","showQ2When","initialSelection"],[1,"pt-2"],["id","professionTitle","type","text","name","professionTitle","placeholder","E.g. General Practitioner",1,"form-control","mb-1",3,"ngModelChange","change","ngModel"],[1,"mb-3"],[1,"form-has-calendar"],["type","text","name","dob",1,"form-control","mb-1",3,"ngModelChange","paste","focus","click","dateChange","matDatepicker","ngModel","required"],["href","javascript:void(0)",3,"click"],["color","dark","size","xl"],[1,"form-check"],["type","checkbox","role","checkbox","tabindex","0",1,"form-check-input",3,"change","id","checked","disabled"],[1,"form-check-label",3,"for"],[1,"option-extra-description-box-style","option-extra-description-box-color","f-small","p-3","mb-2"],[1,"pl-7"],["type","button","placement","right",1,"btn","shadow-none",3,"popover","outsideClick"],["name","information-circle","size","f-paragraph",3,"svgStyle"],["type","text",1,"form-control","mb-1",3,"ngModelChange","paste","focus","click","matDatepicker","ngModel","name","required","min","max"],["role","checkbox","type","checkbox",1,"form-check-input","c-checkbox__formcheck",3,"change","id","checked","name"],[3,"for"],["type","text",1,"form-control",3,"ngModelChange","id","name","ngModel"],["href","tel:+611300287633"],["href","mailTo:[email protected]"],[3,"d-none"],[1,"my-4"],[3,"id"],["type","checkbox","role","checkbox","tabindex","0",1,"form-check-input",3,"change","id","checked"],["type","text",1,"form-control","mb-1",3,"ngModelChange","paste","focus","click","matDatepicker","ngModel","name","min","max"],["for","newstate"],["state-selection","","id","newstate",1,"mb-4",3,"stateChanged","initState","selectedCountry","isRequired"],["for","board"],[1,"select-wrap","form-has-caret"],["name","newboard","id","board",1,"form-control",3,"ngModelChange","change","ngModel","required"],["value",""],[3,"value"],["for","prof"],["name","newprof","id","prof",1,"form-control",3,"ngModelChange","change","ngModel","required"],["for","dobMig"],["type","text","name","dobMig","id","dobMig",1,"form-control","mb-1",3,"ngModelChange","paste","focus","click","dateChange","matDatepicker","ngModel","required"],["type","button",1,"btn","btn-default","float-right",3,"click","disabled"],[1,"text-success",3,"hidden"],[1,"start-date__tooltip"],[1,"tooltip__title","mb-2"],[1,"tooltip__content"]],template:function(n,o){if(n&1&&(l(0,"h4",10),c(1,"Profession Settings"),s(),l(2,"form",11,0)(4,"div",12)(5,"h5",13),c(6,"Details"),s(),l(7,"div",14)(8,"table",15)(9,"tbody")(10,"tr")(11,"td")(12,"strong"),c(13,"Country"),s()(),l(14,"td"),c(15),w(16,"countryCodeToName"),s()(),u(17,tm,7,4,"tr"),l(18,"tr")(19,"td")(20,"strong"),c(21,"Board"),s()(),l(22,"td"),c(23),s()(),u(24,im,6,1,"tr"),s()(),u(25,sm,9,7,"div"),u(26,dm,10,4,"div",16),u(27,cm,4,0,"div"),u(28,mm,4,0,"div"),s()(),u(29,um,2,0,"div"),l(30,"div",17)(31,"h5",13),c(32,"Profession Details"),s(),l(33,"div",14),R(34,ym,7,12,null,null,Lo),u(36,bm,7,1,"small"),u(37,vm,2,0,"div",18),s()(),u(38,Em,9,2,"div",19),l(39,"div",20)(40,"button",21),C("click",function(){return o.updateQualification()}),l(41,"span",22),u(42,Lm,1,0,"ui-spinner",23),c(43," Save"),s()()(),u(44,Fm,11,7,"div",17),l(45,"div",20),u(46,Bm,4,3,"button",24),u(47,jm,2,1,"button",25),s(),u(48,zm,6,5,"div",26)(49,Qm,3,3),u(50,Jm,2,1,"div",27),jn(51,Km,5,0,"ng-template",null,1,Wn),s()),n&2){let a=v(3);r(15),M(" ",O(16,21,o.professionalProfile==null?null:o.professionalProfile.country)," "),r(2),_(o.professionalProfile!=null&&o.professionalProfile.state?17:-1),r(6),M(" ",o.professionalProfile==null?null:o.professionalProfile.boardModel.name," "),r(),_(o.existData.hasOtherPorf?24:-1),r(),_(o.startChangeProfessionTitle?25:-1),r(),_(o.updateData.needDoB&&(!o.showMigArea||!o.updateData.changeBoard)?26:-1),r(),_(o.existData.hasOtherPorf&&!o.startChangeProfessionTitle?27:-1),r(),_(o.countryNeedState[o.professionalProfile==null?null:o.professionalProfile.country]&&!o.startMigrateState&&!o.updateData.changeBoard?28:-1),r(),_(o.reloadPage?29:-1),r(),g("hidden",o.availableProfessions.length<1||o.availableProfessions.length===1&&o.availableProfessions[0].endorsements.length<1&&!o.existData.hasOtherBoard&&!o.updateData.hasOtherBoard||o.showMigArea&&o.updateData.migProf||o.reloadPage),r(4),F(o.availableProfessions),r(2),_(o.nonPractisingProfSummary?36:-1),r(),_(o.showMEDDisclaimer?37:-1),r(),_((o.updateData.practices==null?null:o.updateData.practices.length)>0&&!((o.updateData.practices==null?null:o.updateData.practices.length)===1&&o.profMigrateProfs[o.updateData.practices[0].qualification])&&(!o.showMigArea||o.updateData.needStartDate)?38:-1),r(2),g("hidden",o.startMigrateState||o.reloadPage||o.startMigrateBoard||o.existData.hasOtherBoard&&o.availableProfessions.length<1||o.showMigArea&&o.updateData.migProf)("disabled",o.submittingRequest||a.invalid||o.nonPractisingClash||o.otherProfClash||o.studentClash||o.durationConflict||o.isPIIRequirementNotMet),r(2),_(o.submittingRequest?42:-1),r(2),_(o.startMigrateState||o.showMigArea?44:-1),r(2),_(o.existData.hasOtherBoard||o.existData.hasOtherPorf||o.startMigrateState?46:-1),r(),_(o.startMigrateState?47:-1),r(),_(o.requiredProfession||o.nonPractisingClash||o.studentClash||o.otherProfClash||o.durationConflict?48:49),r(2),_(o.saveErrorMessage?50:-1)}}
5,dependencies:[_e,Ze,no,oo,Fe,io,Te,Ke,Dt,He,Xe,Bt,ws,Ms,ue,Pi,Ti,ho,fo,so,ke,Ii,Li,Ys,xs,go,vs,po],styles:[".start-date__tooltip[_ngcontent-%COMP%] .tooltip__title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;line-height:24px}.start-date__tooltip[_ngcontent-%COMP%] .tooltip__content[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px}.option-extra-description-box-style[_ngcontent-%COMP%]{border-style:solid;border-width:1px;border-radius:8px}.option-extra-description-box-color[_ngcontent-%COMP%]{border-color:#ffedb3;background-color:#fff8e1;color:#664d03}.save-error-box-color[_ngcontent-%COMP%]{border-color:#f4b69f;background-color:#f8d2c4;color:#842029}","select[_ngcontent-%COMP%]:disabled{background-color:#d3d3d3;cursor:not-allowed}"]})}};function Cl(t,i){let e=i.filter(n=>n.qualification===t);if(e.length===0)return!1;{let n=e[0];return i.some(o=>o!==n&&us(n.startDate,n.endDate,o.startDate,o.endDate))}}var vn=aa(ha());function Xm(t,i){if(t&1&&(L(0,"a",5),c(1),E()),t&2){let e=d(2);me("href",e.offerCard.secondaryLink,Rt),r(),M(" Already a ",e.offerCard.organisation," member? Click here to log in ")}}function Zm(t,i){if(t&1&&(L(0,"div",0)(1,"div",1)(2,"h4",2),c(3),w(4,"translate"),E(),L(5,"p",3),c(6),E(),L(7,"a",4),c(8),E(),u(9,Xm,2,2,"a",5),E(),L(10,"div",6),Ye(11,"img",7)(12,"img",8),E()()),t&2){let e=d();r(3),oi("Ausmed ",O(4,8,"CPD")," for ",e.offerCard.providerName," members"),r(3),M(" ",e.offerCard.providerName," members are now able to access all the benefits of an Ausmed online subscription as a part of their membership! "),r(),me("href",e.offerCard.link,Rt)("target",e.offerCard.target),r(),M("Join ",e.offerCard.providerName),r(),_(e.offerCard.secondaryLink?9:-1),r(2),me("src",e.offerCard.imgSrc,Rt)}}var Io=class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=Y({type:t,selectors:[["partner-prompt-card"]],inputs:{offerCard:"offerCard"},decls:1,vars:1,consts:[[1,"card","p-4","p-sm-7","mb-4","bg-image","thirds-grid"],[1,""],[1,"f-3","fw-bold","mb-4","text-dark"],[1,"mb-4","text-weak","fw-light"],[1,"btn","btn-secondary","btn-md",3,"href","target"],["target","_blank",1,"btn","text-dark","btn-link",3,"href"],[1,"d-none","d-md-flex","justify-content-center","flex-column"],[1,"img-fluid","py-4",3,"src"],["src","./../../../../images/ausmed-styles/svgs/horizontal-colours/1-C_Ausmed-Horizontal.svg",1,"img-fluid","py-2"]],template:function(e,n){e&1&&u(0,Zm,13,10,"div",0),e&2&&_(n.offerCard?0:-1)},dependencies:[Kn],styles:['.bg-image[_ngcontent-%COMP%]{background-image:url("./media/blue-left-L5AFUI3Y.svg"),url("./media/blue-right-2Y6F3DDI.svg");background-position:top left,top right;background-repeat:no-repeat}.thirds-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-gap:2rem}@media(min-width:768px){.thirds-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;grid-gap:2rem}}@media(min-width:1200px){.thirds-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;grid-gap:3rem}}'],changeDetection:0})}};var tu=["affiliationForm"],iu=["editAffiliationForm"],nu=(t,i)=>i.affiliationID;function ou(t,i){if(t&1&&x(0,"partner-prompt-card",13),t&2){let e=d(2);g("offerCard",e.offerCard)}}function au(t,i){t&1&&(l(0,"div",45),c(1,"You have to enter an organisation name"),s())}function ru(t,i){if(t&1&&(l(0,"div"),u(1,au,2,0,"div",45),s()),t&2){d();let e=v(12);r(),_(e.errors.required?1:-1)}}function su(t,i){t&1&&(l(0,"div",45),c(1,"You have to enter a title"),s())}function lu(t,i){if(t&1&&(l(0,"div"),u(1,su,2,0,"div",45),s()),t&2){d();let e=v(18);r(),_(e.errors.required?1:-1)}}function du(t,i){t&1&&(l(0,"div",45),c(1,"Please enter a start date"),s())}function cu(t,i){t&1&&(l(0,"div",45),c(1,"Not a valid date!"),s())}function mu(t,i){if(t&1&&(l(0,"div"),u(1,du,2,0,"div",45),u(2,cu,2,0,"div",45),s()),t&2){d();let e=v(30);r(),_(e.errors.required?1:-1),r(),_(e.errors.invalidDate?2:-1)}}function uu(t,i){t&1&&(l(0,"div",45),c(1,"Not a valid date!"),s())}function _u(t,i){if(t&1&&(l(0,"div"),u(1,uu,2,0,"div",45),s()),t&2){d();let e=v(5);r(),_(e.errors.invalidDate?1:-1)}}function pu(t,i){if(t&1){let e=D();l(0,"div",22)(1,"label",46),c(2,"End Date*"),s(),l(3,"div",32)(4,"input",47,9),j("ngModelChange",function(o){p(e);let a=d().$implicit;
5return B(a.endDate,o)||(a.endDate=o),f(o)}),C("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(7);return f(o.open())})("click",function(){p(e);let o=v(7);return f(o.open())}),s()(),x(6,"mat-datepicker",null,10),u(8,_u,2,1,"div"),s()}if(t&2){let e=v(5),n=v(7),o=d().$implicit,a=d(2);r(4),g("matDatepicker",n),H("ngModel",o.endDate),g("min",o.startDate)("max",a.datePickerConfig.maxDate)("disabled",o.currentAffiliation),r(4),_(e!=null&&e.errors&&!(e!=null&&e.pristine)?8:-1)}}function fu(t,i){t&1&&x(0,"ui-spinner",38)}function hu(t,i){t&1&&x(0,"ui-spinner",38)}function gu(t,i){if(t&1){let e=D();l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header"),c(2),w(3,"date"),w(4,"date"),s(),l(5,"form",39,8),C("ngSubmit",function(){let o=p(e).$implicit,a=d(2);return f(a.saveAffiliation(o))}),l(7,"div",21)(8,"div",22)(9,"label",23),c(10,"Name of Organisation*"),s(),l(11,"input",24,1),j("ngModelChange",function(o){let a=p(e).$implicit;return B(a.organisation,o)||(a.organisation=o),f(o)}),C("change",function(o){p(e);let a=d(2);return f(a.onAddAffiliationOrg(o.target.value))}),s(),u(13,ru,2,1,"div"),s(),l(14,"div",22)(15,"label",27),c(16,"Title of Membership*"),s(),l(17,"input",28,3),j("ngModelChange",function(o){let a=p(e).$implicit;return B(a.title,o)||(a.title=o),f(o)}),s(),u(19,lu,2,1,"div"),s(),l(20,"div",22)(21,"label",29),c(22,"Membership Number"),s(),l(23,"input",30,5),j("ngModelChange",function(o){let a=p(e).$implicit;return B(a.number,o)||(a.number=o),f(o)}),s()(),l(25,"div",22)(26,"label",31),c(27,"Start Date*"),s(),l(28,"div",32)(29,"input",33,6),j("ngModelChange",function(o){let a=p(e).$implicit;return B(a.startDate,o)||(a.startDate=o),f(o)}),C("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(32);return f(o.open())})("click",function(){p(e);let o=v(32);return f(o.open())}),s()(),x(31,"mat-datepicker",null,7),u(33,mu,3,2,"div"),s(),u(34,pu,9,6,"div",22),l(35,"div",22)(36,"div",34)(37,"input",40),C("change",function(){let o=p(e).$implicit;return f(o.currentAffiliation=!o.currentAffiliation)}),s(),l(38,"label",41),c(39,"Add an end date"),s()()()(),l(40,"div",42)(41,"button",43),u(42,fu,1,0,"ui-spinner",38),c(43," Save"),s(),l(44,"button",44),C("click",function(){let o=p(e).$implicit,a=d(2);return f(a.removeAffiliation(o))}),u(45,hu,1,0,"ui-spinner",38),c(46," Remove"),s()()()()}if(t&2){let e=i.$implicit,n=v(12),o=v(18),a=v(30),m=v(32);d();let h=v(27),b=v(37),k=d();r(2),Nn(" ",e.title," of ",e.organisation," \u2013 ",ye(3,22,e.startDate,"dd MMM yyyy")," to ",e.endDate?ye(4,25,e.endDate,"dd MMM yyyy"):"Present"," "),r(9),H("ngModel",e.organisation),g("matAutocomplete",h),r(2),_(n.errors&&!n.pristine?13:-1),r(4),H("ngModel",e.title),g("matAutocomplete",b),r(2),_(o.errors&&!o.pristine?19:-1),r(4),H("ngModel",e.number),r(6),g("matDatepicker",m),H("ngModel",e.startDate),g("min",k.datePickerConfig.minDate)("max",k.datePickerConfig.maxDate),r(4),_(a.errors&&!a.pristine?33:-1),r(),_(e.currentAffiliation?-1:34),r(3),g("checked",!e.currentAffiliation),r(4),g("disabled",k.submittingRequest),r(),_(k.submittingRequest?42:-1),r(2),g("disabled",k.submittingRequest),r(),_(k.submittingRequest?45:-1)}}function Cu(t,i){if(t&1&&(l(0,"mat-option",26),c(1),s()),t&2){let e=i.$implicit;g("value",e),r(),M(" ",e," ")}}function yu(t,i){t&1&&(l(0,"div",45),c(1,"You have to enter an organisation name"),s())}function bu(t,i){if(t&1&&(l(0,"div"),u(1,yu,2,0,"div",45),s()),t&2){d();let e=v(25);r(),_(e.errors.required?1:-1)}}function vu(t,i){if(t&1&&(l(0,"mat-option",26),c(1),s()),t&2){let e=i.$implicit;g("value",e),r(),M(" ",e," ")}}function Du(t,i){t&1&&(l(0,"div",45),c(1,"You have to enter a title"),s())}function xu(t,i){if(t&1&&(l(0,"div"),u(1,Du,2,0,"div",45),s()),t&2){d();let e=v(35);r(),_(e.errors.required?1:-1)}}function Mu(t,i){t&1&&(l(0,"div",45),c(1,"Please enter a start date"),s())}function wu(t,i){t&1&&(l(0,"div",45),c(1,"Not a valid date!"),s())}function Su(t,i){if(t&1&&(l(0,"div"),u(1,Mu,2,0,"div",45),u(2,wu,2,0,"div",45),s()),t&2){d();let e=v(51);r(),_(e.errors.required?1:-1),r(),_(e.errors.invalidDate?2:-1)}}function ku(t,i){t&1&&(l(0,"div",45),c(1,"Not a valid date!"),s())}function Tu(t,i){t&1&&(l(0,"div",45),c(1,"End date must be later than start date! "),s())}function Pu(t,i){if(t&1&&(l(0,"div"),u(1,ku,2,0,"div",45),u(2,Tu,2,0,"div",45),s()),t&2){d();let e=v(4);r(),_(e.errors.invalidDate?1:-1),r(),_(e.errors.minDate?2:-1)}}function Eu(t,i){if(t&1){let e=D();l(0,"label",46),c(1,"End Date*"),s(),l(2,"div",32)(3,"input",48,9),j("ngModelChange",function(o){p(e);let a=d(2);
5return B(a.affiliation.endDate,o)||(a.affiliation.endDate=o),f(o)}),C("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(6);return f(o.open())})("click",function(){p(e);let o=v(6);return f(o.open())}),s()(),x(5,"mat-datepicker",null,10),u(7,Pu,3,2,"div")}if(t&2){let e=v(4),n=v(6),o=d(2);r(3),g("matDatepicker",n),H("ngModel",o.affiliation.endDate),g("min",o.affiliation.startDate)("max",o.datePickerConfig.maxDate),r(4),_(e!=null&&e.errors&&!(e!=null&&e.pristine)?7:-1)}}function Lu(t,i){t&1&&x(0,"ui-spinner",38)}function Iu(t,i){if(t&1){let e=D();u(0,ou,1,1,"partner-prompt-card",13),l(1,"div",14)(2,"h5",15),c(3,"Professional Memberships"),s(),l(4,"div",16)(5,"p",17),c(6," Please add a professional membership or affiliation using the form below. "),s()()(),l(7,"div",18)(8,"h5",15),c(9,"Current"),s(),l(10,"div",16)(11,"mat-accordion"),R(12,gu,47,28,"mat-expansion-panel",null,nu),s()()(),l(14,"div",19)(15,"h5",15),c(16,"Add membership or affiliation"),s(),l(17,"div",16)(18,"form",20,0),C("ngSubmit",function(){p(e);let o=d();return f(o.addAffiliation(o.affiliation))}),l(20,"div",21)(21,"div",22)(22,"label",23),c(23,"Name of Organisation*"),s(),l(24,"input",24,1),j("ngModelChange",function(o){p(e);let a=d();return B(a.affiliation.organisation,o)||(a.affiliation.organisation=o),f(o)}),C("change",function(o){p(e);let a=d();return f(a.onAddAffiliationOrg(o.target.value))}),s(),l(26,"mat-autocomplete",25,2),C("optionSelected",function(o){p(e);let a=d();return f(a.onAddAffiliationOrg(o.option.value))}),R(28,Cu,2,2,"mat-option",26,J),s(),u(30,bu,2,1,"div"),s(),l(31,"div",22)(32,"label",27),c(33,"Title of Membership*"),s(),l(34,"input",28,3),j("ngModelChange",function(o){p(e);let a=d();return B(a.affiliation.title,o)||(a.affiliation.title=o),f(o)}),s(),l(36,"mat-autocomplete",null,4),R(38,vu,2,2,"mat-option",26,J),s(),u(40,xu,2,1,"div"),s(),l(41,"div",22)(42,"label",29),c(43,"Membership Number"),s(),l(44,"input",30,5),j("ngModelChange",function(o){p(e);let a=d();return B(a.affiliation.number,o)||(a.affiliation.number=o),f(o)}),s()(),l(46,"div",22)(47,"label",31),c(48,"Start Date*"),s(),l(49,"div",32)(50,"input",33,6),j("ngModelChange",function(o){p(e);let a=d();return B(a.affiliation.startDate,o)||(a.affiliation.startDate=o),f(o)}),C("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(53);return f(o.open())})("click",function(){p(e);let o=v(53);return f(o.open())}),s()(),x(52,"mat-datepicker",null,7),u(54,Su,3,2,"div"),s(),l(55,"div",22),u(56,Eu,8,5),l(57,"div",22)(58,"div",34)(59,"input",35),C("change",function(){p(e);let o=d();return f(o.affiliation.currentAffiliation=!o.affiliation.currentAffiliation)}),s(),l(60,"label",36),c(61,"Add an end date"),s()()()()(),l(62,"button",37),u(63,Lu,1,0,"ui-spinner",38),c(64," Save "),s()()()()}if(t&2){let e=v(25),n=v(27),o=v(35),a=v(37),m=v(51),h=v(53),b=d();_(b.offerCard&&b.checkOfferCardAccess(b.offerCard)?0:-1),r(7),g("hidden",b.affiliations.length<1),r(5),F(b.affiliations),r(12),H("ngModel",b.affiliation.organisation),g("matAutocomplete",n),r(4),F(b.loadOrganisationName()),r(2),_(e.errors&&!e.pristine?30:-1),r(4),H("ngModel",b.affiliation.title),g("matAutocomplete",a),r(4),F(b.loadOrganisationTitle()),r(2),_(o.errors&&!o.pristine?40:-1),r(4),H("ngModel",b.affiliation.number),r(6),g("matDatepicker",h),H("ngModel",b.affiliation.startDate),g("min",b.datePickerConfig.minDate)("max",b.datePickerConfig.maxDate),r(4),_(m.errors&&!m.pristine?54:-1),r(2),_(b.affiliation.currentAffiliation?-1:56),r(3),g("checked",!b.affiliation.currentAffiliation),r(3),g("disabled",b.submittingRequest),r(),_(b.submittingRequest?63:-1)}}var ji=class t extends ao(){constructor(e,n,o,a,m){super(m);this.workService=e;this.contentConfigService=n;this.userService=o;this.dialog=a;this.injector=m;this.ngUnsubscribe=new Q;this.affiliation={};this.affiliations=[];this.updateError="";this.updateSuccessMsg="";this.submittingRequest=!1;this.organisationNames=[];this.organisationTitles=[];this.datePickerConfig={}}ngOnInit(){this.initialAffiliation(),this._fetch();let e=new Date;this.datePickerConfig.minDate=new Date,this.datePickerConfig.minDate.setFullYear(e.getFullYear()-50),this.datePickerConfig.maxDate=new Date,this.datePickerConfig.maxDate.setFullYear(e.getFullYear()+10),this.datePickerConfig.yearRange=`${this.datePickerConfig.minDate.getFullYear()}:${this.datePickerConfig.maxDate.getFullYear()}`}_fetch(){Me([this.workService.fetchAffiliations().pipe(se(e=>{this.affiliations=zn(e,n=>ct(ne({},n),{startDate:n.startDate&&ki(n.startDate),endDate:n.endDate&&ki(n.endDate),currentAffiliation:!n.endDate})),this.affiliations=P.sortBy(this.affiliations,"startDate").reverse()})),this.workService.fetchOrganisationNames().pipe(se(e=>{this.organisationNames=e})),this.runSubsQuery$("noValidSub"),this.contentConfigService.config$.pipe(se(e=>{this.offerCard=e&&e.subscription&&e.subscription.getPromotionConfig&&e.subscription.getPromotionConfig("affiliations",this.injector)})),this.userService.fetchCachedUser().pipe(se(e=>this.user=e)),Er(300)]).pipe(q(this.ngUnsubscribe)).subscribe(()=>{this.loaded=!0,this.loadError=null},e=>{this.loadError=!0})}initialAffiliation(){this.affiliation.organisation=null,this.affiliation.title=null,this.affiliation.startDate=null,this.affiliation.endDate=null,this.affiliation.currentAffiliation=!0,this.affiliation.number=null}addAffiliation(e){if(!this.affiliationForm.valid){Object.keys(this.affiliationForm.controls).forEac
5h(o=>{this.affiliationForm.form.controls[o].markAsDirty()});return}let n=fa(ct(ne({},e),{currentAffiliation:void 0,startDate:(0,vn.default)(e.startDate).format("YYYY-MM-DD"),endDate:e.currentAffiliation||!e.endDate?void 0:(0,vn.default)(e.endDate).format("YYYY-MM-DD")}),o=>o===void 0);this.workService.addAffiliation(n).subscribe(()=>{this.submittingRequest=!1,this._fetch(),this.updateSuccessMsg="Added Successfully",this.initialAffiliation(),Object.keys(this.affiliationForm.controls).forEach(o=>{this.affiliationForm.form.controls[o].markAsPristine()})},o=>{this.submittingRequest=!1,console.log(o),o.error.data&&o.error.data.message?this.updateError=o.data.message:this.updateError="We're sorry, something's not right at our end. Please try again later."})}saveAffiliation(e){if(!this.editAffiliationForm.valid){Object.keys(this.editAffiliationForm.controls).forEach(o=>{this.editAffiliationForm.form.controls[o].markAsDirty()});return}let n=fa(ct(ne({},e),{currentAffiliation:void 0,startDate:(0,vn.default)(e.startDate).format("YYYY-MM-DD"),endDate:e.currentAffiliation||!e.endDate?void 0:(0,vn.default)(e.endDate).format("YYYY-MM-DD")}),o=>o===void 0);this.workService.editAffiliation(n).subscribe(()=>{this.submittingRequest=!1,this._fetch(),this.updateSuccessMsg="Updated Successfully"},o=>{this.submittingRequest=!1,console.log(o),o.error.data&&o.error.data.message?this.updateError=o.data.message:this.updateError="We're sorry, something's not right at our end. Please try again later."})}removeAffiliation(e){this.dialog.open(Ve,{disableClose:!0,panelClass:["ui-confirmation-modal","dialog-container--rounded"],data:{title:"Delete membership",message:"This membership record will be permanently deleted.",rejectMessage:"Cancel",acceptMessage:"Delete",acceptBtnColour:"btn-danger"}}).afterClosed().subscribe(o=>{o&&this.workService.deleteAffiliation(e.affiliationID).subscribe(()=>{this.submittingRequest=!1,this.workService.fetchAffiliations().pipe(q(this.ngUnsubscribe)).subscribe(a=>{this.affiliations=a,P.each(this.affiliations,m=>{m.hasOwnProperty("endDate")?m.currentAffiliation=!1:m.currentAffiliation=!0}),this.affiliations=P.sortBy(this.affiliations,"startDate").reverse()}),this.updateSuccessMsg="Remove Successfully"},a=>{this.submittingRequest=!1,console.log(a),a.error.data&&a.error.data.message?this.updateError=a.error.data.message:this.updateError="We're sorry, something's not right at our end. Please try again later."})})}inputingAffilicationOrganisation(e){if(e.length>200){alert("You can only have maximum 200 characters");return}}onAddAffiliationOrg(e){e&&this.workService.fetchOrganisationTitles(e).then(n=>{this.organisationTitles=n})}inputingAffiliationTitles(e){if(e.length>200){alert("You can only have maximum 200 characters");return}}checkOfferCardAccess(e){return e.organisation==="PPA"?!(this.user&&this.user.socials&&P.find(this.user.socials,o=>o.provider==="ppa")):this.accessDict.noValidSub}loadOrganisationName(){return this.organisationNames}loadOrganisationTitle(){return this.organisationTitles}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static{this.\u0275fac=function(n){return new(n||t)(y(vo),y(Ts),y(K),y(Re),y(Ae))}}static{this.\u0275cmp=Y({type:t,selectors:[["ng-component"]],viewQuery:function(n,o){if(n&1&&We(tu,5)(iu,5),n&2){let a;we(a=Se())&&(o.affiliationForm=a.first),we(a=Se())&&(o.editAffiliationForm=a.first)}},features:[Ne],decls:4,vars:3,consts:[["affiliationForm","ngForm"],["name","ngModel"],["autoOrgName","matAutocomplete"],["title","ngModel"],["autoMembership","matAutocomplete"],["number","ngModel"],["startDate","ngModel"],["startDatePicker",""],["editAffiliationForm","ngForm"],["endDate","ngModel"],["endDatePicker",""],[1,"mt-1","mb-4"],[3,"loaded","loadError"],[3,"offerCard"],[1,"card","mb-4"],[1,"card-header"],[1,"card-body"],[1,"card-text"],[1,"card","mb-4",3,"hidden"],[1,"card"],["name","addAffiliationForm","id","affiliationForm","novalidate","",3,"ngSubmit"],[1,"mb-6"],[1,"form-group","mb-4"],["for","name"],["type","text","name","name","matInput","","required","",1,"form-control",3,"ngModelChange","change","ngModel","matAutocomplete"],[3,"optionSelected"],[3,"value"],["for","title"],["type","text","name","title","required","",1,"form-control",3,"ngModelChange","ngModel","matAutocomplete"],["for","number"],["type","text","id","number","name","number",1,"form-control",3,"ngModelChange","ngModel"],["for","startDate"],[1,"form-has-calendar"],["type","text","name","startDate","required","",1,"form-control",3,"ngModelChange","paste","focus","click","matDatepicker","ngModel","min","max"],[1,"form-check","mt-2"],["type","checkbox","name","workType","id","currentAffiliationAdd",1,"form-check-input",3,"change","checked"],["for","currentAffiliationAdd",1,"form-check-label","font-weight-normal"],["type","submit",1,"btn","btn-secondary","ladda-button","d-flex","flex-row","align-items-center",3,"disabled"],["color","dark",1,"mr-1","sl-icon"],["name","editAffiliationForm","id","editAffiliationForm","novalidate","",1,"text-dark","mt-4","mb-7",3,"ngSubmit"],["type","checkbox","name","workType","id","currentAffiliationEdit",1,"form-check-input",3,"change","checked"],["for","currentAffiliationEdit",1,"form-check-label","font-weight-normal"],[1,"d-flex","flex-row"],["type","submit",1,"btn","btn-secondary","ladda-button","mr-2","d-flex","flex-row","align-items-center",3,"disabled"],["type","button",1,"btn","btn-default","d-flex","flex-row","align-items-center",3,"click","disabled"],[1,"invalid-feedback"],["for","endDate"],["type","text","name","endDate",1,"form-control",3,"ngModelChange","paste","focus","click","matDatepicker","ngModel","min","max","disabled"],["type","text","name","endDate",1,"form-control",3,"ngModelChange","paste","focus","click","matDatepicker","ngModel","min","max"]],template:function(n,o){n&1&&(l(0,"h4",11),c(1,"Professional Memberships"),s(),x(2,"loader-container",12),u(3,Iu,65,18)),n&2&&(r(2),g("loaded",o.loaded)("loadError",o.loadError),r(),_(o.loaded?3:-1))},dependencies:[xt,Io,Ut,Nt,Wt,_e,Ze,Fe,Te,Ke,Dt,He,Xe,Bt,Co,mo,Pi,Ii,Li,Ti,ue,co,lo,Ft],styles:[".sl-icon[_ngcontent-%COMP%]{padding-top:1px}"]})}};var Yu=(t,i)=>i.workID;function Vu(t,i){if(t&1&&c(0),t&2){let e=d().$implicit;M(" ",e.position," at ")}}function Au(t,i){t&1&&x(0,"ui-spinner",10)}function Ou(t,i){t&1&&x(0,"ui-spinner",13)}
5function Ru(t,i){if(t&1){let e=D();l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header"),u(2,Vu,1,1),c(3),w(4,"date"),w(5,"date"),s(),l(6,"form",7),x(7,"app-work-subform",8),w(8,"async"),w(9,"async"),s(),l(10,"button",11),C("click",function(){let o=p(e).$implicit,a=d(2);return f(a.saveWork(o))}),u(11,Au,1,0,"ui-spinner",10),c(12," Save "),s(),l(13,"button",12),C("click",function(){let o=p(e).$implicit,a=d(2);return f(a.removeWork(o))}),u(14,Ou,1,0,"ui-spinner",13),c(15," Remove "),s()()}if(t&2){let e=i.$implicit,n=d(2);r(2),_(e.position?2:-1),r(),Or(" ",e.workplace," \u2013 ",ye(4,12,e.startDate,"dd MMM yyyy")," to ",e.endDate?ye(5,15,e.endDate,"dd MMM yyyy"):"Present"," "),r(3),g("formGroup",n.formGroup),r(),g("availWorkplaces",O(8,18,n.workplaces))("availPositions",O(9,20,n.positions))("controls",e.controls),r(3),g("disabled",n.submittingRequest),r(),_(n.submittingRequest?11:-1),r(2),g("disabled",n.submittingRequest),r(),_(n.submittingRequest?14:-1)}}function Fu(t,i){t&1&&x(0,"ui-spinner",10)}function Hu(t,i){if(t&1){let e=D();l(0,"div",2)(1,"h5",3),c(2,"Work Experience"),s(),l(3,"div",4)(4,"p",5),c(5," Please add your work experience using the form below. "),s()()(),l(6,"div",6)(7,"h5",3),c(8,"Work History"),s(),l(9,"div",4)(10,"mat-accordion"),R(11,Ru,16,22,"mat-expansion-panel",null,Yu),s()()(),l(13,"div",2)(14,"h5",3),c(15,"Add work experience"),s(),l(16,"div",4)(17,"form",7),x(18,"app-work-subform",8),w(19,"async"),w(20,"async"),s(),l(21,"button",9),C("click",function(){p(e);let o=d();return f(o.addWork())}),u(22,Fu,1,0,"ui-spinner",10),c(23," Save "),s()()()}if(t&2){let e=d();r(6),g("hidden",e.works.length<1),r(5),F(e.works),r(6),g("formGroup",e.formGroup),r(),g("availWorkplaces",O(19,7,e.workplaces))("availPositions",O(20,9,e.positions))("controls",e.controls),r(3),g("disabled",e.submittingRequest),r(),_(e.submittingRequest?22:-1)}}var Ni=class t{constructor(i,e,n,o,a){this.workService=i;this.broadcaster=e;this.dialog=n;this.analytics=o;this.route=a;this.ngUnsubscribe=new Q;this.work={};this.works=[];this.updateError="";this.updateSuccessMsg="";this.submittingRequest=!1;this.workplaces=this.workService.fetchWorkplacesNames();this.positions=this.workService.fetchWorkplacePositions();this.datePickerConfig={};this.workTypes=al;this.context="settings"}ngOnInit(){this.initialWork(),this.workService.fetchWorks().pipe(re(()=>this.workService.getWorks()),q(this.ngUnsubscribe)).subscribe(e=>{this.works=e,this.works.forEach(n=>{n.formGroup=new ri(si.getControls(n)),n.controls=n.formGroup.controls}),this.loaded=!0,this.loadError=!1},()=>{this.loadError=!0});let i=new Date;this.datePickerConfig.minDate=new Date,this.datePickerConfig.minDate.setFullYear(i.getFullYear()-50),this.datePickerConfig.maxDate=new Date,this.datePickerConfig.maxDate.setFullYear(i.getFullYear()+10),this.datePickerConfig.yearRange=`${this.datePickerConfig.minDate.getFullYear()}:${this.datePickerConfig.maxDate.getFullYear()}`,this.route.queryParams.pipe(q(this.ngUnsubscribe)).subscribe(e=>{e.context&&(this.context=e.context)})}inputingTextLengthConstraints(i){if(i.length>200){alert("You can only have maximum 200 characters");return}}initialWork(){this.work.position=null,this.work.workplace=null,this.work.department=null,this.work.startDate=null,this.work.endDate=null,this.work.workType=null,this.work.currentWork=!0,this.formGroup=new ri(si.getControls(this.work)),this.controls=this.formGroup.controls}addWork(){if(!this.formGroup.valid){Object.keys(this.formGroup.controls).forEach(i=>{this.formGroup.controls[i].markAsDirty()});return}this.workService.addWorks(ne({},si.parse(this.formGroup.value))).pipe(q(this.ngUnsubscribe),se(()=>{this.analytics.track("A-workplace-added",{context:this.context,workplace:this.formGroup.value.workplace,position:this.formGroup.value.position,department:this.formGroup.value.department,totalWorkplaces:this.works.length})})).subscribe(()=>{this.submittingRequest=!1,this.broadcaster.broadcast("workExperienceUpdated"),this.updateSuccessMsg="Added Successfully",this.initialWork(),Object.keys(this.formGroup.controls).forEach(i=>
5{this.formGroup.controls[i].markAsPristine()})},i=>{this.submittingRequest=!1,console.log(i),i.error.data&&i.error.data.message?this.updateError=i.data.message:this.updateError="We're sorry, something's not right at our end. Please try again later."})}saveWork(i){if(!i.formGroup.valid){Object.keys(i.formGroup.controls).forEach(o=>{i.formGroup.controls[o].markAsDirty()});return}let e=P.omit(i,["controls","formGroup"]),n=this.workService.editWorks(ne(ne({},e),si.parse(i.formGroup.value))).pipe(se(()=>{this.analytics.track("A-workplace-edited",{context:this.context,workplace:i.formGroup.workplace,position:i.formGroup.position,department:i.formGroup.department,totalWorkplaces:this.works.length})}));Be(n).then(()=>{this.submittingRequest=!1,this.broadcaster.broadcast("workExperienceUpdated"),this.updateSuccessMsg="Updated Successfully"},o=>{this.submittingRequest=!1,console.log(o),o.error.data&&o.error.data.message?this.updateError=o.data.message:this.updateError="We're sorry, something's not right at our end. Please try again later."})}removeWork(i){this.dialog.open(Ve,{disableClose:!0,panelClass:["ui-confirmation-modal","dialog-container--rounded"],data:{title:"Delete work experience record",message:"This work experience record will be permanently deleted.",rejectMessage:"Cancel",acceptMessage:"Delete",acceptBtnColour:"btn-danger"}}).afterClosed().subscribe(n=>{if(n){let o=this.workService.deleteWorks(i.workID).pipe(se(()=>{this.analytics.track("A-workplace-removed",{context:this.context,workplace:i.workplace,position:i.position,department:i.department,totalWorkplaces:this.works.length})}));Be(o).then(()=>{this.submittingRequest=!1,this.broadcaster.broadcast("workExperienceUpdated"),this.updateSuccessMsg="Remove Successfully"},a=>{this.submittingRequest=!1,console.log(a),a.error.data&&a.error.data.message?this.updateError=a.error.data.message:this.updateError="We're sorry, something's not right at our end. Please try again later."})}})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static{this.\u0275fac=function(e){return new(e||t)(y(vo),y(Gr),y(Re),y(wi),y(Br))}}static{this.\u0275cmp=Y({type:t,selectors:[["ng-component"]],decls:4,vars:3,consts:[[1,"mt-1","mb-4"],[3,"loaded","loadError"],[1,"card","mb-4"],[1,"card-header"],[1,"card-body"],[1,"card-text"],[1,"card","mb-4",3,"hidden"],[3,"formGroup"],[3,"availWorkplaces","availPositions","controls"],["type","submit",1,"btn","btn-secondary","ladda-button","d-inline-flex","align-items-center",3,"click","disabled"],["color","light",1,"mr-2"],["type","submit",1,"btn","btn-secondary","ladda-button","mr-4","d-inline-flex","align-items-center",3,"click","disabled"],["type","button",1,"btn","btn-default","d-inline-flex","align-items-center",3,"click","disabled"],["color","dark",1,"mr-2"]],template:function(e,n){e&1&&(l(0,"h4",0),c(1,"Employment History"),s(),x(2,"loader-container",1),u(3,Hu,24,11)),e&2&&(r(2),g("loaded",n.loaded)("loadError",n.loadError),r(),_(n.loaded?3:-1))},dependencies:[xt,Ut,Nt,Wt,_e,Ze,Ke,to,Mo,si,ue,ut,Ft],encapsulation:2})}};var Mr=aa(ha());var Bu=["addBillingAddressForm"];function ju(t,i){t&1&&(l(0,"div",22),c(1,"Required"),s())}function Nu(t,i){if(t&1&&(l(0,"div"),u(1,ju,2,0,"div",22),s()),t&2){d();let e=v(4);r(),_(e.errors.required?1:-1)}}function Wu(t,i){t&1&&(l(0,"div",22),c(1,"Required"),s())}function Uu(t,i){if(t&1&&(l(0,"div"),u(1,Wu,2,0,"div",22),s()),t&2){d();let e=v(11);r(),_(e.errors.required?1:-1)}}function qu(t,i){t&1&&(l(0,"div",22),c(1,"Required"),s())}function $u(t,i){if(t&1&&(l(0,"div"),u(1,qu,2,0,"div",22),s()),t&2){d();let e=v(16);r(),_(e.errors.required?1:-1)}}function zu(t,i){t&1&&(l(0,"div",22),c(1,"Required"),s())}function Gu(t,i){t&1&&(l(0,"div",22),c(1,"Required"),s())}function Qu(t,i){if(t&1){let e=D();l(0,"label",12),c(1,"Street*"),s(),l(2,"div",13)(3,"input",14,1),j("ngModelChange",function(o){p(e);let a=d();return B(a.user.billingAddress.street1,o)||(a.user.billingAddress.street1=o),f(o)}),s(),l(5,"input",15,2),j("ngModelChange",function(o){p(e);let a=d();return B(a.user.billingAddress.street2,o)||(a.user.billingAddress.street2=o),f(o)}),s(),u(7,Nu,2,1,"div"),s(),l(8,"label",16),c(9,"Suburb/City*"),s(),l(10,"input",17,3),j("ngModelChange",function(o){p(e);let a=d();return B(a.user.billingAddress.suburb,o)||(a.user.billingAddress.suburb=o),f(o)}),s(),u(12,Uu,2,1,"div"),l(13,"label",18),c(14,"Postcode/Zip*"),s(),l(15,"input",19,4),j("ngModelChange",function(o){p(e);let a=d();return B(a.user.billingAddress.postcode,o)||(a.user.billingAddress.postcode=o),f(o)}),s(),u(17,$u,2,1,"div"),l(18,"label",20),c(19,"Country*"),s(),l(20,"div",21),C("countryChanged",function(o){p(e);let a=d();return a.user.billingAddress.state="",f(a.user.billingAddress.country=o)}),s(),u(21,zu,2,0,"div",22),l(22,"label",23),c(23,"State*"),s(),l(24,"div",24),C("stateChanged",function(o){p(e);let a=d();return f(a.user.billingAddress.state=o)}),s(),u(25,Gu,2,0,"div",22)}if(t&2){let e=v(4),n=v(11),o=v(16),a=d();r(3),H("ngModel",a.user.billingAddress.street1),r(2),H("ngModel",a.user.billingAddress.street2),r(2),_(e!=null&&e.errors&&!(e!=null&&e.pristine)?7:-1),r(3),H("ngModel",a.user.billingAddress.suburb),r(2),_(n!=null&&n.errors&&!(n!=null&&n.pristine)?12:-1),r(3),H("ngModel",a.user.billingAddress.postcode),r(2),_(o!=null&&o.errors&&!(o!=null&&o.pristine)?17:-1),r(3),g("initCountry",a.user.billingAddress.country)("isRequired",!0),r(),_(a.countryRequired?21:-1),r(3),g("initState",a.user.billingAddress.state?a.user.billingAddress.state:null)("selectedCountry",a.user.billingAddress.country)("isRequired",!0),r(),_(a.stateRequired?25:-1)}}function Ju(t,i){t&1&&x(0,"ui-spinner",10)}function Ku(t,i){t&1&&x(0,"ui-spinner",10)}
5var li=class t{constructor(i,e,n){this.dialogRef=i;this.data=e;this.userService=n;this.user={};this.submittingRequest=!1;this.stateRequired=!1;this.countryRequired=!1}ngOnInit(){this.user=ne({},this.data.user)}closePopup(){this.dialogRef.close()}saveBillingAddress(){if(!this.addBillingAddressForm.valid){Object.keys(this.addBillingAddressForm.controls).forEach(i=>{this.addBillingAddressForm.form.controls[i].markAsDirty()});return}if(!this.user.billingAddress.country||this.user.billingAddress.country===""){this.countryRequired=!0;return}else if(!this.user.billingAddress.state||this.user.billingAddress.state===""){this.stateRequired=!0;return}this.submittingRequest=!0,Be(this.userService.updateUser(this.user)).then(()=>{this.submittingRequest=!1,this.dialogRef.close("updated")},()=>{this.submittingRequest=!1})}static{this.\u0275fac=function(e){return new(e||t)(y(Un),y(Wr),y(K))}}static{this.\u0275cmp=Y({type:t,selectors:[["ng-component"]],viewQuery:function(e,n){if(e&1&&We(Bu,5),e&2){let o;we(o=Se())&&(n.addBillingAddressForm=o.first)}},decls:15,vars:5,consts:[["addBillingAddressForm","ngForm"],["bstreet1","ngModel"],["bstreet2","ngModel"],["bsuburb","ngModel"],["bpostcode","ngModel"],["mat-dialog-title",""],[1,"card-body"],["name","addBillingAddressForm","id","addBillingAddressForm","novalidate","",3,"ngSubmit"],[1,"d-flex","flex-row"],["type","submit",1,"btn","btn-secondary","ladda-button","d-flex","flex-row","align-items-center",3,"disabled"],["color","dark",1,"mr-2"],["type","button",1,"btn","btn-default","ml-2","d-flex","flex-row","align-items-center",3,"click","disabled"],["for","bstreet1",1,"left","inline"],[1,"inputGroup"],["id","bstreet","type","text","name","bstreet1","required","",1,"form-control","mb-4",3,"ngModelChange","ngModel"],["type","text","name","bstreet2",1,"form-control","mb-4",3,"ngModelChange","ngModel"],["for","bsuburb",1,"left","inline"],["id","bsuburb","type","text","name","bsuburb","required","",1,"form-control","mb-4",3,"ngModelChange","ngModel"],["for","bpostcode",1,"left","inline"],["id","bpostcode","type","text","name","bpostcode","required","",1,"form-control","mb-4",3,"ngModelChange","ngModel"],["for","bcountry",1,"left","inline"],["country-selection","","disabled","","id","bcountry",1,"mb-4",3,"countryChanged","initCountry","isRequired"],[1,"invalid-feedback"],["for","bstate",1,"left","inline"],["state-selection","","id","bstate",1,"mb-4",3,"stateChanged","initState","selectedCountry","isRequired"]],template:function(e,n){if(e&1&&(l(0,"h2",5),c(1," Confirm Billing Address "),x(2,"hr"),s(),l(3,"mat-dialog-content")(4,"div",6)(5,"form",7,0),C("ngSubmit",function(){return n.saveBillingAddress()}),u(7,Qu,26,14),l(8,"div",8)(9,"button",9),u(10,Ju,1,0,"ui-spinner",10),c(11," Save "),s(),l(12,"button",11),C("click",function(){return n.closePopup()}),u(13,Ku,1,0,"ui-spinner",10),c(14," Cancel "),s()()()()()),e&2){let o=v(6);r(7),_(n.user?7:-1),r(2),g("disabled",o.invalid||n.submittingRequest),r(),_(n.submittingRequest?10:-1),r(2),g("disabled",n.submittingRequest),r(),_(n.submittingRequest?13:-1)}},dependencies:[qn,$n,_e,Ze,Fe,Te,Ke,Dt,He,Xe,Bt,ks,Ss,ho,fo,ue],encapsulation:2})}};function Xu(t,i){return(t%i+i)%i}function pi(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ze(t){return typeof t=="string"}function Yn(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function Vt(t){return t&&t.getTime&&!isNaN(t.getTime())}function hi(t){return t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function on(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function ee(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function Ee(t,i){return Object.prototype.hasOwnProperty.call(t,i)}function Ci(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function Zu(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;let i;for(i in t)if(t.hasOwnProperty(i))return!1;return!0}function Zl(t){return t===void 0}function N(t){let i=+t,e=0;return i!==0&&isFinite(i)&&(e=pi(i)),e}var Sn={},vl={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function Le(t,i){let e=t.toLowerCase(),n=t;e in vl&&(n=vl[e]),Sn[e]=Sn[`${e}s`]=Sn[i]=n}function ed(t){return ze(t)?Sn[t]||Sn[t.toLowerCase()]:void 0}function e_(t){let i={},e,n;for(n in t)Ee(t,n)&&(e=ed(n),e&&(i[e]=t[n]));return i}var ft=0,It=1,Mt=2,he=3,ht=4,Yt=5,gi=6,t_=7,i_=8;function Lt(t,i,e){let n=`${Math.abs(t)}`,o=i-n.length,m=t>=0?e?"+":"":"-",h=Math.pow(10,Math.max(0,o)).toString().substr(1);return m+h+n}var ka={},en={},td=/(\[[^\[]*\])|(\\)?([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}
5|x|X|zz?|ZZ?|.)/g;function A(t,i,e,n){t&&(en[t]=n),i&&(en[i[0]]=function(){return Lt(n.apply(null,arguments),i[1],i[2])}),e&&(en[e]=function(o,a){return a.locale.ordinal(n.apply(null,arguments),t)})}function n_(t){let i=t.match(td),e=i.length,n=new Array(e);for(let o=0;o<e;o++)n[o]=en[i[o]]?en[i[o]]:o_(i[o]);return function(o,a,m,h=0){let b="";for(let k=0;k<e;k++)b+=hi(n[k])?n[k].call(null,o,{format:t,locale:a,isUTC:m,offset:h}):n[k];return b}}function o_(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Xa(t,i,e){let n=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t),n}function qo(t,i=0,e=1,n=0,o=0,a=0,m=0){let h=new Date(t,i,e,n,o,a,m);return t<100&&t>=0&&isFinite(h.getFullYear())&&h.setFullYear(t),h}function W(t,i=!1){return i?t.getUTCHours():t.getHours()}function Ki(t,i=!1){return i?t.getUTCMinutes():t.getMinutes()}function Wa(t,i=!1){return i?t.getUTCSeconds():t.getSeconds()}function Et(t,i=!1){return i?t.getUTCMilliseconds():t.getMilliseconds()}function a_(t){return t.getTime()}function gt(t,i=!1){return i?t.getUTCDay():t.getDay()}function En(t,i=!1){return i?t.getUTCDate():t.getDate()}function U(t,i=!1){return i?t.getUTCMonth():t.getMonth()}function pe(t,i=!1){return i?t.getUTCFullYear():t.getFullYear()}function r_(t){return Math.floor(t.valueOf()/1e3)}function id(t){return qo(t.getFullYear(),t.getMonth(),1,t.getHours(),t.getMinutes(),t.getSeconds())}function nd(t,i){return t.getDay()===Number(i)}function bi(t,i){return!t||!i?!1:vi(t,i)&&U(t)===U(i)}function vi(t,i){return!t||!i?!1:pe(t)===pe(i)}function At(t,i){return!t||!i?!1:vi(t,i)&&bi(t,i)&&En(t)===En(i)}var od=/\d/,$e=/\d\d/,ad=/\d{3}/,Ua=/\d{4}/,Ho=/[+-]?\d{6}/,ie=/\d\d?/,Dl=/\d\d\d\d?/,xl=/\d\d\d\d\d\d?/,Ao=/\d{1,3}/,qa=/\d{1,4}/,Bo=/[+-]?\d{1,6}/,s_=/\d+/,jo=/[+-]?\d+/;var Ta=/Z|[+-]\d\d(?::?\d\d)?/gi,l_=/[+-]?\d+(\.\d{1,3})?/,kn=/[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,No={};function T(t,i,e){if(hi(i)){No[t]=i;return}No[t]=function(n,o){return n&&e?e:i}}function d_(t,i){return Ee(No,t)?No[t](!1,i):new RegExp(c_(t))}function c_(t){return fi(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(i,e,n,o,a)=>e||n||o||a))}function fi(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var $a={};function te(t,i){let e=ze(t)?[t]:t,n=i;if(on(i)&&(n=function(o,a,m){return a[i]=N(o),m}),ee(e)&&hi(n)){let o;for(o=0;o<e.length;o++)$a[e[o]]=n}}function Ln(t,i){te(t,function(e,n,o,a){return o._w=o._w||{},i(e,o._w,o,a)})}function m_(t,i,e){return i!=null&&Ee($a,t)&&$a[t](i,e._a,e,t),e}var u_={};function Ie(t,i){u_[t]=i}function __(){A("D",["DD",2,!1],"Do",function(t,i){return En(t,i.isUTC).toString(10)}),Le("date","D"),Ie("date",9),T("D",ie),T("DD",ie,$e),T("Do",function(t,i){return i._dayOfMonthOrdinalParse||i._ordinalParse}),te(["D","DD"],Mt),te("Do",function(t,i,e){return i[Mt]=N(t.match(ie)[0]),e})}function p_(){return{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}}function z(t){return t._pf==null&&(t._pf=p_()),t._pf}function Pa(t,i){return i.locale.getFullYear?i.locale.getFullYear(t,i.isUTC).toString():pe(t,i.isUTC).toString()}function f_(){A("Y",null,null,function(t,i){let e=pe(t,i.isUTC);return e<=9999?e.toString(10):`+${e}`}),A(null,["YY",2,!1],null,function(t,i){return(pe(t,i.isUTC)%100).toString(10)}),A(null,["YYYY",4,!1],null,Pa),A(null,["YYYYY",5,!1],null,Pa),A(null,["YYYYYY",6,!0],null,Pa),Le("year","y"),Ie("year",1),T("Y",jo),T("YY",ie,$e),T("YYYY",qa,Ua),T("YYYYY",Bo,Ho),T("YYYYYY",Bo,Ho),te(["YYYYY","YYYYYY"],ft),te("YYYY",function(t,i,e){return i[ft]=t.length===2?za(t):N(t),e}),te("YY",function(t,i,e){return i[ft]=za(t),e}),te("Y",function(t,i,e){return i[ft]=parseInt(t,10),e})}function za(t){return N(t)+(N(t)>68?1900:2e3)}function Tn(t){return rd(t)?366:365}function rd(t){return t%4===0&&t%100!==0||t%400===0}function Za(t,i){if(isNaN(t)||isNaN(i))return NaN;let e=Xu(i,12),n=t+(i-e)/12;return e===1?rd(n)?29:28:31-e%7%2}function h_(){A("M",["MM",2,!1],"Mo",function(t,i){return(U(t,i.isUTC)+1).toString(10)}),A("MMM",null,null,function(t,i){return i.locale.monthsShort(t,i.format,i.isUTC)}),A("MMMM",null,null,function(t,i){return i.locale.months(t,i.format,i.isUTC)}),Le("month","M"),Ie("month",8),T("M",ie),T("MM",ie,$e),T("MMM",function(t,i){return i.monthsShortRegex(t)}),T("MMMM",function(t,i){return i.monthsRegex(t)}),te(["M","MM"],function(t,i,e){return i[It]=N(t)-1,e}),te(["MMM","MMMM"],function(t,i,e,n){let o=e._locale.monthsParse(t,n,e._strict);return o!=null?i[It]=o:z(e).invalidMonth=!!t,e})}var g_={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function Ce(t,i){let e=Object.assign({},g_,i),n=t.getFullYear()+(e.year||0),o=t.getMonth()+(e.month||0),a=t.getDate()+(e.day||0);return e.month&&!e.day&&(a=Math.min(a,Za(n,o))),qo(n,o,a,t.getHours()+(e.hour||0),t.getMinutes()+(e.minute||0),t.getSeconds()+(e.seconds||0))}function sd(t,i){return qo(Wi(t.getFullYear(),i.year),Wi(t.getMonth(),i.month),1,Wi(t.getHours(),i.hour),Wi(t.getMinutes(),i.minute),Wi(t.getSeconds(),i.seconds),Wi(t.getMilliseconds(),i.milliseconds))}function Wi(t,i){return on(i)?i:t}function Ga(t,i,e){let n=Math.min(En(t),Za(pe(t),i));return e?t.setUTCMonth(i,n):t.setMonth(i,n),t}function C_(t,i,e){return e?t.setUTCHours(i):t.setHours(i),t}function y_(t,i,e){return e?t.setUTCMinutes(i):t.setMinutes(i),t}function b_(t,i,e){return e?t.setUTCSeconds(i):t.setSeconds(i),t}function v_(t,i,e){return e?t.setUTCMilliseconds(i):t.setMilliseconds(i),t}function ld(t,i,e){return e?t.setUTCDate(i):t.setDate(i),t}function D_(t,i){return t.setTime(i),t}function yi(t){return new Date(t.getTime())}function wt(t,i,e){let n=yi(t);switch(i){case"year":Ga(n,0,e);case"quarter":case"month":ld(n,1,e);case"week":case"isoWeek":case"day":case"date":C_(n,0,e);case"hours":y_(n,0,e);case"minutes":b_(n,0,e);case"seconds":v_(n,0,e)}return i==="week"&&qp(n,0,{isUTC:e}),i==="isoWeek"&&zp(n,1),i==="quarter"&&Ga(n,Math.floor(U(n,e)/3)*3,e),n}function Vn(t,i,e){let n=i;n==="date"&&(n="day");let o=wt(t,n,e),a=In(o,1,n==="isoWeek"?"week":n,e);return jp(a,1,"milliseconds",e)}function x_(){A("DDD",["DDDD",3,!1],"DDDo",function(t){return dd(t).toString(10)}),Le("dayOfYear","DDD"),Ie("dayOfYear",4),T("DDD",Ao),T("DDDD",ad),te(["DD
5D","DDDD"],function(t,i,e){return e._dayOfYear=N(t),e})}function dd(t,i){let e=+wt(t,"day",i),n=+wt(t,"year",i),o=e-n,a=1e3*60*60*24;return Math.round(o/a)+1}function Wo(t,i,e){let n=i-e+7;return-((Xa(t,0,n).getUTCDay()-i+7)%7)+n-1}function M_(t,i,e,n,o){let a=(7+e-n)%7,m=Wo(t,n,o),h=1+7*(i-1)+a+m,b,k;return h<=0?(b=t-1,k=Tn(b)+h):h>Tn(t)?(b=t+1,k=h-Tn(t)):(b=t,k=h),{year:b,dayOfYear:k}}function tn(t,i,e,n){let o=Wo(pe(t,n),i,e),a=Math.floor((dd(t,n)-o-1)/7)+1,m,h;return a<1?(h=pe(t,n)-1,m=a+Oo(h,i,e)):a>Oo(pe(t,n),i,e)?(m=a-Oo(pe(t,n),i,e),h=pe(t,n)+1):(h=pe(t,n),m=a),{week:m,year:h}}function Oo(t,i,e){let n=Wo(t,i,e),o=Wo(t+1,i,e);return(Tn(t)-n+o)/7}var Ml=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,w_="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),cd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),S_="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),md="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),k_="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ud={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"},T_="%d",P_=/\d{1,2}/,E_=kn,L_=kn,Qa=class{constructor(i){i&&this.set(i)}set(i){let e;for(e in i){if(!i.hasOwnProperty(e))continue;let n=i[e],o=hi(n)?e:`_${e}`;this[o]=n}this._config=i}calendar(i,e,n){let o=this._calendar[i]||this._calendar.sameElse;return hi(o)?o.call(null,e,n):o}longDateFormat(i){let e=this._longDateFormat[i],n=this._longDateFormat[i.toUpperCase()];return e||!n?e:(this._longDateFormat[i]=n.replace(/MMMM|MM|DD|dddd/g,function(o){return o.slice(1)}),this._longDateFormat[i])}get invalidDate(){return this._invalidDate}set invalidDate(i){this._invalidDate=i}ordinal(i,e){return this._ordinal.replace("%d",i.toString(10))}preparse(i,e){return i}getFullYear(i,e=!1){return pe(i,e)}postformat(i){return i}relativeTime(i,e,n,o){let a=this._relativeTime[n];return hi(a)?a(i,e,n,o):a.replace(/%d/i,i.toString(10))}pastFuture(i,e){let n=this._relativeTime[i>0?"future":"past"];return hi(n)?n(e):n.replace(/%s/i,e)}months(i,e,n=!1){if(!i)return ee(this._months)?this._months:this._months.standalone;if(ee(this._months))return this._months[U(i,n)];let o=(this._months.isFormat||Ml).test(e)?"format":"standalone";return this._months[o][U(i,n)]}monthsShort(i,e,n=!1){if(!i)return ee(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(ee(this._monthsShort))return this._monthsShort[U(i,n)];let o=Ml.test(e)?"format":"standalone";return this._monthsShort[o][U(i,n)]}monthsParse(i,e,n){let o,a;if(this._monthsParseExact)return this.handleMonthStrictParse(i,e,n);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);let m;for(m=0;m<12;m++){if(o=new Date(Date.UTC(2e3,m)),n&&!this._longMonthsParse[m]){let h=this.months(o,"",!0).replace(".",""),b=this.monthsShort(o,"",!0).replace(".","");this._longMonthsParse[m]=new RegExp(`^${h}$`,"i"),this._shortMonthsParse[m]=new RegExp(`^${b}$`,"i")}if(!n&&!this._monthsParse[m]&&(a=`^${this.months(o,"",!0)}|^${this.monthsShort(o,"",!0)}`,this._monthsParse[m]=new RegExp(a.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[m].test(i)||n&&e==="MMM"&&this._shortMonthsParse[m].test(i)||!n&&this._monthsParse[m].test(i))return m}}monthsRegex(i){return this._monthsParseExact?(Ee(this,"_monthsRegex")||this.computeMonthsParse(),i?this._monthsStrictRegex:this._monthsRegex):(Ee(this,"_monthsRegex")||(this._monthsRegex=L_),this._monthsStrictRegex&&i?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(i){return this._monthsParseExact?(Ee(this,"_monthsRegex")||this.computeMonthsParse(),i?this._monthsShortStrictRegex:this._monthsShortRegex):(Ee(this,"_monthsShortRegex")||(this._monthsShortRegex=E_),this._monthsShortStrictRegex&&i?this._monthsShortStrictRegex:this._monthsShortRegex)}week(i,e){return tn(i,this._week.dow,this._week.doy,e).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(i,e,n){if(!i)return ee(this._weekdays)?this._weekdays:this._weekdays.standalone;if(ee(this._weekdays))return this._weekdays[gt(i,n)];let o=this._weekdays.isFormat.test(e)?"format":"standalone";return this._weekdays[o][gt(i,n)]}weekdaysMin(i,e,n){return i?this._weekdaysMin[gt(i,n)]:this._weekdaysMin}weekdaysShort(i,e,n){return i?this._weekdaysShort[gt(i,n)]:this._weekdaysShort}weekdaysParse(i,e,n){let o,a;if(this._weekdaysParseExact)return this.handleWeekStrictParse(i,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){let m=Ro(new Date(Date.UTC(2e3,1)),o,null,!0);if(n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp(`^${this.weekdays(m,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[o]=new RegExp(`^${this.weekdaysShort(m,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[o]=new RegExp(`^${this.weekdaysMin(m,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[o]||(a=`^${this.weekdays(m,"",!0)}|^${this.weekdaysShort(m,"",!0)}|^${this.weekdaysMin(m,"",!0)}`,this._weekdaysParse[o]=new RegExp(a.replace(".",""),"i")),!ee(this._fullWeekdaysParse)||!ee(this._shortWeekdaysParse)||!ee(this._minWeekdaysParse)||!ee(this._weekdaysParse))return;if(n&&e==="dddd"&&this._fullWeekdaysParse[o].test(i))return o;if(n&&e==="ddd"&&this._shortWeekdaysParse[o].test(i))return o;if(n&&e==="dd"&&this._minWeekdaysParse[o].test(i))return o;if(!n&&this._weekdaysParse[o].test(i))return o}}weekdaysRegex(i){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||this.computeWeekdaysParse(),i?this._weekdaysStrictRegex:this._weekdaysRegex):(Ee(this,"_weekdaysRegex")||(this._weekdaysRegex=kn),this._weekdaysStrictRegex&&i?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(i){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||this.computeWeekdaysParse(),i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ee(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kn),this._weekdaysShortStrictRegex&&i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(i){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||this.computeWeekdaysParse(),i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ee(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kn),this._weekdaysMinStrictRegex&&i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(i){return i.toLowerCase().charAt(0)==="p"}
5meridiem(i,e,n){return i>11?n?"pm":"PM":n?"am":"AM"}formatLongDate(i){this._longDateFormat=this._longDateFormat?this._longDateFormat:ud;let e=this._longDateFormat[i],n=this._longDateFormat[i.toUpperCase()];return e||!n?e:(this._longDateFormat[i]=n.replace(/MMMM|MM|DD|dddd/g,o=>o.slice(1)),this._longDateFormat[i])}handleMonthStrictParse(i,e,n){let o=i.toLocaleLowerCase(),a,m,h;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)h=new Date(2e3,a),this._shortMonthsParse[a]=this.monthsShort(h,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(h,"").toLocaleLowerCase();return n?e==="MMM"?(m=this._shortMonthsParse.indexOf(o),m!==-1?m:null):(m=this._longMonthsParse.indexOf(o),m!==-1?m:null):e==="MMM"?(m=this._shortMonthsParse.indexOf(o),m!==-1?m:(m=this._longMonthsParse.indexOf(o),m!==-1?m:null)):(m=this._longMonthsParse.indexOf(o),m!==-1?m:(m=this._shortMonthsParse.indexOf(o),m!==-1?m:null))}handleWeekStrictParse(i,e,n){let o,a=i.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];let m;for(m=0;m<7;++m){let h=Ro(new Date(Date.UTC(2e3,1)),m,null,!0);this._minWeekdaysParse[m]=this.weekdaysMin(h).toLocaleLowerCase(),this._shortWeekdaysParse[m]=this.weekdaysShort(h).toLocaleLowerCase(),this._weekdaysParse[m]=this.weekdays(h,"").toLocaleLowerCase()}}if(!(!ee(this._weekdaysParse)||!ee(this._shortWeekdaysParse)||!ee(this._minWeekdaysParse)))return n?e==="dddd"?(o=this._weekdaysParse.indexOf(a),o!==-1?o:null):e==="ddd"?(o=this._shortWeekdaysParse.indexOf(a),o!==-1?o:null):(o=this._minWeekdaysParse.indexOf(a),o!==-1?o:null):e==="dddd"?(o=this._weekdaysParse.indexOf(a),o!==-1||(o=this._shortWeekdaysParse.indexOf(a),o!==-1)?o:(o=this._minWeekdaysParse.indexOf(a),o!==-1?o:null)):e==="ddd"?(o=this._shortWeekdaysParse.indexOf(a),o!==-1||(o=this._weekdaysParse.indexOf(a),o!==-1)?o:(o=this._minWeekdaysParse.indexOf(a),o!==-1?o:null)):(o=this._minWeekdaysParse.indexOf(a),o!==-1||(o=this._weekdaysParse.indexOf(a),o!==-1)?o:(o=this._shortWeekdaysParse.indexOf(a),o!==-1?o:null))}computeMonthsParse(){let i=[],e=[],n=[],o,a;for(a=0;a<12;a++)o=new Date(2e3,a),i.push(this.monthsShort(o,"")),e.push(this.months(o,"")),n.push(this.months(o,"")),n.push(this.monthsShort(o,""));for(i.sort(di),e.sort(di),n.sort(di),a=0;a<12;a++)i[a]=fi(i[a]),e[a]=fi(e[a]);for(a=0;a<24;a++)n[a]=fi(n[a]);this._monthsRegex=new RegExp(`^(${n.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${e.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${i.join("|")})`,"i")}computeWeekdaysParse(){let i=[],e=[],n=[],o=[],a;for(a=0;a<7;a++){let m=Ro(new Date(Date.UTC(2e3,1)),a,null,!0),h=this.weekdaysMin(m),b=this.weekdaysShort(m),k=this.weekdays(m);i.push(h),e.push(b),n.push(k),o.push(h),o.push(b),o.push(k)}for(i.sort(di),e.sort(di),n.sort(di),o.sort(di),a=0;a<7;a++)e[a]=fi(e[a]),n[a]=fi(n[a]),o[a]=fi(o[a]);this._weekdaysRegex=new RegExp(`^(${o.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${n.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${e.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${i.join("|")})`,"i")}};function di(t,i){return i.length-t.length}var I_={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Y_="Invalid date",V_={dow:0,doy:6},A_=/[ap]\.?m?\.?/i,O_={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"},R_={calendar:I_,longDateFormat:ud,invalidDate:Y_,ordinal:T_,dayOfMonthOrdinalParse:P_,relativeTime:O_,months:w_,monthsShort:cd,week:V_,weekdays:S_,weekdaysMin:k_,weekdaysShort:md,meridiemParse:A_};function F_(t,i,e){let n=Math.min(t.length,i.length),o=Math.abs(t.length-i.length),a=0,m;for(m=0;m<n;m++)(e&&t[m]!==i[m]||!e&&N(t[m])!==N(i[m]))&&a++;return a+o}function H_(){A("w",["ww",2,!1],"wo",function(t,i){return Mn(t,i.locale).toString(10)}),A("W",["WW",2,!1],"Wo",function(t){return B_(t).toString(10)}),Le("week","w"),Le("isoWeek","W"),Ie("week",5),Ie("isoWeek",5),T("w",ie),T("ww",ie,$e),T("W",ie),T("WW",ie,$e),Ln(["w","ww","W","WW"],function(t,i,e,n){return i[n.substr(0,1)]=N(t),e})}function Mn(t,i=xe(),e){return i.week(t,e)}function B_(t,i){return tn(t,1,4,i).week}function j_(){A(null,["gg",2,!1],null,function(t,i){return(_d(t,i.locale)%100).toString()}),A(null,["GG",2,!1],null,function(t){return(pd(t)%100).toString()}),Yo("gggg",wl),Yo("ggggg",wl),Yo("GGGG",Sl),Yo("GGGGG",Sl),Le("weekYear","gg"),Le("isoWeekYear","GG"),Ie("weekYear",1),Ie("isoWeekYear",1),T("G",jo),T("g",jo),T("GG",ie,$e),T("gg",ie,$e),T("GGGG",qa,Ua),T("gggg",qa,Ua),T("GGGGG",Bo,Ho),T("ggggg",Bo,Ho),Ln(["gggg","ggggg","GGGG","GGGGG"],function(t,i,e,n){return i[n.substr(0,2)]=N(t),e}),Ln(["gg","GG"],function(t,i,e,n){return i[n]=za(t),e})}function Yo(t,i){A(null,[t,t.length,!1],null,i)}function wl(t,i){return _d(t,i.locale).toString()}function Sl(t){return pd(t).toString()}function _d(t,i=xe(),e){return tn(t,i.firstDayOfWeek(),i.firstDayOfYear(),e).year}function pd(t,i){return tn(t,1,4,i).year}function N_(){A("z",null,null,function(t,i){return i.isUTC?"UTC":""}),A("zz",null,null,function(t,i){return i.isUTC?"Coordinated Universal Time":""})}function W_(){A("X",null,null,function(t){return r_(t).toString(10)}),A("x",null,null,function(t){return t.valueOf().toString(10)}),T("x",jo),T("X",l_),te("X",function(t,i,e){return e._d=new Date(parseFloat(t)*1e3),e}),te("x",function(t,i,e){return e._d=new Date(N(t)),e})}function U_(){A("s",["ss",2,!1],null,function(t,i){return Wa(t,i.isUTC).toString(10)}),Le("second","s"),Ie("second",15),T("s",ie),T("ss",ie,$e),te(["s","ss"],Yt)}function q_(){A("Q",null,"Qo",function(t,i){return $_(t,i.isUTC).toString(10)}),Le("quarter","Q"),Ie("quarter",7),T("Q",od),te("Q",function(t,i,e){return i[It]=(N(t)-1)*3,e})}function $_(t,i=!1){return Math.ceil((U(t,i)+1)/3)}function kl(t,i){A(t,null,null,function(e,n){let o=X_(e,{_isUTC:n.isUTC,_offset:n.offset}),a="+";return o<0&&(o=-o,a="-"),a+Lt(~~(o/60),2)+i+Lt(~~o%60,2)})}function z_(){kl("Z",":"),kl("ZZ",""),T("Z",Ta),T("ZZ",Ta),te(["Z","ZZ"],function(t,i,e){return e._useUTC=!0,e._tzm=Q_(Ta,t),e})}var G_=/([\+\-]|\d\d)/gi;function Q_(t,i){let e=(i||"").match(t);if(e===null)return null;let o=e[e.length-1].match(G_)||["-","0","0"],a=parseInt(o[1],10)*60+N(o[2]),m=o[0]==="+"?a:-a;return a===0?0:m}function J_(t,i,e={}){if(!e._isUTC)return t;let n=yi(i),o=(e._offset||0)*6e4,a=t.valueOf()-n.valueOf()+o;return n.setTime(n.valueOf()+a),n}function K_(t){return-Math.round(t.getTimezoneOffset()/15)*15}function X_(t,i={}){let e=i._offset||0;return i._isUTC?e:K_(t)}function Z_(){A("m",["mm",2,!1],null,function(t,i){return Ki(t,i.isUTC).toString(10)}),Le("minute","m"),Ie("minute",14),T("m",ie),T("mm",ie,$e),te(["m","mm"],ht)}function ep(){A("S",null,null,function(e,n){return(~~(Et(e,n.isUTC)/100)).toString(10)}),A(null,["SS",2,!1],null,function(e,n){return(~~(Et(e,n.isUTC)/10)).toString(10)}),A(null,["SSS",3,!1],null,function(e,n){return Et(e,n.isUTC).toString(10)}),A(null,["SSSS",4,!1],null,function(e,n){return(Et(e,n.isUTC)*10).toString(10)}),A(null,["SSSSS",5,!1],null,function(e,n){return(Et(e,n.isUTC)*100).toString(10)}),A(null,["SSSSSS",6,!1],null,function(e,n){return(Et(e,n.isUTC)*1e3).toString(10)}),A(null,["SSSSSSS",7,!1],null,function(e,n){return(Et(e,n.isUTC)*1e4).toString(10)}),A(null,["SSSSSSSS",8,!1],null,function(e,n){return(Et(e,n.isUTC)*1e5).toString(10)}),A(null,["SSSSSSSSS",9,!1],null,function(e,n){return(Et(e,n.isUTC)*1e6).toString(10)}),Le("millisecond","ms"),Ie("millisecond",16),T("S",Ao,od),T("SS",Ao,$e),T("SSS",Ao,ad);let t;for(t="SSSS";t.length<=9;t+="S")T(t,s_);function i(e,n,o){return n[gi]=N(parseFloat(`0.${e}`)*1e3),o}for(t="S";t.length<=9;t+="S")te(t,i)}function tp(){function t(o,a){return W(o,a)%12||12}function i(o,a){return W(o,a)||24}
5A("H",["HH",2,!1],null,function(o,a){return W(o,a.isUTC).toString(10)}),A("h",["hh",2,!1],null,function(o,a){return t(o,a.isUTC).toString(10)}),A("k",["kk",2,!1],null,function(o,a){return i(o,a.isUTC).toString(10)}),A("hmm",null,null,function(o,a){let m=t(o,a.isUTC),h=Lt(Ki(o,a.isUTC),2);return`${m}${h}`}),A("hmmss",null,null,function(o,a){let m=t(o,a.isUTC),h=Lt(Ki(o,a.isUTC),2),b=Lt(Wa(o,a.isUTC),2);return`${m}${h}${b}`}),A("Hmm",null,null,function(o,a){let m=W(o,a.isUTC),h=Lt(Ki(o,a.isUTC),2);return`${m}${h}`}),A("Hmmss",null,null,function(o,a){let m=W(o,a.isUTC),h=Lt(Ki(o,a.isUTC),2),b=Lt(Wa(o,a.isUTC),2);return`${m}${h}${b}`});function e(o,a){A(o,null,null,function(m,h){return h.locale.meridiem(W(m,h.isUTC),Ki(m,h.isUTC),a)})}e("a",!0),e("A",!1),Le("hour","h"),Ie("hour",13);function n(o,a){return a._meridiemParse}T("a",n),T("A",n),T("H",ie),T("h",ie),T("k",ie),T("HH",ie,$e),T("hh",ie,$e),T("kk",ie,$e),T("hmm",Dl),T("hmmss",xl),T("Hmm",Dl),T("Hmmss",xl),te(["H","HH"],he),te(["k","kk"],function(o,a,m){let h=N(o);return a[he]=h===24?0:h,m}),te(["a","A"],function(o,a,m){return m._isPm=m._locale.isPM(o),m._meridiem=o,m}),te(["h","hh"],function(o,a,m){return a[he]=N(o),z(m).bigHour=!0,m}),te("hmm",function(o,a,m){let h=o.length-2;return a[he]=N(o.substr(0,h)),a[ht]=N(o.substr(h)),z(m).bigHour=!0,m}),te("hmmss",function(o,a,m){let h=o.length-4,b=o.length-2;return a[he]=N(o.substr(0,h)),a[ht]=N(o.substr(h,2)),a[Yt]=N(o.substr(b)),z(m).bigHour=!0,m}),te("Hmm",function(o,a,m){let h=o.length-2;return a[he]=N(o.substr(0,h)),a[ht]=N(o.substr(h)),m}),te("Hmmss",function(o,a,m){let h=o.length-4,b=o.length-2;return a[he]=N(o.substr(0,h)),a[ht]=N(o.substr(h,2)),a[Yt]=N(o.substr(b)),m})}var Qt={},Dn={},Pn;function Tl(t){return t&&t.toLowerCase().replace("_","-")}function ip(t){let i,e,n=0;for(;n<t.length;){let o=Tl(t[n]).split("-"),a=o.length;for(i=Tl(t[n+1]),i=i?i.split("-"):null;a>0;){if(e=op(o.slice(0,a).join("-")),e)return e;if(i&&i.length>=a&&F_(o,i,!0)>=a-1)break;a--}n++}return null}function np(t,i){let e=Object.assign({},t);for(let n in i)Ee(i,n)&&(Ci(t[n])&&Ci(i[n])?(e[n]={},Object.assign(e[n],t[n]),Object.assign(e[n],i[n])):i[n]!=null?e[n]=i[n]:delete e[n]);for(let n in t)Ee(t,n)&&!Ee(i,n)&&Ci(t[n])&&(e[n]=Object.assign({},e[n]));return e}function op(t){return Qt[t]||console.error(`Khronos locale error: please load locale "${t}" before using it`),Qt[t]}function fd(t,i){let e;return t&&(Zl(i)?e=xe(t):ze(t)&&(e=hd(t,i)),e&&(Pn=e)),Pn&&Pn._abbr}function hd(t,i){if(i===null)return delete Qt[t],Pn=xe("en"),null;if(!i)return;let e=R_;if(i.abbr=t,i.parentLocale!=null)if(Qt[i.parentLocale]!=null)e=Qt[i.parentLocale]._config;else return Dn[i.parentLocale]||(Dn[i.parentLocale]=[]),Dn[i.parentLocale].push({name:t,config:i}),null;return Qt[t]=new Qa(np(e,i)),Dn[t]&&Dn[t].forEach(function(n){hd(n.name,n.config)}),fd(t),Qt[t]}function xe(t){if(ap(),!t)return Pn;let i=ee(t)?t:[t];return ip(i)}function ap(){Qt.en||(fd("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(t){let i=t%10,e=N(t%100/10)===1?"th":i===1?"st":i===2?"nd":i===3?"rd":"th";return t+e}}),H_(),j_(),f_(),N_(),W_(),U_(),q_(),z_(),h_(),Z_(),ep(),tp(),x_(),Np(),__())}var wn=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],rp=wn.reduce((t,i)=>(t[i]=!0,t),{});function sp(t){if(Object.keys(t).some(n=>n in rp&&t[n]===null||isNaN(t[n])))return!1;let e=!1;for(let n=0;n<wn.length;++n)if(t[wn[n]]){if(e)return!1;t[wn[n]]!==N(t[wn[n]])&&(e=!0)}return!0}function Pl(t){return t<0?Math.floor(t):Math.ceil(t)}function lp(t){let i=t._milliseconds,e=t._days,n=t._months,o=t._data;i>=0&&e>=0&&n>=0||i<=0&&e<=0&&n<=0||(i+=Pl(Ja(n)+e)*864e5,e=0,n=0),o.milliseconds=i%1e3;let a=pi(i/1e3);o.seconds=a%60;let m=pi(a/60);o.minutes=m%60;let h=pi(m/60);o.hours=h%24,e+=pi(h/24);let b=pi(gd(e));n+=b,e-=Pl(Ja(b));let k=pi(n/12);return n%=12,o.day=e,o.month=n,o.year=k,t}function gd(t){return t*4800/146097}function Ja(t){return t*146097/4800}var Ui=Math.round,qi={ss:44,s:45,m:45,h:22,d:26,M:11};function dp(t,i,e,n,o){return o.relativeTime(i||1,!!e,t,n)}function cp(t,i,e){let n=or(t).abs(),o=Ui(n.as("s")),a=Ui(n.as("m")),m=Ui(n.as("h")),h=Ui(n.as("d")),b=Ui(n.as("M")),k=Ui(n.as("y")),V=o<=qi.ss&&["s",o]||o<qi.s&&["ss",o]||a<=1&&["m"]||a<qi.m&&["mm",a]||m<=1&&["h"]||m<qi.h&&["hh",m]||h<=1&&["d"]||h<qi.d&&["dd",h]||b<=1&&["M"]||b<qi.M&&["MM",b]||k<=1&&["y"]||["yy",k],Z=[V[0],V[1],i,+t>0,e];return dp.apply(null,Z)}var Uo=class{constructor(i,e={}){this._data={},this._locale=xe(),this._locale=e&&e._locale||xe();let n=i,o=n.year||0,a=n.quarter||0,m=n.month||0,h=n.week||0,b=n.day||0,k=n.hours||0,V=n.minutes||0,Z=n.seconds||0,ve=n.milliseconds||0;return this._isValid=sp(n),this._milliseconds=+ve+Z*1e3+V*60*1e3+k*1e3*60*60,this._days=+b+h*7,this._months=+m+a*3+o*12,lp(this)}isValid(){return this._isValid}humanize(i){if(!this.isValid())return this.localeData().invalidDate;let e=this.localeData(),n=cp(this,!i,e);return i&&(n=e.pastFuture(+this,n)),e.postformat(n)}localeData(){return this._locale}locale(i){return i?(this._locale=xe(i)||this._locale,this):this._locale._abbr}abs(){let i=Math.abs,e=this._data;return this._milliseconds=i(this._milliseconds),this._days=i(this._days),this._months=i(this._months),e.milliseconds=i(e.milliseconds),e.seconds=i(e.seconds),e.minutes=i(e.minutes),e.hours=i(e.hours),e.month=i(e.month),e.year=i(e.year),this}as(i){if(!this.isValid())return NaN;let e,n,o=this._milliseconds,a=ed(i);if(a==="month"||a==="year")return e=this._days+o/864e5,n=this._months+gd(e),a==="month"?n:n/12;switch(e=this._days+Math.round(Ja(this._months)),a){case"week":return e/7+o/6048e5;case"day":return e+o/864e5;case"hours":return e*24+o/36e5;case"minutes":return e*1440+o/6e4;case"seconds":return e*86400+o/1e3;case"milliseconds":return Math.floor(e*864e5)+o;default:throw new Error(`Unknown unit ${a}`)}}valueOf(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+N(this._months/12)*31536e6:NaN}};function mp(t){return t instanceof Uo}function er(t){if(t._isValid==null){let i=z(t),e=Array.prototype.some.call(i.parsedDateParts,function(o){return o!=null}),n=!isNaN(t._d&&t._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&e);
5if(t._strict&&(n=n&&i.charsLeftOver===0&&i.unusedTokens.length===0&&i.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=n;else return n}return t._isValid}function $o(t,i){return t._d=new Date(NaN),Object.assign(z(t),i||{userInvalidated:!0}),t}function up(t){return t._isValid=!1,t}var _p=/^\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)?)?$/,pp=/^\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)?)?$/,fp=/Z|[+-]\d\d(?::?\d\d)?/,Vo=[["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]],Ea=[["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/]],hp=/^\/?Date\((\-?\d+)/i,gp={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},Cp=/^(?:(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 Cd(t){if(!ze(t._i))return t;let i=t._i,e=_p.exec(i)||pp.exec(i),n,o,a,m;if(!e)return t._isValid=!1,t;let h,b;for(h=0,b=Vo.length;h<b;h++)if(Vo[h][1].exec(e[1])){o=Vo[h][0],n=Vo[h][2]!==!1;break}if(o==null)return t._isValid=!1,t;if(e[3]){for(h=0,b=Ea.length;h<b;h++)if(Ea[h][1].exec(e[3])){a=(e[2]||" ")+Ea[h][0];break}if(a==null)return t._isValid=!1,t}if(!n&&a!=null)return t._isValid=!1,t;if(e[4])if(fp.exec(e[4]))m="Z";else return t._isValid=!1,t;return t._f=o+(a||"")+(m||""),ir(t)}function yp(t,i,e,n,o,a){let m=[bp(t),cd.indexOf(i),parseInt(e,10),parseInt(n,10),parseInt(o,10)];return a&&m.push(parseInt(a,10)),m}function bp(t){let i=parseInt(t,10);return i<=49?i+2e3:i}function vp(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function Dp(t,i,e){if(t){let n=md.indexOf(t),o=new Date(i[0],i[1],i[2]).getDay();if(n!==o)return z(e).weekdayMismatch=!0,e._isValid=!1,!1}return!0}function xp(t,i,e){if(t)return gp[t];if(i)return 0;{let n=parseInt(e,10),o=n%100;return(n-o)/100*60+o}}function yd(t){if(!ze(t._i))return t;let i=Cp.exec(vp(t._i));if(!i)return up(t);let e=yp(i[4],i[3],i[2],i[5],i[6],i[7]);return Dp(i[1],e,t)&&(t._a=e,t._tzm=xp(i[8],i[9],i[10]),t._d=Xa.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),z(t).rfc2822=!0),t}function Mp(t){if(!ze(t._i))return t;let i=hp.exec(t._i);if(i!==null)return t._d=new Date(+i[1]),t;if(Cd(t),t._isValid===!1)delete t._isValid;else return t;if(yd(t),t._isValid===!1)delete t._isValid;else return t;return $o(t)}function Ge(t,i,e,n,o=0){let a=xe(e||"en");if(!a)throw new Error(`Locale "${e}" is not defined, please add it with "defineLocale(...)"`);let h=wp(t,i||(n?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),a,n,o);return h&&a.postformat(h)}function wp(t,i,e,n,o=0){if(!Vt(t))return e.invalidDate;let a=bd(i,e);return ka[a]=ka[a]||n_(a),ka[a](t,e,n,o)}function bd(t,i){let e=t,n=5,o=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,a=m=>i.formatLongDate(m)||m;for(o.lastIndex=0;n>=0&&o.test(e);)e=e.replace(o,a),o.lastIndex=0,n-=1;return e}function Xi(t,i,e){return t??i??e}function Sp(t){let i=new Date;return t._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function tr(t){let i=[],e,n,o;if(t._d)return t;let a=Sp(t);for(t._w&&t._a[Mt]==null&&t._a[It]==null&&kp(t),t._dayOfYear!=null&&(o=Xi(t._a[ft],a[ft]),(t._dayOfYear>Tn(o)||t._dayOfYear===0)&&(z(t)._overflowDayOfYear=!0),n=new Date(Date.UTC(o,0,t._dayOfYear)),t._a[It]=n.getUTCMonth(),t._a[Mt]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=i[e]=a[e];for(;e<7;e++)t._a[e]=i[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[he]===24&&t._a[ht]===0&&t._a[Yt]===0&&t._a[gi]===0&&(t._nextDay=!0,t._a[he]=0),t._d=(t._useUTC?Xa:qo).apply(null,i);let m=t._useUTC?t._d.getUTCDay():t._d.getDay();return t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[he]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==m&&(z(t).weekdayMismatch=!0),t}function kp(t){let i,e,n,o,a,m,h,b=t._w;if(b.GG!=null||b.W!=null||b.E!=null)o=1,a=4,i=Xi(b.GG,t._a[ft],tn(new Date,1,4).year),e=Xi(b.W,1),n=Xi(b.E,1),(n<1||n>7)&&(h=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;let k=tn(new Date,o,a);i=Xi(b.gg,t._a[ft],k.year),e=Xi(b.w,k.week),b.d!=null?(n=b.d,(n<0||n>6)&&(h=!0)):b.e!=null?(n=b.e+o,(b.e<0||b.e>6)&&(h=!0)):n=o}return e<1||e>Oo(i,o,a)?z(t)._overflowWeeks=!0:h!=null?z(t)._overflowWeekday=!0:(m=M_(i,e,n,o,a),t._a[ft]=m.year,t._dayOfYear=m.dayOfYear),t}function vd(t){let i,e=t._a;return e&&z(t).overflow===-2&&(i=e[It]<0||e[It]>11?It:e[Mt]<1||e[Mt]>Za(e[ft],e[It])?Mt:e[he]<0||e[he]>24||e[he]===24&&(e[ht]!==0||e[Yt]!==0||e[gi]!==0)?he:e[ht]<0||e[ht]>59?ht:e[Yt]<0||e[Yt]>59?Yt:e[gi]<0||e[gi]>999?gi:-1,z(t)._overflowDayOfYear&&(i<ft||i>Mt)&&(i=Mt),z(t)._overflowWeeks&&i===-1&&(i=t_),z(t)._overflowWeekday&&i===-1&&(i=i_),z(t).overflow=i),t}var Tp="ISO_8601",Pp="RFC_2822";function ir(t){if(t._f===Tp)return Cd(t);if(t._f===Pp)return yd(t);if(t._a=[],z(t).empty=!0,ee(t._f)||!t._i&&t._i!==0)return t;let i=t._i.toString(),e=0,n=i.length,o=bd(t._f,t._locale).match(td)||[],a,m,h,b;for(a=0;a<o.length;a++)m=o[a],h=(i.match(d_(m,t._locale))||[])[0],h&&(b=i.substr(0,i.indexOf(h)),b.length>0&&z(t).unusedInput.push(b),i=i.slice(i.indexOf(h)+h.length),e+=h.length),en[m]?(h?z(t).empty=!1:z(t).unusedTokens.push(m),m_(m,h,t)):t._strict&&!h&&z(t).unusedTokens.push(m);return z(t).charsLeftOver=n-e,i.length>0&&z(t).unusedInput.push(i),t._a[he]<=12&&z(t).bigHour===!0&&t._a[he]>0&&(z(t).bigHour=void 0),z(t).parsedDateParts=t._a.slice(0),z(t).meridiem=t._meridiem,t._a[he]=Ep(t._locale,t._a[he],t._meridiem),tr(t),vd(t)}function Ep(t,i,e){let n=i;if(e==null)return n;if(t.meridiemHour!=null)return t.meridiemHour(n,e);if(t.isPM==null)return n;let o=t.isPM(e);return o&&n<12&&(n+=12),!o&&n===12&&(n=0),n}function Lp(t){let i,e,n,o;if(!t._f||t._f.length===0)return z(t).invalidFormat=!0,$o(t);let a;for(a=0;a<t._f.length;a++)o=0,i=Object.assign({},t),t._useUTC!=null&&(i._useUTC=t._useUTC),i._f=t._f[a],ir(i),er(i)&&(o+=z(i).charsLeftOver,o+=z(i).unusedTokens.length*10,z(i).score=o,(n==null||o<n)&&(n=o,e=i));return Object.assign(t,e||i)}function Ip(t){if(t._d)return t;let i=t._i;if(Ci(i)){let e=e_(i);t._a=[e.year,e.month,e.day,e.hours,e.minutes,e.seconds,e.milliseconds].map(n=>ze(n)?parseInt(n,10):n)}return tr(t)}function Yp(t){let i=vd(Vp(t));return i._d=new Date(i._d!=null?i._d.getTime():NaN),er(Object.assign({},i,{_isValid:null}))||(i._d=new Date(NaN)),i}function Vp(t){let i=t._i,e=t._f;return t._locale=t._locale||xe(t._l),i===null||e===void 0&&i===""?$o(t,{nullInput:!0}):(ze(i)&&(t._i=i=t._locale.preparse(i,e)),Yn(i)?(t._d=yi(i),t):(ee(e)?Lp(t):e?ir(t):Ap(t),er(t)||(t._d=null),t))}function Ap(t){let i=t._i;if(Zl(i))t._d=new Date;else if(Yn(i))t._d=yi(i);else if(ze(i))Mp(t);else if(ee(i)&&i.length){let e=i.slice(0);t._a=e.map(n=>ze(n)?parseInt(n,10):n),tr(t)}else if(Ci(i))Ip(t);else if(on(i))t._d=new Date(i);else return $o(t);return t}function Op(t,i,e,n,o){let a={},m=t;return(Ci(m)&&Zu(m)||ee(m)&&m.length===0)&&(m=void 0),a._useUTC=a._isUTC=o,a._l=e,a._i=m,a._f=i,a._strict=n,Yp(a)}function nn(t,i,e,n,o){return Yn(t)?t:Op(t,i,e,n,o)._d}function nr(t){return t instanceof Date?new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()):null}function Ka(t){return t<0?Math.round(t*-1)*-1:Math.round(t)}function Ot(t,i,e="milliseconds"){return!t||!i?!1:e==="milliseconds"?t.valueOf()>i.valueOf():i.valueOf()<wt(t,e).valueOf()}function Kt(t,i,e="milliseconds"){return!t||!i?!1:e==="milliseconds"?t.valueOf()<i.valueOf():Vn(t,e).valueOf()<i.valueOf()}function Dd(t,i){return typeof i>"u"||!i||!i.length?!1:i.some(e=>e===t.getDay())}function An(t,i,e="milliseconds"){if(!t||!i)return!1;if(e==="milliseconds")return t.valueOf()===i.valueOf();let n=i.valueOf();return wt(t,e).valueOf()<=n&&n<=Vn(t,e).valueOf()}var Rp=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Fp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function or(t,i,e={}){let n=Hp(t,i);return new Uo(n,e)}function Hp(t,i){if(t==null)return{};if(mp(t))return{milliseconds:t._milliseconds,day:t._days,month:t._months};if(on(t))return i?{[i]:t}:{milliseconds:t};if(ze(t)){let e=Rp.exec(t);if(e){let n=e[1]==="-"?-1:1;
5return{year:0,day:N(e[Mt])*n,hours:N(e[he])*n,minutes:N(e[ht])*n,seconds:N(e[Yt])*n,milliseconds:N(Ka(N(e[gi])*1e3))*n}}if(e=Fp.exec(t),e){let n=e[1]==="-"?-1:(e[1]==="+",1);return{year:ci(e[2],n),month:ci(e[3],n),week:ci(e[4],n),day:ci(e[5],n),hours:ci(e[6],n),minutes:ci(e[7],n),seconds:ci(e[8],n)}}}if(Ci(t)&&("from"in t||"to"in t)){let e=Bp(nn(t.from),nn(t.to));return{milliseconds:e.milliseconds,month:e.months}}return t}function ci(t,i){let e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*i}function El(t,i){let e={milliseconds:0,months:0};e.months=U(i)-U(t)+(pe(i)-pe(t))*12;let n=In(yi(t),e.months,"month");return Ot(n,i)&&--e.months,e.milliseconds=+i-+In(yi(t),e.months,"month"),e}function Bp(t,i){if(!(Vt(t)&&Vt(i)))return{milliseconds:0,months:0};let e,n=J_(i,t,{_offset:t.getTimezoneOffset()});return Kt(t,n)?e=El(t,n):(e=El(n,t),e.milliseconds=-e.milliseconds,e.months=-e.months),e}function In(t,i,e,n){let o=or(i,e);return xd(t,o,1,n)}function jp(t,i,e,n){let o=or(i,e);return xd(t,o,-1,n)}function xd(t,i,e,n){let o=i._milliseconds,a=Ka(i._days),m=Ka(i._months);return m&&Ga(t,U(t,n)+m*e,n),a&&ld(t,En(t,n)+a*e,n),o&&D_(t,a_(t)+o*e),yi(t)}function Np(){A("d",null,"do",function(t,i){return gt(t,i.isUTC).toString(10)}),A("dd",null,null,function(t,i){return i.locale.weekdaysMin(t,i.format,i.isUTC)}),A("ddd",null,null,function(t,i){return i.locale.weekdaysShort(t,i.format,i.isUTC)}),A("dddd",null,null,function(t,i){return i.locale.weekdays(t,i.format,i.isUTC)}),A("e",null,null,function(t,i){return Md(t,i.locale,i.isUTC).toString(10)}),A("E",null,null,function(t,i){return $p(t,i.isUTC).toString(10)}),Le("day","d"),Le("weekday","e"),Le("isoWeekday","E"),Ie("day",11),Ie("weekday",11),Ie("isoWeekday",11),T("d",ie),T("e",ie),T("E",ie),T("dd",function(t,i){return i.weekdaysMinRegex(t)}),T("ddd",function(t,i){return i.weekdaysShortRegex(t)}),T("dddd",function(t,i){return i.weekdaysRegex(t)}),Ln(["dd","ddd","dddd"],function(t,i,e,n){let o=e._locale.weekdaysParse(t,n,e._strict);return o!=null?i.d=o:z(e).invalidWeekday=!!t,e}),Ln(["d","e","E"],function(t,i,e,n){return i[n]=N(t),e})}function Wp(t,i){if(!ze(t))return t;let e=parseInt(t,10);if(!isNaN(e))return e;let n=i.weekdaysParse(t);return on(n)?n:null}function Up(t,i=xe()){return ze(t)?i.weekdaysParse(t)%7||7:on(t)&&isNaN(t)?null:t}function Ro(t,i,e=xe(),n){let o=gt(t,n),a=Wp(i,e);return In(t,a-o,"day")}function ge(t,i){return gt(t,i)}function Md(t,i=xe(),e){return(gt(t,e)+7-i.firstDayOfWeek())%7}function qp(t,i,e={}){let n=Md(t,e.locale,e.isUTC);return In(t,i-n,"day")}function $p(t,i){return gt(t,i)||7}function zp(t,i,e={}){let n=Up(i,e.locale);return Ro(t,ge(t)%7?n:n-7)}var Gp={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},Qp={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},Ll=function(t){return t===0?0:t===1?1:t===2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},Jp={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"]},tt=function(t){return function(i,e){let n=Ll(i),o=Jp[t][Ll(i)];return n===2&&(o=o[e?0:1]),o.replace(/%d/i,i.toString())}},Il=["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"],cv={abbr:"ar",months:Il,monthsShort:Il,weekdays:"\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("_"),weekdaysShort:"\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("_"),weekdaysMin:"\u062D_\u0646_\u062B_\u0631_\u062E_\u062C_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200FM/\u200FYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM(t){return t==="\u0645"},meridiem(t,i,e){return t<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063A\u062F\u064B\u0627 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062F %s",past:"\u0645\u0646\u0630 %s",s:tt("s"),ss:tt("s"),m:tt("m"),mm:tt("m"),h:tt("h"),hh:tt("h"),d:tt("d"),dd:tt("d"),M:tt("M"),MM:tt("M"),y:tt("y"),yy:tt("y")}
5,preparse(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(i){return Qp[i]}).replace(/Ø/g,",")},postformat(t){return t.replace(/\d/g,function(i){return Gp[i]}).replace(/,/g,"\u060C")},week:{dow:6,doy:12}};var mv={abbr:"bg",months:"\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("_"),monthsShort:"\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("_"),weekdays:"\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("_"),weekdaysShort:"\u043D\u0435\u0434_\u043F\u043E\u043D_\u0432\u0442\u043E_\u0441\u0440\u044F_\u0447\u0435\u0442_\u043F\u0435\u0442_\u0441\u044A\u0431".split("_"),weekdaysMin:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043D\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(t){switch(t){case 0:case 3:case 6:return"[\u0412 \u0438\u0437\u043C\u0438\u043D\u0430\u043B\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043C\u0438\u043D\u0430\u043B\u0438\u044F] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043B\u0435\u0434 %s",past:"\u043F\u0440\u0435\u0434\u0438 %s",s:"\u043D\u044F\u043A\u043E\u043B\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434\u0438",ss:"%d \u0441\u0435\u043A\u0443\u043D\u0434\u0438",m:"\u043C\u0438\u043D\u0443\u0442\u0430",mm:"%d \u043C\u0438\u043D\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043D",dd:"%d \u0434\u043D\u0438",M:"\u043C\u0435\u0441\u0435\u0446",MM:"%d \u043C\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043E\u0434\u0438\u043D\u0430",yy:"%d \u0433\u043E\u0434\u0438\u043D\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|Ñи|ви|Ñи|ми)/,ordinal:function(t){let i=Number(t),e=i%10,n=i%100;return i===0?i+"-\u0435\u0432":n===0?i+"-\u0435\u043D":n>10&&n<20?i+"-\u0442\u0438":e===1?i+"-\u0432\u0438":e===2?i+"-\u0440\u0438":e===7||e===8?i+"-\u043C\u0438":i+"-\u0442\u0438"},week:{dow:1,doy:7}};var Yl="gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),Kp="ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),La=[/^gen/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^oct/i,/^nov/i,/^des/i],Vl=/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre|gen\.?|feb\.?|mar\.?|abr\.?|mai\.?|jun\.?|jul\.?|ago\.?|set\.?|oct\.?|nov\.?|des\.?)/i,uv={abbr:"ca",months:"gener_febrer_mar\xE7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort(t,i,e){return t?/-MMM-/.test(i)?Kp[U(t,e)]:Yl[U(t,e)]:Yl},monthsRegex:Vl,monthsShortRegex:Vl,monthsStrictRegex:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i,monthsShortStrictRegex:/^(gen\.?|feb\.?|mar\.?|abr\.?|mai\.?|jun\.?|jul\.?|ago\.?|set\.?|oct\.?|nov\.?|des\.?)/i,monthsParse:La,longMonthsParse:La,shortMonthsParse:La,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"diu._dil._dim._dix._dij._div._dis.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay(t){return"[avui a "+("la"+(W(t)!==1)?"les":"")+"] LT"},nextDay(t){return"[dema a "+("la"+(W(t)!==1)?"les":"")+"] LT"},nextWeek(t){return"dddd [a "+("la"+(W(t)!==1)?"les":"")+"] LT"},lastDay(t){return"[ahir a "+("la"+(W(t)!==1)?"les":"")+"] LT"},lastWeek(t){return"[el] dddd ["+("passada la "+(W(t)!==1)?"passades les":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%
5d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(er|on|er|rt|é)/,ordinal(t){let i=Number(t),e=i>4?"\xE9":i===1||i===3?"r":i===2?"n":i===4?"t":"\xE9";return i+e},week:{dow:1,doy:4}};var Ia="leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),Ya="led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_");function $i(t){return t>1&&t<5&&~~(t/10)!==1}function it(t,i,e,n){let o=t+" ";switch(e){case"s":return i||n?"p\xE1r sekund":"p\xE1r sekundami";case"ss":return i||n?o+($i(t)?"sekundy":"sekund"):o+"sekundami";case"m":return i?"minuta":n?"minutu":"minutou";case"mm":return i||n?o+($i(t)?"minuty":"minut"):o+"minutami";case"h":return i?"hodina":n?"hodinu":"hodinou";case"hh":return i||n?o+($i(t)?"hodiny":"hodin"):o+"hodinami";case"d":return i||n?"den":"dnem";case"dd":return i||n?o+($i(t)?"dny":"dn\xED"):o+"dny";case"M":return i||n?"m\u011Bs\xEDc":"m\u011Bs\xEDcem";case"MM":return i||n?o+($i(t)?"m\u011Bs\xEDce":"m\u011Bs\xEDc\u016F"):o+"m\u011Bs\xEDci";case"y":return i||n?"rok":"rokem";case"yy":return i||n?o+($i(t)?"roky":"let"):o+"lety"}}var _v={abbr:"cs",months:Ia,monthsShort:Ya,monthsParse:(function(t,i){let e,n=[];for(e=0;e<12;e++)n[e]=new RegExp("^"+t[e]+"$|^"+i[e]+"$","i");return n})(Ia,Ya),shortMonthsParse:(function(t){let i,e=[];for(i=0;i<12;i++)e[i]=new RegExp("^"+t[i]+"$","i");return e})(Ya),longMonthsParse:(function(t){let i,e=[];for(i=0;i<12;i++)e[i]=new RegExp("^"+t[i]+"$","i");return e})(Ia),weekdays:"ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"),weekdaysShort:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),weekdaysMin:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xEDtra v] LT",nextWeek(t){switch(ge(t)){case 0:return"[v ned\u011Bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010Dtvrtek v] LT";case 5:return"[v p\xE1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010Dera v] LT",lastWeek(t){switch(ge(t)){case 0:return"[minulou ned\u011Bli v] LT";case 1:case 2:return"[minul\xE9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xFD] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:it,ss:it,m:it,mm:it,h:it,hh:it,d:it,dd:it,M:it,MM:it,y:it,yy:it},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var pv={abbr:"da",months:"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),weekdays:"S\xF8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xF8rdag".split("_"),weekdaysShort:"S\xF8n_Man_Tir_Ons_Tor_Fre_L\xF8r".split("_"),weekdaysMin:"S\xF8_Ma_Ti_On_To_Fr_L\x
5F8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xE5 dddd [kl.] LT",lastDay:"[i g\xE5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};function Gt(t,i,e,n){let o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return i?o[e][0]:o[e][1]}var fv={abbr:"de",months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Gt,mm:"%d Minuten",h:Gt,hh:"%d Stunden",d:Gt,dd:Gt,M:Gt,MM:Gt,y:Gt,yy:Gt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var hv={abbr:"en-gb",months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal(t){let i=Number(t),e=i%10,n=~~(i%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return i+n},week:{dow:1,doy:4}};var Al="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Xp="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Va=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Ol=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,gv={abbr:"es-do",months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort(t,i,e){return t?/-MMM-/.test(i)?Xp[U(t,e)]:Al[U(t,e)]:Al},monthsRegex:Ol,monthsShortRegex:Ol,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Va,longMonthsParse:Va,shortMonthsParse:Va,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LT
5S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay(t){return"[hoy a la"+(W(t)!==1?"s":"")+"] LT"},nextDay(t){return"[ma\xF1ana a la"+(W(t)!==1?"s":"")+"] LT"},nextWeek(t){return"dddd [a la"+(W(t)!==1?"s":"")+"] LT"},lastDay(t){return"[ayer a la"+(W(t)!==1?"s":"")+"] LT"},lastWeek(t){return"[el] dddd [pasado a la"+(W(t)!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}};var Rl="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Zp="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Aa=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Fl=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,Cv={abbr:"es",months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort(t,i,e){return t?/-MMM-/.test(i)?Zp[U(t,e)]:Rl[U(t,e)]:Rl},monthsRegex:Fl,monthsShortRegex:Fl,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Aa,longMonthsParse:Aa,shortMonthsParse:Aa,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay(t){return"[hoy a la"+(W(t)!==1?"s":"")+"] LT"},nextDay(t){return"[ma\xF1ana a la"+(W(t)!==1?"s":"")+"] LT"},nextWeek(t){return"dddd [a la"+(W(t)!==1?"s":"")+"] LT"},lastDay(t){return"[ayer a la"+(W(t)!==1?"s":"")+"] LT"},lastWeek(t){return"[el] dddd [pasado a la"+(W(t)!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}};var Hl="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e0="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),yv={abbr:"es-pr",months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort(t,i,e){return t?/-MMM-/.test(i)?e0[U(t,e)]:Hl[U(t,e)]:Hl},monthsParseExact:!0,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay(t){return"[hoy a la"+(W(t)!==1?"s":"")+"] LT"},nextDay(t){return"[ma\xF1ana a la"+(W(t)!==1?"s":"")+"] LT"},nextWeek(t){return"dddd [a la"+(W(t)!==1?"s":"")+"] LT"},lastDay(t){return"[ayer a la"+(W(t)!==1?"s":"")+"] LT"},lastWeek(t){return"[el] dddd [pasado a la"+(W(t)!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:0,doy:6}};var Bl="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),t0="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),bv={abbr:"es-us",months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort(t,i,e){return t?/-MMM-/.test(i)?t0[U(t,e)]:Bl[U(t,e)]:Bl},monthsParseExact:!0,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LT
5S:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay(t){return"[hoy a la"+(W(t)!==1?"s":"")+"] LT"},nextDay(t){return"[ma\xF1ana a la"+(W(t)!==1?"s":"")+"] LT"},nextWeek(t){return"dddd [a la"+(W(t)!==1?"s":"")+"] LT"},lastDay(t){return"[ayer a la"+(W(t)!==1?"s":"")+"] LT"},lastWeek(t){return"[el] dddd [pasado a la"+(W(t)!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:0,doy:6}};var pt=function(t,i,e,n){let o={s:["m\xF5ne sekundi","m\xF5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xFChe minuti","\xFCks minut"],mm:[t+" minuti",t+" minutit"],h:["\xFChe tunni","tund aega","\xFCks tund"],hh:[t+" tunni",t+" tundi"],d:["\xFChe p\xE4eva","\xFCks p\xE4ev"],M:["kuu aja","kuu aega","\xFCks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xFChe aasta","aasta","\xFCks aasta"],yy:[t+" aasta",t+" aastat"]};return i?o[e][2]?o[e][2]:o[e][1]:n?o[e][0]:o[e][1]},vv={abbr:"et",months:"jaanuar_veebruar_m\xE4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xE4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xFChap\xE4ev_esmasp\xE4ev_teisip\xE4ev_kolmap\xE4ev_neljap\xE4ev_reede_laup\xE4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xE4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xE4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xE4rast",past:"%s tagasi",s:pt,ss:pt,m:pt,mm:pt,h:pt,hh:pt,d:pt,dd:"%d p\xE4eva",M:pt,MM:pt,y:pt,yy:pt},dayOfMonthOrdinalParse:/\d{1,2}./,ordinal:"%d.",week:{dow:1,doy:4}};var Fo="nolla yksi kaksi kolme nelj\xE4 viisi kuusi seitsem\xE4n kahdeksan yhdeks\xE4n".split(" "),i0=["nolla","yhden","kahden","kolmen","nelj\xE4n","viiden","kuuden",Fo[7],Fo[8],Fo[9]];function nt(t,i,e,n){var o="";switch(e){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"ss":return n?"sekunnin":"sekuntia";case"m":return n?"minuutin":"minuutti";case"mm":o=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":o=n?"tunnin":"tuntia";break;case"d":return n?"p\xE4iv\xE4n":"p\xE4iv\xE4";case"dd":o=n?"p\xE4iv\xE4n":"p\xE4iv\xE4\xE4";break;case"M":return n?"kuukauden":"kuukausi";case"MM":o=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":o=n?"vuoden":"vuotta";break}return o=n0(t,n)+" "+o,o}function n0(t,i){return t<10?i?i0[t]:Fo[t]:t}var Dv={abbr:"fi",months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xE4kuu_hein\xE4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xE4_hein\xE4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xE4n\xE4\xE4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xE4\xE4st\xE4",past:"%s sitten",s:nt,ss:nt,m:nt,mm:nt,h:nt,hh:nt,d:nt,dd:nt,M:nt,MM:nt,y:nt,yy:nt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var xv={abbr:"fr",months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xE0] LT",nextDay:"[Demain \xE0] LT",nextWeek:"dddd [\xE0] LT",lastDay:"[Hier \xE0] LT",lastWeek:"dddd [dernier \xE0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal(t,i){let e=Number(t);switch(i){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};var Mv={abbr:"fr-ca",months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xE0] LT",nextDay:"[Demain \xE0] LT",nextWeek:"dddd [\xE0] LT",lastDay:"[Hier \xE0] LT",lastWeek:"dddd [dernier \xE0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e|)/,ordinal(t,i){let e=Number(t);switch(i){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}};var jl="xan._feb._mar._abr._mai._xu\xF1._xul._ago._set._out._nov._dec.".split("_"),o0="xan_feb_mar_abr_mai_xu\xF1_xul_ago_set_out_nov_dec".split("_"),Oa=[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xuñ/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i],Nl=/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro|xan\.?|feb\.?|mar\.?|abr\.?|mai\.?|xuñ\.?|xul\.?|ago\.?|set\.?|out\.?|nov\.?|dec\.?)/i,wv={abbr:"gl",months:"xaneiro_febreiro_marzo_abril_maio_xu\xF1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort(t,i,e){return t?/-MMM-/.test(i)?o0[U(t,e)]:jl[U(t,e)]:jl},monthsRegex:Nl,monthsShortRegex:Nl,monthsStrictRegex:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i,monthsShortStrictRegex:/^(xan\.?|feb\.?|mar\.?|abr\.?|mai\.?|xuñ\.?|xul\.?|ago\.?|set\.?|out\.?|nov\.?|dec\.?)/i,monthsParse:Oa,longMonthsParse:Oa,shortMonthsParse:Oa,weekdays:"domingo_luns_martes_m\xE9rcores_xoves_venres_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xE9r._xov._ven._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_m\xE9_xo_ve_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay(t){return"[hoxe \xE1"+(W(t)!==1?"s":"")+"] LT"},nextDay(t){return"[ma\xF1an \xE1"+(W(t)!==1?"s":"")+"] LT"},nextWeek(t){return"dddd [\xE1"+(W(t)!==1?"s":"")+"] LT"},lastDay(t){return"[onte \xE1"+(W(t)!==1?"s":"")+"] LT"},lastWeek(t){return"[o] dddd [pasado \xE1"+(W(t)!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%
5d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}};var Sv={abbr:"he",months:"\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("_"),monthsShort:"\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("_"),weekdays:"\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("_"),weekdaysShort:"\u05D0\u05F3_\u05D1\u05F3_\u05D2\u05F3_\u05D3\u05F3_\u05D4\u05F3_\u05D5\u05F3_\u05E9\u05F3".split("_"),weekdaysMin:"\u05D0_\u05D1_\u05D2_\u05D3_\u05D4_\u05D5_\u05E9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05D1]MMMM YYYY",LLL:"D [\u05D1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05D1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05D4\u05D9\u05D5\u05DD \u05D1\u05BE]LT",nextDay:"[\u05DE\u05D7\u05E8 \u05D1\u05BE]LT",nextWeek:"dddd [\u05D1\u05E9\u05E2\u05D4] LT",lastDay:"[\u05D0\u05EA\u05DE\u05D5\u05DC \u05D1\u05BE]LT",lastWeek:"[\u05D1\u05D9\u05D5\u05DD] dddd [\u05D4\u05D0\u05D7\u05E8\u05D5\u05DF \u05D1\u05E9\u05E2\u05D4] LT",sameElse:"L"},relativeTime:{future:"\u05D1\u05E2\u05D5\u05D3 %s",past:"\u05DC\u05E4\u05E0\u05D9 %s",s:"\u05DE\u05E1\u05E4\u05E8 \u05E9\u05E0\u05D9\u05D5\u05EA",ss:"%d \u05E9\u05E0\u05D9\u05D5\u05EA",m:"\u05D3\u05E7\u05D4",mm:"%d \u05D3\u05E7\u05D5\u05EA",h:"\u05E9\u05E2\u05D4",hh(t){return t===2?"\u05E9\u05E2\u05EA\u05D9\u05D9\u05DD":t+" \u05E9\u05E2\u05D5\u05EA"},d:"\u05D9\u05D5\u05DD",dd(t){return t===2?"\u05D9\u05D5\u05DE\u05D9\u05D9\u05DD":t+" \u05D9\u05DE\u05D9\u05DD"},M:"\u05D7\u05D5\u05D3\u05E9",MM(t){return t===2?"\u05D7\u05D5\u05D3\u05E9\u05D9\u05D9\u05DD":t+" \u05D7\u05D5\u05D3\u05E9\u05D9\u05DD"},y:"\u05E9\u05E0\u05D4",yy(t){return t===2?"\u05E9\u05E0\u05EA\u05D9\u05D9\u05DD":t%10===0&&t!==10?t+" \u05E9\u05E0\u05D4":t+" \u05E9\u05E0\u05D9\u05DD"}},meridiemParse:/×××"צ|××¤× ×"צ|×××¨× ×צ×ר×××|××¤× × ×צ×ר×××|××¤× ×ת ××קר|×××קר|×ער×/i,isPM(t){return/^(×××"צ|×××¨× ×צ×ר×××|×ער×)$/.test(t)},meridiem(t,i,e){return t<5?"\u05DC\u05E4\u05E0\u05D5\u05EA \u05D1\u05D5\u05E7\u05E8":t<10?"\u05D1\u05D1\u05D5\u05E7\u05E8":t<12?e?'\u05DC\u05E4\u05E0\u05D4"\u05E6':"\u05DC\u05E4\u05E0\u05D9 \u05D4\u05E6\u05D4\u05E8\u05D9\u05D9\u05DD":t<18?e?'\u05D0\u05D7\u05D4"\u05E6':"\u05D0\u05D7\u05E8\u05D9 \u05D4\u05E6\u05D4\u05E8\u05D9\u05D9\u05DD":"\u05D1\u05E2\u05E8\u05D1"}};var a0={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096A",5:"\u096B",6:"\u096C",7:"\u096D",8:"\u096E",9:"\u096F",0:"\u0966"},r0={"\u0967":"1","\u0968":"2","\u0969":"3","\u096A":"4","\u096B":"5","\u096C":"6","\u096D":"7","\u096E":"8","\u096F":"9","\u0966":"0"},kv={abbr:"hi",months:"\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("_"),monthsShort:"\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("_"),monthsParseExact:!0,weekdays:"\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("_"),weekdaysShort:"\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("_"),weekdaysMin:"\u0930_\u0938\u094B_\u092E\u0902_\u092C\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092C\u091C\u0947",LTS:"A h:mm:ss \u092C\u091C\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092C\u091C\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092C\u091C\u0947"},calendar:{sameDay:"[\u0906\u091C] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092A\u093F\u091B\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092E\u0947\u0902",past:"%s \u092A\u0939\u0932\u0947",s:"\u0915\u0941\u091B \u0939\u0940 \u0915\u094D\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090F\u0915 \u092E\u093F\u0928\u091F",mm:"%d \u092E\u093F\u0928\u091F",h:"\u090F\u0915 \u0918\u0902\u091F\u093E",hh:"%d \u0918\u0902\u091F\u0947",d:"\u090F\u0915 \u0926\u093F\u0928",dd:"%d \u0926\u093F\u0928",M:"\u090F\u0915 \u092E\u0939\u0940\u0928\u0947",MM:"%d \u092E\u0939\u0940\u0928\u0947",y:"\u090F\u0915 \u0935\u0930\u094D\u0937",yy:"%d \u0935\u0930\u094D\u0937"},preparse(t){return t.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g,function(i){return r0[i]})},postformat(t){return t.replace(/\d/g,function(i){return a0[i]})},meridiemParse:/रात|सà¥à¤¬à¤¹|दà¥à¤ªà¤¹à¤°|शाम/,meridiemHour(t,i){if(t===12&&(t=0),i==="\u0930\u093E\u0924")return t<4?t:t+12;if(i==="\u0938\u0941\u092C\u0939")return t;if(i==="\u0926\u094B\u092A\u0939\u0930")return t>=10?t:t+12;if(i==="\u0936\u093E\u092E")return t+12},meridiem(t,i,e){return t<4?"\u0930\u093E\u0924":t<10?"\u0938\u0941\u092C\u0939":t<17?"\u0926\u094B\u092A\u0939\u0930":t<20?"\u093
56\u093E\u092E":"\u0930\u093E\u0924"},week:{dow:0,doy:6}};var s0="vas\xE1rnap h\xE9tf\u0151n kedden szerd\xE1n cs\xFCt\xF6rt\xF6k\xF6n p\xE9nteken szombaton".split(" ");function ot(t,i,e,n){switch(e){case"s":return n||i?"n\xE9h\xE1ny m\xE1sodperc":"n\xE9h\xE1ny m\xE1sodperce";case"ss":return t+(n||i?" m\xE1sodperc":" m\xE1sodperce");case"m":return"egy"+(n||i?" perc":" perce");case"mm":return t+(n||i?" perc":" perce");case"h":return"egy"+(n||i?" \xF3ra":" \xF3r\xE1ja");case"hh":return t+(n||i?" \xF3ra":" \xF3r\xE1ja");case"d":return"egy"+(n||i?" nap":" napja");case"dd":return t+(n||i?" nap":" napja");case"M":return"egy"+(n||i?" h\xF3nap":" h\xF3napja");case"MM":return t+(n||i?" h\xF3nap":" h\xF3napja");case"y":return"egy"+(n||i?" \xE9v":" \xE9ve");case"yy":return t+(n||i?" \xE9v":" \xE9ve")}return""}function Wl(t,i){return(i?"":"[m\xFAlt] ")+"["+s0[ge(t)]+"] LT[-kor]"}var Tv={abbr:"hu",months:"janu\xE1r_febru\xE1r_m\xE1rcius_\xE1prilis_m\xE1jus_j\xFAnius_j\xFAlius_augusztus_szeptember_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_m\xE1rc_\xE1pr_m\xE1j_j\xFAn_j\xFAl_aug_szept_okt_nov_dec".split("_"),weekdays:"vas\xE1rnap_h\xE9tf\u0151_kedd_szerda_cs\xFCt\xF6rt\xF6k_p\xE9ntek_szombat".split("_"),weekdaysShort:"vas_h\xE9t_kedd_sze_cs\xFCt_p\xE9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM(t){return t.charAt(1).toLowerCase()==="u"},meridiem(t,i,e){return t<12?e===!0?"de":"DE":e===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek(t){return Wl(t,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek(t){return Wl(t,!1)},sameElse:"L"},relativeTime:{future:"%s m\xFAlva",past:"%s",s:ot,ss:ot,m:ot,mm:ot,h:ot,hh:ot,d:ot,dd:ot,M:ot,MM:ot,y:ot,yy:ot},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var Pv={abbr:"hr",months:"Sije\u010Danj_Velja\u010Da_O\u017Eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),monthsShort:"Sij_Velj_O\u017Eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),weekdays:"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010Cetvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned_Pon_Uto_Sri_\u010Cet_Pet_Sub".split("_"),weekdaysMin:"Ne_Po_Ut_Sr_\u010Ce_Pe_Su".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Danas u] LT",nextDay:"[Sutra u] LT",nextWeek:"dddd [u] LT",lastDay:"[Ju\u010Der u] LT",lastWeek:"[Zadnji] dddd [u] LT",sameElse:"L"},invalidDate:"Neispravan datum",relativeTime:{future:"za %s",past:"%s prije",s:"nekoliko sekundi",ss:"%d sekundi",m:"minuta",mm:"%d minuta",h:"sat",hh:"%d sati",d:"dan",dd:"%d dana",M:"mjesec",MM:"%d mjeseci",y:"godina",yy:"%d godina"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal(t){let i=Number(t),e=i%10,n=(~~(i%100/10)===1,".");return i+n},week:{dow:1,doy:4}};var Ev={abbr:"id",months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour(t,i){if(t===12&&(t=0),i==="pagi")return t;if(i==="siang")return t>=11?t:t+12;if(i==="sore"||i==="malam")return t+12},meridiem(t,i,e){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}};var Lv={abbr:"it",months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek(t){return ge(t)===0?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future(t){return(/^[0-9].+$/.test(t.toString(10))?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%
5d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}};var Iv={abbr:"ja",months:"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("_"),monthsShort:"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("_"),weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5 HH:mm dddd"},meridiemParse:/åå|åå¾/i,isPM(t){return t==="\u5348\u5F8C"},meridiem(t,i,e){return t<12?"\u5348\u524D":"\u5348\u5F8C"},calendar:{sameDay:"[\u4ECA\u65E5] LT",nextDay:"[\u660E\u65E5] LT",nextWeek:"[\u6765\u9031]dddd LT",lastDay:"[\u6628\u65E5] LT",lastWeek:"[\u524D\u9031]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}æ¥/,ordinal(t,i){switch(i){case"d":case"D":case"DDD":return t+"\u65E5";default:return t.toString(10)}},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",ss:"%d\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}};var Yv={abbr:"ka",months:{format:"\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("_"),standalone:"\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("_")},monthsShort:"\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("_"),weekdays:{standalone:"\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("_"),format:"\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("_"),isFormat:/(á¬ááá|á¨ááááá)/},weekdaysShort:"\u10D9\u10D5\u10D8_\u10DD\u10E0\u10E8_\u10E1\u10D0\u10DB_\u10DD\u10D7\u10EE_\u10EE\u10E3\u10D7_\u10DE\u10D0\u10E0_\u10E8\u10D0\u10D1".split("_"),weekdaysMin:"\u10D9\u10D5_\u10DD\u10E0_\u10E1\u10D0_\u10DD\u10D7_\u10EE\u10E3_\u10DE\u10D0_\u10E8\u10D0".split("_"),longDateFormat:{LT:"h:mm A",LT
5S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[\u10D3\u10E6\u10D4\u10E1] LT[-\u10D6\u10D4]",nextDay:"[\u10EE\u10D5\u10D0\u10DA] LT[-\u10D6\u10D4]",lastDay:"[\u10D2\u10E3\u10E8\u10D8\u10DC] LT[-\u10D6\u10D4]",nextWeek:"[\u10E8\u10D4\u10DB\u10D3\u10D4\u10D2] dddd LT[-\u10D6\u10D4]",lastWeek:"[\u10EC\u10D8\u10DC\u10D0] dddd LT-\u10D6\u10D4",sameElse:"L"},relativeTime:{future(t){var i=t.toString();return/(á¬ááá|á¬á£áá|á¡áááá|á¬ááá)/.test(i)?i.replace(/á$/,"\u10E8\u10D8"):i+"\u10E8\u10D8"},past(t){var i=t.toString();if(/(á¬ááá|á¬á£áá|á¡áááá|áá¦á|ááá)/.test(i))return i.replace(/(á|á)$/,"\u10D8\u10E1 \u10EC\u10D8\u10DC");if(/á¬ááá/.test(i))return i.replace(/á¬ááá$/,"\u10EC\u10DA\u10D8\u10E1 \u10EC\u10D8\u10DC")},s:"\u10E0\u10D0\u10DB\u10D3\u10D4\u10DC\u10D8\u10DB\u10D4 \u10EC\u10D0\u10DB\u10D8",ss:"%d \u10EC\u10D0\u10DB\u10D8",m:"\u10EC\u10E3\u10D7\u10D8",mm:"%d \u10EC\u10E3\u10D7\u10D8",h:"\u10E1\u10D0\u10D0\u10D7\u10D8",hh:"%d \u10E1\u10D0\u10D0\u10D7\u10D8",d:"\u10D3\u10E6\u10D4",dd:"%d \u10D3\u10E6\u10D4",M:"\u10D7\u10D5\u10D4",MM:"%d \u10D7\u10D5\u10D4",y:"\u10EC\u10D4\u10DA\u10D8",yy:"%d \u10EC\u10D4\u10DA\u10D8"},dayOfMonthOrdinalParse:/0|1-áá|áá-\d{1,2}|\d{1,2}-á/,ordinal(t,i){let e=Number(t);return e===0?e.toString():e===1?e+"-\u10DA\u10D8":e<20||e<=100&&e%20===0||e%100===0?"\u10DB\u10D4-"+e:e+"-\u10D4"},week:{dow:1,doy:4}},Ra={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044B",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044B",10:"-\u0448\u044B",20:"-\u0448\u044B",30:"-\u0448\u044B",40:"-\u0448\u044B",50:"-\u0448\u0456",60:"-\u0448\u044B",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044B",100:"-\u0448\u0456"},Vv={abbr:"kk",months:"\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("_"),monthsShort:"\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("_"),weekdays:"\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("_"),weekdaysShort:"\u0436\u0435\u043A_\u0434\u04AF\u0439_\u0441\u0435\u0439_\u0441\u04D9\u0440_\u0431\u0435\u0439_\u0436\u04B1\u043C_\u0441\u0435\u043D".split("_"),weekdaysMin:"\u0436\u043A_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043C_\u0441\u043D".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04AF\u0433\u0456\u043D \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04A3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041A\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04E8\u0442\u043A\u0435\u043D \u0430\u043F\u0442\u0430\u043D\u044B\u04A3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043D\u0434\u0435",past:"%s \u0431\u04B1\u0440\u044B\u043D",s:"\u0431\u0456\u0440\u043D\u0435\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434",ss:"%d \u0441\u0435\u043A\u0443\u043D\u0434",m:"\u0431\u0456\u0440 \u043C\u0438\u043D\u0443\u0442",mm:"%d \u043C\u0438\u043D\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043A\u04AF\u043D",dd:"%d \u043A\u04AF\u043D",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044B\u043B",yy:"%d \u0436\u044B\u043B"},dayOfMonthOrdinalParse:/\d{1,2}-(ÑÑ|ÑÑ)/,ordinal(t){let i=t%10,e=t>=100?100:null;return t+(Ra[t]||Ra[i]||Ra[e])},week:{dow:1,doy:7}};var Av={abbr:"ko",months:"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("_"),monthsShort:"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("_"),weekdays:"\uC77C\uC694\uC77C_\uC6D4\uC694\uC77C_\uD654\uC694\uC77C_\uC218\uC694\uC77C_\uBAA9\uC694\uC77C_\uAE08\uC694\uC77C_\uD1A0\uC694\uC77C".split("_"),weekdaysShort:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),weekdaysMin:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD",LL:"YYYY\uB144 MMMM D\uC77C",LLL:"YYYY\uB144 MMMM D\uC77C A h:mm",LLLL:"YYYY\uB144 MMMM D\uC77C dddd A h:mm",l:"YYYY.MM.DD",ll:"YYYY\uB144 MMMM D\uC77C",lll:"YYYY\uB144 MMMM D\uC77C A h:mm",llll:"YYYY\uB144 MMMM D\uC77C dddd A h:mm"},calendar:{sameDay:"\uC624\uB298 LT",nextDay:"\uB0B4\uC77C LT",nextWeek:"dddd LT",lastDay:"\uC5B4\uC81C LT",lastWeek:"\uC9C0\uB09C\uC8FC dddd LT",sameElse:"L"},relativeTime:{future:"%s \uD6C4",past:"%s \uC804",s:"\uBA87 \uCD08",ss:"%d\uCD08",m:"1\uBD84",mm:"%d\uBD84",h:"\uD55C \uC2DC\uAC04",hh:"%d\uC2DC\uAC04",d:"\uD558\uB8E8",dd:"%d\uC77C",M:"\uD55C \uB2EC",MM:"%d\uB2EC",y:"\uC77C \uB144",yy:"%d\uB144"},dayOfMonthOrdinalParse:/\d{1,2}(ì¼|ì|주)/,ordinal:function(t,i){switch(i){case"d":case"D":case"DDD":return t+"\uC77C";case"M":return t+"\uC6D4";case"w":case"W":return t+"\uC8FC";default:return t.toString(10)}},meridiemParse:/ì¤ì |ì¤í/,isPM:function(t){return t==="\uC624\uD6C4"},meridiem:function(t,i,e){return t<12?"\uC624\uC804":"\uC624\uD6C4"}};var l0={ss:"sekund\u0117_sekund\u017Ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010Di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_die
5n\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012F",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function d0(t,i,e,n){return i?"kelios sekund\u0117s":n?"keli\u0173 sekund\u017Ei\u0173":"kelias sekundes"}function Zi(t,i,e,n){return i?Jt(e)[0]:n?Jt(e)[1]:Jt(e)[2]}function Ul(t){return t%10===0||t>10&&t<20}function Jt(t){return l0[t].split("_")}function zi(t,i,e,n){let o=t+" ";return t===1?o+Zi(t,i,e[0],n):i?o+(Ul(t)?Jt(e)[1]:Jt(e)[0]):n?o+Jt(e)[1]:o+(Ul(t)?Jt(e)[1]:Jt(e)[2])}var Ov={abbr:"lt",months:{format:"sausio_vasario_kovo_baland\u017Eio_gegu\u017E\u0117s_bir\u017Eelio_liepos_rugpj\u016B\u010Dio_rugs\u0117jo_spalio_lapkri\u010Dio_gruod\u017Eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017E\u0117_bir\u017Eelis_liepa_rugpj\u016Btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012F_pirmadien\u012F_antradien\u012F_tre\u010Diadien\u012F_ketvirtadien\u012F_penktadien\u012F_\u0161e\u0161tadien\u012F".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010Diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012F] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:d0,ss:zi,m:Zi,mm:zi,h:Zi,hh:zi,d:Zi,dd:zi,M:Zi,MM:zi,y:Zi,yy:zi},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal(t){return t+"-oji"},week:{dow:1,doy:4}};var Rv={abbr:"lv",months:"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012Blis_Maijs_J\u016Bnijs_J\u016Blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mai_J\u016Bn_J\u016Bl_Aug_Sep_Okt_Nov_Dec".split("_"),weekdays:"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),weekdaysShort:"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),weekdaysMin:"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:"da\u017E\u0101m sekund\u0113m",ss:"%d sekund\u0113m",m:"min\u016Btes",mm:"%d min\u016Bt\u0113m",h:"stundas",hh:"%d stund\u0101m",d:"dienas",dd:"%d dien\u0101m",M:"m\u0113ne\u0161a",MM:"%d m\u0113ne\u0161iem",y:"gada",yy:"%d gadiem"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal(t){return t+"."},week:{dow:1,doy:4}};function at(t,i,e,n){switch(e){case"s":return i?"\u0445\u044D\u0434\u0445\u044D\u043D \u0441\u0435\u043A\u0443\u043D\u0434":"\u0445\u044D\u0434\u0445\u044D\u043D \u0441\u0435\u043A\u0443\u043D\u0434\u044B\u043D";case"ss":return t+(i?" \u0441\u0435\u043A\u0443\u043D\u0434":" \u0441\u0435\u043A\u0443\u043D\u0434\u044B\u043D");case"m":case"mm":return t+(i?" \u043C\u0438\u043D\u0443\u0442":" \u043C\u0438\u043D\u0443\u0442\u044B\u043D");case"h":case"hh":return t+(i?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043D");case"d":case"dd":return t+(i?" \u04E9\u0434\u04E9\u0440":" \u04E9\u0434\u0440\u0438\u0439\u043D");case"M":case"MM":return t+(i?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044B\u043D");case"y":case"yy":return t+(i?" \u0436\u0438\u043B":" \u0436\u0438\u043B\u0438\u0439\u043D");default:return t.toString(10)}}var Fv={abbr:"mn",months:"\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("_"),monthsShort:"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("_"),monthsParseExact:!0,weekdays:"\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("_"),weekdaysShort:"\u041D\u044F\u043C_\u0414\u0430\u0432_\u041C\u044F\u0433_\u041B\u0445\u0430_\u041F\u04AF\u0440_\u0411\u0430\u0430_\u0411\u044F\u043C".split("_"),weekdaysMin:"\u041D\u044F_\u0414\u0430_\u041C\u044F_\u041B\u0445_\u041F\u04AF_\u0411\u0430_\u0411\u044F".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043E\u043D\u044B MMMM\u044B\u043D D",LLL:"YYYY \u043E\u043D\u044B MMMM\u044B\u043D D HH:mm",LLLL:"dddd, YYYY \u043E\u043D\u044B MMMM\u044B\u043D D HH:mm"},meridiemParse:/Ò®Ó¨|ҮХ/i,isPM:function(t){return t==="\u04AE\u0425"},meridiem:function(t,i,e){return t<12?"\u04AE\u04E8":"\u04AE\u0425"},calendar:{sameDay:"[\u04E8\u043D\u04E9\u04E9\u0434\u04E9\u0440] LT",nextDay:"[\u041C\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044D\u0445] dddd LT",lastDay:"[\u04E8\u0447\u0438\u0433\u0434\u04E9\u0440] LT",lastWeek:"[\u04E8\u043D\u0433\u04E9\u0440\u0441\u04E9\u043D] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04E9\u043C\u043D\u04E9",s:at,ss:at,m:at,mm:at,h:at,hh:at,d:at,dd:at,M:at,MM:at,y:at,yy:at},dayOfMonthOrdinalParse:/\d{1,2} өдөÑ/,ordinal:function(t,i){switch(i){case"d":case"D":case"DDD":return t+" \u04E9\u0434\u04E9\u0440";default:return t.toString(10)}}};var Hv={abbr:"nb",months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),weekdaysMin:"s\xF8_ma_ti_on_to_fr_l\xF8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xE5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"ett \xE5r",yy:"%d \xE5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var ql="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),c0="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Fa=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],$l=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,Bv={abbr:"nl-be",months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort(t,i,e){return t?/-MMM-/.test(i)?c0[U(t,e)]:ql[U(t,e)]:ql},monthsRegex:$l,monthsShortRegex:$l,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Fa,longMonthsParse:Fa,shortMonthsParse:Fa,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xE9\xE9n minuut",mm:"%d minuten",h:"\xE9\xE9n uur",hh:"%d uur",d:"\xE9\xE9n dag",dd:"%d dagen",M:"\xE9\xE9n maand",MM:"%d maanden",y:"\xE9\xE9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal(t){let i=Number(t);return i+(i===1||i===8||i>=20?"ste":"de")},week:{dow:1,doy:4}};var zl="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),m0="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Ha=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Gl=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,jv={abbr:"nl",months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort(t,i,e){return t?/-MMM-/.test(i)?m0[U(t,e)]:zl[U(t,e)]:zl},monthsRegex:Gl,monthsShortRegex:Gl,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Ha,longMonthsParse:Ha,shortMonthsParse:Ha,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xE9\xE9n minuut",mm:"%d minuten",h:"\xE9\xE9n uur",hh:"%d uur",d:"\xE9\xE9n dag",dd:"%d dagen",M:"\xE9\xE9n maand",MM:"%d maanden",y:"\xE9\xE9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal(t){let i=Number(t);return i+(i===1||i===8||i>=20?"ste":"de")},week:{dow:1,doy:4}};var Ba="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),Ql="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_");function xn(t){return t%10<5&&t%10>1&&~~(t/10)%10!==1}function mi(t,i,e){let n=t+" ";switch(e){case"ss":return n+(xn(t)?"sekundy":"sekund");case"m":return i?"minuta":"minut\u0119";case"mm":return n+(xn(t)?"minuty":"minut");case"h":return i?"godzina":"godzin\u0119";case"hh":return n+(xn(t)?"godziny":"godzin");case"MM":return n+(xn(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return n+(xn(t)?"lata":"lat")}}var Nv={abbr:"pl",months(t,i,e){return t?i===""?"("+Ql[U(t,e)]+"|"+Ba[U(t,e)]+")":/D MMMM/.test(i)?Ql[U(t,e)]:Ba[U(t,e)]:Ba},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}
5,calendar:{sameDay:"[Dzi\u015B o] LT",nextDay:"[Jutro o] LT",nextWeek(t){switch(ge(t)){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015Brod\u0119 o] LT";case 5:return"[W pi\u0105tek o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek(t){switch(ge(t)){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015Brod\u0119 o] LT";case 4:return"[W zesz\u0142\u0105 czwartek o] LT";case 5:return"[W zesz\u0142\u0105 pi\u0105tek o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:mi,m:mi,mm:mi,h:mi,hh:mi,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:mi,y:"rok",yy:mi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var Wv={abbr:"pt-br",months:"Janeiro_Fevereiro_Mar\xE7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xE7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xE1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xE1b".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_S\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},calendar:{sameDay:"[Hoje \xE0s] LT",nextDay:"[Amanh\xE3 \xE0s] LT",nextWeek:"dddd [\xE0s] LT",lastDay:"[Ontem \xE0s] LT",lastWeek(t){return ge(t)===0||ge(t)===6?"[\xDAltimo] dddd [\xE0s] LT":"[\xDAltima] dddd [\xE0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atr\xE1s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA"};function Gi(t,i,e){let n={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},o=" ";return(t%100>=20||t>=100&&t%100===0)&&(o=" de "),t+o+n[e]}var Uv={abbr:"ro",months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021Bi_miercuri_joi_vineri_s\xE2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xE2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xE2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xE2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xEEn urm\u0103",s:"c\xE2teva secunde",ss:Gi,m:"un minut",mm:Gi,h:"o or\u0103",hh:Gi,d:"o zi",dd:Gi,M:"o lun\u0103",MM:Gi,y:"un an",yy:Gi},week:{dow:1,doy:7}};function u0(t,i){let e=t.split("_");return i%10===1&&i%100!==11?e[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?e[1]:e[2]}function ui(t,i,e){let n={ss:i?"\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434":"\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434",mm:i?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"};return e==="m"?i?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":t+" "+u0(n[e],+t)}var ja=[/^Ñнв/i,/^Ñев/i,/^маÑ/i,/^апÑ/i,/^ма[йÑ]/i,/^иÑн/i,/^иÑл/i,/^авг/i,/^Ñен/i,/^окÑ/i,/^ноÑ/i,/^дек/i],qv={abbr:"ru",months:{format:"\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("_"),standalone:"\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("_")},monthsShort:{format:"\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("_"),standalone:"\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("_")},weekdays:{standalone:"\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("_"),format:"\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("_"),isFormat:/\[ ?[Ðв] ?(?:пÑоÑлÑÑ|ÑледÑÑÑÑÑ|ÑÑÑ)? ?\] ?dddd/},weekdaysShort:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),monthsParse:ja,longMonthsParse:ja,shortMonthsParse:ja,monthsRegex:/^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i,monthsShortRegex:/^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i,monthsStrictRegex:/^(ÑнваÑ[ÑÑ]|ÑевÑал[ÑÑ]|маÑÑа?|апÑел[ÑÑ]|ма[Ñй]|иÑн[ÑÑ]|иÑл[ÑÑ]|авгÑÑÑа?|ÑенÑÑбÑ[ÑÑ]|окÑÑбÑ[ÑÑ]|ноÑбÑ[ÑÑ]|декабÑ[ÑÑ])/i,monthsShortStrictRegex:/^(Ñнв\.|ÑевÑ?\.|маÑ[Ñ.]|апÑ\.|ма[Ñй]|иÑн[ÑÑ.]|иÑл[ÑÑ.]|авг\.|ÑенÑ?\.|ок
5Ñ\.|ноÑб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043E\u0434\u043D\u044F \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430 \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",nextWeek(t,i){if(Mn(i)!==Mn(t))switch(ge(t)){case 0:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435] dddd [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439] dddd [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E] dddd [\u0432] LT"}else return ge(t)===2?"[\u0412\u043E] dddd [\u0432] LT":"[\u0412] dddd [\u0432] LT"},lastWeek(t,i){if(Mn(i)!==Mn(t))switch(ge(t)){case 0:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u0435] dddd [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u044B\u0439] dddd [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u0443\u044E] dddd [\u0432] LT"}else return ge(t)===2?"[\u0412\u043E] dddd [\u0432] LT":"[\u0412] dddd [\u0432] LT"},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",ss:ui,m:ui,mm:ui,h:"\u0447\u0430\u0441",hh:ui,d:"\u0434\u0435\u043D\u044C",dd:ui,M:"\u043C\u0435\u0441\u044F\u0446",MM:ui,y:"\u0433\u043E\u0434",yy:ui},meridiemParse:/ноÑи|ÑÑÑа|днÑ|веÑеÑа/i,isPM(t){return/^(днÑ|веÑеÑа)$/.test(t)},meridiem(t,i,e){return t<4?"\u043D\u043E\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|Ñ)/,ordinal(t,i){let e=Number(t);switch(i){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043E";case"w":case"W":return e+"-\u044F";default:return e.toString(10)}},week:{dow:1,doy:4}};var _0="janu\xE1r_febru\xE1r_marec_apr\xEDl_m\xE1j_j\xFAn_j\xFAl_august_september_okt\xF3ber_november_december".split("_"),p0="jan_feb_mar_apr_m\xE1j_j\xFAn_j\xFAl_aug_sep_okt_nov_dec".split("_");function Qi(t){return t>1&&t<5&&~~(t/10)!==1}function rt(t,i,e,n){let o=t+" ";switch(e){case"s":return i||n?"p\xE1r sek\xFAnd":"p\xE1r sekundami";case"ss":return i||n?o+(Qi(t)?"sekundy":"sek\xFAnd"):o+"sekundami";case"m":return i?"min\xFAta":n?"min\xFAtu":"min\xFAtou";case"mm":return i||n?o+(Qi(t)?"min\xFAty":"min\xFAt"):o+"min\xFAtami";case"h":return i?"hodina":n?"hodinu":"hodinou";case"hh":return i||n?o+(Qi(t)?"hodiny":"hod\xEDn"):o+"hodinami";case"d":return i||n?"de\u0148":"d\u0148om";case"dd":return i||n?o+(Qi(t)?"dni":"dn\xED"):o+"d\u0148ami";case"M":return i||n?"mesiac":"mesiacom";case"MM":return i||n?o+(Qi(t)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return i||n?"rok":"rokom";case"yy":return i||n?o+(Qi(t)?"roky":"rokov"):o+"rokmi"}}var $v={abbr:"sk",months:_0,monthsShort:p0,weekdays:"nede\u013Ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek(t){switch(ge(t)){case 0:return"[v nede\u013Eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010Dera o] LT",lastWeek(t){switch(ge(t)){case 0:return"[minul\xFA nede\u013Eu o] LT";case 1:case 2:return"[minul\xFD] dddd [o] LT";case 3:return"[minul\xFA stredu o] LT";case 4:case 5:return"[minul\xFD] dddd [o] LT";case 6:return"[minul\xFA sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"o %s",past:"pred %s",s:rt,ss:rt,m:rt,mm:rt,h:rt,hh:rt,d:rt,dd:rt,M:rt,MM:rt,y:rt,yy:rt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};function st(t,i,e,n){var o=t+" ";switch(e){case"s":return i||n?"nekaj sekund":"nekaj sekundami";case"ss":return t===1?o+=i?"sekundo":"sekundi":t===2?o+=i||n?"sekundi":"sekundah":t<5?o+=i||n?"sekunde":"sekundah":o+="sekund",o;case"m":return i?"ena minuta":"eno minuto";case"mm":return t===1?o+=i?"minuta":"minuto":t===2?o+=i||n?"minuti":"minutama":t<5?o+=i||n?"minute":"minutami":o+=i||n?"minut":"minutami",o;case"h":return i?"ena ura":"eno uro";case"hh":return t===1?o+=i?"ura":"uro":t===2?o+=i||n?"uri":"urama":t<5?o+=i||n?"ure":"urami":o+=i||n?"ur":"urami",o;case"d":return i||n?"en dan":"enim dnem";case"dd":return t===1?o+=i||n?"dan":"dnem":t===2?o+=i||n?"dni":"dnevoma":o+=i||n?"dni":"dnevi",o;case"M":return i||n?"en mesec":"enim mesecem";case"MM":return t===1?o+=i||n?"mesec":"mesecem":t===2?o+=i||n?"meseca":"mesecema":t<5?o+=i||n?"mesece":"meseci":o+=i||n?"mesecev":"meseci",o;case"y":return i||n?"eno leto":"enim letom";case"yy":return t===1?o+=i||n?"leto":"letom":t===2?o+=i||n?"leti":"letoma":t<5?o+=i||n?"leta":"leti":o+=i||n?"let":"leti",o}}var zv={abbr:"sl",months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010Detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010Det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010De_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek(t){switch(ge(t)){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010Deraj ob] LT",lastWeek(t){switch(ge(t)){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010Dez %s",past:"pred %s",s:st,ss:st,m:st,mm:st,h:st,hh:st,d:st,dd:st,M:st,MM:st,y:st,yy:st},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}};var Gv={abbr:"sq",months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xEBntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xEBn_Dhj".split("_"),weekdays:"E Diel\xEB_E H\xEBn\xEB_E Mart\xEB_E M\xEBrkur\xEB_E Enjte_E Premte_E Shtun\xEB".split("_"),weekdaysShort:"Die_H\xEBn_Mar_M\xEBr_Enj_Pre_Sht".split("_"),weekdaysMin:"Di_He_Ma_Me_En_Pr_Sh".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xEB] LT",nextDay:"[Nes\xEBr n\xEB] LT",nextWeek:"dddd [n\xEB] LT",lastDay:"[Dje n\xEB] LT",lastWeek:"dddd [e kaluar n\xEB] LT",sameElse:"L"},relativeTime:{future:"n\xEB %s",past:"para %sve",s:"disa sekonda",ss:"%d sekonda",m:"nj\xEB minut",mm:"%d minuta",h:"nj\xEB or\xEB",hh:"%d or\xEB",d:"nj\xEB dit\xEB",dd:"%d dit\xEB",M:"nj\xEB muaj",MM:"%d muaj",y:"nj\xEB vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var Qv={abbr:"sv",months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xF6ndag_m\xE5ndag_tisdag_onsdag_torsdag_fredag_l\xF6rdag".split("_"),weekdaysShort:"s\xF6n_m\xE5n_tis_ons_tor_fre_l\xF6r".split("_"),weekdaysMin:"s\xF6_m\xE5_ti_on_to_fr_l\xF6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xE5r] LT",nextWeek:"[P\xE5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xF6r %s sedan",s:"n\xE5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xE5nad",MM:"%d m\xE5nader",y:"ett \xE5r",yy:"%d \xE5r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal(t){let i=Number(t),e=i%10,n=~~(i%100/10)===1?"e":e===1||e===2?"a":"e";return i+n},week:{dow:1,doy:4}},Jv={abbr:"th",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:/à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸|หลัà¸à¹à¸à¸µà¹à¸¢à¸/,isPM(t){return t==="\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},meridiem(t,i,e){return 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"}},Jl={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:/à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸|หลัà¸à¹à¸à¸µà¹à¸¢à¸/,isPM(t){return t==="\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},meridiem(t,i,e){return 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,i){let e=Jl.longDateFormat[i]?Jl.longDateFormat[i]:i;if(e.indexOf("YYYY",e.length-4)!==-1){let n=t.substr(0,t.length-4),o=parseInt(t.substr(t.length-4),10)-543;return n+o}return t},getFullYear(t,i=!1){return 543+(i?t.getUTCFullYear():t.getFullYear())}};var Na={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xFCnc\xFC",4:"'\xFCnc\xFC",100:"'\xFCnc\xFC",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"},Kv={abbr:"tr",months:"Ocak_\u015Eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011Fustos_Eyl\xFCl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015Eub_Mar_Nis_May_Haz_Tem_A\u011Fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xC7ar\u015Famba_Per\u015Fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xC7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xC7a_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xFCn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xFCn] LT",lastWeek:"[ge\xE7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xF6nce",s:"birka\xE7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xFCn",dd:"%d g\xFCn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},dayOfMonthOrdinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal(t){let i=Number(t);if(i===0)return i+"'\u0131nc\u0131";let e=i%10,n=i%100-e,o=i>=100?100:null;return i+(Na[e]||Na[n]||Na[o])},week:{dow:1,doy:7}};function f0(t,i){let e=t.split("_");return i%10===1&&i%100!==11?e[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?e[1]:e[2]}function _i(t,i,e){let n={ss:i?"\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434":"\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\
5u043D\u0434",mm:i?"\u0445\u0432\u0438\u043B\u0438\u043D\u0430_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D":"\u0445\u0432\u0438\u043B\u0438\u043D\u0443_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D",hh:i?"\u0433\u043E\u0434\u0438\u043D\u0430_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D":"\u0433\u043E\u0434\u0438\u043D\u0443_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u0456_\u0434\u043D\u0456\u0432",MM:"\u043C\u0456\u0441\u044F\u0446\u044C_\u043C\u0456\u0441\u044F\u0446\u0456_\u043C\u0456\u0441\u044F\u0446\u0456\u0432",yy:"\u0440\u0456\u043A_\u0440\u043E\u043A\u0438_\u0440\u043E\u043A\u0456\u0432"};return e==="m"?i?"\u0445\u0432\u0438\u043B\u0438\u043D\u0430":"\u0445\u0432\u0438\u043B\u0438\u043D\u0443":e==="h"?i?"\u0433\u043E\u0434\u0438\u043D\u0430":"\u0433\u043E\u0434\u0438\u043D\u0443":t+" "+f0(n[e],+t)}function h0(t,i,e){let n={nominative:"\u043D\u0435\u0434\u0456\u043B\u044F_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044F_\u0441\u0443\u0431\u043E\u0442\u0430".split("_"),accusative:"\u043D\u0435\u0434\u0456\u043B\u044E_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044E_\u0441\u0443\u0431\u043E\u0442\u0443".split("_"),genitive:"\u043D\u0435\u0434\u0456\u043B\u0456_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043A\u0430_\u0432\u0456\u0432\u0442\u043E\u0440\u043A\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u0456_\u0441\u0443\u0431\u043E\u0442\u0438".split("_")};if(!t)return n.nominative;let o=/(\[[ÐвУÑ]\]) ?dddd/.test(i)?"accusative":/\[?(?:минÑлоÑ|наÑÑÑпноÑ)? ?\] ?dddd/.test(i)?"genitive":"nominative";return n[o][ge(t,e)]}function Ji(t){return function(i){return t+"\u043E"+(W(i)===11?"\u0431":"")+"] LT"}}var Xv={abbr:"uk",months:{format:"\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("_"),standalone:"\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("_")},monthsShort:"\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("_"),weekdays:h0,weekdaysShort:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:Ji("[\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456 "),nextDay:Ji("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:Ji("[\u0412\u0447\u043E\u0440\u0430 "),nextWeek:Ji("[\u0423] dddd ["),lastWeek(t){switch(ge(t)){case 0:case 3:case 5:case
56:return Ji("[\u041C\u0438\u043D\u0443\u043B\u043E\u0457] dddd [")(t);case 1:case 2:case 4:return Ji("[\u041C\u0438\u043D\u0443\u043B\u043E\u0433\u043E] dddd [")(t)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043E\u043C\u0443",s:"\u0434\u0435\u043A\u0456\u043B\u044C\u043A\u0430 \u0441\u0435\u043A\u0443\u043D\u0434",ss:_i,m:_i,mm:_i,h:"\u0433\u043E\u0434\u0438\u043D\u0443",hh:_i,d:"\u0434\u0435\u043D\u044C",dd:_i,M:"\u043C\u0456\u0441\u044F\u0446\u044C",MM:_i,y:"\u0440\u0456\u043A",yy:_i},meridiemParse:/ноÑÑ|ÑанкÑ|днÑ|веÑоÑа/,isPM(t){return/^(днÑ|веÑоÑа)$/.test(t)},meridiem(t,i,e){return t<4?"\u043D\u043E\u0447\u0456":t<12?"\u0440\u0430\u043D\u043A\u0443":t<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u043E\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal(t,i){let e=Number(t);switch(i){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043E";default:return e.toString()}},week:{dow:1,doy:7}};var Zv={abbr:"vi",months:"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("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"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("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM(t){return/^ch$/i.test(t)},meridiem(t,i,e){return t<12?e?"sa":"SA":e?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xF4m nay l\xFAc] LT",nextDay:"[Ng\xE0y mai l\xFAc] LT",nextWeek:"dddd [tu\u1EA7n t\u1EDBi l\xFAc] LT",lastDay:"[H\xF4m qua l\xFAc] LT",lastWeek:"dddd [tu\u1EA7n tr\u01B0\u1EDBc l\xFAc] LT",sameElse:"L"},relativeTime:{future:"%s t\u1EDBi",past:"%s tr\u01B0\u1EDBc",s:"v\xE0i gi\xE2y",ss:"%d gi\xE2y",m:"m\u1ED9t ph\xFAt",mm:"%d ph\xFAt",h:"m\u1ED9t gi\u1EDD",hh:"%d gi\u1EDD",d:"m\u1ED9t ng\xE0y",dd:"%d ng\xE0y",M:"m\u1ED9t th\xE1ng",MM:"%d th\xE1ng",y:"m\u1ED9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal(t){return""+t},week:{dow:1,doy:4}};var eD={abbr:"zh-cn",months:"\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("_"),monthsShort:"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("_"),weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour(t,i){return t===12&&(t=0),i==="\u51CC\u6668"||i==="\u65E9\u4E0A"||i==="\u4E0A\u5348"?t:i==="\u4E0B\u5348"||i==="\u665A\u4E0A"?t+12:t>=11?t:t+12},meridiem(t,i,e){let n=t*100+i;return n<600?"\u51CC\u6668":n<900?"\u65E9\u4E0A":n<1130?"\u4E0A\u5348":n<1230?"\u4E2D\u5348":n<1800?"\u4E0B\u5348":"\u665A\u4E0A"},calendar:{sameDay:"[\u4ECA\u5929]LT",nextDay:"[\u660E\u5929]LT",nextWeek:"[\u4E0B]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4E0A]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|å¨)/,ordinal(t,i){let e=Number(t);switch(i){case"d":case"D":case"DDD":return e+"\u65E5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e.toString()}},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",ss:"%d \u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%
5d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},week:{dow:1,doy:4}};var g0={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},C0={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},Kl=function(t){return t===0?0:t===1?1:t===2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},y0={s:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u062B\u0627\u0646\u06CC\u0647","\u06CC\u06A9 \u062B\u0627\u0646\u06CC\u0647",["\u062F\u0648 \u062B\u0627\u0646\u06CC\u0647","\u062F\u0648 \u062B\u0627\u0646\u06CC\u0647"],"%d \u062B\u0627\u0646\u06CC\u0647","%d \u062B\u0627\u0646\u06CC\u0647","%d \u062B\u0627\u0646\u06CC\u0647"],m:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u062F\u0642\u06CC\u0642\u0647","\u06CC\u06A9 \u062F\u0642\u06CC\u0642\u0647",["\u062F\u0648 \u062F\u0642\u06CC\u0642\u0647","\u062F\u0648 \u062F\u0642\u06CC\u0642\u0647"],"%d \u062F\u0642\u06CC\u0642\u0647","%d \u062F\u0642\u06CC\u0642\u0647","%d \u062F\u0642\u06CC\u0642\u0647"],h:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u0633\u0627\u0639\u062A","\u06CC\u06A9 \u0633\u0627\u0639\u062A",["\u062F\u0648 \u0633\u0627\u0639\u062A","\u062F\u0648 \u0633\u0627\u0639\u062A"],"%d \u0633\u0627\u0639\u062A","%d \u0633\u0627\u0639\u062A","%d \u0633\u0627\u0639\u062A"],d:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u0631\u0648\u0632","\u06CC\u06A9 \u0631\u0648\u0632",["\u062F\u0648 \u0631\u0648\u0632","\u062F\u0648 \u0631\u0648\u0632"],"%d \u0631\u0648\u0632","%d \u0631\u0648\u0632","%d \u0631\u0648\u0632"],M:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u0645\u0627\u0647","\u06CC\u06A9 \u0645\u0627\u0647",["\u062F\u0648 \u0645\u0627\u0647","\u062F\u0648 \u0645\u0627\u0647"],"%d \u0645\u0627\u0647","%d \u0645\u0627\u0647","%d \u0645\u0627\u0647"],y:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u0633\u0627\u0644","\u06CC\u06A9 \u0633\u0627\u0644",["\u062F\u0648 \u0633\u0627\u0644","\u062F\u0648 \u0633\u0627\u0644"],"%d \u0633\u0627\u0644","%d \u0633\u0627\u0644","%d \u0633\u0627\u0644"]},lt=function(t){return function(i,e){let n=Kl(i),o=y0[t][Kl(i)];return n===2&&(o=o[e?0:1]),o.replace(/%d/i,i.toString())}},Xl=["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u06CC","\u0698\u0648\u0626\u0646","\u062C\u0648\u0644\u0627\u06CC","\u0622\u06AF\u0648\u0633\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"],tD={abbr:"fa",months:Xl,monthsShort:Xl,weekdays:"\u06CC\u06A9\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647 \u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C \u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06CC\u06A9\u0634\u0646\u0628\u0647_\u062F\u0648\u200C\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u200C\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06CC_\u062F_\u0633_\u0686_\u067E_\u062C_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200FM/\u200FYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM(t){return t==="\u0645"},meridiem(t,i,e){return t<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u062F\u0631 \u0633\u0627\u0639\u062A] LT",nextDay:"[\u0641\u0631\u062F\u0627 \u062F\u0631 \u0633\u0627\u0639\u062A] LT",nextWeek:"dddd [\u062F\u0631 \u0633\u0627\u0639\u062A] LT",lastDay:"[\u062F\u06CC\u0631\u0648\u0632 \u062F\u0631 \u0633\u0627\u0639\u062A] LT",lastWeek:"dddd [\u062F\u0631 \u0633\u0627\u0639\u062A] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062F %s",past:"\u067E\u06CC\u0634 %s",s:lt("s"),ss:lt("s"),m:lt("m"),mm:lt("m"),h:lt("h"),hh:lt("h"),d:lt("d"),dd:lt("d"),M:lt("M"),MM:lt("M"),y:lt("y"),yy:lt("y")},preparse(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(i){return C0[i]}).replace(/Ø/g,",")},postformat(t){return t.replace(/\d/g,function(i){return g0[i]}).replace(/,/g,"\u060C")},week:{dow:6,doy:80}};
5var an=class extends kt{constructor(i,e,n){super(i),e.pipe(kr(wr)).pipe(Ir((m,h)=>h?n(m,h):m,i)).subscribe(m=>this.next(m))}},rn=class t extends ra{constructor(i,e,n){super(),this._dispatcher=i,this._reducer=e,this.source=n}select(i){return(this.source?.pipe(Tt(i))||new ra().pipe(Tt(i))).pipe(hn())}lift(i){let e=new t(this._dispatcher,this._reducer,this);return e.operator=i,e}dispatch(i){this._dispatcher.next(i)}next(i){this._dispatcher.next(i)}error(i){this._dispatcher.error(i)}complete(){}};function b0(t,i){t&1&&(L(0,"td"),c(1,"\xA0\xA0\xA0"),E())}function v0(t,i){if(t&1){let e=D();L(0,"td")(1,"a",1),ae("click",function(){p(e);let o=d();return f(o.changeMinutes(o.minuteStep()))}),Ye(2,"span",2),E()()}if(t&2){let e=d();r(),S("disabled",!e.canIncrementMinutes||!e.isEditable)}}function D0(t,i){t&1&&(L(0,"td"),c(1,"\xA0"),E())}function x0(t,i){if(t&1){let e=D();L(0,"td")(1,"a",1),ae("click",function(){p(e);let o=d();return f(o.changeSeconds(o.secondsStep()))}),Ye(2,"span",2),E()()}if(t&2){let e=d();r(),S("disabled",!e.canIncrementSeconds||!e.isEditable)}}function M0(t,i){t&1&&(L(0,"td"),c(1,"\xA0\xA0\xA0"),E())}function w0(t,i){t&1&&Ye(0,"td")}function S0(t,i){t&1&&(L(0,"td"),c(1,"\xA0:\xA0"),E())}function k0(t,i){if(t&1){let e=D();L(0,"td",3)(1,"input",4),ae("wheel",function(o){p(e);let a=d();return a.prevDef(o),f(a.changeMinutes(a.minuteStep()*a.wheelSign(o),"wheel"))})("keydown.ArrowUp",function(){p(e);let o=d();return f(o.changeMinutes(o.minuteStep(),"key"))})("keydown.ArrowDown",function(){p(e);let o=d();return f(o.changeMinutes(-o.minuteStep(),"key"))})("change",function(o){p(e);let a=d();return f(a.updateMinutes(o.target))}),E()()}if(t&2){let e=d();S("has-error",e.invalidMinutes),r(),S("is-invalid",e.invalidMinutes),me("placeholder",e.minutesPlaceholder())("readOnly",e.readonlyInput())("disabled",e.disabled)("value",e.minutes),Oe("aria-label",e.labelMinutes)}}function T0(t,i){t&1&&(L(0,"td"),c(1,"\xA0:\xA0"),E())}function P0(t,i){if(t&1){let e=D();L(0,"td",3)(1,"input",4),ae("wheel",function(o){p(e);let a=d();return a.prevDef(o),f(a.changeSeconds(a.secondsStep()*a.wheelSign(o),"wheel"))})("keydown.ArrowUp",function(){p(e);let o=d();return f(o.changeSeconds(o.secondsStep(),"key"))})("keydown.ArrowDown",function(){p(e);let o=d();return f(o.changeSeconds(-o.secondsStep(),"key"))})("change",function(o){p(e);let a=d();return f(a.updateSeconds(o.target))}),E()()}if(t&2){let e=d();S("has-error",e.invalidSeconds),r(),S("is-invalid",e.invalidSeconds),me("placeholder",e.secondsPlaceholder())("readOnly",e.readonlyInput())("disabled",e.disabled)("value",e.seconds),Oe("aria-label",e.labelSeconds)}}function E0(t,i){t&1&&(L(0,"td"),c(1,"\xA0\xA0\xA0"),E())}function L0(t,i){if(t&1){let e=D();L(0,"td")(1,"button",7),ae("click",function(){p(e);let o=d();return f(o.toggleMeridian())}),c(2),E()()}if(t&2){let e=d();r(),S("disabled",!e.isEditable||!e.canToggleMeridian),me("disabled",!e.isEditable||!e.canToggleMeridian),r(),M("",e.meridian," ")}}function I0(t,i){t&1&&(L(0,"td"),c(1,"\xA0\xA0\xA0"),E())}function Y0(t,i){if(t&1){let e=D();L(0,"td")(1,"a",1),ae("click",function(){p(e);let o=d();return f(o.changeMinutes(-o.minuteStep()))}),Ye(2,"span",6),E()()}if(t&2){let e=d();r(),S("disabled",!e.canDecrementMinutes||!e.isEditable)}}function V0(t,i){t&1&&(L(0,"td"),c(1,"\xA0"),E())}function A0(t,i){if(t&1){let e=D();L(0,"td")(1,"a",1),ae("click",function(){p(e);let o=d();return f(o.changeSeconds(-o.secondsStep()))}),Ye(2,"span",6),E()()}if(t&2){let e=d();r(),S("disabled",!e.canDecrementSeconds||!e.isEditable)}}function O0(t,i){t&1&&(L(0,"td"),c(1,"\xA0\xA0\xA0"),E())}function R0(t,i){t&1&&Ye(0,"td")}var Xt=(()=>{class t{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(e){return{type:t.WRITE_VALUE,payload:e}}changeHours(e){return{type:t.CHANGE_HOURS,payload:e}}changeMinutes(e){return{type:t.CHANGE_MINUTES,payload:e}}changeSeconds(e){return{type:t.CHANGE_SECONDS,payload:e}}setTime(e){return{type:t.SET_TIME_UNIT,payload:e}}updateControls(e){return{type:t.UPDATE_CONTROLS,payload:e}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),F0=10,H0=24,Ed=12,B0=60,j0=60;function sr(t){return!t||t instanceof Date&&isNaN(t.getHours())?!1:typeof t=="string"?sr(new Date(t)):!0}function ar(t,i){return!(t.min&&i<t.min||t.max&&i>t.max)}function sn(t){return typeof t>"u"?NaN:typeof t=="number"?t:parseInt(t,F0)}function Ld(t,i=!1){let e=sn(t);return isNaN(e)||e<0||e>(i?Ed:H0)?NaN:e}function Id(t){let i=sn(t);return isNaN(i)||i<0||i>B0?NaN:i}function Yd(t){let i=sn(t);return isNaN(i)||i<0||i>j0?NaN:i}function wd(t){return typeof t=="string"?new Date(t):t}function dt(t,i){if(!t)return dt(Go(new Date,0,0,0),i);if(!i)return t;let e=t.getHours(),n=t.getMinutes(),o=t.getSeconds();return i.hour&&(e=e+sn(i.hour)),i.minute&&(n=n+sn(i.minute)),i.seconds&&(o=o+sn(i.seconds)),Go(t,e,n,o)}function Vd(t,i){let e=Ld(i.hour),n=Id(i.minute),o=Yd(i.seconds)||0;return i.isPM&&e!==12&&(e+=Ed),t?isNaN(e)||isNaN(n)?t:Go(t,e,n,o):!isNaN(e)&&!isNaN(n)?Go(new Date,e,n,o):t}function Go(t,i,e,n){let o=new Date(t.getFullYear(),t.getMonth(),t.getDate(),i,e,n,t.getMilliseconds());return o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()),o.setDate(t.getDate()),o}function rr(t){let i=t.toString();return i.length>1?i:`0${i}`}function Ad(t,i){return!isNaN(Ld(t,i))}function Od(t){return!isNaN(Id(t))}function Rd(t){return!isNaN(Yd(t))}function N0(t,i,e){let n=Vd(new Date,t);return!(!n||i&&n>i||e&&n<e)}function W0(t,i,e){return t.length===0||i.length===0||e.length===0}function Sd(t,i="0",e="0",n){return Ad(t,n)&&Od(i)&&Rd(e)}function zo(t,i){return!(t.readonlyInput||t.disabled||i&&(i.source==="wheel"&&!t.mousewheel||i.source==="
5key"&&!t.arrowkeys))}function U0(t,i){return!(!t.step||t.step>0&&!i.canIncrementHours||t.step<0&&!i.canDecrementHours)}function q0(t,i){return!(!t.step||t.step>0&&!i.canIncrementMinutes||t.step<0&&!i.canDecrementMinutes)}function $0(t,i){return!(!t.step||t.step>0&&!i.canIncrementSeconds||t.step<0&&!i.canDecrementSeconds)}function kd(t){let{hourStep:i,minuteStep:e,secondsStep:n,readonlyInput:o,disabled:a,mousewheel:m,arrowkeys:h,showSpinners:b,showMeridian:k,showSeconds:V,meridians:Z,min:ve,max:ii}=t;return{hourStep:i,minuteStep:e,secondsStep:n,readonlyInput:o,disabled:a,mousewheel:m,arrowkeys:h,showSpinners:b,showMeridian:k,showSeconds:V,meridians:Z,min:ve,max:ii}}function z0(t,i){let{min:o,max:a,hourStep:m,minuteStep:h,secondsStep:b,showSeconds:k}=i,V={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!t)return V;if(a){let Z=dt(t,{hour:m});if(V.canIncrementHours=a>Z&&t.getHours()+m<24,!V.canIncrementHours){let ve=dt(t,{minute:h});V.canIncrementMinutes=k?a>ve:a>=ve}if(!V.canIncrementMinutes){let ve=dt(t,{seconds:b});V.canIncrementSeconds=a>=ve}t.getHours()<12&&(V.canToggleMeridian=dt(t,{hour:12})<a)}if(o){let Z=dt(t,{hour:-m});if(V.canDecrementHours=o<Z,!V.canDecrementHours){let ve=dt(t,{minute:-h});V.canDecrementMinutes=k?o<ve:o<=ve}if(!V.canDecrementMinutes){let ve=dt(t,{seconds:-b});V.canDecrementSeconds=o<=ve}t.getHours()>=12&&(V.canToggleMeridian=dt(t,{hour:-12})>o)}return V}var Fd=(()=>{class t{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(n){return new(n||t)}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Hd={value:void 0,config:new Fd,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function Td(t=Hd,i){switch(i.type){case Xt.WRITE_VALUE:return Object.assign({},t,{value:i.payload});case Xt.CHANGE_HOURS:{if(!zo(t.config,i.payload)||!U0(i.payload,t.controls))return t;let e=dt(t.value,{hour:i.payload.step});return(t.config.max||t.config.min)&&!ar(t.config,e)?t:Object.assign({},t,{value:e})}case Xt.CHANGE_MINUTES:{if(!zo(t.config,i.payload)||!q0(i.payload,t.controls))return t;let e=dt(t.value,{minute:i.payload.step});return(t.config.max||t.config.min)&&!ar(t.config,e)?t:Object.assign({},t,{value:e})}case Xt.CHANGE_SECONDS:{if(!zo(t.config,i.payload)||!$0(i.payload,t.controls))return t;let e=dt(t.value,{seconds:i.payload.step});return(t.config.max||t.config.min)&&!ar(t.config,e)?t:Object.assign({},t,{value:e})}case Xt.SET_TIME_UNIT:{if(!zo(t.config))return t;let e=Vd(t.value,i.payload);return Object.assign({},t,{value:e})}case Xt.UPDATE_CONTROLS:{let e=z0(t.value,i.payload),n={value:t.value,config:i.payload,controls:e};return t.config.showMeridian!==n.config.showMeridian&&t.value&&(n.value=new Date(t.value)),Object.assign({},t,n)}default:return t}}var Pd=(()=>{class t extends rn{constructor(){let e=new kt({type:"[mini-ngrx] dispatcher init"}),n=new an(Hd,e,Td);super(e,Td,n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),G0={provide:yn,useExisting:ni(()=>ln),multi:!0},ln=(()=>{class t{get disabled(){return this.disabledInput()||this._cvaDisabled()}set disabled(e){this._cvaDisabled.set(e)}getComponentState(){return{hourStep:this.hourStep(),minuteStep:this.minuteStep(),secondsStep:this.secondsStep(),readonlyInput:this.readonlyInput(),disabled:this.disabled,mousewheel:this.mousewheel(),arrowkeys:this.arrowkeys(),showSpinners:this.showSpinners(),showMeridian:this.showMeridian(),showSeconds:this.showSeconds(),meridians:this.meridians(),min:this.min(),max:this.max()}}constructor(e,n,o,a){this._config=e,this._cd=n,this._store=o,this._timepickerActions=a,this.hourStep=be(this._config.hourStep),this.minuteStep=be(this._config.minuteStep),this.secondsStep=be(this._config.secondsStep),this.readonlyInput=be(this._config.readonlyInput),this.disabledInput=be(this._config.disabled,{alias:"disabled"}),this.mousewheel=be(this._config.mousewheel),this.arrowkeys=be(this._config.arrowkeys),this.showSpinners=be(this._config.showSpinners
5),this.showMeridian=be(this._config.showMeridian),this.showMinutes=be(this._config.showMinutes),this.showSeconds=be(this._config.showSeconds),this.meridians=be(this._config.meridians),this.min=be(this._config.min),this.max=be(this._config.max),this.hoursPlaceholder=be(this._config.hoursPlaceholder),this.minutesPlaceholder=be(this._config.minutesPlaceholder),this.secondsPlaceholder=be(this._config.secondsPlaceholder),this.isValid=ua(),this.meridianChange=ua(),this.hours="",this.minutes="",this.seconds="",this.meridian="",this._cvaDisabled=Yr(!1),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=e,Vr(()=>{this._store.dispatch(this._timepickerActions.updateControls(kd(this.getComponentState())))}),this.timepickerSub=o.select(m=>m.value).subscribe(m=>{this._renderTime(m),this.onChange(m),this._store.dispatch(this._timepickerActions.updateControls(kd(this.getComponentState())))}),o.select(m=>m.controls).subscribe(m=>{let h=Sd(this.hours,this.minutes,this.seconds,this.isPM()),b=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||h;this.isValid.emit(b),Object.assign(this,m),n.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(e){e.preventDefault()}wheelSign(e){return Math.sign(e.deltaY||0)*-1}changeHours(e,n=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:e,source:n}))}changeMinutes(e,n=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:e,source:n}))}changeSeconds(e,n=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:e,source:n}))}updateHours(e){this.resetValidation(),this.hours=e.value;let n=Ad(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||n)){this.invalidHours=!0,this.isValid.emit(!1),this.onChange(null);return}this._updateTime()}updateMinutes(e){this.resetValidation(),this.minutes=e.value;let n=Od(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||n)){this.invalidMinutes=!0,this.isValid.emit(!1),this.onChange(null);return}this._updateTime()}updateSeconds(e){this.resetValidation(),this.seconds=e.value;let n=Rd(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||n)){this.invalidSeconds=!0,this.isValid.emit(!1),this.onChange(null);return}this._updateTime()}isValidLimit(){return N0({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()},this.max(),this.min())}isOneOfDatesIsEmpty(){return W0(this.hours,this.minutes,this.seconds)}_updateTime(){let e=this.showSeconds()?this.seconds:void 0,n=this.showMinutes()?this.minutes:void 0,o=Sd(this.hours,n,e,this.isPM());if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||o)){this.isValid.emit(!1),this.onChange(null);return}this._store.dispatch(this._timepickerActions.setTime({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()}))}toggleMeridian(){if(!this.showMeridian()||!this.isEditable)return;this._store.dispatch(this._timepickerActions.changeHours({step:12,source:""}))}writeValue(e){sr(e)?(this.resetValidation(),this._store.dispatch(this._timepickerActions.writeValue(wd(e)))):e==null&&this._store.dispatch(this._timepickerActions.writeValue())}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._cvaDisabled.set(e),this._cd.markForCheck()}ngOnDestroy(){this.timepickerSub?.unsubscribe()}_renderTime(e){if(!e||!sr(e)){this.hours="",this.minutes="",this.seconds="",this.meridian=this.meridians()[0],this.meridianChange.emit(this.meridian);return}let n=wd(e);if(!n)return;let o=12,a=n.getHours();this.showMeridian()&&(this.meridian=this.meridians()[a>=o?1:0],this.meridianChange.emit(this.meridian),a=a%o,a===0&&(a=o)),this.hours=rr(a),this.minutes=rr(n.getMinutes()),this.seconds=rr(n.getUTCSeconds())}static{this.\u0275fac=function(n){return new(n||t)(y(Fd),y(Ue),y(Pd),y(Xt))}}static{this.\u0275cmp=Y({type:t,selectors:[["timepicker"]],inputs:{hourStep:[1,"hourStep"],minuteStep:[1,"minuteStep"],secondsStep:[1,"secondsStep"],readonlyInput:[1,"readonlyInput"],disabledInput
5:[1,"disabled","disabledInput"],mousewheel:[1,"mousewheel"],arrowkeys:[1,"arrowkeys"],showSpinners:[1,"showSpinners"],showMeridian:[1,"showMeridian"],showMinutes:[1,"showMinutes"],showSeconds:[1,"showSeconds"],meridians:[1,"meridians"],min:[1,"min"],max:[1,"max"],hoursPlaceholder:[1,"hoursPlaceholder"],minutesPlaceholder:[1,"minutesPlaceholder"],secondsPlaceholder:[1,"secondsPlaceholder"]},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[De([G0,Pd,Xt])],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"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"wheel","keydown.ArrowUp","keydown.ArrowDown","change","placeholder","readonly","disabled","value"],[1,"form-group","mb-3",3,"has-error"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"click","disabled"]],template:function(n,o){n&1&&(L(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),ae("click",function(){return o.changeHours(o.hourStep())}),Ye(5,"span",2),E()(),u(6,b0,2,0,"td"),u(7,v0,3,2,"td"),u(8,D0,2,0,"td"),u(9,x0,3,2,"td"),u(10,M0,2,0,"td"),u(11,w0,1,0,"td"),E(),L(12,"tr")(13,"td",3)(14,"input",4),ae("wheel",function(m){return o.prevDef(m),o.changeHours(o.hourStep()*o.wheelSign(m),"wheel")})("keydown.ArrowUp",function(){return o.changeHours(o.hourStep(),"key")})("keydown.ArrowDown",function(){return o.changeHours(-o.hourStep(),"key")})("change",function(m){return o.updateHours(m.target)}),E()(),u(15,S0,2,0,"td"),u(16,k0,2,9,"td",5),u(17,T0,2,0,"td"),u(18,P0,2,9,"td",5),u(19,E0,2,0,"td"),u(20,L0,3,4,"td"),E(),L(21,"tr",0)(22,"td")(23,"a",1),ae("click",function(){return o.changeHours(-o.hourStep())}),Ye(24,"span",6),E()(),u(25,I0,2,0,"td"),u(26,Y0,3,2,"td"),u(27,V0,2,0,"td"),u(28,A0,3,2,"td"),u(29,O0,2,0,"td"),u(30,R0,1,0,"td"),E()()()),n&2&&(r(2),me("hidden",!o.showSpinners()),r(2),S("disabled",!o.canIncrementHours||!o.isEditable),r(2),_(o.showMinutes()?6:-1),r(),_(o.showMinutes()?7:-1),r(),_(o.showSeconds()?8:-1),r(),_(o.showSeconds()?9:-1),r(),_(o.showMeridian()?10:-1),r(),_(o.showMeridian()?11:-1),r(2),S("has-error",o.invalidHours),r(),S("is-invalid",o.invalidHours),me("placeholder",o.hoursPlaceholder())("readOnly",o.readonlyInput())("disabled",o.disabled)("value",o.hours),Oe("aria-label",o.labelHours),r(),_(o.showMinutes()?15:-1),r(),_(o.showMinutes()?16:-1),r(),_(o.showSeconds()?17:-1),r(),_(o.showSeconds()?18:-1),r(),_(o.showMeridian()?19:-1),r(),_(o.showMeridian()?20:-1),r(),me("hidden",!o.showSpinners()),r(2),S("disabled",!o.canDecrementHours||!o.isEditable),r(2),_(o.showMinutes()?25:-1),r(),_(o.showMinutes()?26:-1),r(),_(o.showSeconds()?27:-1),r(),_(o.showSeconds()?28:-1),r(),_(o.showMeridian()?29:-1),r(),_(o.showMeridian()?30:-1))},styles:[`.bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{-webkit-transform:rotate(45deg);transform:rotate(45deg);top:2px}.bs-chevron-down{-webkit-transform:rotate(-135deg);transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem} 6`],encapsulation:2,changeDetection:0})}}return t})(),dn=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=Je({type:t})}static{this.\u0275inj=Qe({})}}return t})();function J0(t,i){if(t&1){let e=D();L(0,"button",2),ae("click",function(){let o=p(e).$implicit,a=d();return f(a.selectFromRanges(o))}),c(1),E()}if(t&2){let e=i.$implicit,n=d();S("selected",n.compareRanges(e)),r(),M(" ",e.label," ")}}function K0(t,i){if(t&1){let e=D();c(0," \u200B "),L(1,"button",1),ae("click",function(){p(e);let o=d();return f(o.view("month"))}),L(2,"span"),c(3),E()()}if(t&2){let e=d();r(),me("disabled",e.isDisabled),r(2),I(e.calendar.monthTitle)}}var X0=[[["bs-datepicker-navigation-view"]],"*"],Z0=["bs-datepicker-navigation-view","*"];function ef(t,i){t&1&&x(0,"bs-current-date",0)}function tf(t,i){t&1&&x(0,"bs-timepicker")}function nf(t,i){if(t&1){let e=D();l(0,"td",3),C("click",function(){let o=p(e).$implicit,a=d(2);return f(a.viewYear(o))})("mouseenter",function(){let o=p(e).$implicit,a=d(2);return f(a.hoverYear(o,!0))})("mouseleave",function(){let o=p(e).$implicit,a=d(2);return f(a.hoverYear(o,!1))}),l(1,"span"),c(2),s()()}if(t&2){let e=i.$implicit;S("disabled",e.isDisabled)("is-highlighted",e.isHovered),r(),S("selected",e.isSelected),r(),I(e.label)}}function of(t,i){if(t&1&&(l(0,"tr"),R(1,nf,3,7,"td",2,J),s()),t&2){let e=i.$implicit;r(),F(e)}}function af(t,i){if(t&1){let e=D();l(0,"td",3),C("click",function(){let o=p(e).$implicit,a=d(2);return f(a.viewMonth(o))})("mouseenter",function(){let o=p(e).$implicit,a=d(2);return f(a.hoverMonth(o,!0))})("mouseleave",function(){let o=p(e).$implicit,a=d(2);return f(a.hoverMonth(o,!1))}),l(1,"span"),c(2),s()()}if(t&2){let e=i.$implicit;S("disabled",e.isDisabled)("is-highlighted",e.isHovered),r(),S("selected",e.isSelected),r(),I(e.label)}}function rf(t,i){if(t&1&&(l(0,"tr"),R(1,af,3,7,"td",2,J),s()),t&2){let e=i.$implicit;r(),F(e)}}var sf=["bsDatepickerDayDecorator",""];function lf(t,i){t&1&&x(0,"th")}function df(t,i){if(t&1&&(l(0,"th",2),c(1),s()),t&2){let e=i.$index,n=d();r(),M("",n.calendar.weekdays[e]," ")}}function cf(t,i){if(t&1){let e=D();l(0,"span",6),C("click",function(){p(e);let o=d(2).$implicit,a=d();return f(a.selectWeek(o))}),c(1),s()}if(t&2){let e=d(2).$index,n=d();
6r(),I(n.calendar.weekNumbers[e])}}function mf(t,i){if(t&1){let e=D();l(0,"span",7),C("click",function(){p(e);let o=d(2).$implicit,a=d();return f(a.selectWeek(o))})("mouseenter",function(){p(e);let o=d(2).$implicit,a=d();return f(a.weekHoverHandler(o,!0))})("mouseleave",function(){p(e);let o=d(2).$implicit,a=d();return f(a.weekHoverHandler(o,!1))}),c(1),s()}if(t&2){let e=d(2).$index,n=d();r(),I(n.calendar.weekNumbers[e])}}function uf(t,i){if(t&1&&(l(0,"td",5),u(1,cf,2,1,"span"),u(2,mf,2,1,"span"),s()),t&2){let e=d(2);S("active-week",e.isWeekHovered),r(),_(e.isiOS?1:-1),r(),_(e.isiOS?-1:2)}}function _f(t,i){if(t&1){let e=D();l(0,"span",10),C("click",function(){p(e);let o=d().$implicit,a=d(2);return f(a.selectDay(o))})("mouseenter",function(){p(e);let o=d().$implicit,a=d(2);return f(a.hoverDay(o,!0))})("mouseleave",function(){p(e);let o=d().$implicit,a=d(2);return f(a.hoverDay(o,!1))}),c(1),s()}if(t&2){let e=d().$implicit;g("tooltip",G(e.tooltipText))("day",e),r(),M("",e.label," 3")}}function pf(t,i){if(t&1){let e=D();l(0,"span",11),C("click",function(){p(e);let o=d().$implicit,a=d(2);return f(a.selectDay(o))})("mouseenter",function(){p(e);let o=d().$implicit,a=d(2);return f(a.hoverDay(o,!0))})("mouseleave",function(){p(e);let o=d().$implicit,a=d(2);return f(a.hoverDay(o,!1))}),c(1),s()}if(t&2){let e=d().$implicit;g("day",e),r(),M("",e.label," 2")}}function ff(t,i){if(t&1){let e=D();l(0,"span",12),C("click",function(){p(e);let o=d().$implicit,a=d(2);return f(a.selectDay(o))}),c(1),s()}if(t&2){let e=d().$implicit;g("day",e),r(),M("",e.label," 1")}}function hf(t,i){if(t&1&&(l(0,"td",4),u(1,_f,2,4,"span",8),u(2,pf,2,2,"span",9),u(3,ff,2,2,"span",9),s()),t&2){let e=d(2);r(),_(!e.isiOS&&e.isShowTooltip?1:-1),r(),_(!e.isiOS&&!e.isShowTooltip?2:-1),r(),_(e.isiOS?3:-1)}}function gf(t,i){if(t&1&&(l(0,"tr"),u(1,uf,3,4,"td",3),R(2,hf,4,3,"td",4,J),s()),t&2){let e=i.$implicit,n=d();r(),_(n.options&&n.options.showWeekNumbers?1:-1),r(),F(e.days)}}var Ud=["startTP"];function Cf(t,i){if(t&1){let e=D();l(0,"bs-days-calendar-view",10),w(1,"async"),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.dayHoverHandler(o))})("onHoverWeek",function(o){p(e);let a=d(3);return f(a.weekHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.daySelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)("isDisabled",n.isDatePickerDisabled)("options",O(1,5,n.options$))}}function yf(t,i){if(t&1&&x(0,"timepicker",11,1),t&2){let e=d(4);g("disabled",e.isDatePickerDisabled)}}function bf(t,i){if(t&1&&(l(0,"div",9),x(1,"timepicker",11,0),u(3,yf,2,1,"timepicker",11),s()),t&2){let e=d(3);r(),g("disabled",e.isDatePickerDisabled),r(2),_(e.isRangePicker?3:-1)}}function vf(t,i){if(t&1&&(l(0,"div",5),R(1,Cf,2,7,"bs-days-calendar-view",8,J),w(3,"async"),s(),u(4,bf,4,2,"div",9)),t&2){let e=d(2);r(),F(O(3,1,e.daysCalendar$)),r(3),_(e.withTimepicker?4:-1)}}function Df(t,i){if(t&1){let e=D();l(0,"bs-month-calendar-view",13),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.monthHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.monthSelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)}}function xf(t,i){if(t&1&&(l(0,"div",5),R(1,Df,1,3,"bs-month-calendar-view",12,J),w(3,"async"),s()),t&2){let e=d(2);r(),F(O(3,0,e.monthsCalendar))}}function Mf(t,i){if(t&1){let e=D();l(0,"bs-years-calendar-view",13),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.yearHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.yearSelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)}}function wf(t,i){if(t&1&&(l(0,"div",5),R(1,Mf,1,3,"bs-years-calendar-view",12,J),w(3,"async"),s()),t&2){let e=d(2);r(),F(O(3,0,e.yearsCalendar))}}function Sf(t,i){t&1&&(l(0,"div",6)(1,"button",14),c(2,"Apply"),s(),l(3,"button",15),c(4,"Cancel"),s()())}function kf(t,i){if(t&1){let e=D();l(0,"div",18)(1,"button",19),C("click",function(){p(e);let o=d(3);return f(o.setToday())}),c(2),s()()}if(t&2){let e=d(3);S("today-left",e.todayPos==="left")("today-right",e.todayPos==="right")("today-center",e.todayPos==="center"),r(2),I(e.todayBtnLbl)}}function Tf(t,i){if(t&1){let e=D();l(0,"div",20)(1,"button",19),C("click",function(){p(e);let o=d(3);return f(o.clearDate())}),c(2),s()()}if(t&2){let e=d(3);S("clear-left",e.clearPos==="left")("clear-right",e.clearPos==="right")("clear-center",e.clearPos==="center"),r(2),I(e.clearBtnLbl)}}function Pf(t,i){if(t&1&&(l(0,"div",6),u(1,kf,3,7,"div",16),u(2,Tf,3,7,"div",17),s()),t&2){let e=d(2);r(),_(e.showTodayBtn?1:-1),r(),_(e.showClearBtn?2:-1)}}function Ef(t,i){if(t&1){let e=D();l(0,"div",7)(1,"bs-custom-date-view",21),C("onSelect",function(o){p(e);let a=d(2);return f(a.setRangeOnCalendar(o))}),s()()}if(t&2){let e=d(2);r(),g("selectedRange",e.chosenRange)("ranges",e.customRanges)("customRangeLabel",e.customRangeBtnLbl)}}function Lf(t,i){if(t&1&&(l(0,"div",2)(1,"div",3)(2,"div",4),u(3,vf,5,3),w(4,"async"),Cn(5,xf,4,2,"div",5)(6,wf,4,2,"div",5),s(),u(7,Sf,5,0,"div",6),u(8,Pf,3,2,"div",6),s(),u(9,Ef,2,3,"div",7),s()),t&2){let e,n=d();g("ngClass",n.containerClass),r(3),_((e=O(4,5,n.viewMode))==="day"?3:e==="month"?5:e==="year"?6:-1),r(4),_(-1),r(),_(n.showTodayBtn||n.showClearBtn?8:-1),r(),_(n.customRanges&&n.customRanges.length>0?9:-1)}}function If(t,i){if(t&1){let e=D();l(0,"bs-days-calendar-view",10),w(1,"async"),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);
6return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.dayHoverHandler(o))})("onHoverWeek",function(o){p(e);let a=d(3);return f(a.weekHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.daySelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)("isDisabled",n.isDatePickerDisabled)("options",O(1,5,n.options$))}}function Yf(t,i){if(t&1&&x(0,"timepicker",11,1),t&2){let e=d(4);g("disabled",e.isDatePickerDisabled)}}function Vf(t,i){if(t&1&&(l(0,"div",9),x(1,"timepicker",11,0),u(3,Yf,2,1,"timepicker",11),s()),t&2){let e=d(3);r(),g("disabled",e.isDatePickerDisabled),r(2),_(e.isRangePicker?3:-1)}}function Af(t,i){if(t&1&&(l(0,"div",5),R(1,If,2,7,"bs-days-calendar-view",8,J),w(3,"async"),s(),u(4,Vf,4,2,"div",9)),t&2){let e=d(2);r(),F(O(3,1,e.daysCalendar$)),r(3),_(e.withTimepicker?4:-1)}}function Of(t,i){if(t&1){let e=D();l(0,"bs-month-calendar-view",13),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.monthHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.monthSelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)}}function Rf(t,i){if(t&1&&(l(0,"div",5),R(1,Of,1,3,"bs-month-calendar-view",12,J),w(3,"async"),s()),t&2){let e=d(2);r(),F(O(3,0,e.monthsCalendar))}}function Ff(t,i){if(t&1){let e=D();l(0,"bs-years-calendar-view",13),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.yearHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.yearSelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)}}function Hf(t,i){if(t&1&&(l(0,"div",5),R(1,Ff,1,3,"bs-years-calendar-view",12,J),w(3,"async"),s()),t&2){let e=d(2);r(),F(O(3,0,e.yearsCalendar))}}function Bf(t,i){t&1&&(l(0,"div",6)(1,"button",14),c(2,"Apply"),s(),l(3,"button",15),c(4,"Cancel"),s()())}function jf(t,i){if(t&1){let e=D();l(0,"div",18)(1,"button",19),C("click",function(){p(e);let o=d(3);return f(o.setToday())}),c(2),s()()}if(t&2){let e=d(3);S("today-left",e.todayPos==="left")("today-right",e.todayPos==="right")("today-center",e.todayPos==="center"),r(2),I(e.todayBtnLbl)}}function Nf(t,i){if(t&1){let e=D();l(0,"div",20)(1,"button",19),C("click",function(){p(e);let o=d(3);return f(o.clearDate())}),c(2),s()()}if(t&2){let e=d(3);S("clear-left",e.clearPos==="left")("clear-right",e.clearPos==="right")("clear-center",e.clearPos==="center"),r(2),I(e.clearBtnLbl)}}function Wf(t,i){if(t&1&&(l(0,"div",6),u(1,jf,3,7,"div",16),u(2,Nf,3,7,"div",17),s()),t&2){let e=d(2);r(),_(e.showTodayBtn?1:-1),r(),_(e.showClearBtn?2:-1)}}function Uf(t,i){if(t&1){let e=D();l(0,"div",7)(1,"bs-custom-date-view",21),C("onSelect",function(o){p(e);let a=d(2);return f(a.setRangeOnCalendar(o))}),s()()}if(t&2){let e=d(2);r(),g("selectedRange",e.chosenRange)("ranges",e.customRanges)("customRangeLabel",e.customRangeBtnLbl)}}function qf(t,i){if(t&1&&(l(0,"div",2)(1,"div",3)(2,"div",4),u(3,Af,5,3),w(4,"async"),Cn(5,Rf,4,2,"div",5)(6,Hf,4,2,"div",5),s(),u(7,Bf,5,0,"div",6),u(8,Wf,3,2,"div",6),s(),u(9,Uf,2,3,"div",7),s()),t&2){let e,n=d();g("ngClass",n.containerClass),r(3),_((e=O(4,5,n.viewMode))==="day"?3:e==="month"?5:e==="year"?6:-1),r(4),_(-1),r(),_(n.showTodayBtn||n.showClearBtn?8:-1),r(),_(n.customRanges&&n.customRanges.length>0?9:-1)}}var $f=["endTP"];function zf(t,i){if(t&1){let e=D();l(0,"bs-days-calendar-view",10),w(1,"async"),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.dayHoverHandler(o))})("onHoverWeek",function(o){p(e);let a=d(3);return f(a.weekHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.daySelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)("isDisabled",n.isDatePickerDisabled)("options",O(1,5,n.options$))}}function Gf(t,i){if(t&1&&x(0,"timepicker",11,1),t&2){let e=d(4);g("disabled",e.isDatePickerDisabled)}}function Qf(t,i){if(t&1&&(l(0,"div",9),x(1,"timepicker",11,0),u(3,Gf,2,1,"timepicker",11),s()),t&2){let e=d(3);r(),g("disabled",e.isDatePickerDisabled),r(2),_(e.isRangePicker?3:-1)}}function Jf(t,i){if(t&1&&(l(0,"div",5),R(1,zf,2,7,"bs-days-calendar-view",8,J),w(3,"async"),s(),u(4,Qf,4,2,"div",9)),t&2){let e=d(2);r(),F(O(3,1,e.daysCalendar$)),r(3),_(e.withTimepicker?4:-1)}}function Kf(t,i){if(t&1){let e=D();l(0,"bs-month-calendar-view",13),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);
6return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.monthHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.monthSelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)}}function Xf(t,i){if(t&1&&(l(0,"div",5),R(1,Kf,1,3,"bs-month-calendar-view",12,J),w(3,"async"),s()),t&2){let e=d(2);r(),F(O(3,0,e.monthsCalendar))}}function Zf(t,i){if(t&1){let e=D();l(0,"bs-years-calendar-view",13),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.yearHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.yearSelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)}}function eh(t,i){if(t&1&&(l(0,"div",5),R(1,Zf,1,3,"bs-years-calendar-view",12,J),w(3,"async"),s()),t&2){let e=d(2);r(),F(O(3,0,e.yearsCalendar))}}function th(t,i){t&1&&(l(0,"div",6)(1,"button",14),c(2,"Apply"),s(),l(3,"button",15),c(4,"Cancel"),s()())}function ih(t,i){if(t&1){let e=D();l(0,"div",18)(1,"button",19),C("click",function(){p(e);let o=d(3);return f(o.setToday())}),c(2),s()()}if(t&2){let e=d(3);S("today-left",e.todayPos==="left")("today-right",e.todayPos==="right")("today-center",e.todayPos==="center"),r(2),I(e.todayBtnLbl)}}function nh(t,i){if(t&1){let e=D();l(0,"div",20)(1,"button",19),C("click",function(){p(e);let o=d(3);return f(o.clearDate())}),c(2),s()()}if(t&2){let e=d(3);S("clear-left",e.clearPos==="left")("clear-right",e.clearPos==="right")("clear-center",e.clearPos==="center"),r(2),I(e.clearBtnLbl)}}function oh(t,i){if(t&1&&(l(0,"div",6),u(1,ih,3,7,"div",16),u(2,nh,3,7,"div",17),s()),t&2){let e=d(2);r(),_(e.showTodayBtn?1:-1),r(),_(e.showClearBtn?2:-1)}}function ah(t,i){if(t&1){let e=D();l(0,"div",7)(1,"bs-custom-date-view",21),C("onSelect",function(o){p(e);let a=d(2);return f(a.setRangeOnCalendar(o))}),s()()}if(t&2){let e=d(2);r(),g("selectedRange",e.chosenRange)("ranges",e.customRanges)("customRangeLabel",e.customRangeBtnLbl)}}function rh(t,i){if(t&1&&(l(0,"div",2)(1,"div",3)(2,"div",4),u(3,Jf,5,3),w(4,"async"),Cn(5,Xf,4,2,"div",5)(6,eh,4,2,"div",5),s(),u(7,th,5,0,"div",6),u(8,oh,3,2,"div",6),s(),u(9,ah,2,3,"div",7),s()),t&2){let e,n=d();g("ngClass",n.containerClass),r(3),_((e=O(4,5,n.viewMode))==="day"?3:e==="month"?5:e==="year"?6:-1),r(4),_(-1),r(),_(n.showTodayBtn||n.showClearBtn?8:-1),r(),_(n.customRanges&&n.customRanges.length>0?9:-1)}}function sh(t,i){if(t&1){let e=D();l(0,"bs-days-calendar-view",10),w(1,"async"),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.dayHoverHandler(o))})("onHoverWeek",function(o){p(e);let a=d(3);return f(a.weekHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.daySelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)("isDisabled",n.isDatePickerDisabled)("options",O(1,5,n.options$))}}function lh(t,i){if(t&1&&x(0,"timepicker",11,1),t&2){let e=d(4);g("disabled",e.isDatePickerDisabled)}}function dh(t,i){if(t&1&&(l(0,"div",9),x(1,"timepicker",11,0),u(3,lh,2,1,"timepicker",11),s()),t&2){let e=d(3);r(),g("disabled",e.isDatePickerDisabled),r(2),_(e.isRangePicker?3:-1)}}function ch(t,i){if(t&1&&(l(0,"div",5),R(1,sh,2,7,"bs-days-calendar-view",8,J),w(3,"async"),s(),u(4,dh,4,2,"div",9)),t&2){let e=d(2);r(),F(O(3,1,e.daysCalendar$)),r(3),_(e.withTimepicker?4:-1)}}function mh(t,i){if(t&1){let e=D();l(0,"bs-month-calendar-view",13),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.monthHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.monthSelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)}}function uh(t,i){if(t&1&&(l(0,"div",5),R(1,mh,1,3,"bs-month-calendar-view",12,J),w(3,"async"),s()),t&2){let e=d(2);r(),F(O(3,0,e.monthsCalendar))}}function _h(t,i){if(t&1){let e=D();l(0,"bs-years-calendar-view",13),C("onNavigate",function(o){p(e);let a=d(3);return f(a.navigateTo(o))})("onViewMode",function(o){p(e);let a=d(3);
6return f(a.setViewMode(o))})("onHover",function(o){p(e);let a=d(3);return f(a.yearHoverHandler(o))})("onSelect",function(o){p(e);let a=d(3);return f(a.yearSelectHandler(o))}),s()}if(t&2){let e=i.$implicit,n=d(3);S("bs-datepicker-multiple",n.multipleCalendars),g("calendar",e)}}function ph(t,i){if(t&1&&(l(0,"div",5),R(1,_h,1,3,"bs-years-calendar-view",12,J),w(3,"async"),s()),t&2){let e=d(2);r(),F(O(3,0,e.yearsCalendar))}}function fh(t,i){t&1&&(l(0,"div",6)(1,"button",14),c(2,"Apply"),s(),l(3,"button",15),c(4,"Cancel"),s()())}function hh(t,i){if(t&1){let e=D();l(0,"div",18)(1,"button",19),C("click",function(){p(e);let o=d(3);return f(o.setToday())}),c(2),s()()}if(t&2){let e=d(3);S("today-left",e.todayPos==="left")("today-right",e.todayPos==="right")("today-center",e.todayPos==="center"),r(2),I(e.todayBtnLbl)}}function gh(t,i){if(t&1){let e=D();l(0,"div",20)(1,"button",19),C("click",function(){p(e);let o=d(3);return f(o.clearDate())}),c(2),s()()}if(t&2){let e=d(3);S("clear-left",e.clearPos==="left")("clear-right",e.clearPos==="right")("clear-center",e.clearPos==="center"),r(2),I(e.clearBtnLbl)}}function Ch(t,i){if(t&1&&(l(0,"div",6),u(1,hh,3,7,"div",16),u(2,gh,3,7,"div",17),s()),t&2){let e=d(2);r(),_(e.showTodayBtn?1:-1),r(),_(e.showClearBtn?2:-1)}}function yh(t,i){if(t&1){let e=D();l(0,"div",7)(1,"bs-custom-date-view",21),C("onSelect",function(o){p(e);let a=d(2);return f(a.setRangeOnCalendar(o))}),s()()}if(t&2){let e=d(2);r(),g("selectedRange",e.chosenRange)("ranges",e.customRanges)("customRangeLabel",e.customRangeBtnLbl)}}function bh(t,i){if(t&1&&(l(0,"div",2)(1,"div",3)(2,"div",4),u(3,ch,5,3),w(4,"async"),Cn(5,uh,4,2,"div",5)(6,ph,4,2,"div",5),s(),u(7,fh,5,0,"div",6),u(8,Ch,3,2,"div",6),s(),u(9,yh,2,3,"div",7),s()),t&2){let e,n=d();g("ngClass",n.containerClass),r(3),_((e=O(4,5,n.viewMode))==="day"?3:e==="month"?5:e==="year"?6:-1),r(4),_(-1),r(),_(n.showTodayBtn||n.showClearBtn?8:-1),r(),_(n.customRanges&&n.customRanges.length>0?9:-1)}}var Ct=(()=>{class t{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(n){return new(n||t)}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ur=220,qd=`${ur}ms cubic-bezier(0, 0, 0.2, 1)`,Qo=class{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new fn,this.selectedTimeSub=new fn}set minDate(i){this._effects?.setMinDate(i)}set maxDate(i){this._effects?.setMaxDate(i)}set daysDisabled(i){this._effects?.setDaysDisabled(i)}set datesDisabled(i){this._effects?.setDatesDisabled(i)}set datesEnabled(i){this._effects?.setDatesEnabled(i)}set isDisabled(i){this._effects?.setDisabled(i)}set dateCustomClasses(i){this._effects?.setDateCustomClasses(i)}set dateTooltipTexts(i){this._effects?.setDateTooltipTexts(i)}set daysCalendar$(i){this._daysCalendar$=i,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(e=>{this.multipleCalendars=!!e&&e.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(i){}navigateTo(i){}dayHoverHandler(i){}weekHoverHandler(i){}monthHoverHandler(i){}yearHoverHandler(i){}timeSelectHandler(i,e){}daySelectHandler(i){}monthSelectHandler(i){}yearSelectHandler(i){}setRangeOnCalendar(i){}setToday(){}clearDate(){}_stopPropagation(i){i.stopPropagation()}},oe=(()=>{class t{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:t.CALCULATE}}format(){return{type:t.FORMAT}}
6flag(){return{type:t.FLAG}}select(e){return{type:t.SELECT,payload:e}}selectTime(e,n){return{type:t.SELECT_TIME,payload:{date:e,index:n}}}changeViewMode(e){return{type:t.CHANGE_VIEWMODE,payload:e}}navigateTo(e){return{type:t.NAVIGATE_TO,payload:e}}navigateStep(e){return{type:t.NAVIGATE_OFFSET,payload:e}}setOptions(e){return{type:t.SET_OPTIONS,payload:e}}selectRange(e){return{type:t.SELECT_RANGE,payload:e}}hoverDay(e){return{type:t.HOVER,payload:e.isHovered?e.cell.date:null}}minDate(e){return{type:t.SET_MIN_DATE,payload:e}}maxDate(e){return{type:t.SET_MAX_DATE,payload:e}}daysDisabled(e){return{type:t.SET_DAYSDISABLED,payload:e}}datesDisabled(e){return{type:t.SET_DATESDISABLED,payload:e}}datesEnabled(e){return{type:t.SET_DATESENABLED,payload:e}}isDisabled(e){return{type:t.SET_IS_DISABLED,payload:e}}setDateCustomClasses(e){return{type:t.SET_DATE_CUSTOM_CLASSES,payload:e}}setDateTooltipTexts(e){return{type:t.SET_DATE_TOOLTIP_TEXTS,payload:e}}setLocale(e){return{type:t.SET_LOCALE,payload:e}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),_r=(()=>{class t{constructor(){this._defaultLocale="en",this._locale=new kt(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(e){e!==this.currentLocale&&this._locale.next(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),ei=(()=>{class t{constructor(e,n){this._actions=e,this._localeService=n,this._subs=[]}init(e){return this._store=e,this}setValue(e){this._store?.dispatch(this._actions.select(e))}setRangeValue(e){this._store?.dispatch(this._actions.selectRange(e))}setMinDate(e){return this._store?.dispatch(this._actions.minDate(e)),this}setMaxDate(e){return this._store?.dispatch(this._actions.maxDate(e)),this}setDaysDisabled(e){return this._store?.dispatch(this._actions.daysDisabled(e)),this}setDatesDisabled(e){return this._store?.dispatch(this._actions.datesDisabled(e)),this}setDatesEnabled(e){return this._store?.dispatch(this._actions.datesEnabled(e)),this}setDisabled(e){return this._store?.dispatch(this._actions.isDisabled(e)),this}setDateCustomClasses(e){return this._store?.dispatch(this._actions.setDateCustomClasses(e)),this}setDateTooltipTexts(e){return this._store?.dispatch(this._actions.setDateTooltipTexts(e)),this}setOptions(e){let n=Object.assign({locale:this._localeService.currentLocale},e);return this._store?.dispatch(this._actions.setOptions(n)),this}setBindings(e){return this._store?(e.selectedTime=this._store.select(n=>n.selectedTime).pipe(ce(n=>!!n)),e.daysCalendar$=this._store.select(n=>n.flaggedMonths).pipe(ce(n=>!!n)),e.monthsCalendar=this._store.select(n=>n.flaggedMonthsCalendar).pipe(ce(n=>!!n)),e.yearsCalendar=this._store.select(n=>n.yearsCalendarFlagged).pipe(ce(n=>!!n)),e.viewMode=this._store.select(n=>n.view?.mode),e.options$=Me([this._store.select(n=>n.showWeekNumbers),this._store.select(n=>n.displayMonths)]).pipe(Tt(n=>({showWeekNumbers:n[0],displayMonths:n[1]}))),this):this}setEventHandlers(e){return e.setViewMode=n=>{this._store?.dispatch(this._actions.changeViewMode(n))},e.navigateTo=n=>{this._store?.dispatch(this._actions.navigateStep(n.step))},e.dayHoverHandler=n=>{let o=n.cell;o.isOtherMonth||o.isDisabled||(this._store?.dispatch(this._actions.hoverDay(n)),o.isHovered=n.isHovered)},e.monthHoverHandler=n=>{n.cell.isHovered=n.isHovered},e.yearHoverHandler=n=>{n.cell.isHovered=n.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(e=>e.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(e=>e.monthsModel).pipe(ce(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(e=>e.formattedMonths).pipe(ce(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.selectedDate).pipe(ce(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.selectedRange).pipe(ce(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.yearsCalendarModel).pipe(ce(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.hoveredDate).pipe(ce(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.dateCustomClasses).pipe(ce(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(e=>e.dateTooltipTexts).pipe(ce(e=>!!e)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(e=>this._store?.dispatch(this._actions.setLocale(e)))),this):this}destroy(){for(let e of this._subs)e.unsubscribe()}static{this.\u0275fac=function(n){return new(n||t)(mt(oe),mt(_r))}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),vh={width:7,height:6},Dh=1440*60*1e3;var xh={date:new Date,mode:"day"},$d=Object.assign(new Ct,{locale:"en",view:xh,selectedRange:[],selectedTime:[],monthViewOptions:vh});function Mh(t,i){if(nd(t,i.firstDayOfWeek))return t;let e=gt(t),n=wh(e,i.firstDayOfWeek);return Ce(t,{day:-n})}function wh(t,i){let e=Number(i);if(isNaN(e))return 0;if(e===0)return t;let n=t-e%7;return n<0?n+7:n}function cr(t,i,e){let n=i&&Kt(Vn(t,"month"),i,"day"),o=e&&Ot(wt(t,"month"),e,"day");return n||o||!1}function On(t,i,e){let n=i&&Kt(Vn(t,"year"),i,"day"),o=e&&Ot(wt(t,"year"),e,"day");return n||o||!1}function pr(t,i,e){return!i||!ee(i)||!i.length?!1:e&&e==="year"&&!i[0].getDate()?i.some(n=>An(t,n,"year")):i.some(n=>An(t,n,"date"))}function fr(t,i,e){return!i||!ee(i)||!i.length?!1:!i.some(n=>An(t,n,e||"date"))}function zd(t,i=0){let e=t&&t.yearsCalendarModel&&t.yearsCalendarModel[i];return e?.years[0]&&e.years[0][0]&&e.years[0][0].date}function Sh(t,i){return!t||!i||!t.length&&!t[0].value||t.forEach(e
6=>(!e||!e.value||e.value instanceof Date||!(e.value instanceof Array&&e.value.length)||(e.value=Qd(e.value,i)),t)),t}function Gd(t,i){return!t||!i||t instanceof Array&&!t.length||t instanceof Date?t:Qd(t,i)}function Qd(t,i){return t instanceof Array?t.map(n=>n&&(Ot(n,i,"date")&&(n=i),n)):t}function Bd(t){return t&&Jd(t)}function jd(t){return t?.length&&t.map(i=>i&&Jd(i)),t}function Jd(t){let i=new Date;return t.setMilliseconds(i.getMilliseconds()),t.setSeconds(i.getSeconds()),t.setMinutes(i.getMinutes()),t.setHours(i.getHours()),t}function hr(t,i){let e=t.initialDate,n=new Array(t.height);for(let o=0;o<t.height;o++){n[o]=new Array(t.width);for(let a=0;a<t.width;a++)n[o][a]=i(e),e=Ce(e,t.shift)}return n}function lr(t,i){let e=id(t),n=Mh(e,i),o={width:i.width||0,height:i.height||0,initialDate:n,shift:{day:1}};return{daysMatrix:hr(o,m=>m),month:e}}function kh(t,i,e){return{month:t.month,monthTitle:Ge(t.month,i.monthTitle,i.locale),yearTitle:Ge(t.month,i.yearTitle,i.locale),weekNumbers:Th(t.daysMatrix,i.weekNumbers,i.locale),weekdays:Ph(i.locale),weeks:t.daysMatrix.map((n,o)=>({days:n.map((a,m)=>({date:a,label:Ge(a,i.dayLabel,i.locale),monthIndex:e,weekIndex:o,dayIndex:m}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function Th(t,i,e){return t.map(n=>n[0]?Ge(n[0],i,e):"")}function Ph(t){let i=xe(t),e=i.weekdaysShort(),n=i.firstDayOfWeek();return[...e.slice(n),...e.slice(0,n)]}function Eh(t,i){return t.weeks.forEach(e=>{e.days.forEach((n,o)=>{let a=!bi(n.date,t.month),m=!a&&At(n.date,i.hoveredDate),h=!a&&i.selectedRange&&At(n.date,i.selectedRange[0]),b=!a&&i.selectedRange&&At(n.date,i.selectedRange[1]),k=!a&&At(n.date,i.selectedDate)||h||b,V=!a&&i.selectedRange&&Lh(n.date,i.selectedRange,i.hoveredDate),Z=i.isDisabled||Kt(n.date,i.minDate,"day")||Ot(n.date,i.maxDate,"day")||Dd(n.date,i.daysDisabled)||pr(n.date,i.datesDisabled)||fr(n.date,i.datesEnabled),ve=new Date,ii=!a&&At(n.date,ve),sc=i.dateCustomClasses&&i.dateCustomClasses.map(St=>At(n.date,St.date)?St.classes:[]).reduce((St,dc)=>St.concat(dc),[]).join(" ")||"",lc=i.dateTooltipTexts&&i.dateTooltipTexts.map(St=>At(n.date,St.date)?St.tooltipText:"").filter(St=>!!St).join(" ")||"",yt=Object.assign({},n,{isOtherMonth:a,isHovered:m,isSelected:k,isSelectionStart:h,isSelectionEnd:b,isInRange:V,isDisabled:Z,isToday:ii,customClasses:sc,tooltipText:lc});(n.isOtherMonth!==yt.isOtherMonth||n.isHovered!==yt.isHovered||n.isSelected!==yt.isSelected||n.isSelectionStart!==yt.isSelectionStart||n.isSelectionEnd!==yt.isSelectionEnd||n.isDisabled!==yt.isDisabled||n.isInRange!==yt.isInRange||n.customClasses!==yt.customClasses||n.tooltipText!==yt.tooltipText)&&(e.days[o]=yt)})}),t.hideLeftArrow=i.isDisabled||!!i.monthIndex&&i.monthIndex>0&&i.monthIndex!==i.displayMonths,t.hideRightArrow=i.isDisabled||(!!i.monthIndex||i.monthIndex===0)&&!!i.displayMonths&&i.monthIndex<i.displayMonths&&i.monthIndex+1!==i.displayMonths,t.disableLeftArrow=cr(Ce(t.month,{month:-1}),i.minDate,i.maxDate),t.disableRightArrow=cr(Ce(t.month,{month:1}),i.minDate,i.maxDate),t}function Lh(t,i,e){return!t||!i||!i[0]?!1:i[1]?t>i[0]&&t<=i[1]:e?t>i[0]&&t<=e:!1}function Nd(t,i){return i?t>=i:!0}var Ih=4,Yh=3,Vh={month:1};function Kd(t,i){let e=wt(t,"year");return{months:hr({width:Yh,height:Ih,initialDate:e,shift:Vh},a=>({date:a,label:Ge(a,i.monthLabel,i.locale)})),monthTitle:"",yearTitle:Ge(t,i.yearTitle,i.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}function Ah(t,i){return t.months.forEach((e,n)=>{e.forEach((o,a)=>{let m,h=bi(o.date,i.hoveredMonth),b=i.isDisabled||pr(o.date,i.datesDisabled)||fr(o.date,i.datesEnabled,"month")||cr(o.date,i.minDate,i.maxDate);!i.selectedDate&&i.selectedRange?(m=bi(o.date,i.selectedRange[0]),m||(m=bi(o.date,i.selectedRange[1]))):m=bi(o.date,i.selectedDate);let k=Object.assign(o,{isHovered:h,isDisabled:b,isSelected:m});(o.isHovered!==k.isHovered||o.isDisabled!==k.isDisabled||o.isSelected!==k.isSelected)&&(t.months[n][a]=k)})}),t.hideLeftArrow=!!i.monthIndex&&i.monthIndex>0&&i.monthIndex!==i.displayMonths,t.hideRightArrow=(!!i.monthIndex||i.monthIndex===0)&&(!!i.displayMonths||i.displayMonths===0)&&i.monthIndex<i.displayMonths&&i.monthIndex+1!==i.displayMonths,t.disableLeftArrow=On(Ce(t.months[0][0].date,{year:-1}),i.minDate,i.maxDate),t.disableRightArrow=On(Ce(t.months[0][0].date,{year:1}),i.minDate,i.maxDate),t}var gr=4,Cr=4,Jo=gr*Cr,Xd=(Math.floor(Jo/2)-1)*-1,Oh={year:1};function Zd(t,i,e){let n=Rh(t,e),a=hr({width:Cr,height:gr,initialDate:n,shift:Oh},h=>
6({date:h,label:Ge(h,i.yearLabel,i.locale)})),m=Fh(a,i);return{years:a,monthTitle:"",yearTitle:m,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function Rh(t,i){return i&&t.getFullYear()>=i.getFullYear()&&t.getFullYear()<i.getFullYear()+Jo?i:Ce(t,{year:Xd})}function Fh(t,i){let e=Ge(t[0][0].date,i.yearTitle,i.locale),n=Ge(t[gr-1][Cr-1].date,i.yearTitle,i.locale);return`${e} - ${n}`}function Hh(t,i){t.years.forEach((o,a)=>{o.forEach((m,h)=>{let b,k=vi(m.date,i.hoveredYear),V=i.isDisabled||pr(m.date,i.datesDisabled,"year")||fr(m.date,i.datesEnabled,"year")||On(m.date,i.minDate,i.maxDate);!i.selectedDate&&i.selectedRange?(b=vi(m.date,i.selectedRange[0]),b||(b=vi(m.date,i.selectedRange[1]))):b=vi(m.date,i.selectedDate);let Z=Object.assign(m,{isHovered:k,isDisabled:V,isSelected:b});(m.isHovered!==Z.isHovered||m.isDisabled!==Z.isDisabled||m.isSelected!==Z.isSelected)&&(t.years[a][h]=Z)})}),t.hideLeftArrow=!!i.yearIndex&&i.yearIndex>0&&i.yearIndex!==i.displayMonths,t.hideRightArrow=!!i.yearIndex&&!!i.displayMonths&&i.yearIndex<i.displayMonths&&i.yearIndex+1!==i.displayMonths,t.disableLeftArrow=On(Ce(t.years[0][0].date,{year:-1}),i.minDate,i.maxDate);let e=t.years.length-1,n=t.years[e].length-1;return t.disableRightArrow=On(Ce(t.years[e][n].date,{year:1}),i.minDate,i.maxDate),t}function mr(t,i){!t||!isNaN(t.getTime())||(t.setHours(i.getHours()),t.setMinutes(i.getMinutes()),t.setSeconds(i.getSeconds()),t.setMilliseconds(i.getMilliseconds()))}function Wd(t=$d,i){switch(i.type){case oe.CALCULATE:return Bh(t);case oe.FORMAT:return jh(t);case oe.FLAG:return Nh(t);case oe.NAVIGATE_OFFSET:return Wh(t,i);case oe.NAVIGATE_TO:{let e=i.payload;if(!t.view||!e.unit)return t;let n=sd(t.view.date,e.unit),o,a;return Nd(e.viewMode,t.minMode)?(a=e.viewMode,o={view:{date:n,mode:a}}):(a=t.view.mode,o={selectedDate:n,view:{date:n,mode:a}}),Object.assign({},t,o)}case oe.CHANGE_VIEWMODE:{if(!Nd(i.payload,t.minMode)||!t.view)return t;let e=t.view.date,n=i.payload;return Object.assign({},t,{view:{date:e,mode:n}})}case oe.HOVER:return Object.assign({},t,{hoveredDate:i.payload});case oe.SELECT:{if(!t.view)return t;let e={selectedDate:i.payload,view:t.view};if(Array.isArray(t.selectedTime)){let m=t.selectedTime[0];e.selectedDate&&m&&mr(e.selectedDate,m)}let n=t.view.mode,o=i.payload||t.view.date,a=dr(o,t.minDate,t.maxDate);return e.view={mode:n,date:a},Object.assign({},t,e)}case oe.SELECT_TIME:{let{date:e,index:n}=i.payload,o=t.selectedTime?[...t.selectedTime]:[];return o[n]=e,Object.assign({},t,{selectedTime:o})}case oe.SET_OPTIONS:{if(!t.view)return t;let e=i.payload,n=e.minMode?e.minMode:t.view.mode,o=Vt(e.value)&&e.value||ee(e.value)&&Vt(e.value[0])&&e.value[0]||t.view.date,a=dr(o,e.minDate,e.maxDate);return e.view={mode:n,date:a},e.value&&(ee(e.value)&&(e.selectedRange=e.value,e.selectedTime=e.value.map(m=>m)),e.value instanceof Date&&(e.selectedDate=e.value,e.selectedTime=[e.value])),Object.assign({},t,e)}case oe.SELECT_RANGE:{if(!t.view)return t;let e={selectedRange:i.payload,view:t.view};e.selectedRange?.forEach((m,h)=>{if(Array.isArray(t.selectedTime)){let b=t.selectedTime[h];b&&mr(m,b)}});let n=t.view.mode,o=i.payload&&i.payload[0]||t.view.date,a=dr(o,t.minDate,t.maxDate);return e.view={mode:n,date:a},Object.assign({},t,e)}case oe.SET_MIN_DATE:return Object.assign({},t,{minDate:i.payload});case oe.SET_MAX_DATE:return Object.assign({},t,{maxDate:i.payload});case oe.SET_IS_DISABLED:return Object.assign({},t,{isDisabled:i.payload});case oe.SET_DATE_CUSTOM_CLASSES:return Object.assign({},t,{dateCustomClasses:i.payload});case oe.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},t,{dateTooltipTexts:i.payload});default:return t}}function Bh(t){if(!t.view)return t;let i;t.displayOneMonthRange&&ec(t.view.date,t.minDate,t.maxDate)?i=1:i=t.displayMonths||1;let e=t.view.date;if(t.view.mode==="day"&&t.monthViewOptions){t.showPreviousMonth&&t.selectedRange&&t.selectedRange.length===0&&(e=Ce(e,{month:-1})),t.monthViewOptions.firstDayOfWeek=xe(t.locale).firstDayOfWeek();let n=new Array(i);for(let o=0;o<i;o++)n[o]=lr(e,t.monthViewOptions),e=Ce(e,{month:1});if(t.preventChangeToNextMonth&&t.flaggedMonths&&t.hoveredDate){let o=lr(t.view.date,t.monthViewOptions);t.flaggedMonths.length&&t.flaggedMonths[1].month.getMonth()===o.month.getMonth()&&(n=t.flaggedMonths.map(a=>t.monthViewOptions?lr(a.month,t.monthViewOptions):null).filter(a=>a!==null))}return Object.assign({},t,{monthsModel:n})}if(t.view.mode==="month"){let n=new Array(i);for(let o=0;o<i;o++)n[o]=Kd(e,Rn(t)),e=Ce(e,{year:1});return Object.assign({},t,{monthsCalendar:n})}if(t.view.mode==="year"){let n=new Array(i);for(let o=0;o<i;o++)n[o]=Zd(e,Rn(t),t.minMode==="year"?zd(t,o):void 0),e=Ce(e,{year:Jo});return Object.assign({},t,{yearsCalendarModel:n})}return t}function jh(t){if(!t.view)return t;if(t.view.mode==="day"&&t.monthsModel){let n=t.monthsModel.map((o,a)=>kh(o,Rn(t),a));return Object.assign({},t,{formattedMonths:n})}let i=t.displayMonths||1,e=t.view.date;if(t.view.mode==="month"){let n=new Array(i);for(let o=0;o<i;o++)n[o]=Kd(e,Rn(t)),e=Ce(e,{year:1});return Object.assign({},t,{monthsCalendar:n})}if(t.view.mode==="year"){let n=new Array(i);for(let o=0;o<i;o++)n[o]=Zd(e,Rn(t)),e=Ce(e,{year:16});return Object.assign({},t,{yearsCalendarModel:n})}return t}function Nh(t){if(!t.view)return t;let i=ec(t.view.date,t.minDate,t.maxDate)?1:t.displayMonths;if(t.formattedMonths&&t.view.mode==="day"){let e=t.formattedMonths.map((n,o)=>Eh(n,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,daysDisabled:t.daysDisabled,datesDisabled:t.datesDisabled,datesEnabled:t.datesEnabled,hoveredDate:t.hoveredDate,selectedDate:t.selectedDate,selectedRange:t.selectedRange,displayMonths:i,dateCustomClasses:t.dateCustomClasses,dateTooltipTexts:t.dateTooltipTexts,monthIndex:o}));return Object.assign({},t,{flaggedMonths:e})}if(t.view.mode==="month"&&t.monthsCalendar){let e=t.monthsCalendar.map((n,o)=>Ah(n,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,hoveredMonth:t.hoveredMonth,selectedDate:t.selectedDate,datesDisabled:t.datesDisabled,datesEnabled:t.datesEnabled,selectedRange:t.selectedRange,displayMonths:i,monthIndex:o}));return Object.assign({},t,{flaggedMonthsCalendar:e})}if(t.view.mode==="year"&&t.yearsCalendarModel){let e=t.yearsCalendarModel.map((n,o)=>Hh(n,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,hoveredYear:t.hoveredYear,selectedDate:t.selectedDate,datesDisabled:t.datesDisabled,datesEnabled:t.datesEnabled,selectedRange:t.selectedRange,displayMonths:i,yearIndex:o}));return Object.assign({},t,{yearsCalendarFlagged:e})}return t}function Wh(t,i){if(!t.view)return t;let e=Uh(t,i);if(!e)return t;let n={view:{mode:t.view.mode,date:e}};return Object.assign({},t,n)}function Uh(t,i){if(t.view){if(t.view.mode==="year"&&t.minMode==="year"){let e=zd(t,0);if(e){let n=Ce(e,{year:-Xd});return Ce(n,i.payload)}}return Ce(wt(t.view.date,"month"),i.payload)}}function Rn(t){return{locale:t.locale,monthTitle:t.monthTitle,yearTitle:t.yearTitle,dayLabel:t.dayLabel,monthLabel:t.monthLabel,yearLabel:t.yearLabel,weekNumbers:t.weekNumbers}}function dr(t,i,e){let n=Array.isArray(t)?t[0]:t;return i&&Ot(i,n,"day")?i:e&&Kt(e,n,"day")?e:n}function ec(t,i,e){return e&&An(e,t,"day")?!0:i&&e&&i.getMonth()===e.getMonth()}var ti=(()=>{class t extends rn{constructor(){let e=new kt({type:"[datepicker] dispatcher init"}),n=new an($d,e,Wd);super(e,Wd,n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ko=(()=>{class t{constructor(){this.onSelect=new de}selectFromRanges(e){this.onSelect.emit(e)}compareRanges(e){let n=e?.value,o=this.selectedRange;return Array.isArray(n)&&Array.isArray(o)?new Date(n[0]).setHours(0,0,0,0)===new Date(o[0]).setHours(0,0,0,0)&&new Date(n[1]).setHours(0,0,0,0)===new Date(o[1]).setHours(0,0,0,0):JSON.stringify(n)===JSON.stringify(o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:3,vars:0,consts:[[1,"bs-datepicker-predefined-btns"],["type","button",1,"btn",3,"selected"],["type","button",1,"btn",3,"click"]],template:function(n,o){n&1&&(L(0,"div",0),R(1,J0,2,3,"button",1,J),E()),n&2&&(r(),F(o.ranges))},encapsulation:2,changeDetection:0})}}return t})(),mn=(function(t){return t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t})(mn||{}),yr=(()=>{class t{constructor(){this.isDisabled=!1,this.onNavigate=new de,this.onViewMode=new de}navTo(e){this.onNavigate.emit(e?mn.DOWN:mn.UP)}view(e){this.isDisabled||this.onViewMode.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Y({type:t,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,"click","disabled"],["type","button",1,"current",3,"click","disabled"],["type","button",1,"next",3,"click","disabled"]],template:function(n,o){n&1&&(L(0,"button",0),ae("click",function(){return o.navTo(!0)}),L(1,"span"),c(2,"\u2039"),E()(),u(3,K0,4,2),c(4," \u200B "),L(5,"button",1),ae("click",function(){return o.view("year")}),L(6,"span"),c(7),E()(),c(8," \u200B "),L(9,"button",2),ae("click",function(){return o.navTo(!1)}),L(10,"span"),c(11,"\u203A"),E()()),n&2&&(ma("visibility",o.calendar.hideLeftArrow?"hidden":"visible"),me("disabled",o.calendar.disableLeftArrow),r(3),_(o.calendar&&o.calendar.monthTitle?3:-1),r(2),me("disabled",o.isDisabled),r(2),I(o.calendar.yearTitle),r(2),ma("visibility",o.calendar.hideRightArrow?"hidden":"visible"),me("disabled",o.calendar.disableRightArrow))},encapsulation:2,changeDetection:0})}}return t})(),qh=(()=>{class t{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-control
6s"],["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(n,o){n&1&&(L(0,"div",0)(1,"div",1)(2,"button",2),c(3,"-"),E(),Ye(4,"input",3),L(5,"button",4),c(6,"+"),E()(),L(7,"div",1)(8,"button",2),c(9,"-"),E(),Ye(10,"input",3),L(11,"button",4),c(12,"+"),E()(),L(13,"button",5),c(14),Ye(15,"img",6),E()()),n&2&&(r(4),me("value",o.hours),r(6),me("value",o.minutes),r(4),M("",o.ampm," "))},encapsulation:2})}}return t})(),$h=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(n,o){n&1&&(L(0,"div",0)(1,"span"),c(2),E()()),n&2&&(r(2),I(o.title))},encapsulation:2})}}return t})(),br=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-calendar-layout"]],ngContentSelectors:Z0,decls:6,vars:2,consts:[["title","hey there"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"]],template:function(n,o){n&1&&(Ar(X0),u(0,ef,1,0,"bs-current-date",0),l(1,"div",1),ca(2),s(),l(3,"div",2),ca(4,1),s(),u(5,tf,1,0,"bs-timepicker")),n&2&&(_(-1),r(5),_(-1))},dependencies:[$h,qh],encapsulation:2})}}return t})(),Xo=(()=>{class t{constructor(){this.onNavigate=new de,this.onViewMode=new de,this.onSelect=new de,this.onHover=new de}navigateTo(e){let n=mn.DOWN===e?-1:1;this.onNavigate.emit({step:{year:n*Jo}})}viewYear(e){this.onSelect.emit(e)}hoverYear(e,n){this.onHover.emit({cell:e,isHovered:n})}changeViewMode(e){this.onViewMode.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:6,vars:1,consts:[[3,"onNavigate","onViewMode","calendar"],["role","grid",1,"years"],["role","gridcell",3,"disabled","is-highlighted"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(n,o){n&1&&(l(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),C("onNavigate",function(m){return o.navigateTo(m)})("onViewMode",function(m){return o.changeViewMode(m)}),s(),l(2,"table",1)(3,"tbody"),R(4,of,3,0,"tr",null,J),s()()()),n&2&&(r(),g("calendar",o.calendar),r(3),F(o.calendar==null?null:o.calendar.years))},dependencies:[br,yr],encapsulation:2})}}return t})(),Zo=(()=>{class t{constructor(){this.onNavigate=new de,this.onViewMode=new de,this.onSelect=new de,this.onHover=new de}navigateTo(e){let n=mn.DOWN===e?-1:1;this.onNavigate.emit({step:{year:n}})}viewMonth(e){this.onSelect.emit(e)}hoverMonth(e,n){this.onHover.emit({cell:e,isHovered:n})}changeViewMode(e){this.onViewMode.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:6,vars:1,consts:[[3,"onNavigate","onViewMode","calendar"],["role","grid",1,"months"],["role","gridcell",3,"disabled","is-highlighted"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(n,o){n&1&&(l(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),C("onNavigate",function(m){return o.navigateTo(m)})("onViewMode",function(m){return o.changeViewMode(m)}),s(),l(2,"table",1)(3,"tbody"),R(4,rf,3,0,"tr",null,J),s()()()),n&2&&(r(),g("calendar",o.calendar),r(3),F(o.calendar==null?null:o.calendar.months))},dependencies:[br,yr],encapsulation:2})}}return t})(),zh=(()=>{class t{constructor(e,n,o){this._config=e,this._elRef=n,this._renderer=o,this.day={date:new Date,label:""}}
6ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),typeof this.day?.customClasses=="string"&&this.day?.customClasses.split(" ").filter(e=>e).forEach(e=>{this._renderer.addClass(this._elRef.nativeElement,e)})}static{this.\u0275fac=function(n){return new(n||t)(y(Ct),y(bt),y(vt))}}static{this.\u0275cmp=Y({type:t,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(n,o){n&2&&S("disabled",o.day.isDisabled)("is-highlighted",o.day.isHovered)("is-other-month",o.day.isOtherMonth)("is-active-other-month",o.day.isOtherMonthHovered)("in-range",o.day.isInRange)("select-start",o.day.isSelectionStart)("select-end",o.day.isSelectionEnd)("selected",o.day.isSelected)},inputs:{day:"day"},attrs:sf,decls:1,vars:1,template:function(n,o){n&1&&c(0),n&2&&I(o.day&&o.day.label||"")},encapsulation:2,changeDetection:0})}}return t})(),Fn=(()=>{class t{constructor(e){this._config=e,this.onNavigate=new de,this.onViewMode=new de,this.onSelect=new de,this.onHover=new de,this.onHoverWeek=new de,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(e){let n=mn.DOWN===e?-1:1;this.onNavigate.emit({step:{month:n}})}changeViewMode(e){this.onViewMode.emit(e)}selectDay(e){this.onSelect.emit(e)}selectWeek(e){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||e.days.length===0)return;if(this._config.selectWeek&&e.days[0]&&!e.days[0].isDisabled&&this._config.selectFromOtherMonth){this.onSelect.emit(e.days[0]);return}let n=e.days.find(o=>(this._config.selectFromOtherMonth||!o.isOtherMonth)&&!o.isDisabled);if(this.onSelect.emit(n),this._config.selectWeekDateRange){let a=e.days.slice(0).reverse().find(m=>(this._config.selectFromOtherMonth||!m.isOtherMonth)&&!m.isDisabled);this.onSelect.emit(a)}}weekHoverHandler(e,n){if(!this._config.selectWeek&&!this._config.selectWeekDateRange)return;e.days.find(a=>(this._config.selectFromOtherMonth||!a.isOtherMonth)&&!a.isDisabled)&&(e.isHovered=n,this.isWeekHovered=n,this.onHoverWeek.emit(e))}hoverDay(e,n){this._config.selectFromOtherMonth&&e.isOtherMonth&&(e.isOtherMonthHovered=n),this._config.dateTooltipTexts&&(e.tooltipText="",this._config.dateTooltipTexts.forEach(o=>{if(At(o.date,e.date)){e.tooltipText=o.tooltipText;return}})),this.onHover.emit({cell:e,isHovered:n})}static{this.\u0275fac=function(n){return new(n||t)(y(Ct))}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:11,vars:3,consts:[[3,"onNavigate","onViewMode","calendar","isDisabled"],["role","grid",1,"days","weeks"],["aria-label","weekday"],[1,"week",3,"active-week"],["role","gridcell"],[1,"week"],[3,"click"],[3,"click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","tooltip"],["bsDatepickerDayDecorator","",3,"day"],["bsDatepickerDayDecorator","",3,"click","mouseenter","mouseleave","day","tooltip"],["bsDatepickerDayDecorator","",3,"click","mouseenter","mouseleave","day"],["bsDatepickerDayDecorator","",3,"click","day"]],template:function(n,o){n&1&&(l(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),C("onNavigate",function(m){return o.navigateTo(m)})("onViewMode",function(m){return o.changeViewMode(m)}),s(),l(2,"table",1)(3,"thead")(4,"tr"),u(5,lf,1,0,"th"),R(6,df,2,1,"th",2,J),s()(),l(8,"tbody"),R(9,gf,4,1,"tr",null,J),s()()()),n&2&&(r(),g("calendar",o.calendar)("isDisabled",!!o.isDisabled),r(4),_(o.options&&o.options.showWeekNumbers?5:-1),r(),F(o.calendar.weekdays),r(3),F(o.calendar.weeks))},dependencies:[br,yr,zh,va,bs],encapsulation:2})}}return t})(),vr=(()=>{class t extends Qo{set value(e){this._effects?.setValue(e)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(e,n,o,a,m,h,b){super(),this._renderer=e,this._config=n,this._store=o,this._element=a,this._actions=m,this._positionService=b,this.valueChange=new de,this.isRangePicker=!1,this._subs=[],this._effects=h,e.setStyle(a.nativeElement,"display","block"),e.setStyle(a.nativeElement,"position","absolute")}ngOnInit(){this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe(je(1)).subscribe(()=>{if(this._positionService.disable(),this._config.isAnimated){let n=this._element.nativeElement.querySelector(".bs-datepicker-container");n?this._animateExpand(n,()=>this.positionServiceEnable()):this.positionServiceEnable();return}this.positionServiceEnable()}),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();let e;this._subs.push(this._store.select(n=>n.selectedDate).subscribe(n=>{e=n,this.valueChange.emit(n)})),this._subs.push(this._store.select(n=>n.selectedTime).subscribe(n=>{!n||!n[0]||!(n[0]instanceof Date)||n[0]===e||this.valueChange.emit(n[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(e=>{Array.isArray(e)&&e.length>=1&&this.startTimepicker?.writeValue(e[0])})),this.startTimepicker?.registerOnChange(e=>{this.timeSelectHandler(e,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(e,n){this._store.dispatch(this._actions.selectTime(e,n))}daySelectHandler(e){!e||(this.isOtherMonthsActive?e.isDisabled:e.isOtherMonth||e.isDisabled)||this._store.dispatch(this._actions.select(e.date))}monthSelectHandler(e){!e||e.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:U(e.date),year:pe(e.date)},viewMode:"day"}))}yearSelectHandler(e){!e||e.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:pe(e.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}_animateExpand(e,n){this._cancelExpandAnimation?.(),this._cancelExpandAnimation=ba(this._renderer,e,{timing:qd,durationMs:ur,useRaf:!0,manageDisplay:!0,onDone:n})}ngOnDestroy(){this._cancelExpandAnimation?.();for(let e of this._subs)e.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static{this.\u0275fac=function(n){return new(n||t)(y(vt),y(Ct),y(ti),y(bt),y(oe),y(ei),y(jt))}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-datepicker-container"]],viewQuery:function(n,o){if(n&1&&We(Ud,5),n&2){let a;we(a=Se())&&(o.startTimepicker=a.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(n,o){n&1&&C("click",function(m){return o._stopPropagation(m)}),n&2&&Oe("disabled",o.isDatepickerDisabled)("readonly",o.isDatepickerReadonly)},features:[De([ti,ei,oe]),Ne],decls:2,vars:3,consts:[["startTP",""],["endTP",""],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container"],[1,"bs-media-container"],[1,"bs-datepicker-buttons"],[1,"bs-datepicker-custom-range"],[3,"bs-datepicker-multiple","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[3,"disabled"],[3,"bs-datepicker-multiple","calendar"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],[1,"btn-today-wrapper",3,"today-left","today-right","today-center"],[1,"btn-clear-wrapper",3,"clear-left","clear-right","clear-center"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(n,o){n&1&&(u(0,Lf,10,7,"div",2),w(1,"async")),n&2&&_(O(1,1,o.viewMode)?0:-1)},dependencies:[ai,Fn,dn,ln,Zo,Xo,Ko,ut],encapsulation:2})}}return t})(),cn,Gh=(()=>{class t{get readonlyValue(){return this.isDisabled?"":null}constructor(e,n,o,a,m){this._config=e,this._elementRef=n,this._renderer=o,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Q,this.isDisabled=!1,this.bsValueChange=new de,this._subs=[],this._dateInputFormat$=new Q,Object.assign(this,this._config),this._datepicker=m.createLoader(n,a,o),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new kt(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(e){this.isOpen$.next(e)}set bsValue(e){this._bsValue&&e&&this._bsValue.getTime()===e.getTime()||(!this._bsValue&&e&&!this._config.withTimepicker&&mr(e,new Date),e&&this.bsConfig?.initCurrentTime&&(e=Bd(e)),this.initPreviousValue(),this._bsValue=e,this.bsValueChange.emit(e))}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(){cn=this._bsValue}ngOnChanges(e){e.bsConfig&&(e.bsConfig.currentValue?.initCurrentTime&&e.bsConfig.currentValue?.initCurrentTime!==e.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Bd(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),!(!this._datepickerRef||!this._datepickerRef.instance)&&(e.minDate&&(this._datepickerRef.instance.minDate=this.minDate),e.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),e.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),e.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),e.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),e.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),e.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),e.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(e=>{this._datepickerRef&&(this._datepickerRef.instance.value=e)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(e=>{this.initPreviousValue(),this.bsValue=e,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!cn||!this.bsConfig?.keepDatepickerOpened||!this._config.withTimepicker?!1:this.isDateSame()}isDateSame(){return cn instanceof Date&&this._bsValue?.getDate()===cn?.getDate()&&this._bsValue?.getMonth()===cn?.getMonth()&&this._bsValue?.getFullYear()===cn?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe(ce(e=>e!==this.isOpen),q(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:Ct,useValue:this._config}).attach(vr).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(let e of this._subs)e.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:Gd(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(e=>e.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(n){return new(n||t)(y(Ct),y(bt),y(vt),y(da),y(Ei))}}static{this.\u0275dir=gn({type:t,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(n,o){n&2&&Oe("readonly",o.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",ignoreMinMaxErrors:"ignoreMinMaxErrors",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:[De([Ei,jt]),la]})}}return t})();var Qh=(()=>{class t extends vr{get disabledValue(){return this.isDatePickerDisabled?"":null}get readonlyValue(){return this.isDatePickerDisabled?"":null}constructor(e,n,o,a,m,h,b){super(e,n,o,a,m,h,b),e.setStyle(a.nativeElement,"display","inline-block"),e.setStyle(a.nativeElement,"position","static")}static{this.\u0275fac=function(n){return new(n||t)(y(vt),y(Ct),y(ti),y(bt),y(oe),y(ei),y(jt))}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-datepicker-inline-container"]],hostVars:2,hostBindings:function(n,o){n&1&&C("click",function(m){return o._stopPropagation(m)}),n&2&&Oe("disabled",o.disabledValue)("readonly",o.readonlyValue)},features:[De([ti,ei]),Ne],decls:2,vars:3,consts:[["startTP",""],["endTP",""],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container"],[1,"bs-media-container"],[1,"bs-datepicker-buttons"],[1,"bs-datepicker-custom-range"],[3,"bs-datepicker-multiple","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[3,"disabled"],[3,"bs-datepicker-multiple","calendar"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],[1,"btn-today-wrapper",3,"today-left","today-right","today-center"],[1,"btn-clear-wrapper",3,"clear-left","clear-right","clear-center"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(n,o){n&1&&(u(0,qf,10,7,"div",2),w(1,"async")),n&2&&_(O(1,1,o.viewMode)?0:-1)},dependencies:[ai,Fn,dn,ln,Zo,Xo,Ko,ut],encapsulation:2})}}return t})();var Dr=(()=>{class t extends Qo{set value(e){this._effects?.setRangeValue(e)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constru
6ctor(e,n,o,a,m,h,b){super(),this._renderer=e,this._config=n,this._store=o,this._element=a,this._actions=m,this._positionService=b,this.valueChange=new de,this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=h,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,e.setStyle(a.nativeElement,"display","block"),e.setStyle(a.nativeElement,"position","absolute")}ngOnInit(){this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe(je(1)).subscribe(()=>{if(this._positionService.disable(),this._config.isAnimated){let n=this._element.nativeElement.querySelector(".bs-datepicker-container");n?this._animateExpand(n,()=>this.positionServiceEnable()):this.positionServiceEnable();return}this.positionServiceEnable()}),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();let e;this._subs.push(this._store.select(n=>n.selectedRange).subscribe(n=>{e=n,this.valueChange.emit(n),this.chosenRange=n||[]})),this._subs.push(this._store.select(n=>n.selectedTime).subscribe(n=>{!n||!n[0]||!n[1]||!(n[0]instanceof Date)||!(n[1]instanceof Date)||e&&n[0]===e[0]&&n[1]===e[1]||(this.valueChange.emit(n),this.chosenRange=n||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(e=>{Array.isArray(e)&&e.length>=2&&(this.startTimepicker?.writeValue(e[0]),this.endTimepicker?.writeValue(e[1]))})),this.startTimepicker?.registerOnChange(e=>{this.timeSelectHandler(e,0)}),this.endTimepicker?.registerOnChange(e=>{this.timeSelectHandler(e,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(e,n){this._store.dispatch(this._actions.selectTime(e,n))}daySelectHandler(e){!e||(this.isOtherMonthsActive?e.isDisabled:e.isOtherMonth||e.isDisabled)||this.rangesProcessing(e)}monthSelectHandler(e){if(!(!e||e.isDisabled)){if(e.isSelected=!0,this._config.minMode!=="month"){if(e.isDisabled)return;this._store.dispatch(this._actions.navigateTo({unit:{month:U(e.date),year:pe(e.date)},viewMode:"day"}));return}this.rangesProcessing(e)}}yearSelectHandler(e){if(!(!e||e.isDisabled)){if(e.isSelected=!0,this._config.minMode!=="year"){if(e.isDisabled)return;this._store.dispatch(this._actions.navigateTo({unit:{year:pe(e.date)},viewMode:"month"}));return}this.rangesProcessing(e)}}rangesProcessing(e){this._rangeStack.length===1&&(this._rangeStack=e.date>=this._rangeStack[0]?[this._rangeStack[0],e.date]:[e.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(e.date),this._rangeStack.length===0&&(this._rangeStack=[e.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(e.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),this._rangeStack.length===2&&(this._rangeStack=[])}_animateExpand(e,n){this._cancelExpandAnimation?.(),this._cancelExpandAnimation=ba(this._renderer,e,{timing:qd,durationMs:ur,useRaf:!0,manageDisplay:!0,onDone:n})}ngOnDestroy(){this._cancelExpandAnimation?.();for(let e of this._subs)e.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(e){e&&(this._rangeStack=e.value instanceof Date?[e.value]:e.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(e){let n=new Date(e);if(this._config.maxDate){let o=this._config.maxDate.getTime(),a=e.getTime()+(this._config.maxDateRange||0)*Dh;n=a>o?new Date(this._config.maxDate):new Date(a)}else n.setDate(e.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(n)}static{this.\u0275fac=function(n){return new(n||t)(y(vt),y(Ct),y(ti),y(bt),y(oe),y(ei),y(jt))}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-daterangepicker-container"]],viewQuery:function(n,o){if(n&1&&We(Ud,5)($f,5),n&2){let a;we(a=Se())&&(o.startTimepicker=a.first),we(a=Se())&&(o.endTimepicker=a.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(n,o){n&1&&C("click",function(m){return o._stopPropagation(m)}),n&2&&Oe("disabled",o.isDatepickerDisabled)("readonly",o.isDatepickerReadonly)},features:[De([ti,ei,oe]),Ne],decls:2,vars:3,consts:[["startTP",""],["endTP",""],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container"],[1,"bs-media-container"],[1,"bs-datepicker-buttons"],[1,"bs-datepicker-custom-range"],[3,"bs-datepicker-multiple","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[3,"disabled"],[3,"bs-datepicker-multiple","calendar"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],[1,"btn-today-wrapper",3,"today-left","today-right","today-center"],[1,"btn-clear-wrapper",3,"clear-left","clear-right","clear-center"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(n,o){n&1&&(u(0,rh,10,7,"div",2),w(1,"async")),n&2&&_(O(1,1,o.viewMode)?0:-1)},dependencies:[ai,Fn,dn,ln,Zo,Xo,Ko,ut],encapsulation:2})}}return t})(),Jh=(()=>{class t extends Dr{get disabledValue(){return this.isDatePickerDisabled?"":null}get readonlyValue(){return this.isDatePickerDisabled?"":null}constructor(e,n,o,a,m,h,b){super(e,n,o,a,m,h,b),e.setStyle(a.nativeElement,"display","inline-block"),e.setStyle(a.nativeElement,"position","static")}static{this.\u0275fac=function(n){return new(n||t)(y(vt),y(Ct),y(ti),y(bt),y(oe),y(ei),y(jt))}}static{this.\u0275cmp=Y({type:t,selectors:[["bs-daterangepicker-inline-container"]],hostVars:2,hostBindings:function(n,o){n&1&&C("click",function(m){return o._stopPropagation(m)}),n&2&&Oe("disabled",o.disabledValue)("readonly",o.readonlyValue)},features:[De([ti,ei,oe]),Ne],decls:2,vars:3,consts:[["startTP",""],["endTP",""],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container"],[1,"bs-media-container"],[1,"bs-datepicker-buttons"],[1,"bs-datepicker-custom-range"],[3,"bs-datepicker-multiple","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[3,"disabled"],[3,"bs-datepicker-multiple","calendar"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],[1,"btn-today-wrapper",3,"today-left","today-right","today-center"],[1,"btn-clear-wrapper",3,"clear-left","clear-right","clear-center"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(n,o){n&1&&(u(0,bh,
610,7,"div",2),w(1,"async")),n&2&&_(O(1,1,o.viewMode)?0:-1)},dependencies:[ai,Fn,dn,ln,Zo,Xo,Ko,ut],encapsulation:2})}}return t})();var Kh={provide:yn,useExisting:ni(()=>tc),multi:!0},Xh={provide:Ca,useExisting:ni(()=>tc),multi:!0},tc=(()=>{class t{constructor(e,n,o,a,m){this._picker=e,this._localeService=n,this._renderer=o,this._elRef=a,this.changeDetection=m,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new fn}onChange(e){this.writeValue(e.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}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()}ngOnInit(){let e=n=>{this._setInputValue(n),this._value!==n&&(this._value=n,this._onChange(n),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&e(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(e)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe(hn()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}_setInputValue(e){let n=e?Ge(e,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",n)}validate(e){let n=e.value;if(n==null||n==="")return null;if(Yn(n)){if(!Vt(n))return{bsDate:{invalid:n}};if(this._picker&&this._picker.minDate&&Kt(n,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),this._picker.ignoreMinMaxErrors?null:{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&Ot(n,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),this._picker.ignoreMinMaxErrors?null:{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(e){this._validatorChange=e}writeValue(e){if(!e)this._value=void 0;else{let n=this._localeService.currentLocale;if(!xe(n))throw new Error(`Locale "${n}" is not defined, please add it with "defineLocale(...)"`);if(this._value=nn(e,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc){let a=nr(this._value);this._value=a===null?void 0:a}}this._picker.bsValue=this._value}setDisabledState(e){if(this._picker.isDisabled=e,e){this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled");return}this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}static{this.\u0275fac=function(n){return new(n||t)(y(Gh,1),y(_r),y(vt),y(bt),y(Ue))}}static{this.\u0275dir=gn({type:t,selectors:[["input","bsDatepicker",""]],hostBindings:function(n,o){n&1&&C("change",function(m){return o.onChange(m)})("blur",function(){return o.onBlur()})("keyup.esc",function(){return o.hide()})("keydown.enter",function(){return o.hide()})},features:[De([Kh,Xh])]})}}return t})(),Zh=(()=>{class t extends Ct{constructor(){super(...arguments),this.displayMonths=2}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Bn(t)))(o||t)}})()}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Zt,xr=(()=>{class t{get isOpen(){return this._datepicker.isShown}set isOpen(e){this.isOpen$.next(e)}set bsValue(e){this._bsValue!==e&&(e&&this.bsConfig?.initCurrentTime&&(e=jd(e)),this.initPreviousValue(),this._bsValue=e,this.bsValueChange.emit(e))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(e,n,o,a,m){this._config=e,this._elementRef=n,this._renderer=o,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Q,this.isDisabled=!1,this.bsValueChange=new de,this._subs=[],this._rangeInputFormat$=new Q,this._datepicker=m.createLoader(n,a,o),Object.assign(this,e),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new kt(this.isOpen)}ngOnInit(){this.isDestroy$=new Q,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(e){e.bsConfig&&(e.bsConfig.currentValue?.initCurrentTime&&e.bsConfig.currentValue?.initCurrentTime!==e.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=jd(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(e.bsConfig.currentValue&&e.bsConfig.currentValue.rangeInputFormat)),!(!this._datepickerRef||!this._datepickerRef.instance)&&(e.minDate&&(this._datepickerRef.instance.minDate=this.minDate),e.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),e.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),e.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),e.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),e.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),e.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe(ce(e=>e!==this.isOpen),q(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:Ct,useValue:this._config}).attach(Dr).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(e=>{this._datepickerRef&&(this._datepickerRef.instance.value=e)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe(ce(e=>e&&e[0]&&!!e[1])).subscribe(e=>{this.initPreviousValue(),this.bsValue=e,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){Zt=this._bsValue}keepDatepickerModalOpened(){return!Zt||!this.bsConfig?.keepDatepickerOpened||!this._config.withTimepicker?!1:this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===Zt?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===Zt?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===Zt?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===Zt?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===Zt?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===Zt?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:Gd(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:Sh(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(let e of this._subs)e.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(e=>e.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(n){return new(n||t)(y(Zh),y(bt),y(vt),y(da),y(Ei))}}static{this.\u0275dir=gn({type:t,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(n,o){n&2&&Oe("readonly",o.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:[De([Ei,jt]),la]})}}return t})(),eg={provide:yn,useExisting:ni(()=>ea),multi:!0},tg={provide:Ca,useExisting:ni(()=>ea),multi:!0},ea=(()=>{class t{constructor(e,n,o,a,m){this._picker=e,this._localeService=n,this._renderer=o,this._elRef=a,this.changeDetection=m,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._val
6idatorChange=Function.prototype,this._subs=new fn}ngOnInit(){let e=n=>{this._setInputValue(n),this._value!==n&&(this._value=n,this._onChange(n),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&e(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(n=>{this._setInputValue(n),this._value!==n&&(this._value=n,this._onChange(n),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe(hn()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(e){(e.keyCode===13||e.code==="Enter")&&this.hide()}_setInputValue(e){let n="";if(e){let o=e[0]?Ge(e[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",a=e[1]?Ge(e[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";n=o&&a?o+this._picker._config.rangeSeparator+a:""}this._renderer.setProperty(this._elRef.nativeElement,"value",n)}onChange(e){this.writeValue(e.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(e){let n=e.value,o=[];if(n==null||!ee(n))return null;n=n.slice().sort((h,b)=>h.getTime()-b.getTime());let a=Vt(n[0]),m=Vt(n[1]);return a?m?(this._picker&&this._picker.minDate&&Kt(n[0],this._picker.minDate,"date")&&(n[0]=this._picker.minDate,o.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&Ot(n[1],this._picker.maxDate,"date")&&(n[1]=this._picker.maxDate,o.push({bsDate:{maxDate:this._picker.maxDate}})),o.length>0?(this.writeValue(n),o):null):{bsDate:{invalid:n[1]}}:{bsDate:{invalid:n[0]}}}registerOnValidatorChange(e){this._validatorChange=e}writeValue(e){if(!e)this._value=void 0;else{let n=this._localeService.currentLocale;if(!xe(n))throw new Error(`Locale "${n}" is not defined, please add it with "defineLocale(...)"`);let a=[];if(typeof e=="string"){let m=this._picker._config.rangeSeparator.trim();e.replace(/[^-]/g,"").length>1?a=e.split(this._picker._config.rangeSeparator):a=e.split(m.length>0?m:this._picker._config.rangeSeparator).map(h=>h.trim())}Array.isArray(e)&&(a=e),this._value=a.map(m=>this._picker._config.useUtc?nr(nn(m,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):nn(m,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(m=>isNaN(m.valueOf())?void 0:m)}this._picker.bsValue=this._value}setDisabledState(e){if(this._picker.isDisabled=e,e){this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled");return}this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}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(n){return new(n||t)(y(xr,1),y(_r),y(vt),y(bt),y(Ue))}}static{this.\u0275dir=gn({type:t,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(n,o){n&1&&C("change",function(m){return o.onChange(m)})("keyup.esc",function(){return o.hide()})("keydown",function(m){return o.onKeydownEvent(m)})("blur",function(){return o.onBlur()})},features:[De([eg,tg])]})}}return t})(),ic=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=Je({type:t})}static{this.\u0275inj=Qe({imports:[Ht,va,dn,Fn,vr,Qh,Dr,Jh]})}}return t})();var ng=["downloadStatementLink"],og=(t,i,e)=>[t,i,e],ag=()=>({isAnimated:!0}),nc=(t,i)=>i.id;function rg(t,i){t&1&&x(0,"ui-spinner",24)}function sg(t,i){if(t&1){let e=D();l(0,"button",23),C("click",function(){p(e);let o=d().$implicit,a=d(3);return f(a.deleteCard(o.id))}),u(1,rg,1,0,"ui-spinner",24),x(2,"ui-streamline-icon",25),s()}if(t&2){let e=d(4);g("disabled",e.submittingRequest),r(),_(e.submittingRequest?1:-1)}}function lg(t,i){if(t&1){let e=D();l(0,"div",15)(1,"div",17),c(2),s(),l(3,"div",18),c(4),s(),l(5,"div",19)(6,"button",20),C("click",function(){let o=p(e).$implicit,a=d(3);return f(a.updateCard(o))}),l(7,"span"),x(8,"ui-streamline-icon",21),s()(),u(9,sg,3,2,"button",22),s()()}if(t&2){let e=i.$implicit,n=d(3);r(2),M(" XXXX XXXX XXXX ",e.last4," "),r(2),I(e.exp_month+"/"+e.exp_year),r(5),_(n.availableCards.length>1?9:-1)}}function dg(t,i){t&1&&(l(0,"p"),c(1," You have no credit card in the system now. Please add one. "),s())}function cg(t,i){if(t&1){let e=D();l(0,"div",5)(1,"h5",8),c(2,"Add/Update Your Credit Card"),s(),l(3,"div",9)(4,"p",12),x(5,"ui-streamline-icon",13),c(6,"Payment failed - Please add/update your credit card to reactivate your subscription."),s(),l(7,"div",14),R(8,lg,10,3,"div",15,nc),u(10,dg,2,0,"p"),s(),l(11,"button",16),C("click",function(){p(e);let o=d(2);return f(o.openAddCardModal())}),c(12,"Add new card"),s()()()}if(t&2){let e=d(2),n=v(4);g("hidden",n.accessDict.hasValidSub||n.accessDict.noValidSub&&!n.accessDict.hasUnpaidSub),r(8),F(e.availableCards),r(2),_(e.availableCards.length===0?10:-1)}}function mg(t,i){if(t&1&&(l(0,"div",30)(1,"p",31),c(2),w(3,"currency"),s()()),t&2){let e=d(3);r(2),M(" Current Credits: ",le(3,1,-e.stripeCustomer.balance/100,e.currencyTypes[e.stripeCustomer.currency].currency,"symbol",e.currencyTypes[e.stripeCustomer.currency].currencySymbol)," ")}}function ug(t,i){if(t&1&&(l(0,"div")(1,"p",40),c(2),s()()),t&2){let e=d(4);r(2),I(e.allInvoicesPackageInfoByInvoiceID.upcoming==null?null:e.allInvoicesPackageInfoByInvoiceID.upcoming.extraNote)}}function _g(t,i){if(t&1&&(l(0,"td")(1,"div"),c(2),s(),u(3,ug,3,1,"div"),s()),t&2){let e=d(3);r(2),M(" Ausmed ",(e.allInvoicesPackageInfoByInvoiceID.upcoming==null||e.allInvoicesPackageInfoByInvoiceID.upcoming.package==null?null:e.allInvoicesPackageInfoByInvoiceID.upcoming.package.displayName)||""," Subscription "),r(),_(e.allInvoicesPackageInfoByInvoiceID.upcoming!=null&&e.allInvoicesPackageInfoByInvoiceID.upcoming.extraNote?3:-1)}}function pg(t,i){if(t&1&&(l(0,"td"),c(1),w(2,"date"),s()),t&2){let e=d(3);r(),M(" ",ye(2,1,(e.upcomingInvoice==null?null:e.upcomingInvoice.next_payment_attempt)*1e3,"dd MMM yyyy")," ")}}function fg(t,i){if(t&1&&(l(0,"td"),c(1),w(2,"currency"),s()),t&2){let e=d(4);r(),M(" -",le(2,1,e.upcomingInvoice.subtotal*(e.upcomingInvoice.discount.coupon.percent_off/100)/100,e.currencyTypes[e.upcomingInvoice.currency].currency,"symbol",e.currencyTypes[e.upcomingInvoice.currency].currencySymbol)," ")}}function hg(t,i){if(t&1&&(l(0,"td"),c(1),w(2,"currency"),s()),t&2){let e=d(4);r(),M(" -",le(2,1,e.upcomingInvoice.discount.coupon.amount_off/100,e.currencyTypes[e.upcomingInvoice.currency].currency,"symbol",e.currencyTypes[e.upcomingInvoice.currency].currencySymbol)," ")}}function gg(t,i){if(t&1&&(l(0,"tr")(1,"th"),c(2),w(3,"currency"),s(),u(4,fg,3,6,"td"),u(5,hg,3,6,"td"),s()),t&2){let e=d(3);r(2),M("Discount ",e.upcomingInvoice.discount.coupon.percent_off?"("+e.upcomingInvoice.discount.coupon.percent_off+"% off)":e.upcomingInvoice.discount.coupon.amount_off?"("+le(3,3,e.upcomingInvoice.discount.coupon.amount_off/100,e.currencyTypes[e.upcomingInvoice.currency].currency,"symbol","1.0-2")+" off)":""," "),r(2),_(e.upcomingInvoice.discount.coupon.percent_off?4:-1),r(),_(e.upcomingInvoice.discount.coupon.amount_off?5:-1)}}function Cg(t,i){if(t&1&&(l(0,"tr")(1,"th"),c(2),s(),l(3,"td"),c(4),w(5,"currency"),s()()),t&2){let e=d(3);r(2),M("Tax ",e.upcomingInvoice&&e.upcomingInvoice.tax_percent?"("+e.upcomingInvoice.tax_percent+"%)":""," "),r(2),M(" ",le(5,2,(e.upcomingInvoice==null?null:e.upcomingInvoice.tax)/100,e.currencyTypes[e.upcomingInvoice.currency].currency,"symbol",e.currencyTypes[e.upcomingInvoice.currency].currencySymbol)," ")}}function yg(t,i){if(t&1&&(l(0,"tr")(1,"th"),c(2,"Total"),s(),l(3,"td"),c(4),w(5,"currency"),s()()),t&2){let e=d(3);r(4),M(" ",le(5,1,(e.upcomingInvoice==null?null:e.upcomingInvoice.total)/100,e.currencyTypes[e.upcomingInvoice.currency].currency,"symbol",e.currencyTypes[e.upcomingInvoice.currency].currencySymbol)," ")}}function bg(t,i){if(t&1&&(l(0,"tr",38)(1,"th"),c(2,"Applied Credit"),s(),l(3,"td"),c(4),w(5,"currency"),s()()),t&2){let e=d(3);r(4),M(" ",le(5,1,(e.upcomingInvoice.starting_balance-e.upcomingInvoice.ending_balance)/100,e.currencyTypes[e.upcomingInvoice.currency].currency,"symbol",e.currencyTypes[e.upcomingInvoice.currency].currencySymbol)," ")}}function vg(t,i){if(t&1&&(l(0,"div",6)(1,"div",26)(2,"div",27)(3,"div",28)(4,"h5",29),c(5,"Upcoming Invoice"),s()(),u(6,mg,4,6,"div",30),l(7,"div",30)(8,"p",31),c(9),w(10,"date"),w(11,"date"),s()()()(),l(12,"div",9)(13,"table",32)(14,"thead",33)(15,"tr")(16,"th",34),c(17,"Description"),s(),l(18,"th",35),c(19,"Next Payment Due"),s(),l(20,"th",35),c(21,"Price"),s()()(),l(22,"tbody")(23,"tr"),u(24,_g,4,2,"td"),u(25,pg,3,4,"td"),l(26,"td"),c(27),w(28,"currency"),s()()()(),l(29,"table",36)(30,"tr")(31,"th",37),c(32,"Subtotal"),s(),l(33,"td",37),c(34),w(35,"currency"),s()(),u(36,gg,6,8,"tr"),u(37,Cg,6,7,"tr"),u(38,yg,6,6,"tr"),u(39,bg,6,6,"tr",38),l(40,"tr",39)(41,"th"),c(42,"Amount Due"),s(),l(43,"td")(44,"strong"),c(45),w(46,"currency"),s()()()()()()),t&2){let e=d(2);r(6),_(e.stripeCustomer.balance<0?6:-1),r(3),oi(" ",ye(10,12,(e.upcomingInvoice==null||e.upcomingInvoice.lines==null||e.upcomingInvoice.lines.data[0]==null||e.upcomingInvoice.lines.data[0].period==null?null:e.upcomingInvoice.lines.data[0].period.start)*1e3,"dd MMM yyyy")," - ",ye(11,15,(e.upcomingInvoice==null||e.upcomingInvoice.lines==null||e.upcomingInvoice.lines.data[0]==null||e.upcomingInvoice.lines.data[0].period==null?null:e.upcomingInvoice.lines.data[0].period.end)*1e3,"dd MMM yyyy")),r(15),_(!((e.upcomingInvoice==null||e.upcomingInvoice.lines==null?null:e.upcomingInvoice.lines.data)[0]==null||(e.upcomingInvoice==null||e.upcomingInvoice.lines==null?null:e.upcomingInvoice.lines.data)[0].plan==null)&&(e.upcomingInvoice==null||e.upcomingInvoice.lines==null?null:e.upcomingInvoice.lines.data)[0].plan.id?24:-1),r(),_(e.upcomingInvoice!=null&&e.upcomingInvoice.next_payment_attempt?25:-1),r(2),M(" ",le(28,18,(e.upcomingInvoice==null?null:e.upcomingInvoice.amount_due)/100,e.currencyTypes[e.upcomingInvoice==null?null:e.upcomingInvoice.currency].currency,"symbol",e.currencyTypes[e.upcomingInvoice==null?null:e.upcomingInvoice.currency].currencySymbol)," "),r(7),M(" ",le(35,23,(e.upcomingInvoice==null?null:e.upcomingInvoice.subtotal)/100,e.currencyTypes[e.upcomingInvoice==null?null:e.upcomingInvoice.currency].currency,"symbol",e.currencyTypes[e.upcomingInvoice==null?null:e.upcomingInvoice.currency].currencySymbol)," "),r(2),_(!(e.upcomingInvoice==null||e.upcomingInvoice.discount==null)&&e.upcomingInvoice.discount.coupon?36:-1),r(),_(e.upcomingInvoice!=null&&e.upcomingInvoice.tax?37:-1),r(),_(e.upcomingInvoice&&e.upcomingInvoice.starting_balance!==null&&e.upcomingInvoice.ending_balance!==null&&e.upcomingInvoice.starting_balance!==e.upcomingInvoice.ending_balance?38:-1),r(),_(e.upcomingInvoice&&e.upcomingInvoice.starting_balance!==null&&e.upcomingInvoice.ending_balance!==null&&e.upcomingInvoice.starting_balance!==e.upcomingInvoice.ending_balance?39:-1),r(6),I(le(46,28,(e.upcomingInvoice==null?null:e.upcomingInvoice.amount_due)/100,e.currencyTypes[e.upcomingInvoice==null?null:e.upcomingInvoice.currency].currency,"symbol",e.currencyTypes[e.upcomingInvoice==null?null:e.upcomingInvoice.currency].currencySymbol))}}function Dg(t,i){t&1&&(l(0,"span",46),c(1,"Paid"),s())}function xg(t,i){t&1&&(l(0,"span",47),c(1,"Waived"),s())}function Mg(t,i){t&1&&(l(0,"span",48),c(1,"Unpaid"),s())}function wg(t,i){t&1&&(l(0,"div",49)(1,"p"),c(2,"This invoice was waived for the following reason: too many failed payments."),s()())}function Sg(t,i){if(t&1&&(l(0,"div")(1,"p",40),c(2),s()()),t&2){let e=d(2).$implicit,n=d(3);r(2),I(n.allInvoicesPackageInfoByInvoiceID[e.id]==null?null:n.allInvoicesPackageInfoByInvoiceID[e.id].extraNote)}}function kg(t,i){if(t&1&&(c(0),w(1,"date")),t&2){let e=d(2).$implicit;M(" ",ye(1,1,e.charge.created*1e3,"dd MMM yyyy")," ")}}function Tg(t,i){if(t&1&&(l(0,"td"),c(1),w(2,"currency"),s()),t&2){let e=d(3).$implicit,n=d(3);r(),M(" -",le(2,1,e.subtotal*(e.discount.coupon.percent_off/100)/100,n.currencyTypes[e.currency].currency,"symbol",n.currencyTypes[e.currency].currencySymbol)," ")}}function Pg(t,i){if(t&1&&(l(0,"td"),c(1),w(2,"currency"),s()),t&2){let e=d(3).$implicit,n=d(3);r(),M(" -",le(2,1,e.discount.coupon.amount_off/100,n.currencyTypes[e.currency].currency,"symbol",n.currencyTypes[e.currency].currencySymbol)," ")}}function Eg(t,i){if(t&1&&(l(0,"tr")(1,"th"),c(2),w(3,"currency"),s(),u(4,Tg,3,6,"td"),u(5,Pg,3,6,"td"),s()),t&2){let e=d(2).$implicit,n=d(3);r(2),M("Discount ",e.discount.coupon.percent_off?"("+e.discount.coupon.percent_off+"% off)":e.discount.coupon.amount_off?"("+le(3,3,e.discount.coupon.amount_off/100,n.currencyTypes[e.currency].currency,"symbol","1.0-2")+" off)":""," "),r(2),_(e.discount.coupon.percent_off?4:-1),r(),_(e.discount.coupon.amount_off?5:-1)}}function Lg(t,i){if(t&1&&(l(0,"tr")(1,"th"),c(2),s(),l(3,"td"),c(4),w(5,"currency"),s()()),t&2){let e=d(2).$implicit,n=d(3);r(2),M("Tax ",e&&e.tax_percent?"("+e.tax_percent+"%)":""),r(2),M(" ",le(5,2,e.tax/100,n.currencyTypes[e.currency].currency,"symbol",n.currencyTypes[e.currency].currencySymbol)," ")}}function Ig(t,i){if(t&1&&(l(0,"tr")(1,"th"),c(2,"Total"),s(),l(3,"td"),c(4),w(5,"currency"),s()()),t&2){let e=d(2).$implicit,n=d(3);r(4),M(" ",le(5,1,e.total/100,n.currencyTypes[e.currency].currency,"symbol",n.currencyTypes[e.currency].currencySymbol)," ")}}function Yg(t,i){if(t&1&&(l(0,"tr",38)(1,"th"),c(2,"Applied Credit"),s(),l(3,"td"),c(4),w(5,"currency"),s()()),t&2){let e=d(2).$implicit,n=d(3);r(4),M(" ",le(5,1,(e.starting_balance-e.ending_balance)/100,n.currencyTypes[e.currency].currency,"symbol",n.currencyTypes[e.currency].currencySymbol)," ")}}function Vg(t,i){if(t&1&&(l(0,"div",52),c(1),s()),t&2){let e=d(3).$implicit;r(),M(" ",e.charge.failure_message," ")}}function Ag(t,i){if(t&1&&(l(0,"div")(1,"table",32)(2,"thead",33)(3,"tr")(4,"th",34),c(5,"Payment Card Number"),s(),l(6,"th",35),c(7,"Card Type"),s(),l(8,"th",35),c(9,"Payment Status"),s()()(),l(10,"tbody")(11,"tr")(12,"td"),c(13),s(),l(14,"td"),c(15),w(16,"titlecase"),s(),l(17,"td")(18,"div",51),c(19),w(20,"titlecase"),s()()()()(),u(21,Vg,2,1,"div",52),s()),t&2){let e=d(2).$implicit;r(13),M("XXXX-XXXX-XXXX-",e.charge.payment_method_details.card.last4),r(2),I(O(16,5,e.charge.payment_method_details.card.brand)),r(3),g("ngClass",e.charge.failure_code?"text-danger":"text-success"),r(),M(" ",O(20,7,e.charge.status)," "),r(2),_(e.charge.failure_message?21:-1)}}function Og(t,i){if(t&1&&(l(0,"div",49)(1,"table",32)(2,"thead",33)(3,"tr")(4,"th",34),c(5,"Description"),s(),l(6,"th",35),c(7,"Payment Date"),s(),l(8,"th",35),c(9,"Price"),s()()(),l(10,"tbody")(11,"tr")(12,"td")(13,"div"),c(14),s(),u(15,Sg,3,1,"div"),s(),l(16,"td"),u(17,kg,2,4),s(),l(18,"td"),c(19),w(20,"currency"),s()()()(),l(21,"table",50)(22,"tbody")(23,"tr")(24,"th",37),c(25,"Subtotal"),s(),l(26,"td",37),c(27),w(28,"currency"),s()(),u(29,Eg,6,8,"tr"),u(30,Lg,6,7,"tr"),u(31,Ig,6,6,"tr"),u(32,Yg,6,6,"tr",38),l(33,"tr",39)(34,"th"),c(35,"Amount Due"),s(),l(36,"td"),c(37),w(38,"currency"),s()()()(),u(39,Ag,22,9,"div"),s()),t&2){let e=d().$implicit,n=d(3);r(14),M(" Ausmed ",(n.allInvoicesPackageInfoByInvoiceID[e.id]==null||n.allInvoicesPackageInfoByInvoiceID[e.id].package==null?null:n.allInvoicesPackageInfoByInvoiceID[e.id].package.displayName)||""," Subscription "),r(),_(n.allInvoicesPackageInfoByInvoiceID[e.id]!=null&&n.allInvoicesPackageInfoByInvoiceID[e.id].extraNote?15:-1),r(2),_(e.charge!=null&&e.charge.created?17:-1),r(2),M(" ",le(20,11,e.amount_due/100,n.currencyTypes[e.currency].currency,"symbol",n.currencyTypes[e.currency].currencySymbol)," "),r(8),M(" ",le(28,16,(e==null?null:e.subtotal)/100,n.currencyTypes[e==null?null:e.currency].currency,"symbol",n.currencyTypes[e==null?null:e.currency].currencySymbol)," "),r(2),_(e.discount!=null&&e.discount.coupon?29:-1),r(),_(e.tax?30:-1),r(),_(e&&e.starting_balance!==null&&e.ending_balance!==null&&e.starting_balance!==e.ending_balance?31:-1),r(),_(e&&e.starting_balance!==null&&e.
6ending_balance!==null&&e.starting_balance!==e.ending_balance?32:-1),r(5),M(" ",le(38,21,e.amount_due/100,n.currencyTypes[e.currency].currency,"symbol",n.currencyTypes[e.currency].currencySymbol)," "),r(2),_(!(e==null||e.charge==null||e.charge.payment_method_details==null)&&e.charge.payment_method_details.card?39:-1)}}function Rg(t,i){if(t&1&&(l(0,"mat-expansion-panel",43)(1,"mat-expansion-panel-header")(2,"div",44)(3,"span"),c(4),w(5,"date"),w(6,"date"),s(),l(7,"span",45),c(8),w(9,"currency"),s(),u(10,Dg,2,0,"span",46),u(11,xg,2,0,"span",47),u(12,Mg,2,0,"span",48),s()(),u(13,wg,3,0,"div",49),u(14,Og,40,26,"div",49),s()),t&2){let e=i.$implicit,n=d(3);r(4),oi("",ye(5,8,(e.lines.data[0]==null?null:e.lines.data[0].period.start)*1e3,"dd MMM yyyy")," To ",ye(6,11,(e.lines.data[0]==null?null:e.lines.data[0].period.end)*1e3,"dd MMM yyyy")),r(4),M("Price: ",e.total>0?le(9,14,e.total/100,n.currencyTypes[e.currency].currency,"symbol",n.currencyTypes[e.currency].currencySymbol):"Trial"),r(2),_(e.status==="paid"?10:-1),r(),_(e.status==="uncollectible"?11:-1),r(),_(e.status==="draft"||e.status==="open"?12:-1),r(),_(e.status==="uncollectible"?13:-1),r(),_(e.status!=="uncollectible"?14:-1)}}function Fg(t,i){if(t&1&&(l(0,"div",6)(1,"div",8)(2,"div",41)(3,"div",42)(4,"h5",29),c(5,"Past Invoices"),s()(),l(6,"div",30)(7,"p",31),c(8),w(9,"currency"),s()()()(),l(10,"div",9)(11,"mat-accordion"),R(12,Rg,15,19,"mat-expansion-panel",43,nc),s()()()),t&2){let e=d(2);r(8),M(" Balance: ",le(9,1,e.balance/100,e.currencyTypes[e.invoices[0].currency].currency,"symbol",e.currencyTypes[e.invoices[0].currency].currencySymbol)," "),r(4),F(e.invoices)}}function Hg(t,i){t&1&&(l(0,"p"),c(1,"All your purchases were made through Apple on the Ausmed mobile app. Please refer to your Apple/iTunes account to access the receipts for these purchases."),s())}function Bg(t,i){t&1&&(l(0,"p"),c(1,"All your purchases were made through Android on the Ausmed mobile app. Please refer to your Google Play account to access the receipts for these purchases."),s())}function jg(t,i){t&1&&(l(0,"div",53)(1,"small")(2,"b"),c(3,"Please note:"),s(),c(4," This report will not include any purchase made through Apple on the Ausmed mobile app. Refer to your Apple/iTunes account to access the receipts for these purchases. "),s()())}function Ng(t,i){t&1&&(l(0,"div",53)(1,"small")(2,"b"),c(3,"Please note:"),s(),c(4," This report will not include any purchase made through Google on the Ausmed mobile app. Refer to your Google Play account to access the receipts for these purchases. "),s()())}function Wg(t,i){if(t&1&&(l(0,"p"),c(1,"Select a financial year and download a payment report for claiming work related education expense."),s(),u(2,jg,5,0,"div",53),u(3,Ng,5,0,"div",53)),t&2){let e=d(2);r(2),_(e.hadIAP?2:-1),r(),_(e.hadGIAP?3:-1)}}function Ug(t,i){t&1&&x(0,"ui-spinner",73)}function qg(t,i){t&1&&(l(0,"div",74),c(1," Please select a period "),s())}function $g(t,i){t&1&&(l(0,"div",75),c(1," Please "),l(2,"a",76),c(3,"complete your postal address"),s(),c(4," before downloading the report. "),s())}function zg(t,i){if(t&1){let e=D();l(0,"div")(1,"div",54)(2,"div",55)(3,"select",56)(4,"option",57),c(5,"Select Year"),s(),l(6,"option",58),c(7,"2025-2026"),s(),l(8,"o
6ption",59),c(9,"2024-2025"),s(),l(10,"option",60),c(11,"2023-2024"),s(),l(12,"option",61),c(13,"2022-2023"),s(),l(14,"option",62),c(15,"2021-2022"),s(),l(16,"option",63),c(17,"2020-2021"),s(),l(18,"option",64),c(19,"2019-2020"),s(),l(20,"option",65),c(21,"2018-2019"),s(),l(22,"option",66),c(23,"2017-2018"),s(),l(24,"option",67),c(25,"2016-2017"),s()()()(),l(26,"h4"),c(27,"Or"),s(),l(28,"p"),c(29,"Download a payment report within a selected date range"),s(),l(30,"div",68)(31,"div",69)(32,"div",70),x(33,"input",71),s()()(),l(34,"button",72),C("click",function(){p(e);let o=d(2);return f(o.getInvoices())}),u(35,Ug,1,0,"ui-spinner",73),c(36," Download payment report "),s(),u(37,qg,2,0,"div",74),u(38,$g,5,0,"div",75),s()}if(t&2){let e=d(2);r(3),g("formControl",e.financialYCtrl),r(30),g("bsConfig",Pt(7,ag))("formControl",e.dateRangeCtrl),r(),g("disabled",e.submittingRequest),r(),_(e.submittingRequest?35:-1),r(2),_(e.reportGroup.dirty&&!e.dateRangeCtrl.value[0]&&!e.dateRangeCtrl.value[1]&&!e.financialYCtrl.value?37:-1),r(),_(e.downloadInvoiceError?38:-1)}}function Gg(t,i){if(t&1&&(u(0,cg,13,2,"div",5),u(1,vg,47,33,"div",6),u(2,Fg,14,6,"div",6),l(3,"div",7)(4,"h5",8),c(5,"Payment Report"),s(),l(6,"div",9)(7,"div",10),u(8,Hg,2,0,"p"),u(9,Bg,2,0,"p"),u(10,Wg,4,2),s(),u(11,zg,39,8,"div"),s()(),x(12,"a",11,1)),t&2){let e=d(),n=v(4);_(n.loaded?0:-1),r(),_(e.upcomingInvoice&&!e.upcomingInvoice.message?1:-1),r(),_((e.invoices==null?null:e.invoices.length)>0?2:-1),r(6),_(!e.hadNonIAP&&e.hadIAP?8:-1),r(),_(!e.hadNonIAP&&e.hadGIAP?9:-1),r(),_(e.hadNonIAP?10:-1),r(),_(e.hadNonIAP?11:-1)}}var un=class t{constructor(i,e,n,o,a,m,h,b){this.subscriptionService=i;this.userService=e;this.platformId=n;this.certificateService=o;this.localiserService=a;this.qualificationService=m;this.dialog=h;this.injector=b;this.ngUnsubscribe=new Q;this.invoices=[];this.balance=0;this.submittingRequest=!1;this.paymentProcessedMessage="";this.paymentError="";this.downloadInvoiceError="";this.currentSubscriptions=[];this.unpaidSubscriptions=[];this.allInvoicesPackageInfoByInvoiceID={};this.financialYCtrl=new ya(null);this.dateRangeCtrl=new ya([]);this.reportGroup=new ri({financialYear:this.financialYCtrl,dateRange:this.dateRangeCtrl});this.financialYearDate={"2016-07-01":{startDate:"2016-07-01",endDate:"2017-06-30"},"2017-07-01":{startDate:"2017-07-01",endDate:"2018-06-30"},"2018-07-01":{startDate:"2018-07-01",endDate:"2019-06-30"},"2019-07-01":{startDate:"2019-07-01",endDate:"2020-06-30"},"2020-07-01":{startDate:"2020-07-01",endDate:"2021-06-30"},"2021-07-01":{startDate:"2021-07-01",endDate:"2022-06-30"},"2022-07-01":{startDate:"2022-07-01",endDate:"2023-06-30"},"2023-07-01":{startDate:"2023-07-01",endDate:"2024-06-30"},"2024-07-01":{startDate:"2024-07-01",endDate:"2025-06-30"},"2025-07-01":{startDate:"2025-07-01",endDate:"2026-06-30"}};this.currencyTypes={aud:{currency:"AUD",currencySymbol:"1.2-2",country:"AUS"},nzd:{currency:"NZD",currencySymbol:"1.2-2",country:"NZL"},gbp:{currency:"GBP",currencySymbol:"1.2-2",country:"GBR"},usd:{currency:"USD",currencySymbol:"1.2-2",country:"USA"}};this.countryHaveCurrency=["AUS","NZL","GBR","USA"];this.availableCards=[];this._getCards=()=>this.subscriptionService.fetchCardPaymentMethods().pipe(se(({cards:i})=>{this.availableCards=i||[]}));_t(this.platformId)&&(this.localStorage=localStorage)}ngOnInit(){Me([this.subscriptionService.fetchPlans(),this.subscriptionService.fetchUpcomingInvoices(),this.subscriptionService.fetchInvoices().pipe(Tt(i=>i.data)),this.subscriptionService.getStripeCustomer(),this.userService.fetchUser(),this.subscriptionService.fetchCurrentSubsStream(!0),this.subscriptionService.fetchUnpaidSubsStream(!0),this.localiserService.fetchRealCountryCodeByIP(),this.qualificationService.getProfessionalProfiles(),this.subscriptionService.fetchAllSubscriptions(),this._getCards()]).pipe(q(this.ngUnsubscribe)).subscribe(([i,e,n,o,a,m,h,b,k,V])=>{this.plans=i.data,this.planDictionary=P.indexBy(this.plans,"id"),this.upcomingInvoice=e,this._prepareInvoicePackageInfoInDict(this.upcomingInvoice,!0),this._processInvoices(n),this.stripeCustomer=o,a&&(this.user=a,this.user&&!this.user.billingAddress&&(this.user.billingAddress={})),this.currentSubscriptions=m,(this.hasDeprecatedSubscription=Xr(this.injector,m,"deprecatedStripe"))&&this._processDisplayedSubNameForUpcomingInvoice(),this.currentPackage=null;let Z=(Gn(m,"stripe")||[])[0];Z&&(this.currentPackage=Ma(this.injector,Z)),this.unpaidSubscriptions=h,this.hadIAP=P.some(Gn(V,"iap")||[],ii=>ii.status==="active"),this.hadGIAP=P.some(Gn(V,"giap")||[],ii=>ii.status==="active");let ve=Zr(this.injector,V,["iap","giap"])||[];this.hadNonIAP=ve.length>0,this.localisedCountryCode=b,this.professionProfile=k&&k.length>0?k[0]:null,this.loaded=!0,this.loadError=null},()=>{this.loadError=!0})}_processInvoices(i){this.invoices=P.sortBy(i.filter(n=>n.total>
60&&n.status!=="void"),"-date"),this.invoices.forEach(n=>{this._prepareInvoicePackageInfoInDict(n)}),this.paidInvoices=P.filter(this.invoices,n=>n.status==="paid");let e=P.reduce(this.paidInvoices,(n,o)=>n+o.total,0);this.balance=P.reduce(this.invoices,(n,o)=>o.status==="uncollectible"?n:n+o.total,0)-e}_prepareInvoicePackageInfoInDict(i,e){let n=this._generateMockStripeSubFromInvoice(i),o=Ma(this.injector,n);if(o){let a=e?"upcoming":i.id,m=$s(o);this.allInvoicesPackageInfoByInvoiceID[a]={package:o,isPii:m,extraNote:m&&(i.content?.total_premium_cents||i.content?.total_premium_cents===0)?this._generatePiiInfo(i.content?.total_premium_cents,this.currencyTypes[i.currency]?.currency):void 0}}}_generateMockStripeSubFromInvoice(i){if(!(!i||!i.lines||!i.lines.data))return{activationDate:void 0,activationDateMs:void 0,expiryDate:void 0,expiryDateMs:void 0,payer:i.customer,productID:void 0,status:"Active",subType:"Stripe",subscriber:i.customer,subscriptionID:void 0,subStartDate:void 0,content:{prices:P.compact(i.lines.data.map(e=>e.amount>=0?e.price:void 0))}}}_generatePiiInfo(i,e){return`Your subscription fee includes ${qs(i,e)} per year for Professional Indemnity and Public Liability Insurance.`}deleteCard(i){this.dialog.open(Ve,{disableClose:!0,panelClass:["ui-confirmation-modal","dialog-container--rounded"],data:{title:"Delete card details",message:"These card details will be permanently deleted.",rejectMessage:"Cancel",acceptMessage:"Delete",acceptBtnColour:"btn-danger"}}).afterClosed().pipe(re(n=>n?(this.submittingRequest=!0,this.subscriptionService.detachPaymentMethod(i)):Sr),re(()=>this._getCards()),Lr(()=>{this.submittingRequest=!1})).subscribe(()=>P,n=>{console.log(n)})}updateCard(i){let e={updateInfo:{pm:i,isUpdate:!0},unpaidSubs:this.unpaidSubscriptions};wa(this.injector,e)}openAddCardModal(){let i={unpaidSubs:this.unpaidSubscriptions};wa(this.injector,i)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}getBillingCountry(){let i;return this.professionProfile&&this.professionProfile.country&&this.stripeCustomer&&this.stripeCustomer.currency?(i=this.currencyTypes[this.stripeCustomer.currency].country,i==="USA"&&!P.find(this.countryHaveCurrency,e=>e===this.professionProfile.country)&&(i=this.professionProfile.country)):this.professionProfile&&this.professionProfile.country?i=this.professionProfile.country:i=this.localisedCountryCode,i}getInvoices(){let i=this.dateRangeCtrl.value,e=this.financialYCtrl.value;if(!e&&(!i[0]||!i[1])){this.reportGroup.markAsDirty();return}if((!this.user.billingAddress||P.isEmpty(this.user.billingAddress))&&this.user.postalAddress&&!P.isEmpty(this.user.postalAddress)){let n;this.user.billingAddress?.addressID&&(n=this.user.billingAddress.addressID),this.user.billingAddress=JSON.parse(JSON.stringify(this.user.postalAddress)),this.user.billingAddress.country=this.getBillingCountry(),n&&(this.user.billingAddress.addressID=n),this.dialog.open(li,{disableClose:!0,data:{user:this.user}}).afterClosed().subscribe(a=>{a==="updated"&&this.userService.fetchUser().subscribe(m=>{this.user=m,this.getInvoices()})});return}if(!this.user.billingAddress||this.user.billingAddress&&(P.isEmpty(this.user.billingAddress)||!P.isEmpty(this.user.billingAddress)&&(!this.user.billingAddress.street1||!this.user.billingAddress.suburb||!this.user.billingAddress.postcode||!this.user.billingAddress.country||!this.user.billingAddress.state))){let n;this.user.billingAddress?.addressID&&(n=this.user.billingAddress.addressID),this.user.billingAddress.country=this.getBillingCountry(),n&&(this.user.billingAddress.addressID=n),this.dialog.open(li,{disableClose:!0,data:{user:this.user}}).afterClosed().subscribe(a=>{a==="updated"&&this.userService.fetchUser().subscribe(m=>{this.user=m,this.getInvoices()})});return}this.submittingRequest=!0,i[0]&&i[1]?this.certificateService.fetchInvoiceStatement({startDate:(0,Mr.default)(i[0]).format("YYYY-MM-DD"),endDate:(0,Mr.default)(i[1]).format("YYYY-MM-DD")}).then(n=>{if(this.submittingRequest=!1,_t(this.platformId)){let o=window.URL.createObjectURL(n),a=window.navigator;if(a?.msSaveOrOpenBlob)a.msSaveOrOpenBlob(o,"statement.pdf");else{let m=this.downloadStatementLink.nativeElement;m.href=o,m.download="statement.pdf",m.click(),window.URL.revokeObjectURL(o)}}},()=>{this.submittingRequest=!1}
6):this.certificateService.fetchInvoiceStatement(this.financialYearDate[e]).then(n=>{if(this.submittingRequest=!1,_t(this.platformId)){let o=window.URL.createObjectURL(n),a=window.navigator;if(a?.msSaveOrOpenBlob)a.msSaveOrOpenBlob(o,"statement.pdf");else{let m=this.downloadStatementLink.nativeElement;m.href=o,m.download="statement.pdf",m.click(),window.URL.revokeObjectURL(o)}}},()=>{this.submittingRequest=!1})}_processDisplayedSubNameForUpcomingInvoice(){this.upcomingInvoiceDisplayName="",this.upcomingInvoice?.lines&&this.upcomingInvoice?.lines?.data&&this.upcomingInvoice?.lines?.data.forEach(i=>{i.amount>0&&(this.upcomingInvoiceDisplayName+=", "+i.plan.nickname)}),this.upcomingInvoiceDisplayName=this.upcomingInvoiceDisplayName.slice(2)}static{this.\u0275fac=function(e){return new(e||t)(y(Kr),y(K),y(xi),y(Hs),y(Qn),y(Si),y(Re),y(Ae))}}static{this.\u0275cmp=Y({type:t,selectors:[["ng-component"]],viewQuery:function(e,n){if(e&1&&We(ng,5),e&2){let o;we(o=Se())&&(n.downloadStatementLink=o.first)}},features:[De([_a,po,go])],decls:6,vars:8,consts:[["sa",""],["downloadStatementLink",""],[1,"mt-1","mb-4"],[3,"loaded","loadError"],[3,"queryKeys"],[1,"card","mb-4",3,"hidden"],[1,"card","mb-4"],[1,"card","mb-7"],[1,"card-header"],[1,"card-body"],[1,"card-text"],[1,"download-zip-link"],[1,"text-danger","font-weight-bold"],["size","f-paragraph","theme","bold","name","alert-circle","color","text-danger",1,"mr-1"],[1,"mb-4"],[1,"d-flex","justify-content-between","mb-2"],[1,"mt-2","btn","btn-outline-secondary",3,"click"],[1,"mr-4",2,"flex-grow","1"],[1,"mr-4",2,"flex-grow","3"],[1,"d-flex","flex-row"],[1,"btn","btn-default",3,"click"],["name","pencil","size","f-caption"],[1,"btn","btn-default","d-flex","flex-row","align-items-center",3,"disabled"],[1,"btn","btn-default","d-flex","flex-row","align-items-center",3,"click","disabled"],["color","dark",1,"mr-2"],["name","bin-1","color","text-neutral-900","size","f-caption"],[1,"card-header","card-header-dashed"],[1,"row","md-gutters","align-items-end"],[1,"col-12","col-xl"],[1,"card-header-title"],[1,"col-auto"],[1,"card-header-sub-title"],[1,"table","table-bordered","table-sm","small"],[1,"table-weak"],["scope","col"],["scope","col",2,"width","25%"],[1,"table","table-bordered","table-sm","small","float-right",2,"width","50%"],[2,"width","50%"],[1,"table-success"],[1,"table-warning"],[1,"f-small","mt-2"],[1,"row","align-items-end"],[1,"col"],[1,"w-100"],[1,"d-flex","justify-content-between"],[1,"pl-2"],[1,"d-flex","align-items-center","white-space-nowrap","px-2","text-success"],[1,"d-flex","align-items-center","white-space-nowrap","px-2","text-warning"],[1,"d-flex","align-items-center","white-space-nowrap","px-2","text-danger"],[1,"d-block"],[1,"table","table-bordered","table-sm","small",2,"width","50%","float","right"],["role","alert",3,"ngClass"],["role","alert",1,"alert","alert-danger"],[1,"mt-4","mb-1"],[1,"form-group","mb-4"],[1,"form-has-caret"],["name","singleSelect",1,"form-control",3,"formControl"],["value",""],["value","2025-07-01"],["value","2024-07-01"],["value","2023-07-01"],["value","2022-07-01"],["value","2021-07-01"],["value","2020-07-01"],["value","2019-07-01"],["value","2018-07-01"],["value","2017-07-01"],["value","2016-07-01"],[1,"row"],[1,"col-xs-12","col-12","col-md-7","col-xl-5","form-group"],[1,"form-has-calendar"],["type","text","placeholder","Select date range","bsDaterangepicker","",1,"form-control",3,"bsConfig","formControl"],[1,"btn","btn-secondary","d-inline-flex","align-items-center",3,"click","disabled"],["color","light",1,"mr-2"],[1,"mt-2","invalid-feedback"],[1,"text-danger"],["routerLink","/profile-setting/account-info"]],template:function(e,n){if(e&1&&(l(0,"h4",2),c(1,"Tax Statements"),s(),x(2,"loader-container",3)(3,"subs-access",4,0),u(5,Gg,14,7)),e&2){let o=v(4);r(2),g("loaded",n.loaded)("loadError",n.loadError),r(),g("queryKeys",Fr(4,og,o.AK.hasValidSub,o.AK.noValidSub,o.AK.hasUnpaidSub)),r(2),_(n.loaded?5:-1)}}
6,dependencies:[xt,nl,ke,ue,Ut,Nt,Wt,ai,_e,no,oo,Fe,io,Te,cs,ea,xr,Nr,Hr,_a,Ft],styles:[".c-currency-line[_ngcontent-%COMP%]{font-family:SFMono-Regular,Liberation Mono,Courier New,monospace;text-align:right}.c-currency-line-amount-due[_ngcontent-%COMP%]{font-family:SFMono-Regular,Liberation Mono,Courier New,monospace;text-align:right;border-top:2px solid}.c-past-invoice-text[_ngcontent-%COMP%]{font-size:14px}.c-past-invoice-accordion[_ngcontent-%COMP%] .ui-accordion-header[_ngcontent-%COMP%]{padding-right:60px}.c-past-invoice-tab-header-status[_ngcontent-%COMP%]{position:absolute;right:10px;top:14px}.c-past-invoice-table[_ngcontent-%COMP%]{margin:5px 20px;width:90%}.c-past-invoice-table-title[_ngcontent-%COMP%]{margin:10px 20px;font-weight:600}"]})}};var ta=class t extends Ds{format(i,e){if(e==="input"){let n=(i.getMonth()+1).toString();n=+n<10?"0"+n:n;let o=i.getFullYear();return`${n}/${o}`}return i.toDateString()}static{this.\u0275fac=(()=>{let i;return function(n){return(i||(i=Bn(t)))(n||t)}})()}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac})}},oc={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var Qg=["eduForm"],Jg=["editEducationForm"],Kg=(t,i)=>i.educationID;function Xg(t,i){t&1&&(l(0,"div",53),c(1,"You have to enter a workplace "),s())}function Zg(t,i){if(t&1&&(l(0,"div"),u(1,Xg,2,0,"div",53),s()),t&2){d();let e=v(12);r(),_(e.errors.required?1:-1)}}function eC(t,i){t&1&&(l(0,"div",53),c(1,"You have to enter a degree "),s())}function tC(t,i){if(t&1&&(l(0,"div"),u(1,eC,2,0,"div",53),s()),t&2){d();let e=v(23);r(),_(e.errors.required?1:-1)}}function iC(t,i){t&1&&(l(0,"div",53),c(1,"Please enter a start date "),s())}function nC(t,i){t&1&&(l(0,"div",53),c(1,"Not a valid date! "),s())}function oC(t,i){if(t&1&&(l(0,"div"),u(1,iC,2,0,"div",53),u(2,nC,2,0,"div",53),s()),t&2){d();let e=v(29);r(),_(e.errors.required?1:-1),r(),_(e.errors.invalidDate?2:-1)}}function aC(t,i){t&1&&(l(0,"div",53),c(1,"Please enter a end date "),s())}function rC(t,i){t&1&&(l(0,"div",53),c(1,"Not a valid date! "),s())}function sC(t,i){t&1&&(l(0,"div",53),c(1,"End date must be later than start date! "),s())}function lC(t,i){if(t&1&&(l(0,"div"),u(1,aC,2,0,"div",53),u(2,rC,2,0,"div",53),u(3,sC,2,0,"div",53),s()),t&2){d();let e=v(4);r(),_(e.errors.required?1:-1),r(),_(e.errors.invalidDate?2:-1),r(),_(e.errors.min?3:-1)}}function dC(t,i){if(t&1){let e=D();l(0,"div",23)(1,"label",54),c(2,"End Year and Month*"),s(),l(3,"input",55,10),j("ngModelChange",function(o){p(e);let a=d().$implicit;return B(a.endDate,o)||(a.endDate=o),f(o)}),C("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(6);return f(o.open())})("click",function(){p(e);let o=v(6);return f(o.open())}),s(),l(5,"mat-datepicker",35,11),C("monthSelected",function(o){p(e);let a=v(6),m=d().$implicit,h=d(2);return f(h.editEduChosenMonthHandler(o,a,m,"endDate"))}),s(),u(7,lC,4,3,"div"),s()}if(t&2){let e=v(4),n=v(6),o=d().$implicit,a=d(2);r(3),g("matDatepicker",n),H("ngModel",o.endDate),g("min",o.startDate)("max",a.datePickerConfig.maxDate)("disabled",o.currentEducation),r(4),_(e!=null&&e.errors&&!(e!=null&&e.pristine)?7:-1)}}function cC(t,i){t&1&&x(0,"ui-spinner",51)}function mC(t,i){t&1&&x(0,"ui-spinner",51)}function uC(t,i){if(t&1){let e=D();l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header"),c(2),w(3,"date"),w(4,"date"),s(),l(5,"form",40,7),C("ngSubmit",function(){let o=p(e).$implicit,a=d(2);return f(a.saveEducation(o))}),l(7,"div",22)(8,"div",23)(9,"label",41),c(10,"Institution*"),s(),l(11,"input",42,1),j("ngModelChange",function(o){let a=p(e).$implicit;return B(a.school,o)||(a.school=o),f(o)}),s(),u(13,Zg,2,1,"div"),s(),l(14,"div",23)(15,"label",43),c(16,"Major"),s(),l(17,"input",44,3),j("ngModelChange",function(o){let a=p(e).$implicit;return B(a.major,o)||(a.major=o),f(o)}),s()(),l(19,"div",23)(20,"label",45),c(21,"Degree*"),s(),l(22,"input",46,4),j("ngModelChange",function(o){let a=p(e).$implicit;return B(a.degree,o)||(a.degree=o),f(o)}),s(),u(24,tC,2,1,"div"),s(),l(25,"div",23)(26,"label",32),c(27,"Start Year and Month*"),s(),l(28,"input",47,8),j("ngModelChange",function(o){let a=p(e).$implicit;return B(a.startDate,o)||(a.startDate=o),f(o)}),C("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(31);return f(o.open())})("click",function(){p(e);let o=v(31);return f(o.open())}),s(),l(30,"mat-datepicker",35,9),C("monthSelected",function(o){let a=p(e).$implicit,m=v(31),h=d(2);return f(h.editEduChosenMonthHandler(o,m,a,"startDate"))}),s(),u(32,oC,3,2,"div"),s(),u(33,dC,8,6,"div",23),l(34,"div",23)(35,"div",36)(36,"input",48),C("change",function(){let o=p(e).$implicit;return f(o.currentEducation=!o.currentEducation)}),s(),l(37,"label",49),c(38,"Add an end date"),s()()()(),l(39,"button",50),u(40,cC,1,0,"ui-spinner",51),c(41," Save "),s(),l(42,"button",52),C("click",function(){let o=p(e).$implicit,a=d(2);return f(a.removeEducation(o))}),u(43,mC,1,0,"ui-spinner",51),c(44," Remove "),s()()()}if(t&2){let e=i.$implicit,n=v(12),o=v(23),a=v(29),m=v(31);d();let h=v(26),b=d();r(2),Nn(" ",e.major?e.major+" at":""," ",e.school,"\u2013 ",ye(3,21,e.startDate,"MMM yyyy")," to ",e.endDate?ye(4,24,e.endDate,"MMM yyyy"):"Present"," "),r(9),H("ngModel",e.school),g("matAutocomplete",h),r(2),_(n.errors&&!n.pristine?13:-1),r(4),H("ngModel",e.major),r(5),H("ngModel",e.degree),r(2),_(o.errors&&!o.pristine?24:-1),r(4),g("matDatepicker",m),H("ngModel",e.startDate),g("min",b.datePickerConfig.minDate)("max",b.datePickerConfig.maxDate),r(4),_(a.errors&&!a.pristine?32:-1),r(),_(e.currentEducation?-1:33),r(3),g("checked",!e.currentEducation),r(3),g("disabled",b.submittingRequest),r(),_(b.submittingRequest?40:-1),r(2),g("disabled",b.submittingRequest),r(),_(b.submittingRequest?43:-1)}}function _C(t,i){if(t&1&&(l(0,"mat-option",26),c(1),s()),t&2){let e=i.$implicit;g("value",e),r(),M(" ",e," ")}}function pC(t,i){t&1&&(l(0,"div",53),c(1,"You have to enter a school"),s())}function fC(t,i){if(t&1&&(l(0,"div"),u(1,pC,2,0,"div",53),s()),t&2){d();let e=v(24);r(),_(e.errors.required?1:-1)}}function hC(t,i){t&1&&(l(0,"div",53),c(1,"You have to enter a degree"),s())}function gC(t,i){if(t&1&&(l(0,"div"),u(1,hC,2,0,"div",53),s()),t&2){d();let e=v(40);r(),_(e.errors.required?1:-1)}}function CC(t,i){t&1&&(l(0,"div",53),c(1,"Please enter a start month and year "),s())}function yC(t,i){t&1&&(l(0,"div",53),c(1,"Not a valid date!"),s())}function bC(t,i){if(t&1&&(l(0,"div"),u(1,CC,2,0,"div",53),u(2,yC,2,0,"div",53),s()),t&2){d();let e=v(47);r(),_(e.errors!=null&&e.errors.required&&e.touched?1:-1),r(),_(e.errors!=null&&e.errors.invalidDate?2:-1)}}function vC(t,i){t&1&&(l(0,"div",53),c(1,"Please enter a end date"),s())}function DC(t,i){t&1&&(l(0,"div",53),c(1,"Not a valid date!"),s())}function xC(t,i){t&1&&(l(0,"div",53),c(1,"End date must be later than start date! "),s())}function MC(t,i){if(t&1&&(l(0,"div"),u(1,vC,2,0,"div",53),u(2,DC,2,0,"div",53),u(3,xC,2,0,"div",53),s()),t&2){d();let e=v(5);r(),_(e.errors.required?1:-1),r(),_(e.errors.invalidDate?2:-1),r(),_(e.errors.min?3:-1)}}function wC(t,i){if(t&1){let e=D();l(0,"div",31)(1,"label",54),c(2,"End Month and Year*"),s(),l(3,"div",33)(4,"input",56,12),j("ngModelChange",function(o){p(e);let a=d(2);
6return B(a.newEducation.endDate,o)||(a.newEducation.endDate=o),f(o)}),C("paste",function(o){return o.preventDefault()})("focus",function(){p(e);let o=v(7);return f(o.open())})("click",function(){p(e);let o=v(7);return f(o.open())}),s()(),l(6,"mat-datepicker",35,13),C("monthSelected",function(o){p(e);let a=v(7),m=d(2);return f(m.addNewChosenMonthHandler(o,a,"endDate"))}),s(),u(8,MC,4,3,"div"),s()}if(t&2){let e=v(5),n=v(7),o=d(2);r(4),g("matDatepicker",n),H("ngModel",o.newEducation.endDate),g("min",o.newEducation.startDate)("max",o.datePickerConfig.maxDate)("disabled",o.newEducation.currentEducation),r(4),_(e!=null&&e.errors&&!(e!=null&&e.pristine)?8:-1)}}function SC(t,i){if(t&1){let e=D();l(0,"div",16)(1,"h5",17),c(2,"Education History"),s(),l(3,"div",18)(4,"p",19),c(5," Please add your current and past education using the form below. "),s()()(),l(6,"div",20)(7,"h5",17),c(8,"Education History"),s(),l(9,"div",18)(10,"mat-accordion"),R(11,uC,45,27,"mat-expansion-panel",null,Kg),s()()(),l(13,"div",16)(14,"h5",17),c(15,"Add education"),s(),l(16,"div",18)(17,"form",21,0),C("ngSubmit",function(){p(e);let o=d();return f(o.addEducation())}),l(19,"div",22)(20,"div",23)(21,"label",24),c(22,"Education Institution Name*"),s(),l(23,"input",25,1),j("ngModelChange",function(o){p(e);let a=d();return B(a.newEducation.school,o)||(a.newEducation.school=o),f(o)}),s(),l(25,"mat-autocomplete",null,2),R(27,_C,2,2,"mat-option",26,J),w(29,"async"),s(),u(30,fC,2,1,"div"),s(),l(31,"div",23)(32,"label",27),c(33,"Major"),s(),l(34,"input",28,3),j("ngModelChange",function(o){p(e);let a=d();return B(a.newEducation.major,o)||(a.newEducation.major=o),f(o)}),s()(),l(36,"div",23)(37,"label",29),c(38,"Degree*"),s(),l(39,"input",30,4),j("ngModelChange",function(o){p(e);let a=d();return B(a.newEducation.degree,o)||(a.newEducation.degree=o),f(o)}),s(),u(41,gC,2,1,"div"),s(),l(42,"div",31)(43,"label",32),c(44,"Start Month and Year*"),s(),l(45,"div",33)(46,"input",34,5),j("ngModelChange",function(o){p(e);let a=d();return B(a.newEducation.startDate,o)||(a.newEducation.startDate=o),f(o)}),C("focus",function(){p(e);let o=v(49);return f(o.open())})("click",function(){p(e);let o=v(49);return f(o.open())})("paste",function(o){return o.preventDefault()}),s()(),l(48,"mat-datepicker",35,6),C("monthSelected",function(o){p(e);let a=v(49),m=d();return f(m.addNewChosenMonthHandler(o,a,"startDate"))}),s(),u(50,bC,3,2,"div"),s(),u(51,wC,9,6,"div",31),l(52,"div",23)(53,"div",36)(54,"input",37),C("change",function(){p(e);let o=d();return f(o.newEducation.currentEducation=!o.newEducation.currentEducation)}),s(),l(55,"label",38),c(56,"Add an end month and year"),s()()()(),l(57,"button",39),c(58," Save"),s()()()()}if(t&2){let e=v(24),n=v(26),o=v(40),a=v(47),m=v(49),h=d();r(6),g("hidden",h.educationHistory.length<1),r(5),F(h.educationHistory),r(12),H("ngModel",h.newEducation.school),g("matAutocomplete",n),r(4),F(O(29,14,h.schools)),r(3),_(e.errors&&!e.pristine?30:-1),r(4),H("ngModel",h.newEducation.major),r(5),H("ngModel",h.newEducation.degree),r(2),_(o.errors&&!o.pristine?41:-1),r(5),H("ngModel",h.newEducation.startDate),g("matDatepicker",m)("min",h.datePickerConfig.minDate)("max",h.datePickerConfig.maxDate),r(4),_(a.errors&&!a.pristine?50:-1),r(),_(h.newEducation.currentEducation?-1:51),r(3),g("checked",!h.newEducation.currentEducation)}}var ac={degree:"",major:"",school:"",startDate:"",endDate:"",currentEducation:!0},_n=class t{constructor(i,e){this.educationService=i;this.dialog=e;this.ngUnsubscribe=new Q;this.newEducation=ne({},ac);this.submittingRequest=!1;this.datePickerConfig=this._initDatePickerConfig(),this.schools=this.educationService.fetchSchools()}ngOnInit(){this.educationService.fetchEducations().pipe(re(()=>this.educationService.getEducationHistory()),q(this.ngUnsubscribe)).subscribe(i=>{this.educationHistory=i,this.loaded=!0,this.loadError=!1},()=>{this.loadError=!0})}addEducation(){if(!this.eduForm.valid){Object.keys(this.eduForm.controls).forEach(i=>{this.eduForm.form.controls[i].markAsDirty()});return}this.educationService.addEducation(this._getConvertEduForm(this.newEducation)).subscribe(()=>{this.eduForm.resetForm(),this.newEducation=ne({},ac)})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}_initDatePickerConfig(){let e=new Date().getFullYear(),n=new Date;n.setFullYear(e-50);let o=new Date;o.setFullYear(e+10);let a=`${n.getFullYear()}:${o.getFullYear()}`;return{minDate:n,maxDate:o,yearRange:a}}
6_getConvertEduForm(i){let e=P.omit(i,["startDate","endDate","currentEducation","endYear","endMonth"]),[n,o]=this.getYearAndMonthFromDate(i.startDate);if(i.endDate&&!i.currentEducation){let[a,m]=this.getYearAndMonthFromDate(i.endDate);e=P.omit(e,"endDate"),e=ct(ne({},e),{endYear:a,endMonth:m})}return ct(ne({},e),{startYear:n,startMonth:o})}getYearAndMonthFromDate(i){let e=new Date(i).getFullYear(),n=new Date(i).getMonth();return[e,n]}saveEducation(i){if(!this.editEducationForm.valid){Object.keys(this.editEducationForm.controls).forEach(n=>{this.editEducationForm.form.controls[n].markAsDirty()});return}let e=this._getConvertEduForm(i);this.educationService.editEducation(e).subscribe(()=>this.submittingRequest=!1)}removeEducation(i){this.dialog.open(Ve,{disableClose:!0,panelClass:["ui-confirmation-modal","dialog-container--rounded"],data:{title:"Delete education record",message:"This record of education will be permanently deleted.",rejectMessage:"Cancel",acceptMessage:"Delete",acceptBtnColour:"btn-danger"}}).afterClosed().subscribe(n=>{n&&this.educationService.deleteEducation(i.educationID).subscribe(()=>this.submittingRequest=!1)})}editEduChosenMonthHandler(i,e,n,o){n[o]=i,e.close()}addNewChosenMonthHandler(i,e,n){this.newEducation[n]=i,e.close()}static{this.\u0275fac=function(e){return new(e||t)(y(zs),y(Re))}}static{this.\u0275cmp=Y({type:t,selectors:[["app-education-history"]],viewQuery:function(e,n){if(e&1&&We(Qg,5)(Jg,5),e&2){let o;we(o=Se())&&(n.eduForm=o.first),we(o=Se())&&(n.editEducationForm=o.first)}},features:[De([{provide:_s,useClass:ta},{provide:ps,useValue:oc}])],decls:4,vars:3,consts:[["eduForm","ngForm"],["school","ngModel"],["autoSchool","matAutocomplete"],["major","ngModel"],["degree","ngModel"],["startDate","ngModel"],["startDatePicker",""],["editEducationForm","ngForm"],["editStartDate","ngModel"],["editStartDatePicker",""],["editEndDate","ngModel"],["editEndDatePicker",""],["endDate","ngModel"],["endDatePicker",""],[1,"mt-1","mb-4"],[3,"loaded","loadError"],[1,"card","mb-4"],[1,"card-header"],[1,"card-body"],[1,"card-text"],[1,"card","mb-4",3,"hidden"],["name","addEduForm","id","eduForm","novalidate","",3,"ngSubmit"],[1,"mb-6"],[1,"form-group","mb-4"],["for","newEduInstitution"],["type","text","id","newEduInstitution","name","eduInstitution","matInput","","required","",1,"form-control",3,"ngModelChange","ngModel","matAutocomplete"],[3,"value"],["for","newMajor"],["type","text","id","newMajor","name","major",1,"form-control",3,"ngModelChange","ngModel"],["for","newDegree"],["type","text","id","newDegree","name","degree","required","",1,"form-control",3,"ngModelChange","ngModel"],[1,"form-group"],["for","startDate"],[1,"form-has-calendar"],["id","startDate","name","startDate","matInput","","required","",1,"form-control",3,"ngModelChange","focus","click","paste","ngModel","matDatepicker","min","max"],["startView","multi-year",3,"monthSelected"],[1,"form-check","mt-2"],["type","checkbox","name","addEndDate","id","addEndDateCreate",1,"form-check-input",3,"change","checked"],["for","addEndDateCreate",1,"form-check-label","font-weight-normal"],["type","submit",1,"btn","btn-secondary","ladda-button"],["name","editEducationForm","id","editEducationForm","novalidate","",1,"text-dark","mt-4","mb-7",3,"ngSubmit"],["for","school"],["type","text","id","school","name","school","matInput","","required","",1,"form-control",3,"ngModelChange","ngModel","matAutocomplete"],["for","major"],["type","text","id","major","name","major","matInput","",1,"form-control",3,"ngModelChange","ngModel"],["for","degree"],["type","text","id","degree","name","degree","required","",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","editStartDate","required","",1,"form-control",3,"ngModelChange","paste","focus","click","matDatepicker","ngModel","min","max"],["type","checkbox","name","addEndDateEdit","id","addEndDateEdit",1,"form-check-input",3,"change","checked"],["for","addEndDateEdit",1,"form-check-label","font-weight-normal"],["type","submit",1,"btn","btn-secondary","ladda-button","mr-4","d-inline-flex","align-items-center",3,"disabled"],["color","dark",1,"mr-2"],["type","button",1,"btn","btn-default","d-inline-flex","align-items-center",3,"click","disabled"],[1,"invalid-feedback"],["for","endDate"],["type","text","name","editEndDate","required","",1,"form-control",3,"ngModelChange","paste","focus","click","matDatepicker","ngModel","min","max","disabled"],["type","text","id","endDate","name","endDate","required","",1,"form-control",3,"ngModelChange","paste","focus","click","matDatepicker","ngModel","min","max","disabled"]],template:function(e,n){e&1&&(l(0,"h4",14),c(1,"Education History"),s(),x(2,"loader-container",15),u(3,SC,59,16)),e&2&&(r(2),g("loaded",n.loaded)("loadError",n.loadError),r(),_(n.loaded?3:-1))},dependencies:[xt,Ut,Nt,Wt,_e,Ze,Fe,Te,Ke,Dt,He,Xe,Bt,Co,mo,Pi,Ii,Li,Ti,ue,co,lo,ut,Ft],encapsulation:2})}};var kC=(t,i)=>i.title;function TC(t,i){if(t&1){let e=D();l(0,"div",7)(1,"div",10)(2,"input",11),j("ngModelChange",function(o){let a=p(e).$implicit;return B(a.checked,o)||(a.checked=o),f(o)}),s(),l(3,"label",12)(4,"span",13),c(5),s()()(),l(6,"label",14)(7,"span",15),c(8),s()()()}if(t&2){let e=i.$implicit,n=i.$index;r(2),g("id",G(e+n)),H("ngModel",e.checked),r(),g("for",G(e+n)),r(2),I(e.title),r(),g("for",G(e+n)),r(2),I(e.desc)}}function PC(t,i){if(t&1){let e=D();l(0,"div",1)(1,"h5",6),c(2,"Select which emails you would like to receive"),s(),R(3,TC,9,9,"div",7,kC),l(5,"div",8)(6,"button",9),C("click",function(){p(e);let o=d();return f(o.toggleContactStatus(!1))}),c(7," Unsubscribe from all email communications "),s()()()}if(t&2){let e=d();r(3),F(e.preferenceOptions)}}function EC(t,i){if(t&1){let e=D();l(0,"div",1)(1,"div",7)(2,"h5"),c(3,"You have successfully unsubscribed from all email communications."),s(),l(4,"p"),c(5,"If this was a mistake, you can click below to re-subscribe."),s(),l(6,"a",16),C("click",function(){p(e);let o=d();return f(o.toggleContactStatus(!0))}),c(7,"Re-subscribe to email"),s()()()}}function LC(t,i){if(t&1){let e=D();l(0,"button",17),C("click",function(){p(e);let o=d();return f(o.savePreferences())}),c(1,"Save preferences"),s()}}function IC(t,i){if(t&1&&(l(0,"div",4),c(1),s()),t&2){let e=d();r(),I(e.successMsg)}}function YC(t,i){if(t&1&&(l(0,"div",5),c(1),s()),t&2){let e=d();r(),I(e.errorMsg)}}
6var pn=class t{constructor(i,e,n){this.userService=i;this.contactService=e;this.cd=n;this.preferenceOptions=[];this.submittingRequest=!1}ngOnInit(){this.preferenceOptions=this.contactService.getPreferenceOptions(),this.contactService.getUserContact().pipe(re(i=>(this._processPreferences(i),Di(null))),Hn(()=>this._createContact()),ls(i=>{this.loadStatus=i,this.cd.markForCheck()})).subscribe(i=>{i&&this._processPreferences(i)})}_processPreferences(i){this.contact=i,this.preferenceOptions=this.contactService.processOption(this.contact,this.preferenceOptions)}_createContact(){return this.userService.fetchCachedUser().pipe(re(i=>{this.user=ne({},i);let e={email:this.user.email,firstName:this.user.firstName,lastName:this.user.lastName,preferences:["onlineCpdAlerts","eventWeeklyAlerts","handover"]};return this.contactService.createContact(e)}),re(()=>this.contactService.getUserContact()))}toggleContactStatus(i){this.successMsg="",this.errorMsg="";let e=Object.assign({},this.contact);e.isActive=i,this.contactService.updateUserContact(e).subscribe(n=>{this._processPreferences(n)},n=>{n.error.message?this.errorMsg=n.error.message:this.errorMsg="We're sorry, something's not right at our end. Please try again later."})}savePreferences(){this.successMsg="",this.errorMsg="",this.submittingRequest=!0;let i=Object.assign({},this.contact);i.preferences=this.preferenceOptions.filter(e=>e.checked).map(e=>e.value),this.contactService.updateUserContact(i).subscribe(e=>{this.successMsg="Update Successful!",this.contact.preferences=e.preferences,this.submittingRequest=!1},e=>{e.error.message?this.errorMsg=e.error.message:this.errorMsg="We're sorry, something's not right at our end. Please try again later."})}static{this.\u0275fac=function(e){return new(e||t)(y(K),y(cl),y(Ue))}}static{this.\u0275cmp=Y({type:t,selectors:[["app-email-preference"]],decls:9,vars:7,consts:[[3,"loaded","loadError"],[1,"card"],[1,"my-4"],["type","button",1,"btn","btn-secondary"],[1,"text-success","animated","fadeIn","my-4"],[1,"invalid-feedback","animated","fadeIn","my-4"],[1,"card-header"],[1,"p-4"],[1,"mt-2","mx-4","mb-5"],[1,"btn","btn-default",3,"click"],[1,"form-check","mb-1"],["type","checkbox",1,"form-check-input",3,"ngModelChange","id","ngModel"],[1,"form-check-label","my-0",3,"for"],[1,"f-paragraph","fw-medium"],[3,"for"],[1,"f-small"],["href","javascript:void(0)",1,"underline-button",3,"click"],["type","button",1,"btn","btn-secondary",3,"click"]],template:function(e,n){e&1&&(l(0,"h4"),c(1,"Email Preferences"),s(),x(2,"loader-container",0),u(3,PC,8,0,"div",1),u(4,EC,8,0,"div",1),l(5,"div",2),u(6,LC,2,0,"button",3),u(7,IC,2,1,"div",4),u(8,YC,2,1,"div",5),s()),e&2&&(r(2),g("loaded",n.loadStatus.done)("loadError",n.loadStatus.error),r(),_(n.loadStatus.done&&(n.contact!=null&&n.contact.isActive)?3:-1),r(),_(n.loadStatus.done&&!(n.contact!=null&&n.contact.isActive)?4:-1),r(2),_(n.loadStatus.done&&(n.contact!=null&&n.contact.isActive)?6:-1),r(),_(n.successMsg?7:-1),r(),_(n.errorMsg?8:-1))},dependencies:[xt,_e,ds,Te,He,Xe],styles:[".underline-button[_ngcontent-%COMP%]{text-decoration:underline}"]})}};function VC(t,i){if(t&1){let e=D();L(0,"a",4),ae("click",function(){p(e);let o=d();return f(o.goToProfilePage())}),c(1,"View My Passport"),E()}}function AC(t,i){if(t&1){let e=D();L(0,"a",4),ae("click",function(){p(e);let o=d();return f(o.goToLandingPage())}),c(1,"Learn more"),E()}}function OC(t,i){t&1&&(L(0,"span"),c(1,"You have unenrolled from the Ausmed Passport."),E())}function RC(t,i){if(t&1&&(L(0,"span"),c(1),E()),t&2){let e=d();r(),M("You are currently ",e.enrolled?"":"not"," enrolled in the Ausmed Passport.")}}function FC(t,i){if(t&1){let e=D();L(0,"button",5),ae("click",function(){p(e);let o=d();return f(o.unenroll())}),c(1,"Unenrol from Passport"),E()}}function HC(t,i){if(t&1){let e=D();L(0,"div",3)(1,"button",6),ae("click",function(){p(e);let o=d();return f(o.enroll())}),c(2),E(),L(3,"button",7),ae("click",function(){p(e);let o=d();return f(o.decline())}),c(4," Not relevant for me "),E()()}if(t&2){let e=d();r(2),M(" ",e.unenrolled?"Re-enrol":"Enrol"," into Passport "),r(),me("hidden",e.hideDeclinedButton)}}var ia=class t extends Jn(){constructor(e,n,o,a,m,h,b){super();this.injector=e;this.apService=n;this.dialog=o;this.analytics=a;this.userService=m;this.toastrService=h;this.localiserService=b;this.enrolled=!1;this.unenrolled=!1;this.hideDeclinedButton=!0;this.alias=bo;this.isUk=!0}ngOnInit(){this.localiserService.isUk$().pipe(je(1),this.untilDestroyed()).subscribe(e=>{this.isUk=e}),this.apService.fetchPassports().pipe(se(e=>{this.allPassports=e;let n=Ns(e,this.alias);this.passportID=n.passportID}),re(()=>this.apService.fetchEnrollWithComps()),re(e=>(this.ecs=e,this.apService.getProcessedEC$(this.passportID))),this.untilDestroyed()).subscribe(e=>{this.enrolled=Bs(e&&e.enrolment),this.unenrolled=e&&e.enrolment&&e.enrolment.status==="Unenrolled",this.hideDeclinedButton=e&&!!e.enrolment,this.enrolled&&(this.enrolmentID=e.enrolment&&e.enrolment.enrolmentID)})}enroll(){let e=this.userService.getPlainUser();fl(this.injector,{passportID:this.passportID,context:"settings",getStartFunc:()=>xa(this.injector,this.alias,"enrolment successful")})}unenroll(){let e=this.userService.getPlainUser();this.analytics.track("AP-enrolment-unenrolled",{source:"website",context:"settings",alias:this.alias}),this.dialog.open(Ve,{disableClose:!0,panelClass:"ui-dialog",data:{title:"Unenrol from Passport",message:"You are currently enrolled in the Ausmed Passport.",acceptMessage:"Unenrol"}}).afterClosed().pipe(re(o=>o?this.apService.unEnrol(this.passportID,this.enrolmentID):Di(null))).subscribe(o=>{Ws(this.injector,this.allPassports,o,e&&e.userID),this.toastrService.clear(),this.toastrService.success("Successfully unenrol")},o=>{this.toastrService.clear(),this.toastrService.error("We're sorry, something's not right at our end. Please try again later.")})}decline(){this.analytics.track("AP-enrolment-declined",{source:"website",context:"settings",alias:this.alias}),this.apService.declineEnrol(this.passportID).pipe(je(1)).subscribe()}goToProfilePage(){xa(this.injector,bo,"passport settings")}goToLandingPage(){js(this.injector,bo,"settings")}static{this.\u0275fac=function(n){return new(n||t)(y(Ae),y(Is),y(Re),y(wi),y(K),y(uo),y(Qn))}}static{this.\u0275cmp=Y({type:t,selectors:[["app-ausmed-passport"]],features:[Ne],decls:11,vars:6,consts:[[1,"d-flex","justify-content-between"],["href","javascript:void(0)",1,"text-pink-600","font-weight-semibold","text-decoration-none"],[1,"btn","btn-secondary"],[1,"d-flex"],["href","javascript:void(0)",1,"text-pink-600","font-weight-semibold","text-decoration-none",3,"click"],[1,"btn","btn-secondary",3,"click"],[1,"btn","btn-secondary","mr-4",3,"click"],[1,"btn","btn-outline-secondary",3,"click","hidden"]],template:function(n,o){n&1&&(L(0,"div",0)(1,"h4"),c(2,"Ausmed Passport"),E(),u(3,VC,2,0,"a",1),u(4,AC,2,0,"a",1),E(),L(5,"p"),u(6,OC,2,0,"span"),u(7,RC,2,1,"span"),E(),L(8,"div"),u(9,FC,2,0,"button",2),u(10,HC,5,2,"div",3),E()),n&2&&(r(3),_(o.enrolled?3:-1),r(),_(!o.enrolled&&!o.isUk?4:-1),r(2),_(o.unenrolled?6:-1),r(),_(o.unenrolled?-1:7),r(2),_(o.enrolled?9:-1),r(),_(!o.enrolled&&!o.isUk?10:-1))},encapsulation:2})}};var na=class t{constructor(i,e){this.injector=i;this.router=e}canActivate(i,e){return So(this.injector).pipe(je(1),Tt(n=>n?!0:(this.router.navigate(["/profile-setting/profile"]),!1)))}static{this.\u0275fac=function(e){return new(e||t)(mt(Ae),mt(Mi))}}static{this.\u0275prov=fe({token:t,factory:t.\u0275fac,providedIn:"root"})}};
6var BC=[{path:"ausmed-pro/subscription-management",loadChildren:()=>import("./chunk-WHUDEGD2.js").then(t=>t.StripeSubManagePageModule)},{path:"",component:Vi,canActivate:[qe],children:[{path:"profile",component:Ri,canActivate:[qe]},{path:"passport",component:ia,canActivate:[qe,na]},{path:"account-info",loadChildren:()=>import("./chunk-Z5AROKWZ.js").then(t=>t.AccountInfoModule)},{path:"professional-setting",component:Bi,canActivate:[qe],canDeactivate:[ll]},{path:"memberships-and-affiliations",component:ji,canActivate:[qe]},{path:"work-experience",component:Ni,canActivate:[qe]},{path:"education-history",component:_n,canActivate:[qe]},{path:"ausmed-pro",component:xo,canActivate:[qe]},{path:"invoice",component:un,canActivate:[qe]},{path:"reset-password",component:Fi,canActivate:[qe]},{path:"social-setting",component:Hi,canActivate:[qe]},{path:"email-preference",component:pn,canActivate:[qe]},{path:"**",redirectTo:"profile"}]}],oa=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=Je({type:t})}static{this.\u0275inj=Qe({providers:[To],imports:[pa.forChild(BC),pa]})}};var rc=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=Je({type:t})}static{this.\u0275inj=Qe({imports:[Ht,He,_e,yo,oa,Xs,Cs,Vs,Os,fs,ol,Ks,gs,ic,As,Oi,Xn,ke,Ls,il,Ps,tl,Mo,Js,hs,ko,wo,pl,Us,Vi,Ri,Ai,Fi,Hi,Bi,ji,Ni,un,li,xo,_n,pn]})}};export{rc as AccountSettingModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.