dealpos 25.42.3 → 25.42.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-JU5FQANB.js → chunk-2UQLDUAC.js} +1 -1
- package/browser/{chunk-PFAAD3XG.js → chunk-2X5ASLFQ.js} +2 -2
- package/browser/{chunk-UVRUHQSK.js → chunk-2ZZ6LRSK.js} +2 -2
- package/browser/chunk-3TPCIQTX.js +1 -0
- package/browser/{chunk-KQXOWLTB.js → chunk-3VZD4NHF.js} +1 -1
- package/browser/{chunk-IJ3Y6CA4.js → chunk-426IRMLK.js} +1 -1
- package/browser/{chunk-44ZWYZS2.js → chunk-4QIOM7LI.js} +1 -1
- package/browser/{chunk-WQ7RE4CS.js → chunk-4QUBIODV.js} +1 -1
- package/browser/{chunk-SHMXCJ6Q.js → chunk-56IONBTZ.js} +1 -1
- package/browser/{chunk-DKPNAGIM.js → chunk-56K6E74R.js} +1 -1
- package/browser/{chunk-XNJJHLJK.js → chunk-5OTEU5ZX.js} +1 -1
- package/browser/{chunk-BNYTLFGU.js → chunk-6NX4GWBD.js} +1 -1
- package/browser/{chunk-HQQWO76P.js → chunk-6PPRM5TJ.js} +1 -1
- package/browser/{chunk-KGTS7TDO.js → chunk-6SQ55MY2.js} +1 -1
- package/browser/{chunk-YLVSXMRV.js → chunk-7HOWFXKG.js} +1 -1
- package/browser/{chunk-GI3H7BEZ.js → chunk-7O5TK73M.js} +1 -1
- package/browser/chunk-7PMDXUYJ.js +1 -0
- package/browser/{chunk-TIZ2QYSJ.js → chunk-7SJSO64L.js} +1 -1
- package/browser/{chunk-URAQZQ3A.js → chunk-7WT2CL3Y.js} +1 -1
- package/browser/{chunk-ZSE5MOHQ.js → chunk-AAXRMRTM.js} +1 -1
- package/browser/{chunk-DTU55DE5.js → chunk-AUOW2T4F.js} +1 -1
- package/browser/{chunk-DV7Z45N7.js → chunk-B3EZA6CX.js} +4 -4
- package/browser/{chunk-RB5D6LBP.js → chunk-B6L52L6A.js} +1 -1
- package/browser/chunk-BBGWXLHJ.js +1 -0
- package/browser/chunk-BKCZEGZR.js +14 -0
- package/browser/{chunk-QJ4LGJCR.js → chunk-BUPX3XPT.js} +1 -1
- package/browser/{chunk-6PHBFF3O.js → chunk-BW5D7NMN.js} +1 -1
- package/browser/chunk-BXQFETBZ.js +1 -0
- package/browser/{chunk-6WBSRYV3.js → chunk-CEKWDJF4.js} +1 -1
- package/browser/{chunk-UZCYUQUH.js → chunk-CHETA67M.js} +1 -1
- package/browser/{chunk-VSF6PYZW.js → chunk-CKNQ2YZ5.js} +1 -1
- package/browser/{chunk-TQZQYUFG.js → chunk-CMHBQ7I6.js} +1 -1
- package/browser/{chunk-5BZEOCFN.js → chunk-CVL2DR7E.js} +1 -1
- package/browser/{chunk-7STOC3NI.js → chunk-D5YUOO4X.js} +1 -1
- package/browser/{chunk-DQQS3EIT.js → chunk-D7S3W7TY.js} +1 -1
- package/browser/{chunk-GPP3J3W4.js → chunk-DBERRJC6.js} +1 -1
- package/browser/{chunk-WJOZLY6Q.js → chunk-DDILJVFU.js} +1 -1
- package/browser/{chunk-PDXIH2U4.js → chunk-DKQHZLAC.js} +1 -1
- package/browser/{chunk-4NW7A5EC.js → chunk-DZM2KQQZ.js} +1 -1
- package/browser/chunk-E4DPE3J5.js +1 -0
- package/browser/{chunk-2CU7XQYN.js → chunk-EG4UO6IY.js} +1 -1
- package/browser/{chunk-LH2QJXQV.js → chunk-ELIDPKL7.js} +1 -1
- package/browser/{chunk-RGMTX4XI.js → chunk-EMW2WRXZ.js} +1 -1
- package/browser/{chunk-6A45AGTK.js → chunk-FCUQZ5CM.js} +1 -1
- package/browser/{chunk-Y6VMIGXC.js → chunk-FKLSH2TV.js} +1 -1
- package/browser/{chunk-SN4VGYRI.js → chunk-FUV2BXRH.js} +1 -1
- package/browser/{chunk-SEXQYEXV.js → chunk-FVG3VTH5.js} +1 -1
- package/browser/{chunk-5OS5VELO.js → chunk-FVKF2ZOS.js} +1 -1
- package/browser/{chunk-UEQT5HE5.js → chunk-FXLWJQC3.js} +1 -1
- package/browser/{chunk-IQ26VFNR.js → chunk-FZCJDAJY.js} +1 -1
- package/browser/{chunk-F6XARCNS.js → chunk-G2NZ3D7U.js} +1 -1
- package/browser/{chunk-HAGFCQCM.js → chunk-G3XRMYTN.js} +1 -1
- package/browser/{chunk-RPHW7OGR.js → chunk-GRXET2IV.js} +8 -8
- package/browser/{chunk-XHUPVI6X.js → chunk-GTLBCZKI.js} +1 -1
- package/browser/{chunk-VOH7SSVN.js → chunk-GVQSFCBR.js} +1 -1
- package/browser/{chunk-IQ4IMICT.js → chunk-GZSXRIAG.js} +1 -1
- package/browser/{chunk-EENVAF36.js → chunk-HUH7L2ZO.js} +1 -1
- package/browser/{chunk-772SQL5I.js → chunk-HZIKNLNL.js} +1 -1
- package/browser/chunk-I6NYJUEM.js +1 -0
- package/browser/{chunk-WCS36NF2.js → chunk-IA7CYVCE.js} +1 -1
- package/browser/{chunk-CD3BSGAP.js → chunk-IJ6QEGE5.js} +1 -1
- package/browser/{chunk-TUQ4INQ4.js → chunk-IMEZ6PAI.js} +1 -1
- package/browser/{chunk-H6LHYTUN.js → chunk-J75KTT4W.js} +1 -1
- package/browser/{chunk-WAABNVJP.js → chunk-J7BBAETB.js} +1 -1
- package/browser/{chunk-FAJUK2PL.js → chunk-JNZU3NGN.js} +1 -1
- package/browser/{chunk-3HEL5YEK.js → chunk-JOEBVACW.js} +1 -1
- package/browser/{chunk-RD5CYEVA.js → chunk-JULIPCEM.js} +1 -1
- package/browser/{chunk-M3CM7YGB.js → chunk-KIFEAYRI.js} +1 -1
- package/browser/{chunk-BCWXNNN7.js → chunk-KM74FUZX.js} +1 -1
- package/browser/{chunk-7ERQEWVF.js → chunk-KUPGFZQE.js} +1 -1
- package/browser/{chunk-BO3TFY6M.js → chunk-L35K766G.js} +1 -1
- package/browser/{chunk-OZMOBU7L.js → chunk-L4BVAFES.js} +1 -1
- package/browser/{chunk-BDN45ELK.js → chunk-LC77SA54.js} +2 -2
- package/browser/{chunk-SRPF6NEK.js → chunk-LNYKIRHF.js} +1 -1
- package/browser/{chunk-AEHOTFB4.js → chunk-LQW5KOAB.js} +1 -1
- package/browser/{chunk-LNLKT2JE.js → chunk-LXSLO5QA.js} +1 -1
- package/browser/chunk-LZJVR4FQ.js +1 -0
- package/browser/{chunk-OG45AMIC.js → chunk-M5273AKK.js} +1 -1
- package/browser/{chunk-4QBEH76F.js → chunk-MEUJUJB2.js} +1 -1
- package/browser/{chunk-BLLHTNS3.js → chunk-MJ4WF7R3.js} +2 -2
- package/browser/{chunk-DNSE6AZ3.js → chunk-MLU3FELE.js} +1 -1
- package/browser/{chunk-TY4CJST2.js → chunk-MXYELOCB.js} +1 -1
- package/browser/{chunk-NGOXBKLO.js → chunk-N6JJCZ2M.js} +1 -1
- package/browser/{chunk-SK3O35VZ.js → chunk-NGYW35CT.js} +1 -1
- package/browser/{chunk-AQC5G2DR.js → chunk-NKGA724S.js} +1 -1
- package/browser/{chunk-ZTTYI7IT.js → chunk-NM5ZUXKR.js} +1 -1
- package/browser/{chunk-GGPT7WIY.js → chunk-NUQK6FIB.js} +1 -1
- package/browser/{chunk-75EESXJE.js → chunk-NXSTJXP3.js} +1 -1
- package/browser/{chunk-V7HLUR6T.js → chunk-NZ5JPAQ5.js} +1 -1
- package/browser/{chunk-GINOZV6C.js → chunk-O6PVWRA5.js} +1 -1
- package/browser/{chunk-BXAYNP7A.js → chunk-O7SRWU2B.js} +1 -1
- package/browser/{chunk-QCXWKQ7Z.js → chunk-P3HCTQ6S.js} +1 -1
- package/browser/{chunk-JPA7JINL.js → chunk-PGBIXI75.js} +1 -1
- package/browser/{chunk-ZTJ2EZKC.js → chunk-PLDUPO6N.js} +1 -1
- package/browser/{chunk-NXXNEU5Q.js → chunk-PNMCM55F.js} +1 -1
- package/browser/{chunk-FBCM6PP2.js → chunk-PTJ5SIZX.js} +1 -1
- package/browser/{chunk-IAY6YLM3.js → chunk-PTZ5432I.js} +1 -1
- package/browser/{chunk-5JGMZUVO.js → chunk-PXTRJOQN.js} +1 -1
- package/browser/{chunk-7LAYIAWW.js → chunk-Q4BNG6BK.js} +1 -1
- package/browser/{chunk-UQP7S73H.js → chunk-Q6HOM6AN.js} +1 -1
- package/browser/{chunk-7Z6VQ4SB.js → chunk-Q6RSS3F7.js} +1 -1
- package/browser/{chunk-3A4C23H5.js → chunk-QIC57EUK.js} +1 -1
- package/browser/{chunk-2L54CRB2.js → chunk-QMNZ3US5.js} +1 -1
- package/browser/{chunk-PRBPKAI4.js → chunk-QOPR5ZBR.js} +1 -1
- package/browser/{chunk-ITLMINSX.js → chunk-QWYLRTIQ.js} +1 -1
- package/browser/{chunk-THXV6YJP.js → chunk-R24JXSUW.js} +1 -1
- package/browser/{chunk-3RWVYWJF.js → chunk-R6G33VWA.js} +1 -1
- package/browser/{chunk-6EEZ723H.js → chunk-RDD5CPPK.js} +1 -1
- package/browser/{chunk-XYXJ6BJZ.js → chunk-RJKR4QDZ.js} +7 -7
- package/browser/{chunk-KBO5VO7S.js → chunk-RQGT2FPJ.js} +1 -1
- package/browser/{chunk-AOHNHNJ4.js → chunk-S3Y4J5BM.js} +1 -1
- package/browser/{chunk-UAZRVFNB.js → chunk-SA2OFGXH.js} +1 -1
- package/browser/{chunk-CEPFELMI.js → chunk-SDOP6ILP.js} +1 -1
- package/browser/{chunk-JYNN4IZB.js → chunk-SS5QJI73.js} +1 -1
- package/browser/{chunk-5R4YDHD4.js → chunk-SVCDSCAK.js} +1 -1
- package/browser/{chunk-TZ74SUXJ.js → chunk-SZUQ6U7I.js} +1 -1
- package/browser/{chunk-6G37ZXRX.js → chunk-T3BPEHU7.js} +1 -1
- package/browser/{chunk-2PBMTCNB.js → chunk-TIRPKUJZ.js} +1 -1
- package/browser/{chunk-JATL56N2.js → chunk-U54UEN3C.js} +1 -1
- package/browser/{chunk-SYXYAJTH.js → chunk-UCXUJQTY.js} +1 -1
- package/browser/chunk-UR42CPXD.js +3 -0
- package/browser/{chunk-3C333WA4.js → chunk-UX44UC2P.js} +1 -1
- package/browser/{chunk-32HLQMIF.js → chunk-UYTJTLZV.js} +1 -1
- package/browser/{chunk-GC3UJT2Q.js → chunk-VELV6XCP.js} +1 -1
- package/browser/{chunk-ZH7IWOYT.js → chunk-VQARO64W.js} +1 -1
- package/browser/{chunk-6O33MUM6.js → chunk-W3FK7XY3.js} +1 -1
- package/browser/{chunk-G37NEDUK.js → chunk-WDXFLK4E.js} +1 -1
- package/browser/{chunk-EMP32K7Q.js → chunk-WGHPXYWX.js} +1 -1
- package/browser/{chunk-6CQ6XYJG.js → chunk-WP4MYTR2.js} +1 -1
- package/browser/{chunk-A7PNRSF2.js → chunk-XPQKTZA5.js} +1 -1
- package/browser/{chunk-VVIPBL5F.js → chunk-XU7DNLG3.js} +1 -1
- package/browser/{chunk-537VP6ZK.js → chunk-Y7V4JJ46.js} +1 -1
- package/browser/{chunk-TKNGHZIN.js → chunk-YCQYZPDK.js} +1 -1
- package/browser/{chunk-PYAKNXHZ.js → chunk-YIJ62FAK.js} +1 -1
- package/browser/{chunk-4R4W625N.js → chunk-ZIWHZGBX.js} +1 -1
- package/browser/{chunk-GHPZLWLY.js → chunk-ZRKESXDB.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-MFGSWEQQ.js → main-2YFFQ7PU.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-7MYFXXHY.js +0 -1
- package/browser/chunk-HMER2IC5.js +0 -1
- package/browser/chunk-Q4H53ZUG.js +0 -1
- package/browser/chunk-TM46LANH.js +0 -14
- package/browser/chunk-UDE6XZO3.js +0 -3
- package/browser/chunk-VPC43VHO.js +0 -1
- package/browser/chunk-ZGGEHIOZ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as yt,c as xt}from"./chunk-VFTGIP5A.js";import{a as wt}from"./chunk-LE3BKIDY.js";import{a as P}from"./chunk-2FWFPV5I.js";import{la as _t,ma as S,ua as ht}from"./chunk-EEEAUYZ6.js";import{F as mt,G as gt,a as st,c as at,h as pt,i as lt,k as ut,o as ct,p as dt}from"./chunk-RVXZOIFQ.js";import{a as ot}from"./chunk-
|
|
1
|
+
import{a as yt,c as xt}from"./chunk-VFTGIP5A.js";import{a as wt}from"./chunk-LE3BKIDY.js";import{a as P}from"./chunk-2FWFPV5I.js";import{la as _t,ma as S,ua as ht}from"./chunk-EEEAUYZ6.js";import{F as mt,G as gt,a as st,c as at,h as pt,i as lt,k as ut,o as ct,p as dt}from"./chunk-RVXZOIFQ.js";import{a as ot}from"./chunk-JOEBVACW.js";import{$a as l,$b as D,Ab as V,Fa as T,Ib as o,Jb as a,Kb as E,Lb as _,Mb as h,Mc as X,Nb as U,Ob as w,Qb as f,Qc as $,Qd as it,Rb as r,Vd as rt,Wc as I,Yb as A,Yc as tt,Yd as ft,Zc as M,_b as N,bc as q,bd as et,cc as K,db as j,ec as m,fc as Y,gb as W,gc as G,ia as R,ja as H,jc as C,jd as nt,ka as L,kb as O,kc as b,lb as z,lc as v,na as x,ob as Q,pc as Z,qb as g,sc as B,tc as J,va as c,vb as u,wa as d,za as F}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var Ot=["input"],Et=(i,s,t)=>({$implicit:i,events:s,index:t});function It(i,s){if(i&1){let t=w();_(0),o(1,"input",2),f("input",function(n){c(t);let p=r().$implicit,y=r();return d(y.onInput(n,p-1))})("focus",function(n){c(t);let p=r(2);return d(p.onInputFocus(n))})("blur",function(n){c(t);let p=r(2);return d(p.onInputBlur(n))})("paste",function(n){c(t);let p=r(2);return d(p.onPaste(n))})("keydown",function(n){c(t);let p=r(2);return d(p.onKeyDown(n))}),a(),h()}if(i&2){let t=r().$implicit,e=r();l(),u("value",e.getModelValue(t))("maxLength",t===1?e.length:1)("type",e.inputType)("pSize",e.size)("variant",e.variant)("readonly",e.readonly)("disabled",e.disabled)("tabindex",e.tabindex)("pAutoFocus",e.getAutofocus(t))("ngClass",e.styleClass)}}function Mt(i,s){i&1&&U(0)}function St(i,s){if(i&1&&(_(0),g(1,Mt,1,0,"ng-container",3),h()),i&2){let t=r().$implicit,e=r();l(),u("ngTemplateOutlet",e.inputTemplate||e._inputTemplate)("ngTemplateOutletContext",J(2,Et,e.getToken(t-1),e.getTemplateEvents(t-1),t))}}function kt(i,s){if(i&1&&(_(0),g(1,It,2,10,"ng-container",1)(2,St,2,6,"ng-container",1),h()),i&2){let t=r();l(),u("ngIf",!t.inputTemplate&&!t._inputTemplate),l(),u("ngIf",t.inputTemplate||t._inputTemplate)}}var Ft=({dt:i})=>`
|
|
2
2
|
.p-inputotp {
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as j}from"./chunk-2YDEXJE5.js";import{a as H}from"./chunk-EWZ63XSS.js";import{a as A}from"./chunk-P3KIIKY4.js";import{b as F}from"./chunk-YRGGDRUH.js";import{u as V,v as R,w as P}from"./chunk-
|
|
1
|
+
import{b as j}from"./chunk-2YDEXJE5.js";import{a as H}from"./chunk-EWZ63XSS.js";import{a as A}from"./chunk-P3KIIKY4.js";import{b as F}from"./chunk-YRGGDRUH.js";import{u as V,v as R,w as P}from"./chunk-IJ6QEGE5.js";import{e as w,f as T}from"./chunk-3YKVLHZG.js";import{$a as d,Fc as y,Ib as c,Jb as u,Lb as g,Ma as U,Mb as v,Ob as f,Qb as _,Rb as m,Vd as x,Yd as O,Zc as E,aa as S,d as h,da as I,db as p,jd as D,kb as M,qb as C,sd as b,va as r,vb as s,wa as l}from"./chunk-UXRO4UFY.js";function N(i,t){if(i&1){let e=f();g(0),c(1,"POS-uppy",3),_("fileUploaded",function(o){r(e);let a=m(2);return l(a.assignFile(o))}),u(),v()}if(i&2){let e=m(2);d(),s("sampleUrl",e.sampleUrl)}}function $(i,t){if(i&1){let e=f();g(0),c(1,"POS-uppy",3),_("fileUploaded",function(o){r(e);let a=m(2);return l(a.assignFile(o))}),u(),v()}if(i&2){let e=m(2);d(),s("sampleUrl",e.sampleUrl)}}function L(i,t){if(i&1&&C(0,N,2,1,"ng-container",2)(1,$,2,1,"ng-container",2),i&2){let e=m();s("ngIf",e.uploadState()===e.uploadStateEnum.Idle||e.uploadState()===e.uploadStateEnum.Uploading),d(),s("ngIf",e.uploadState()===e.uploadStateEnum.Success||e.uploadState()===e.uploadStateEnum.Error)}}var k=class i{constructor(t,e,n,o,a){this.data=t;this.dialogRef=e;this.toastService=n;this.httpService=o;this.convertCsv=a}useUppy=!1;fileEndpoint="";modalConfig;sampleUrl;apiUploadCsv;outletID;fileInput;destroy$=new h;fileName;loadingVal$;uploadState=U(0);uploadStateEnum=A;timeoutID;ngOnInit(){this.initModalConfig(),this.initUpload()}initModalConfig(){this.modalConfig=new V,this.modalConfig.title="Import Items",this.modalConfig.customWidth=this.data.useUppy?"610px":"484px"}initUpload(){this.data&&(this.sampleUrl=this.data.sampleUrl,this.apiUploadCsv=this.data.API,this.outletID=this.data.outletID,this.useUppy=this.data.useUppy,this.fileEndpoint=this.data.fileEndpoint)}onOk(){if(this.fileInput)if(!this.useUppy)this.convertCsv.convert(this.fileInput).pipe(I(this.destroy$),S(t=>this.httpService.post(this.apiUploadCsv,this.outletID?{EntityID:this.outletID,CartItems:t}:t))).subscribe(t=>{this.dialogRef.close(t)});else{let t=new FormData;t.append("File",this.fileInput),t.append("EntityID",this.outletID),this.httpService.postFormData(this.fileEndpoint,t).subscribe({next:e=>{e&&(this.uploadState.set(2),this.dialogRef.close(e))},error:e=>{e instanceof b&&(console.error("error",e.error.Message),this.uploadState.set(3),this.timeoutID=setTimeout(()=>{this.uploadState.set(0)},100))}})}else this.uploadState.set(0),this.toastService.warning("Please drop a CSV file.","Warning")}onClose(){this.dialogRef.close()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.timeoutID&&clearTimeout(this.timeoutID)}assignFile(t){this.uploadState.set(1),this.fileInput=t}static \u0275fac=function(e){return new(e||i)(p(T),p(w),p(x),p(O),p(H))};static \u0275cmp=M({type:i,selectors:[["POS-modal-upload"]],decls:3,vars:1,consts:[["modalContent",""],[3,"onOk","onCancel","onClose","config"],[4,"ngIf"],[3,"fileUploaded","sampleUrl"]],template:function(e,n){if(e&1){let o=f();c(0,"modal-material",1),_("onOk",function(){return r(o),l(n.onOk())})("onCancel",function(){return r(o),l(n.onClose())})("onClose",function(){return r(o),l(n.onClose())}),C(1,L,2,2,"ng-template",null,0,y),u()}e&2&&s("config",n.modalConfig)},dependencies:[D,E,P,R,j,F],encapsulation:2})};export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as J}from"./chunk-
|
|
1
|
+
import{c as J}from"./chunk-7O5TK73M.js";import{a as G}from"./chunk-U54UEN3C.js";import"./chunk-GTLBCZKI.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as q,f as z}from"./chunk-XU7DNLG3.js";import"./chunk-6NX4GWBD.js";import"./chunk-5JJSLRVS.js";import"./chunk-MFCXEITE.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import"./chunk-G2NZ3D7U.js";import{b as A}from"./chunk-7WT2CL3Y.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-IJ6QEGE5.js";import{b as j,c as k}from"./chunk-JOXTERIM.js";import"./chunk-FVKF2ZOS.js";import"./chunk-6ZN7JR6K.js";import"./chunk-GIKR6Y2K.js";import"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{F as W,h as B,o as H}from"./chunk-RVXZOIFQ.js";import"./chunk-Y7V4JJ46.js";import"./chunk-ELIDPKL7.js";import"./chunk-ZZGSAFGO.js";import"./chunk-JOEBVACW.js";import{$a as l,Ac as F,Bc as T,Eb as x,Fc as E,Gb as M,Hb as w,Ib as i,Jb as n,Ob as v,Qb as N,Rb as S,Vd as V,Yd as R,db as c,ec as o,ed as P,fc as u,gd as L,jc as _,jd as O,kb as D,kc as b,lc as h,ob as y,qb as I,va as p,vb as d,wa as s,zc as C}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";function U(r,g){if(r&1){let e=v();i(0,"div")(1,"div",9)(2,"h6"),o(3,"Outlet"),n(),i(4,"outlet-selector",10),h("ngModelChange",function(t){p(e);let m=S();return b(m.pageData.Filter.ListIDs,t)||(m.pageData.Filter.ListIDs=t),s(t)}),n()()()}if(r&2){let e=S();l(4),d("accessType",2),_("ngModel",e.pageData.Filter.ListIDs),d("multiple",!0)}}function X(r,g){if(r&1&&(i(0,"tr")(1,"td"),o(2),n(),i(3,"td"),o(4),C(5,"number"),n(),i(6,"td"),o(7),C(8,"date"),n()()),r&2){let e=g.$implicit;l(2),u(e==null?null:e.EntityName),l(2),u(F(5,3,e==null?null:e.Number)),l(3),u(T(8,5,e==null?null:e.Modified,"dd MMM yyyy HH:mm"))}}var K=class r extends G{constructor(e,a,t){super(e,a,"Setup/Data/TransactionInvoiceNumber",null,t);this.httpService=a}preGetList(){let e=this.pageData.Filter?.ListIDs?this.pageData.Filter?.ListIDs:[];this.pageData.Filter={ListIDs:e}}static \u0275fac=function(a){return new(a||r)(c(A),c(R),c(V))};static \u0275cmp=D({type:r,selectors:[["app-invoice-numbering"]],features:[y],decls:19,vars:4,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","isFilterOnDropdown","hideSearchBox","filter"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],["matTooltip","Next invoice number index to be generated",2,"width","200px"],[2,"width","200px"],[1,"dialog-filter"],["placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","multiple"]],template:function(a,t){if(a&1){let m=v();i(0,"mainpanel-cmp",1),N("onSubmit",function(){return p(m),s(t.searchFromPageOne())}),h("filterChange",function(f){return p(m),b(t.pageData.Filter,f)||(t.pageData.Filter=f),s(f)}),i(1,"filters"),I(2,U,5,3,"ng-template",null,0,E),n(),i(4,"content")(5,"div",2)(6,"div",3)(7,"table",4)(8,"thead",5)(9,"tr",6)(10,"th"),o(11,"Outlet"),n(),i(12,"th",7),o(13," Next Number "),n(),i(14,"th",8),o(15,"Modified"),n()()(),i(16,"tbody"),M(17,X,9,8,"tr",null,x),n()()()()()()}a&2&&(d("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),_("filter",t.pageData.Filter),l(17),w(t.data==null?null:t.data.Data))},dependencies:[O,L,P,z,q,J,W,B,H,k,j],encapsulation:2})};export{K as InvoiceNumberingComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ee,b as te,c as ie}from"./chunk-
|
|
1
|
+
import{a as ee,b as te,c as ie}from"./chunk-O6PVWRA5.js";import{a as le,c as ge}from"./chunk-MUJ6277G.js";import{u as pe,v as se,w as me}from"./chunk-IJ6QEGE5.js";import{b as Y,c as Z}from"./chunk-JOXTERIM.js";import{a as ae,d as re}from"./chunk-XYB3YDKL.js";import{e as oe,f as ne}from"./chunk-3YKVLHZG.js";import{F as Q,c as $,h as q,o as K}from"./chunk-RVXZOIFQ.js";import{$a as r,Ac as E,Ib as l,Jb as p,Kb as u,Lb as b,Mb as M,Ob as T,Qb as C,Rb as g,Y as L,Yc as z,Yd as S,Zc as B,aa as P,cd as G,d as F,db as _,ec as m,fa as O,fc as I,gc as X,gd as W,hc as H,ja as V,jc as R,jd as U,kb as k,kc as N,lc as D,ma as J,qb as x,t as y,va as f,vb as s,wa as h,zb as j,zc as v}from"./chunk-UXRO4UFY.js";import{a as c,b as d}from"./chunk-7DCB7DB2.js";var w=class o{constructor(t){this.http=t}exportCSV(t,e){let i=d(c({},e),{Export:!0});this.downloadFile(t,i)}exportCustom(t,e,i){let a=d(c({},e),{Export:!0,FormatType:i});this.downloadFile(t,a)}exportCSVIds(t,e){this.downloadFile(t,e)}exportXlsx(t,e){let i=d(c({},e),{FormatType:1});this.downloadFile(t,i)}downloadFile(t,e){this.http.postFile(`/api/${t}`,e).subscribe(i=>{let a=window.URL.createObjectURL(i.file),n=document.createElement("a");n.download=this.getFilenameFromContentDisposition(i.title),n.href=a,n.click(),URL.revokeObjectURL(a),n.remove()})}getFilenameFromContentDisposition(t){let i=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(t);return i!=null&&i[1]?i[1].replace(/['"]/g,""):""}exportJSON(t,e,i){this.http.post(`/api/${t}`,i).subscribe(a=>{var n=JSON.stringify(a,null," ");this.downloadJSON(n,e+".json")})}downloadJSON(t,e){var i=new Blob([t],{type:"data:application/json;charset=utf-8"}),a=document.createElement("a");a.setAttribute("href",window.URL.createObjectURL(i)),a.setAttribute("download",e),document.body.appendChild(a),a.click(),document.body.removeChild(a)}static \u0275fac=function(e){return new(e||o)(J(S))};static \u0275prov=V({token:o,factory:o.\u0275fac,providedIn:"root"})};function fe(o,t){if(o&1&&(l(0,"div",15),m(1),p()),o&2){let e=t.item;s("matTooltip",e.Tooltip),r(),X(" ",e.Value," ")}}function he(o,t){if(o&1){let e=T();b(0),l(1,"div",11),m(2," Columns "),p(),l(3,"div",12)(4,"ng-select",13),D("ngModelChange",function(a){f(e);let n=g();return N(n.exportType,a)||(n.exportType=a),h(a)}),C("change",function(a){f(e);let n=g();return h(n.onChangeExportType(a))}),x(5,fe,2,2,"ng-template",14),p()(),M()}if(o&2){let e=g();r(4),s("items",e.exportTypes),R("ngModel",e.exportType)}}function _e(o,t){o&1&&(l(0,"mat-button-toggle",16),u(1,"i",17),m(2,"CSV"),p())}function Ce(o,t){o&1&&(l(0,"mat-button-toggle",18),u(1,"i",19),m(2,"XLSX"),p())}function ye(o,t){if(o&1&&(l(0,"mat-button-toggle",21),u(1,"i",22),m(2),p()),o&2){let e=g().$implicit;s("value",e.value),r(),j(e.icon),r(),I(e.label)}}function be(o,t){if(o&1&&(b(0),x(1,ye,3,4,"mat-button-toggle",20),M()),o&2){let e=g();r(),s("ngIf",e.allowTxtOption()||e.isTextOnly())}}function Me(o,t){o&1&&(l(0,"mat-button-toggle",23),u(1,"i",24),m(2,"JSON"),p())}function Te(o,t){if(o&1){let e=T();l(0,"i",32),C("click",function(){f(e);let a=g(3);return h(a.onGetAllDataLength())}),p()}}function ve(o,t){if(o&1&&(l(0,"span"),m(1,"of "),x(2,Te,1,0,"i",30),l(3,"span",31),m(4),v(5,"async"),p(),m(6," page(s)"),p()),o&2){let e=g(2);r(2),s("ngIf",!e.calledApiCount),r(2),I(e.calledApiCount?E(5,2,e.allDataLength$):"")}}function Ee(o,t){if(o&1){let e=T();b(0),l(1,"div",4),m(2," Page "),p(),l(3,"div",25)(4,"input",26),C("ngModelChange",function(a){f(e);let n=g();return h(n.pageNumber=a)}),p(),x(5,ve,7,4,"span",3),p(),l(6,"div",27)(7,"div",28),u(8,"i",29),m(9),v(10,"number"),v(11,"number"),p()(),M()}if(o&2){let e=g();r(4),s("ngModel",e.pageNumber),r(),s("ngIf",e.getAllDataLengthAPI),r(4),H(" Exporting data from ",E(10,4,e.displayedMinRangeRow)," - ",e.exportFormat=="JSON"?"1,000":E(11,6,e.displayedMaxRangeRow)," ")}}var ce=class o{constructor(t,e,i,a){this.data=t;this.dialogRef=e;this.exportHandler=a;this.config.title=`Export ${t.title}`,this.config.hideCancel=!0,this.config.customWidth="450px",this.exportTypes=t.exportTypes,this.exportType=this.exportTypes[0].ID,this.filterExport=t.filterExport,this.pagination=t.pagination,this.getAllDataLengthAPI=t.getAllDataLengthAPI,this.extraExportTypesOptions=t.extraExportTypesOptions,this.allDataLength$=this.onGetAllDataLength$.pipe(y(()=>this.exportTypes.find(n=>n.ID==this.exportType)?.Count??this.getAllDataLengthAPI),P(n=>i.post("/API/"+n,this.filterExport)),y(n=>typeof n=="number"?n:n.Count),O(n=>{n<this.displayedMaxRangeRow&&this.setMinMaxRangeDisplayedRow(n),this.calledApiCount=!0}),y(n=>{let A=this.exportFormat=="JSON"?1e3:this.pageSize;return Math.floor(n/A)+(n%A>0?1:0)}),L(1),O(console.log)),this.allDataLength$.subscribe()}pageNumber=1;pageSize=1e4;config=new pe;exportTypes=[];exportType;exportFormat="CSV";_onGetAllDataLength=new F;onGetAllDataLength$=this._onGetAllDataLength.asObservable();allDataLength$;calledApiCount=!1;filterExport;displayedMaxRangeRow=this.pageSize;displayedMinRangeRow=this.pageNumber;pagination;getAllDataLengthAPI="";extraExportTypesOptions=[];onOk(){this.filterExport=d(c({},this.filterExport),{Export:!0}),this.pagination&&(this.filterExport=d(c({},this.filterExport),{ExportPageNumber:this.pageNumber,ExportRowCount:this.pageSize})),this.exportFormat=="CSV"?this.exportHandler.exportCSV(this.exportType,this.filterExport):this.exportFormat=="XLSX"?this.exportHandler.exportXlsx(this.exportType,this.filterExport):this.exportFormat=="JSON"?this.exportHandler.exportJSON(this.data.JSONAPI,this.data.JSONFileName,d(c({},this.filterExport),{ExportRowCount:1e3})):this.exportHandler.exportCustom(this.exportType,this.filterExport,2),this.dialogRef.close()}onGetAllDataLength(){this._onGetAllDataLength.next()}onChangePageNumber(){this.setDisplayedMinMaxRangeRow()}setMinMaxRangeDisplayedRow(t){for(;this.displayedMaxRangeRow>t&&this.pageNumber>1;)this.pageNumber-=1,this.setDisplayedMinMaxRangeRow();this.displayedMaxRangeRow=t}setDisplayedMinMaxRangeRow(){this.displayedMinRangeRow=this.pageNumber*this.pageSize-this.pageSize+1,this.displayedMaxRangeRow=this.pageNumber*this.pageSize}isTextOnly(){return this.exportTypes.find(t=>t.ID==this.exportType)?.TxtOnly}isExludeJsonType(){return this.exportTypes.find(t=>t.ID==this.exportType)?.ExcludeJsonType}allowTxtOption(){return this.exportTypes.find(t=>t.ID==this.exportType)?.AllowTxtOption}onChangeExportType(t){this.calledApiCount=!1,this.displayedMaxRangeRow=this.pageSize,this.displayedMinRangeRow=this.pageNumber,this.isTextOnly()?this.exportFormat="TXT":this.exportFormat="CSV"}static \u0275fac=function(e){return new(e||o)(_(ne),_(oe),_(S),_(w))};static \u0275cmp=k({type:o,selectors:[["POS-modal-complex-export"]],decls:14,vars:8,consts:[[3,"onCancel","onClose","onOk","config"],[1,"container-fluid"],[1,"row"],[4,"ngIf"],[1,"col-3","fw-bold","mt-8",2,"display","flex","align-items","center"],[1,"col-9","mt-8"],[3,"ngModelChange","ngModel"],["value","CSV",4,"ngIf"],["value","XLSX",4,"ngIf"],[4,"ngFor","ngForOf"],["value","JSON",4,"ngIf"],[1,"col-3","fw-bold",2,"display","flex","align-items","center"],[1,"col-9"],["appendTo","body","bindLabel","Value","bindValue","ID",3,"ngModelChange","change","items","ngModel"],["ng-option-tmp",""],["matTooltipPosition","right",3,"matTooltip"],["value","CSV"],[1,"fa-solid","fa-file-csv","me-3","mb-1"],["value","XLSX"],[1,"fa-solid","fa-file-excel","me-3","mb-1"],[3,"value",4,"ngIf"],[3,"value"],[1,"me-3","mb-1"],["value","JSON"],[1,"fa-solid","fa-brackets-curly","me-3","mb-1"],[1,"col-9","mt-8",2,"display","flex","align-items","center","column-gap","10px"],["type","text","autoNum","","name","pageNumber","id","pageNumber",1,"form-control","text-center",2,"width","50px",3,"ngModelChange","ngModel"],[1,"col-12","mt-8"],[1,"p-3",2,"background-color","#add8e6","border-radius","4px"],[1,"fa-solid","fa-circle-exclamation","mx-3"],["class","fa-solid fa-circle-question mx-3",3,"click",4,"ngIf"],[1,"fw-bold"],[1,"fa-solid","fa-circle-question","mx-3",3,"click"]],template:function(e,i){e&1&&(l(0,"modal-material",0),C("onCancel",function(){return i.dialogRef.close()})("onClose",function(){return i.dialogRef.close()})("onOk",function(){return i.onOk()}),l(1,"content")(2,"div",1)(3,"div",2),x(4,he,6,2,"ng-container",3),l(5,"div",4),m(6," Format "),p(),l(7,"div",5)(8,"mat-button-toggle-group",6),D("ngModelChange",function(n){return N(i.exportFormat,n)||(i.exportFormat=n),n}),x(9,_e,3,0,"mat-button-toggle",7)(10,Ce,3,0,"mat-button-toggle",8)(11,be,2,1,"ng-container",9)(12,Me,3,0,"mat-button-toggle",10),p()(),x(13,Ee,12,8,"ng-container",3),p()()()()),e&2&&(s("config",i.config),r(4),s("ngIf",i.exportTypes.length>1),r(4),R("ngModel",i.exportFormat),r(),s("ngIf",!i.isTextOnly()),r(),s("ngIf",!i.isTextOnly()),r(),s("ngForOf",i.extraExportTypesOptions),r(),s("ngIf",i.data.JSONAPI&&!i.isTextOnly()&&!i.isExludeJsonType()),r(),s("ngIf",i.pagination))},dependencies:[me,se,re,Q,$,q,K,U,z,B,G,W,le,ge,ie,ee,te,Z,Y,ae],styles:[".general[_ngcontent-%COMP%], .page[_ngcontent-%COMP%]{border:1px solid #dcdcdc;border-radius:3px;padding:10px 8px;position:relative}.general[_ngcontent-%COMP%]{margin-bottom:15px}.floating-title[_ngcontent-%COMP%]{position:absolute;top:-10.5px;background:#fff;color:gray;font-size:14px}.select-header[_ngcontent-%COMP%]{line-height:36px}.input-header[_ngcontent-%COMP%]{line-height:36.6px}.form-control[_ngcontent-%COMP%]{height:max-content!important;padding:.375rem .75rem!important}"]})};export{w as a,ce as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Fa,b as wt}from"./chunk-
|
|
1
|
+
import{a as Fa,b as wt}from"./chunk-O7SRWU2B.js";import{a as kt}from"./chunk-FP4HFB5J.js";import{a as yt,b as Ye,c as ir,d as Pa,e as Wa,f as Mt,g as Ia,h as Ra,p as Oe,q as Dt}from"./chunk-WP4MYTR2.js";import{b as Ta,d as gt}from"./chunk-CMHBQ7I6.js";import{h as Ca,j as xa,m as Na}from"./chunk-IJ6QEGE5.js";import{a as ba}from"./chunk-RVXZOIFQ.js";import{a as Oa}from"./chunk-ZZGSAFGO.js";import{$a as z,Ac as va,Fa as ma,Ib as re,Jb as ue,Kb as je,Kc as Sa,Lb as pa,Mb as ya,Ob as Ge,Qb as Se,Rb as ze,Ub as ga,Zc as _t,cd as Ya,d as la,da as ua,db as de,dc as sr,e as da,ec as Ma,fc as Da,ia as ca,ja as ht,jd as pt,ka as He,kb as mt,la as fa,lb as Ue,na as ar,pc as ka,qb as Ve,ua as ha,ub as _a,va as oe,vb as L,wa as le,wb as nr,zc as wa}from"./chunk-UXRO4UFY.js";import{c as ia,e as jo,g as oa}from"./chunk-7DCB7DB2.js";var lr=jo((or,be)=>{(function(y,l){typeof or=="object"&&typeof be<"u"?be.exports=l():typeof define=="function"&&define.amd?define(l):y.moment=l()})(or,function(){"use strict";var y;function l(){return y.apply(null,arguments)}function o(e){y=e}function u(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function w(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(m(e,t))return!1;return!0}function N(e){return e===void 0}function $(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ce(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ur(e,t){var r=[],a,n=e.length;for(a=0;a<n;++a)r.push(t(e[a],a));return r}function ae(e,t){for(var r in t)m(t,r)&&(e[r]=t[r]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function U(e,t,r,a){return Ar(e,t,r,a,!0).utc()}function Va(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(e){return e._pf==null&&(e._pf=Va()),e._pf}var Yt;Array.prototype.some?Yt=Array.prototype.some:Yt=function(e){var t=Object(this),r=t.length>>>0,a;for(a=0;a<r;a++)if(a in t&&e.call(this,t[a],a,t))return!0;return!1};function Ot(e){var t=null,r=!1,a=e._d&&!isNaN(e._d.getTime());if(a&&(t=p(e),r=Yt.call(t.parsedDateParts,function(n){return n!=null}),a=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(a=a&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=a;else return a;return e._isValid}function $e(e){var t=U(NaN);return e!=null?ae(p(t),e):p(t).userInvalidated=!0,t}var cr=l.momentProperties=[],bt=!1;function Tt(e,t){var r,a,n,s=cr.length;if(N(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),N(t._i)||(e._i=t._i),N(t._f)||(e._f=t._f),N(t._l)||(e._l=t._l),N(t._strict)||(e._strict=t._strict),N(t._tzm)||(e._tzm=t._tzm),N(t._isUTC)||(e._isUTC=t._isUTC),N(t._offset)||(e._offset=t._offset),N(t._pf)||(e._pf=p(t)),N(t._locale)||(e._locale=t._locale),s>0)for(r=0;r<s;r++)a=cr[r],n=t[a],N(n)||(e[a]=n);return e}function xe(e){Tt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),bt===!1&&(bt=!0,l.updateOffset(this),bt=!1)}function F(e){return e instanceof xe||e!=null&&e._isAMomentObject!=null}function fr(e){l.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function W(e,t){var r=!0;return ae(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),r){var a=[],n,s,i,c=arguments.length;for(s=0;s<c;s++){if(n="",typeof arguments[s]=="object"){n+=`
|
|
2
2
|
[`+s+"] ";for(i in arguments[0])m(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[s];a.push(n)}fr(e+`
|
|
3
3
|
Arguments: `+Array.prototype.slice.call(a).join("")+`
|
|
4
4
|
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var hr={};function mr(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),hr[e]||(fr(t),hr[e]=!0)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null;function V(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ja(e){var t,r;for(r in e)m(e,r)&&(t=e[r],V(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ct(e,t){var r=ae({},e),a;for(a in t)m(t,a)&&(w(e[a])&&w(t[a])?(r[a]={},ae(r[a],e[a]),ae(r[a],t[a])):t[a]!=null?r[a]=t[a]:delete r[a]);for(a in e)m(e,a)&&!m(t,a)&&w(e[a])&&(r[a]=ae({},r[a]));return r}function xt(e){e!=null&&this.set(e)}var Nt;Object.keys?Nt=Object.keys:Nt=function(e){var t,r=[];for(t in e)m(e,t)&&r.push(t);return r};var Ga={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function za(e,t,r){var a=this._calendar[e]||this._calendar.sameElse;return V(a)?a.call(t,r):a}function j(e,t,r){var a=""+Math.abs(e),n=t-a.length,s=e>=0;return(s?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+a}var Pt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ze=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wt={},_e={};function h(e,t,r,a){var n=a;typeof a=="string"&&(n=function(){return this[a]()}),e&&(_e[e]=n),t&&(_e[t[0]]=function(){return j(n.apply(this,arguments),t[1],t[2])}),r&&(_e[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function $a(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Za(e){var t=e.match(Pt),r,a;for(r=0,a=t.length;r<a;r++)_e[t[r]]?t[r]=_e[t[r]]:t[r]=$a(t[r]);return function(n){var s="",i;for(i=0;i<a;i++)s+=V(t[i])?t[i].call(n,e):t[i];return s}}function Be(e,t){return e.isValid()?(t=_r(t,e.localeData()),Wt[t]=Wt[t]||Za(t),Wt[t](e)):e.localeData().invalidDate()}function _r(e,t){var r=5;function a(n){return t.longDateFormat(n)||n}for(Ze.lastIndex=0;r>=0&&Ze.test(e);)e=e.replace(Ze,a),Ze.lastIndex=0,r-=1;return e}var Ba={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"};function qa(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Pt).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[e])}var Ja="Invalid date";function Qa(){return this._invalidDate}var Xa="%d",Ka=/\d{1,2}/;function en(e){return this._ordinal.replace("%d",e)}var tn={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function rn(e,t,r,a){var n=this._relativeTime[r];return V(n)?n(e,t,r,a):n.replace(/%d/i,e)}function an(e,t){var r=this._relativeTime[e>0?"future":"past"];return V(r)?r(t):r.replace(/%s/i,t)}var pr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function I(e){return typeof e=="string"?pr[e]||pr[e.toLowerCase()]:void 0}function It(e){var t={},r,a;for(a in e)m(e,a)&&(r=I(a),r&&(t[r]=e[a]));return t}var nn={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function sn(e){var t=[],r;for(r in e)m(e,r)&&t.push({unit:r,priority:nn[r]});return t.sort(function(a,n){return a.priority-n.priority}),t}var yr=/\d/,P=/\d\d/,gr=/\d{3}/,Rt=/\d{4}/,qe=/[+-]?\d{6}/,S=/\d\d?/,Mr=/\d\d\d\d?/,Dr=/\d\d\d\d\d\d?/,Je=/\d{1,3}/,Ft=/\d{1,4}/,Qe=/[+-]?\d{1,6}/,pe=/\d+/,Xe=/[+-]?\d+/,on=/Z|[+-]\d\d:?\d\d/gi,Ke=/Z|[+-]\d\d(?::?\d\d)?/gi,ln=/[+-]?\d+(\.\d{1,3})?/,Ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ye=/^[1-9]\d?/,At=/^([1-9]\d|\d)/,et;et={};function f(e,t,r){et[e]=V(t)?t:function(a,n){return a&&r?r:t}}function dn(e,t){return m(et,e)?et[e](t._strict,t._locale):new RegExp(un(e))}function un(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,a,n,s){return r||a||n||s}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function R(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function g(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=R(t)),r}var Et={};function v(e,t){var r,a=t,n;for(typeof e=="string"&&(e=[e]),$(t)&&(a=function(s,i){i[t]=g(s)}),n=e.length,r=0;r<n;r++)Et[e[r]]=a}function Pe(e,t){v(e,function(r,a,n,s){n._w=n._w||{},t(r,n._w,n,s)})}function cn(e,t,r){t!=null&&m(Et,e)&&Et[e](t,r._a,r,e)}function tt(e){return e%4===0&&e%100!==0||e%400===0}var C=0,B=1,G=2,T=3,A=4,q=5,ce=6,fn=7,hn=8;h("Y",0,0,function(){var e=this.year();return e<=9999?j(e,4):"+"+e}),h(0,["YY",2],0,function(){return this.year()%100}),h(0,["YYYY",4],0,"year"),h(0,["YYYYY",5],0,"year"),h(0,["YYYYYY",6,!0],0,"year"),f("Y",Xe),f("YY",S,P),f("YYYY",Ft,Rt),f("YYYYY",Qe,qe),f("YYYYYY",Qe,qe),v(["YYYYY","YYYYYY"],C),v("YYYY",function(e,t){t[C]=e.length===2?l.parseTwoDigitYear(e):g(e)}),v("YY",function(e,t){t[C]=l.parseTwoDigitYear(e)}),v("Y",function(e,t){t[C]=parseInt(e,10)});function We(e){return tt(e)?366:365}l.parseTwoDigitYear=function(e){return g(e)+(g(e)>68?1900:2e3)};var kr=ge("FullYear",!0);function mn(){return tt(this.year())}function ge(e,t){return function(r){return r!=null?(wr(this,e,r),l.updateOffset(this,t),this):Ie(this,e)}}function Ie(e,t){if(!e.isValid())return NaN;var r=e._d,a=e._isUTC;switch(t){case"Milliseconds":return a?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return a?r.getUTCSeconds():r.getSeconds();case"Minutes":return a?r.getUTCMinutes():r.getMinutes();case"Hours":return a?r.getUTCHours():r.getHours();case"Date":return a?r.getUTCDate():r.getDate();case"Day":return a?r.getUTCDay():r.getDay();case"Month":return a?r.getUTCMonth():r.getMonth();case"FullYear":return a?r.getUTCFullYear():r.getFullYear();default:return NaN}}function wr(e,t,r){var a,n,s,i,c;if(!(!e.isValid()||isNaN(r))){switch(a=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?a.setUTCMilliseconds(r):a.setMilliseconds(r));case"Seconds":return void(n?a.setUTCSeconds(r):a.setSeconds(r));case"Minutes":return void(n?a.setUTCMinutes(r):a.setMinutes(r));case"Hours":return void(n?a.setUTCHours(r):a.setHours(r));case"Date":return void(n?a.setUTCDate(r):a.setDate(r));case"FullYear":break;default:return}s=r,i=e.month(),c=e.date(),c=c===29&&i===1&&!tt(s)?28:c,n?a.setUTCFullYear(s,i,c):a.setFullYear(s,i,c)}}function _n(e){return e=I(e),V(this[e])?this[e]():this}function pn(e,t){if(typeof e=="object"){e=It(e);var r=sn(e),a,n=r.length;for(a=0;a<n;a++)this[r[a].unit](e[r[a].unit])}else if(e=I(e),V(this[e]))return this[e](t);return this}function yn(e,t){return(e%t+t)%t}var b;Array.prototype.indexOf?b=Array.prototype.indexOf:b=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Lt(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=yn(t,12);return e+=(t-r)/12,r===1?tt(e)?29:28:31-r%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1}),h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),h("MMMM",0,0,function(e){return this.localeData().months(this,e)}),f("M",S,ye),f("MM",S,P),f("MMM",function(e,t){return t.monthsShortRegex(e)}),f("MMMM",function(e,t){return t.monthsRegex(e)}),v(["M","MM"],function(e,t){t[B]=g(e)-1}),v(["MMM","MMMM"],function(e,t,r,a){var n=r._locale.monthsParse(e,a,r._strict);n!=null?t[B]=n:p(r).invalidMonth=e});var gn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),vr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Sr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Mn=Ne,Dn=Ne;function kn(e,t){return e?u(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Sr).test(t)?"format":"standalone"][e.month()]:u(this._months)?this._months:this._months.standalone}function wn(e,t){return e?u(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Sr.test(t)?"format":"standalone"][e.month()]:u(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function vn(e,t,r){var a,n,s,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)s=U([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(s,"").toLocaleLowerCase();return r?t==="MMM"?(n=b.call(this._shortMonthsParse,i),n!==-1?n:null):(n=b.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=b.call(this._shortMonthsParse,i),n!==-1?n:(n=b.call(this._longMonthsParse,i),n!==-1?n:null)):(n=b.call(this._longMonthsParse,i),n!==-1?n:(n=b.call(this._shortMonthsParse,i),n!==-1?n:null))}function Sn(e,t,r){var a,n,s;if(this._monthsParseExact)return vn.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(n=U([2e3,a]),r&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[a]&&(s="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[a]=new RegExp(s.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[a].test(e))return a;if(r&&t==="MMM"&&this._shortMonthsParse[a].test(e))return a;if(!r&&this._monthsParse[a].test(e))return a}}function Yr(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=g(t);else if(t=e.localeData().monthsParse(t),!$(t))return e}var r=t,a=e.date();return a=a<29?a:Math.min(a,Lt(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,a):e._d.setMonth(r,a),e}function Or(e){return e!=null?(Yr(this,e),l.updateOffset(this,!0),this):Ie(this,"Month")}function Yn(){return Lt(this.year(),this.month())}function On(e){return this._monthsParseExact?(m(this,"_monthsRegex")||br.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Mn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bn(e){return this._monthsParseExact?(m(this,"_monthsRegex")||br.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=Dn),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function br(){function e(_,M){return M.length-_.length}var t=[],r=[],a=[],n,s,i,c;for(n=0;n<12;n++)s=U([2e3,n]),i=Z(this.monthsShort(s,"")),c=Z(this.months(s,"")),t.push(i),r.push(c),a.push(c),a.push(i);t.sort(e),r.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Tn(e,t,r,a,n,s,i){var c;return e<100&&e>=0?(c=new Date(e+400,t,r,a,n,s,i),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,r,a,n,s,i),c}function Re(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function rt(e,t,r){var a=7+t-r,n=(7+Re(e,0,a).getUTCDay()-t)%7;return-n+a-1}function Tr(e,t,r,a,n){var s=(7+r-a)%7,i=rt(e,a,n),c=1+7*(t-1)+s+i,_,M;return c<=0?(_=e-1,M=We(_)+c):c>We(e)?(_=e+1,M=c-We(e)):(_=e,M=c),{year:_,dayOfYear:M}}function Fe(e,t,r){var a=rt(e.year(),t,r),n=Math.floor((e.dayOfYear()-a-1)/7)+1,s,i;return n<1?(i=e.year()-1,s=n+J(i,t,r)):n>J(e.year(),t,r)?(s=n-J(e.year(),t,r),i=e.year()+1):(i=e.year(),s=n),{week:s,year:i}}function J(e,t,r){var a=rt(e,t,r),n=rt(e+1,t,r);return(We(e)-a+n)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),f("w",S,ye),f("ww",S,P),f("W",S,ye),f("WW",S,P),Pe(["w","ww","W","WW"],function(e,t,r,a){t[a.substr(0,1)]=g(e)});function Cn(e){return Fe(e,this._week.dow,this._week.doy).week}var xn={dow:0,doy:6};function Nn(){return this._week.dow}function Pn(){return this._week.doy}function Wn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function In(e){var t=Fe(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day"),h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),h("e",0,0,"weekday"),h("E",0,0,"isoWeekday"),f("d",S),f("e",S),f("E",S),f("dd",function(e,t){return t.weekdaysMinRegex(e)}),f("ddd",function(e,t){return t.weekdaysShortRegex(e)}),f("dddd",function(e,t){return t.weekdaysRegex(e)}),Pe(["dd","ddd","dddd"],function(e,t,r,a){var n=r._locale.weekdaysParse(e,a,r._strict);n!=null?t.d=n:p(r).invalidWeekday=e}),Pe(["d","e","E"],function(e,t,r,a){t[a]=g(e)});function Rn(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Fn(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}var An="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Cr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),En="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ln=Ne,Hn=Ne,Un=Ne;function Vn(e,t){var r=u(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ht(r,this._week.dow):e?r[e.day()]:r}function jn(e){return e===!0?Ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gn(e){return e===!0?Ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zn(e,t,r){var a,n,s,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)s=U([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(s,"").toLocaleLowerCase();return r?t==="dddd"?(n=b.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=b.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=b.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=b.call(this._weekdaysParse,i),n!==-1||(n=b.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=b.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=b.call(this._shortWeekdaysParse,i),n!==-1||(n=b.call(this._weekdaysParse,i),n!==-1)?n:(n=b.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=b.call(this._minWeekdaysParse,i),n!==-1||(n=b.call(this._weekdaysParse,i),n!==-1)?n:(n=b.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function $n(e,t,r){var a,n,s;if(this._weekdaysParseExact)return zn.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(n=U([2e3,1]).day(a),r&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(s="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[a]=new RegExp(s.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[a].test(e))return a;if(r&&t==="ddd"&&this._shortWeekdaysParse[a].test(e))return a;if(r&&t==="dd"&&this._minWeekdaysParse[a].test(e))return a;if(!r&&this._weekdaysParse[a].test(e))return a}}function Zn(e){if(!this.isValid())return e!=null?this:NaN;var t=Ie(this,"Day");return e!=null?(e=Rn(e,this.localeData()),this.add(e-t,"d")):t}function Bn(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function qn(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Fn(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Jn(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=Ln),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Qn(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Hn),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xn(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Ut.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Un),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ut(){function e(x,te){return te.length-x.length}var t=[],r=[],a=[],n=[],s,i,c,_,M;for(s=0;s<7;s++)i=U([2e3,1]).day(s),c=Z(this.weekdaysMin(i,"")),_=Z(this.weekdaysShort(i,"")),M=Z(this.weekdays(i,"")),t.push(c),r.push(_),a.push(M),n.push(c),n.push(_),n.push(M);t.sort(e),r.sort(e),a.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Vt(){return this.hours()%12||12}function Kn(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,Vt),h("k",["kk",2],0,Kn),h("hmm",0,0,function(){return""+Vt.apply(this)+j(this.minutes(),2)}),h("hmmss",0,0,function(){return""+Vt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)});function xr(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}xr("a",!0),xr("A",!1);function Nr(e,t){return t._meridiemParse}f("a",Nr),f("A",Nr),f("H",S,At),f("h",S,ye),f("k",S,ye),f("HH",S,P),f("hh",S,P),f("kk",S,P),f("hmm",Mr),f("hmmss",Dr),f("Hmm",Mr),f("Hmmss",Dr),v(["H","HH"],T),v(["k","kk"],function(e,t,r){var a=g(e);t[T]=a===24?0:a}),v(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),v(["h","hh"],function(e,t,r){t[T]=g(e),p(r).bigHour=!0}),v("hmm",function(e,t,r){var a=e.length-2;t[T]=g(e.substr(0,a)),t[A]=g(e.substr(a)),p(r).bigHour=!0}),v("hmmss",function(e,t,r){var a=e.length-4,n=e.length-2;t[T]=g(e.substr(0,a)),t[A]=g(e.substr(a,2)),t[q]=g(e.substr(n)),p(r).bigHour=!0}),v("Hmm",function(e,t,r){var a=e.length-2;t[T]=g(e.substr(0,a)),t[A]=g(e.substr(a))}),v("Hmmss",function(e,t,r){var a=e.length-4,n=e.length-2;t[T]=g(e.substr(0,a)),t[A]=g(e.substr(a,2)),t[q]=g(e.substr(n))});function es(e){return(e+"").toLowerCase().charAt(0)==="p"}var ts=/[ap]\.?m?\.?/i,rs=ge("Hours",!0);function as(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Pr={calendar:Ga,longDateFormat:Ba,invalidDate:Ja,ordinal:Xa,dayOfMonthOrdinalParse:Ka,relativeTime:tn,months:gn,monthsShort:vr,week:xn,weekdays:An,weekdaysMin:En,weekdaysShort:Cr,meridiemParse:ts},O={},Ae={},Ee;function ns(e,t){var r,a=Math.min(e.length,t.length);for(r=0;r<a;r+=1)if(e[r]!==t[r])return r;return a}function Wr(e){return e&&e.toLowerCase().replace("_","-")}function ss(e){for(var t=0,r,a,n,s;t<e.length;){for(s=Wr(e[t]).split("-"),r=s.length,a=Wr(e[t+1]),a=a?a.split("-"):null;r>0;){if(n=at(s.slice(0,r).join("-")),n)return n;if(a&&a.length>=r&&ns(s,a)>=r-1)break;r--}t++}return Ee}function is(e){return!!(e&&e.match("^[^/\\\\]*$"))}function at(e){var t=null,r;if(O[e]===void 0&&typeof be<"u"&&be&&be.exports&&is(e))try{t=Ee._abbr,r=ia,r("./locale/"+e),ne(t)}catch{O[e]=null}return O[e]}function ne(e,t){var r;return e&&(N(t)?r=Q(e):r=jt(e,t),r?Ee=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ee._abbr}function jt(e,t){if(t!==null){var r,a=Pr;if(t.abbr=e,O[e]!=null)mr("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=O[e]._config;else if(t.parentLocale!=null)if(O[t.parentLocale]!=null)a=O[t.parentLocale]._config;else if(r=at(t.parentLocale),r!=null)a=r._config;else return Ae[t.parentLocale]||(Ae[t.parentLocale]=[]),Ae[t.parentLocale].push({name:e,config:t}),null;return O[e]=new xt(Ct(a,t)),Ae[e]&&Ae[e].forEach(function(n){jt(n.name,n.config)}),ne(e),O[e]}else return delete O[e],null}function os(e,t){if(t!=null){var r,a,n=Pr;O[e]!=null&&O[e].parentLocale!=null?O[e].set(Ct(O[e]._config,t)):(a=at(e),a!=null&&(n=a._config),t=Ct(n,t),a==null&&(t.abbr=e),r=new xt(t),r.parentLocale=O[e],O[e]=r),ne(e)}else O[e]!=null&&(O[e].parentLocale!=null?(O[e]=O[e].parentLocale,e===ne()&&ne(e)):O[e]!=null&&delete O[e]);return O[e]}function Q(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ee;if(!u(e)){if(t=at(e),t)return t;e=[e]}return ss(e)}function ls(){return Nt(O)}function Gt(e){var t,r=e._a;return r&&p(e).overflow===-2&&(t=r[B]<0||r[B]>11?B:r[G]<1||r[G]>Lt(r[C],r[B])?G:r[T]<0||r[T]>24||r[T]===24&&(r[A]!==0||r[q]!==0||r[ce]!==0)?T:r[A]<0||r[A]>59?A:r[q]<0||r[q]>59?q:r[ce]<0||r[ce]>999?ce:-1,p(e)._overflowDayOfYear&&(t<C||t>G)&&(t=G),p(e)._overflowWeeks&&t===-1&&(t=fn),p(e)._overflowWeekday&&t===-1&&(t=hn),p(e).overflow=t),e}var ds=/^\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)?)?$/,us=/^\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)?)?$/,cs=/Z|[+-]\d\d(?::?\d\d)?/,nt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zt=[["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/]],fs=/^\/?Date\((-?\d+)/i,hs=/^(?:(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}))$/,ms={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ir(e){var t,r,a=e._i,n=ds.exec(a)||us.exec(a),s,i,c,_,M=nt.length,x=zt.length;if(n){for(p(e).iso=!0,t=0,r=M;t<r;t++)if(nt[t][1].exec(n[1])){i=nt[t][0],s=nt[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,r=x;t<r;t++)if(zt[t][1].exec(n[3])){c=(n[2]||" ")+zt[t][0];break}if(c==null){e._isValid=!1;return}}if(!s&&c!=null){e._isValid=!1;return}if(n[4])if(cs.exec(n[4]))_="Z";else{e._isValid=!1;return}e._f=i+(c||"")+(_||""),Zt(e)}else e._isValid=!1}function _s(e,t,r,a,n,s){var i=[ps(e),vr.indexOf(t),parseInt(r,10),parseInt(a,10),parseInt(n,10)];return s&&i.push(parseInt(s,10)),i}function ps(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ys(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function gs(e,t,r){if(e){var a=Cr.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(a!==n)return p(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Ms(e,t,r){if(e)return ms[e];if(t)return 0;var a=parseInt(r,10),n=a%100,s=(a-n)/100;return s*60+n}function Rr(e){var t=hs.exec(ys(e._i)),r;if(t){if(r=_s(t[4],t[3],t[2],t[5],t[6],t[7]),!gs(t[1],r,e))return;e._a=r,e._tzm=Ms(t[8],t[9],t[10]),e._d=Re.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Ds(e){var t=fs.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ir(e),e._isValid===!1)delete e._isValid;else return;if(Rr(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=W("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Me(e,t,r){return e??t??r}function ks(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function $t(e){var t,r,a=[],n,s,i;if(!e._d){for(n=ks(e),e._w&&e._a[G]==null&&e._a[B]==null&&ws(e),e._dayOfYear!=null&&(i=Me(e._a[C],n[C]),(e._dayOfYear>We(i)||e._dayOfYear===0)&&(p(e)._overflowDayOfYear=!0),r=Re(i,0,e._dayOfYear),e._a[B]=r.getUTCMonth(),e._a[G]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=a[t]=n[t];for(;t<7;t++)e._a[t]=a[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[T]===24&&e._a[A]===0&&e._a[q]===0&&e._a[ce]===0&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?Re:Tn).apply(null,a),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(p(e).weekdayMismatch=!0)}}function ws(e){var t,r,a,n,s,i,c,_,M;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,i=4,r=Me(t.GG,e._a[C],Fe(Y(),1,4).year),a=Me(t.W,1),n=Me(t.E,1),(n<1||n>7)&&(_=!0)):(s=e._locale._week.dow,i=e._locale._week.doy,M=Fe(Y(),s,i),r=Me(t.gg,e._a[C],M.year),a=Me(t.w,M.week),t.d!=null?(n=t.d,(n<0||n>6)&&(_=!0)):t.e!=null?(n=t.e+s,(t.e<0||t.e>6)&&(_=!0)):n=s),a<1||a>J(r,s,i)?p(e)._overflowWeeks=!0:_!=null?p(e)._overflowWeekday=!0:(c=Tr(r,a,n,s,i),e._a[C]=c.year,e._dayOfYear=c.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function Zt(e){if(e._f===l.ISO_8601){Ir(e);return}if(e._f===l.RFC_2822){Rr(e);return}e._a=[],p(e).empty=!0;var t=""+e._i,r,a,n,s,i,c=t.length,_=0,M,x;for(n=_r(e._f,e._locale).match(Pt)||[],x=n.length,r=0;r<x;r++)s=n[r],a=(t.match(dn(s,e))||[])[0],a&&(i=t.substr(0,t.indexOf(a)),i.length>0&&p(e).unusedInput.push(i),t=t.slice(t.indexOf(a)+a.length),_+=a.length),_e[s]?(a?p(e).empty=!1:p(e).unusedTokens.push(s),cn(s,a,e)):e._strict&&!a&&p(e).unusedTokens.push(s);p(e).charsLeftOver=c-_,t.length>0&&p(e).unusedInput.push(t),e._a[T]<=12&&p(e).bigHour===!0&&e._a[T]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[T]=vs(e._locale,e._a[T],e._meridiem),M=p(e).era,M!==null&&(e._a[C]=e._locale.erasConvertYear(M,e._a[C])),$t(e),Gt(e)}function vs(e,t,r){var a;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(a=e.isPM(r),a&&t<12&&(t+=12),!a&&t===12&&(t=0)),t)}function Ss(e){var t,r,a,n,s,i,c=!1,_=e._f.length;if(_===0){p(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<_;n++)s=0,i=!1,t=Tt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],Zt(t),Ot(t)&&(i=!0),s+=p(t).charsLeftOver,s+=p(t).unusedTokens.length*10,p(t).score=s,c?s<a&&(a=s,r=t):(a==null||s<a||i)&&(a=s,r=t,i&&(c=!0));ae(e,r||t)}function Ys(e){if(!e._d){var t=It(e._i),r=t.day===void 0?t.date:t.day;e._a=ur([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(a){return a&&parseInt(a,10)}),$t(e)}}function Os(e){var t=new xe(Gt(Fr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Fr(e){var t=e._i,r=e._f;return e._locale=e._locale||Q(e._l),t===null||r===void 0&&t===""?$e({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),F(t)?new xe(Gt(t)):(Ce(t)?e._d=t:u(r)?Ss(e):r?Zt(e):bs(e),Ot(e)||(e._d=null),e))}function bs(e){var t=e._i;N(t)?e._d=new Date(l.now()):Ce(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ds(e):u(t)?(e._a=ur(t.slice(0),function(r){return parseInt(r,10)}),$t(e)):w(t)?Ys(e):$(t)?e._d=new Date(t):l.createFromInputFallback(e)}function Ar(e,t,r,a,n){var s={};return(t===!0||t===!1)&&(a=t,t=void 0),(r===!0||r===!1)&&(a=r,r=void 0),(w(e)&&H(e)||u(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=n,s._l=r,s._i=e,s._f=t,s._strict=a,Os(s)}function Y(e,t,r,a){return Ar(e,t,r,a,!1)}var Ts=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Y.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:$e()}),Cs=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Y.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:$e()});function Er(e,t){var r,a;if(t.length===1&&u(t[0])&&(t=t[0]),!t.length)return Y();for(r=t[0],a=1;a<t.length;++a)(!t[a].isValid()||t[a][e](r))&&(r=t[a]);return r}function xs(){var e=[].slice.call(arguments,0);return Er("isBefore",e)}function Ns(){var e=[].slice.call(arguments,0);return Er("isAfter",e)}var Ps=function(){return Date.now?Date.now():+new Date},Le=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ws(e){var t,r=!1,a,n=Le.length;for(t in e)if(m(e,t)&&!(b.call(Le,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(a=0;a<n;++a)if(e[Le[a]]){if(r)return!1;parseFloat(e[Le[a]])!==g(e[Le[a]])&&(r=!0)}return!0}function Is(){return this._isValid}function Rs(){return E(NaN)}function st(e){var t=It(e),r=t.year||0,a=t.quarter||0,n=t.month||0,s=t.week||t.isoWeek||0,i=t.day||0,c=t.hour||0,_=t.minute||0,M=t.second||0,x=t.millisecond||0;this._isValid=Ws(t),this._milliseconds=+x+M*1e3+_*6e4+c*1e3*60*60,this._days=+i+s*7,this._months=+n+a*3+r*12,this._data={},this._locale=Q(),this._bubble()}function it(e){return e instanceof st}function Bt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Fs(e,t,r){var a=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),s=0,i;for(i=0;i<a;i++)(r&&e[i]!==t[i]||!r&&g(e[i])!==g(t[i]))&&s++;return s+n}function Lr(e,t){h(e,0,0,function(){var r=this.utcOffset(),a="+";return r<0&&(r=-r,a="-"),a+j(~~(r/60),2)+t+j(~~r%60,2)})}Lr("Z",":"),Lr("ZZ",""),f("Z",Ke),f("ZZ",Ke),v(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=qt(Ke,e)});var As=/([\+\-]|\d\d)/gi;function qt(e,t){var r=(t||"").match(e),a,n,s;return r===null?null:(a=r[r.length-1]||[],n=(a+"").match(As)||["-",0,0],s=+(n[1]*60)+g(n[2]),s===0?0:n[0]==="+"?s:-s)}function Jt(e,t){var r,a;return t._isUTC?(r=t.clone(),a=(F(e)||Ce(e)?e.valueOf():Y(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+a),l.updateOffset(r,!1),r):Y(e).local()}function Qt(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function Es(e,t,r){var a=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=qt(Ke,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=Qt(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),a!==e&&(!t||this._changeInProgress?jr(this,E(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?a:Qt(this)}function Ls(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Hs(e){return this.utcOffset(0,e)}function Us(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Qt(this),"m")),this}function Vs(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=qt(on,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function js(e){return this.isValid()?(e=e?Y(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Gs(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zs(){if(!N(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Tt(e,this),e=Fr(e),e._a?(t=e._isUTC?U(e._a):Y(e._a),this._isDSTShifted=this.isValid()&&Fs(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $s(){return this.isValid()?!this._isUTC:!1}function Zs(){return this.isValid()?this._isUTC:!1}function Hr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bs=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,qs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function E(e,t){var r=e,a=null,n,s,i;return it(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(a=Bs.exec(e))?(n=a[1]==="-"?-1:1,r={y:0,d:g(a[G])*n,h:g(a[T])*n,m:g(a[A])*n,s:g(a[q])*n,ms:g(Bt(a[ce]*1e3))*n}):(a=qs.exec(e))?(n=a[1]==="-"?-1:1,r={y:fe(a[2],n),M:fe(a[3],n),w:fe(a[4],n),d:fe(a[5],n),h:fe(a[6],n),m:fe(a[7],n),s:fe(a[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=Js(Y(r.from),Y(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),s=new st(r),it(e)&&m(e,"_locale")&&(s._locale=e._locale),it(e)&&m(e,"_isValid")&&(s._isValid=e._isValid),s}E.fn=st.prototype,E.invalid=Rs;function fe(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Ur(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Js(e,t){var r;return e.isValid()&&t.isValid()?(t=Jt(t,e),e.isBefore(t)?r=Ur(e,t):(r=Ur(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Vr(e,t){return function(r,a){var n,s;return a!==null&&!isNaN(+a)&&(mr(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=r,r=a,a=s),n=E(r,a),jr(this,n,e),this}}function jr(e,t,r,a){var n=t._milliseconds,s=Bt(t._days),i=Bt(t._months);e.isValid()&&(a=a??!0,i&&Yr(e,Ie(e,"Month")+i*r),s&&wr(e,"Date",Ie(e,"Date")+s*r),n&&e._d.setTime(e._d.valueOf()+n*r),a&&l.updateOffset(e,s||i))}var Qs=Vr(1,"add"),Xs=Vr(-1,"subtract");function Gr(e){return typeof e=="string"||e instanceof String}function Ks(e){return F(e)||Ce(e)||Gr(e)||$(e)||ti(e)||ei(e)||e===null||e===void 0}function ei(e){var t=w(e)&&!H(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,s,i=a.length;for(n=0;n<i;n+=1)s=a[n],r=r||m(e,s);return t&&r}function ti(e){var t=u(e),r=!1;return t&&(r=e.filter(function(a){return!$(a)&&Gr(e)}).length===0),t&&r}function ri(e){var t=w(e)&&!H(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,s;for(n=0;n<a.length;n+=1)s=a[n],r=r||m(e,s);return t&&r}function ai(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function ni(e,t){arguments.length===1&&(arguments[0]?Ks(arguments[0])?(e=arguments[0],t=void 0):ri(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Y(),a=Jt(r,this).startOf("day"),n=l.calendarFormat(this,a)||"sameElse",s=t&&(V(t[n])?t[n].call(this,r):t[n]);return this.format(s||this.localeData().calendar(n,this,Y(r)))}function si(){return new xe(this)}function ii(e,t){var r=F(e)?e:Y(e);return this.isValid()&&r.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function oi(e,t){var r=F(e)?e:Y(e);return this.isValid()&&r.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function li(e,t,r,a){var n=F(e)?e:Y(e),s=F(t)?t:Y(t);return this.isValid()&&n.isValid()&&s.isValid()?(a=a||"()",(a[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(a[1]===")"?this.isBefore(s,r):!this.isAfter(s,r))):!1}function di(e,t){var r=F(e)?e:Y(e),a;return this.isValid()&&r.isValid()?(t=I(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(a=r.valueOf(),this.clone().startOf(t).valueOf()<=a&&a<=this.clone().endOf(t).valueOf())):!1}function ui(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ci(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function fi(e,t,r){var a,n,s;if(!this.isValid())return NaN;if(a=Jt(e,this),!a.isValid())return NaN;switch(n=(a.utcOffset()-this.utcOffset())*6e4,t=I(t),t){case"year":s=ot(this,a)/12;break;case"month":s=ot(this,a);break;case"quarter":s=ot(this,a)/3;break;case"second":s=(this-a)/1e3;break;case"minute":s=(this-a)/6e4;break;case"hour":s=(this-a)/36e5;break;case"day":s=(this-a-n)/864e5;break;case"week":s=(this-a-n)/6048e5;break;default:s=this-a}return r?s:R(s)}function ot(e,t){if(e.date()<t.date())return-ot(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(r,"months"),n,s;return t-a<0?(n=e.clone().add(r-1,"months"),s=(t-a)/(a-n)):(n=e.clone().add(r+1,"months"),s=(t-a)/(n-a)),-(r+s)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function hi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mi(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Be(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):V(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Be(r,"Z")):Be(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,a,n,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(r+a+n+s)}function pi(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Be(this,e);return this.localeData().postformat(t)}function yi(e,t){return this.isValid()&&(F(e)&&e.isValid()||Y(e).isValid())?E({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gi(e){return this.from(Y(),e)}function Mi(e,t){return this.isValid()&&(F(e)&&e.isValid()||Y(e).isValid())?E({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Di(e){return this.to(Y(),e)}function zr(e){var t;return e===void 0?this._locale._abbr:(t=Q(e),t!=null&&(this._locale=t),this)}var $r=W("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Zr(){return this._locale}var lt=1e3,De=60*lt,dt=60*De,Br=(365*400+97)*24*dt;function ke(e,t){return(e%t+t)%t}function qr(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Br:new Date(e,t,r).valueOf()}function Jr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Br:Date.UTC(e,t,r)}function ki(e){var t,r;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Jr:qr,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ke(t+(this._isUTC?0:this.utcOffset()*De),dt);break;case"minute":t=this._d.valueOf(),t-=ke(t,De);break;case"second":t=this._d.valueOf(),t-=ke(t,lt);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function wi(e){var t,r;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Jr:qr,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=dt-ke(t+(this._isUTC?0:this.utcOffset()*De),dt)-1;break;case"minute":t=this._d.valueOf(),t+=De-ke(t,De)-1;break;case"second":t=this._d.valueOf(),t+=lt-ke(t,lt)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function vi(){return this._d.valueOf()-(this._offset||0)*6e4}function Si(){return Math.floor(this.valueOf()/1e3)}function Yi(){return new Date(this.valueOf())}function Oi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ti(){return this.isValid()?this.toISOString():null}function Ci(){return Ot(this)}function xi(){return ae({},p(this))}function Ni(){return p(this).overflow}function Pi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr"),h("NN",0,0,"eraAbbr"),h("NNN",0,0,"eraAbbr"),h("NNNN",0,0,"eraName"),h("NNNNN",0,0,"eraNarrow"),h("y",["y",1],"yo","eraYear"),h("y",["yy",2],0,"eraYear"),h("y",["yyy",3],0,"eraYear"),h("y",["yyyy",4],0,"eraYear"),f("N",Xt),f("NN",Xt),f("NNN",Xt),f("NNNN",ji),f("NNNNN",Gi),v(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,a){var n=r._locale.erasParse(e,a,r._strict);n?p(r).era=n:p(r).invalidEra=e}),f("y",pe),f("yy",pe),f("yyy",pe),f("yyyy",pe),f("yo",zi),v(["y","yy","yyy","yyyy"],C),v(["yo"],function(e,t,r,a){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[C]=r._locale.eraYearOrdinalParse(e,n):t[C]=parseInt(e,10)});function Wi(e,t){var r,a,n,s=this._eras||Q("en")._eras;for(r=0,a=s.length;r<a;++r){switch(typeof s[r].since){case"string":n=l(s[r].since).startOf("day"),s[r].since=n.valueOf();break}switch(typeof s[r].until){case"undefined":s[r].until=1/0;break;case"string":n=l(s[r].until).startOf("day").valueOf(),s[r].until=n.valueOf();break}}return s}function Ii(e,t,r){var a,n,s=this.eras(),i,c,_;for(e=e.toUpperCase(),a=0,n=s.length;a<n;++a)if(i=s[a].name.toUpperCase(),c=s[a].abbr.toUpperCase(),_=s[a].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(c===e)return s[a];break;case"NNNN":if(i===e)return s[a];break;case"NNNNN":if(_===e)return s[a];break}else if([i,c,_].indexOf(e)>=0)return s[a]}function Ri(e,t){var r=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*r}function Fi(){var e,t,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].name;return""}function Ai(){var e,t,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].narrow;return""}function Ei(){var e,t,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return a[e].abbr;return""}function Li(){var e,t,r,a,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,a=this.clone().startOf("day").valueOf(),n[e].since<=a&&a<=n[e].until||n[e].until<=a&&a<=n[e].since)return(this.year()-l(n[e].since).year())*r+n[e].offset;return this.year()}function Hi(e){return m(this,"_erasNameRegex")||Kt.call(this),e?this._erasNameRegex:this._erasRegex}function Ui(e){return m(this,"_erasAbbrRegex")||Kt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Vi(e){return m(this,"_erasNarrowRegex")||Kt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Xt(e,t){return t.erasAbbrRegex(e)}function ji(e,t){return t.erasNameRegex(e)}function Gi(e,t){return t.erasNarrowRegex(e)}function zi(e,t){return t._eraYearOrdinalRegex||pe}function Kt(){var e=[],t=[],r=[],a=[],n,s,i,c,_,M=this.eras();for(n=0,s=M.length;n<s;++n)i=Z(M[n].name),c=Z(M[n].abbr),_=Z(M[n].narrow),t.push(i),e.push(c),r.push(_),a.push(i),a.push(c),a.push(_);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100}),h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ut(e,t){h(0,[e,e.length],0,t)}ut("gggg","weekYear"),ut("ggggg","weekYear"),ut("GGGG","isoWeekYear"),ut("GGGGG","isoWeekYear"),f("G",Xe),f("g",Xe),f("GG",S,P),f("gg",S,P),f("GGGG",Ft,Rt),f("gggg",Ft,Rt),f("GGGGG",Qe,qe),f("ggggg",Qe,qe),Pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,a){t[a.substr(0,2)]=g(e)}),Pe(["gg","GG"],function(e,t,r,a){t[a]=l.parseTwoDigitYear(e)});function $i(e){return Qr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Zi(e){return Qr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Bi(){return J(this.year(),1,4)}function qi(){return J(this.isoWeekYear(),1,4)}function Ji(){var e=this.localeData()._week;return J(this.year(),e.dow,e.doy)}function Qi(){var e=this.localeData()._week;return J(this.weekYear(),e.dow,e.doy)}function Qr(e,t,r,a,n){var s;return e==null?Fe(this,a,n).year:(s=J(e,a,n),t>s&&(t=s),Xi.call(this,e,t,r,a,n))}function Xi(e,t,r,a,n){var s=Tr(e,t,r,a,n),i=Re(s.year,0,s.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter"),f("Q",yr),v("Q",function(e,t){t[B]=(g(e)-1)*3});function Ki(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date"),f("D",S,ye),f("DD",S,P),f("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),v(["D","DD"],G),v("Do",function(e,t){t[G]=g(e.match(S)[0])});var Xr=ge("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear"),f("DDD",Je),f("DDDD",gr),v(["DDD","DDDD"],function(e,t,r){r._dayOfYear=g(e)});function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute"),f("m",S,At),f("mm",S,P),v(["m","mm"],A);var to=ge("Minutes",!1);h("s",["ss",2],0,"second"),f("s",S,At),f("ss",S,P),v(["s","ss"],q);var ro=ge("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)}),h(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),h(0,["SSS",3],0,"millisecond"),h(0,["SSSS",4],0,function(){return this.millisecond()*10}),h(0,["SSSSS",5],0,function(){return this.millisecond()*100}),h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),f("S",Je,yr),f("SS",Je,P),f("SSS",Je,gr);var se,Kr;for(se="SSSS";se.length<=9;se+="S")f(se,pe);function ao(e,t){t[ce]=g(("0."+e)*1e3)}for(se="S";se.length<=9;se+="S")v(se,ao);Kr=ge("Milliseconds",!1),h("z",0,0,"zoneAbbr"),h("zz",0,0,"zoneName");function no(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}var d=xe.prototype;d.add=Qs,d.calendar=ni,d.clone=si,d.diff=fi,d.endOf=wi,d.format=pi,d.from=yi,d.fromNow=gi,d.to=Mi,d.toNow=Di,d.get=_n,d.invalidAt=Ni,d.isAfter=ii,d.isBefore=oi,d.isBetween=li,d.isSame=di,d.isSameOrAfter=ui,d.isSameOrBefore=ci,d.isValid=Ci,d.lang=$r,d.locale=zr,d.localeData=Zr,d.max=Cs,d.min=Ts,d.parsingFlags=xi,d.set=pn,d.startOf=ki,d.subtract=Xs,d.toArray=Oi,d.toObject=bi,d.toDate=Yi,d.toISOString=mi,d.inspect=_i,typeof Symbol<"u"&&Symbol.for!=null&&(d[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),d.toJSON=Ti,d.toString=hi,d.unix=Si,d.valueOf=vi,d.creationData=Pi,d.eraName=Fi,d.eraNarrow=Ai,d.eraAbbr=Ei,d.eraYear=Li,d.year=kr,d.isLeapYear=mn,d.weekYear=$i,d.isoWeekYear=Zi,d.quarter=d.quarters=Ki,d.month=Or,d.daysInMonth=Yn,d.week=d.weeks=Wn,d.isoWeek=d.isoWeeks=In,d.weeksInYear=Ji,d.weeksInWeekYear=Qi,d.isoWeeksInYear=Bi,d.isoWeeksInISOWeekYear=qi,d.date=Xr,d.day=d.days=Zn,d.weekday=Bn,d.isoWeekday=qn,d.dayOfYear=eo,d.hour=d.hours=rs,d.minute=d.minutes=to,d.second=d.seconds=ro,d.millisecond=d.milliseconds=Kr,d.utcOffset=Es,d.utc=Hs,d.local=Us,d.parseZone=Vs,d.hasAlignedHourOffset=js,d.isDST=Gs,d.isLocal=$s,d.isUtcOffset=Zs,d.isUtc=Hr,d.isUTC=Hr,d.zoneAbbr=no,d.zoneName=so,d.dates=W("dates accessor is deprecated. Use date instead.",Xr),d.months=W("months accessor is deprecated. Use month instead",Or),d.years=W("years accessor is deprecated. Use year instead",kr),d.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ls),d.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zs);function io(e){return Y(e*1e3)}function oo(){return Y.apply(null,arguments).parseZone()}function ea(e){return e}var k=xt.prototype;k.calendar=za,k.longDateFormat=qa,k.invalidDate=Qa,k.ordinal=en,k.preparse=ea,k.postformat=ea,k.relativeTime=rn,k.pastFuture=an,k.set=ja,k.eras=Wi,k.erasParse=Ii,k.erasConvertYear=Ri,k.erasAbbrRegex=Ui,k.erasNameRegex=Hi,k.erasNarrowRegex=Vi,k.months=kn,k.monthsShort=wn,k.monthsParse=Sn,k.monthsRegex=bn,k.monthsShortRegex=On,k.week=Cn,k.firstDayOfYear=Pn,k.firstDayOfWeek=Nn,k.weekdays=Vn,k.weekdaysMin=Gn,k.weekdaysShort=jn,k.weekdaysParse=$n,k.weekdaysRegex=Jn,k.weekdaysShortRegex=Qn,k.weekdaysMinRegex=Xn,k.isPM=es,k.meridiem=as;function ct(e,t,r,a){var n=Q(),s=U().set(a,t);return n[r](s,e)}function ta(e,t,r){if($(e)&&(t=e,e=void 0),e=e||"",t!=null)return ct(e,t,r,"month");var a,n=[];for(a=0;a<12;a++)n[a]=ct(e,a,r,"month");return n}function er(e,t,r,a){typeof e=="boolean"?($(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,$(t)&&(r=t,t=void 0),t=t||"");var n=Q(),s=e?n._week.dow:0,i,c=[];if(r!=null)return ct(t,(r+s)%7,a,"day");for(i=0;i<7;i++)c[i]=ct(t,(i+s)%7,a,"day");return c}function lo(e,t){return ta(e,t,"months")}function uo(e,t){return ta(e,t,"monthsShort")}function co(e,t,r){return er(e,t,r,"weekdays")}function fo(e,t,r){return er(e,t,r,"weekdaysShort")}function ho(e,t,r){return er(e,t,r,"weekdaysMin")}ne("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=g(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),l.lang=W("moment.lang is deprecated. Use moment.locale instead.",ne),l.langData=W("moment.langData is deprecated. Use moment.localeData instead.",Q);var X=Math.abs;function mo(){var e=this._data;return this._milliseconds=X(this._milliseconds),this._days=X(this._days),this._months=X(this._months),e.milliseconds=X(e.milliseconds),e.seconds=X(e.seconds),e.minutes=X(e.minutes),e.hours=X(e.hours),e.months=X(e.months),e.years=X(e.years),this}function ra(e,t,r,a){var n=E(t,r);return e._milliseconds+=a*n._milliseconds,e._days+=a*n._days,e._months+=a*n._months,e._bubble()}function _o(e,t){return ra(this,e,t,1)}function po(e,t){return ra(this,e,t,-1)}function aa(e){return e<0?Math.floor(e):Math.ceil(e)}function yo(){var e=this._milliseconds,t=this._days,r=this._months,a=this._data,n,s,i,c,_;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=aa(tr(r)+t)*864e5,t=0,r=0),a.milliseconds=e%1e3,n=R(e/1e3),a.seconds=n%60,s=R(n/60),a.minutes=s%60,i=R(s/60),a.hours=i%24,t+=R(i/24),_=R(na(t)),r+=_,t-=aa(tr(_)),c=R(r/12),r%=12,a.days=t,a.months=r,a.years=c,this}function na(e){return e*4800/146097}function tr(e){return e*146097/4800}function go(e){if(!this.isValid())return NaN;var t,r,a=this._milliseconds;if(e=I(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+a/864e5,r=this._months+na(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(tr(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return t*24+a/36e5;case"minute":return t*1440+a/6e4;case"second":return t*86400+a/1e3;case"millisecond":return Math.floor(t*864e5)+a;default:throw new Error("Unknown unit "+e)}}function K(e){return function(){return this.as(e)}}var sa=K("ms"),Mo=K("s"),Do=K("m"),ko=K("h"),wo=K("d"),vo=K("w"),So=K("M"),Yo=K("Q"),Oo=K("y"),bo=sa;function To(){return E(this)}function Co(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function he(e){return function(){return this.isValid()?this._data[e]:NaN}}var xo=he("milliseconds"),No=he("seconds"),Po=he("minutes"),Wo=he("hours"),Io=he("days"),Ro=he("months"),Fo=he("years");function Ao(){return R(this.days()/7)}var ee=Math.round,we={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Eo(e,t,r,a,n){return n.relativeTime(t||1,!!r,e,a)}function Lo(e,t,r,a){var n=E(e).abs(),s=ee(n.as("s")),i=ee(n.as("m")),c=ee(n.as("h")),_=ee(n.as("d")),M=ee(n.as("M")),x=ee(n.as("w")),te=ee(n.as("y")),ie=s<=r.ss&&["s",s]||s<r.s&&["ss",s]||i<=1&&["m"]||i<r.m&&["mm",i]||c<=1&&["h"]||c<r.h&&["hh",c]||_<=1&&["d"]||_<r.d&&["dd",_];return r.w!=null&&(ie=ie||x<=1&&["w"]||x<r.w&&["ww",x]),ie=ie||M<=1&&["M"]||M<r.M&&["MM",M]||te<=1&&["y"]||["yy",te],ie[2]=t,ie[3]=+e>0,ie[4]=a,Eo.apply(null,ie)}function Ho(e){return e===void 0?ee:typeof e=="function"?(ee=e,!0):!1}function Uo(e,t){return we[e]===void 0?!1:t===void 0?we[e]:(we[e]=t,e==="s"&&(we.ss=t-1),!0)}function Vo(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,a=we,n,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(a=Object.assign({},we,t),t.s!=null&&t.ss==null&&(a.ss=t.s-1)),n=this.localeData(),s=Lo(this,!r,a,n),r&&(s=n.pastFuture(+this,s)),n.postformat(s)}var rr=Math.abs;function ve(e){return(e>0)-(e<0)||+e}function ft(){if(!this.isValid())return this.localeData().invalidDate();var e=rr(this._milliseconds)/1e3,t=rr(this._days),r=rr(this._months),a,n,s,i,c=this.asSeconds(),_,M,x,te;return c?(a=R(e/60),n=R(a/60),e%=60,a%=60,s=R(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",_=c<0?"-":"",M=ve(this._months)!==ve(c)?"-":"",x=ve(this._days)!==ve(c)?"-":"",te=ve(this._milliseconds)!==ve(c)?"-":"",_+"P"+(s?M+s+"Y":"")+(r?M+r+"M":"")+(t?x+t+"D":"")+(n||a||e?"T":"")+(n?te+n+"H":"")+(a?te+a+"M":"")+(e?te+i+"S":"")):"P0D"}var D=st.prototype;D.isValid=Is,D.abs=mo,D.add=_o,D.subtract=po,D.as=go,D.asMilliseconds=sa,D.asSeconds=Mo,D.asMinutes=Do,D.asHours=ko,D.asDays=wo,D.asWeeks=vo,D.asMonths=So,D.asQuarters=Yo,D.asYears=Oo,D.valueOf=bo,D._bubble=yo,D.clone=To,D.get=Co,D.milliseconds=xo,D.seconds=No,D.minutes=Po,D.hours=Wo,D.days=Io,D.weeks=Ao,D.months=Ro,D.years=Fo,D.humanize=Vo,D.toISOString=ft,D.toString=ft,D.toJSON=ft,D.locale=zr,D.localeData=Zr,D.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ft),D.lang=$r,h("X",0,0,"unix"),h("x",0,0,"valueOf"),f("x",Xe),f("X",ln),v("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),v("x",function(e,t,r){r._d=new Date(g(e))});return l.version="2.30.1",o(Y),l.fn=d,l.min=xs,l.max=Ns,l.now=Ps,l.utc=U,l.unix=io,l.months=lo,l.isDate=Ce,l.locale=ne,l.invalid=$e,l.duration=E,l.isMoment=F,l.weekdays=co,l.parseZone=oo,l.localeData=Q,l.isDuration=it,l.monthsShort=uo,l.weekdaysMin=ho,l.defineLocale=jt,l.updateLocale=os,l.locales=ls,l.weekdaysShort=fo,l.normalizeUnits=I,l.relativeTimeRounding=Ho,l.relativeTimeThreshold=Uo,l.calendarFormat=ai,l.prototype=d,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l})});var Go=oa(lr(),1),Aa=oa(lr(),1),me=Aa.default||Go,zo=new fa("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:$o});function $o(){return{useUtc:!1}}function Zo(y,l){let o=Array(y);for(let u=0;u<y;u++)o[u]=l(u);return o}var Ea=(()=>{class y extends Ye{_options=ar(zo,{optional:!0});_localeData;constructor(){super();let o=ar(yt,{optional:!0});this.setLocale(o||me.locale())}setLocale(o){super.setLocale(o);let u=me.localeData(o);this._localeData={firstDayOfWeek:u.firstDayOfWeek(),longMonths:u.months(),shortMonths:u.monthsShort(),dates:Zo(31,w=>this.createDate(2017,0,w+1).format("D")),longDaysOfWeek:u.weekdays(),shortDaysOfWeek:u.weekdaysShort(),narrowDaysOfWeek:u.weekdaysMin()}}getYear(o){return this.clone(o).year()}getMonth(o){return this.clone(o).month()}getDate(o){return this.clone(o).date()}getDayOfWeek(o){return this.clone(o).day()}getMonthNames(o){return o=="long"?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(o){return o=="long"?this._localeData.longDaysOfWeek:o=="short"?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(o){return this.clone(o).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(o){return this.clone(o).daysInMonth()}clone(o){return o.clone().locale(this.locale)}createDate(o,u,w){let m=this._createMoment({year:o,month:u,date:w}).locale(this.locale);return m.isValid(),m}today(){return this._createMoment().locale(this.locale)}parse(o,u){return o&&typeof o=="string"?this._createMoment(o,u,this.locale):o?this._createMoment(o).locale(this.locale):null}format(o,u){return o=this.clone(o),this.isValid(o),o.format(u)}addCalendarYears(o,u){return this.clone(o).add({years:u})}addCalendarMonths(o,u){return this.clone(o).add({months:u})}addCalendarDays(o,u){return this.clone(o).add({days:u})}toIso8601(o){return this.clone(o).format()}deserialize(o){let u;if(o instanceof Date)u=this._createMoment(o).locale(this.locale);else if(this.isDateInstance(o))return this.clone(o);if(typeof o=="string"){if(!o)return null;u=this._createMoment(o,me.ISO_8601).locale(this.locale)}return u&&this.isValid(u)?this._createMoment(u).locale(this.locale):super.deserialize(o)}isDateInstance(o){return me.isMoment(o)}isValid(o){return this.clone(o).isValid()}invalid(){return me.invalid()}setTime(o,u,w,m){return this.clone(o).set({hours:u,minutes:w,seconds:m,milliseconds:0})}getHours(o){return o.hours()}getMinutes(o){return o.minutes()}getSeconds(o){return o.seconds()}parseTime(o,u){return this.parse(o,u)}addSeconds(o,u){return this.clone(o).add({seconds:u})}_createMoment(o,u,w){let{strict:m,useUtc:H}=this._options||{};return H?me.utc(o,u,w,m):me(o,u,w,m)}static \u0275fac=function(u){return new(u||y)};static \u0275prov=ht({token:y,factory:y.\u0275fac})}return y})();var Te=class y{_calendarHeaderConfig=new da({hideBtnClear:!1,hideBtnToday:!1});calendarConfig=this._calendarHeaderConfig.value;constructor(){}setHeaderConfig(l){this._calendarHeaderConfig.next(l)}getHeaderConfig$(){return this._calendarHeaderConfig.asObservable()}static \u0275fac=function(o){return new(o||y)};static \u0275prov=ht({token:y,factory:y.\u0275fac,providedIn:"root"})};var Qo=["class","component ts"];function Xo(y,l){if(y&1){let o=Ge();re(0,"button",3),Se("click",function(){oe(o);let w=ze(2);return le(w.todayClicked())}),je(1,"i",4),ue()}}function Ko(y,l){if(y&1){let o=Ge();re(0,"button",5),Se("click",function(){oe(o);let w=ze(2);return le(w.clearClicked())}),je(1,"i",6),ue()}}function el(y,l){if(y&1&&(pa(0),Ve(1,Xo,2,0,"button",1)(2,Ko,2,0,"button",2),ya()),y&2){let o=l.ngIf;z(),L("ngIf",!o.hideBtnToday),z(),L("ngIf",!o.hideBtnClear)}}var vt=class y{constructor(l,o,u,w,m){this._datePicker=l;this._calendar=o;this._dateAdapter=u;this.calendarService=w;o.stateChanges.pipe(ua(this._destroyed)).subscribe(H=>m.markForCheck()),this.calendarConfig$=this.calendarService.getHeaderConfig$()}_destroyed=new la;calendarConfig$;todayClicked(){this._calendar.activeDate=this._dateAdapter.today(),this._datePicker.select(this._dateAdapter.today()),this._datePicker.close()}clearClicked(){this._datePicker.select(null),this._datePicker.close()}ngOnChanges(l){this._calendar.ngOnChanges(l)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}static \u0275fac=function(o){return new(o||y)(de(Mt),de(Wa),de(Ye),de(Te),de(Sa))};static \u0275cmp=mt({type:y,selectors:[["POS-DatepickerHeader",8,"component","ts"]],standalone:!1,features:[ha],attrs:Qo,decls:3,vars:3,consts:[[4,"ngIf"],["mat-icon-button","","title","Today",3,"click",4,"ngIf"],["mat-icon-button","","title","Clear",3,"click",4,"ngIf"],["mat-icon-button","","title","Today",3,"click"],[1,"far","fa-clock",2,"font-size","18px"],["mat-icon-button","","title","Clear",3,"click"],[1,"far","fa-xmark-circle",2,"font-size","18px"]],template:function(o,u){o&1&&(re(0,"mat-calendar-header"),Ve(1,el,3,2,"ng-container",0),wa(2,"async"),ue()),o&2&&(z(),L("ngIf",va(2,1,u.calendarConfig$)))},dependencies:[_t,Ta,Pa,Ya],encapsulation:2})},St=class y{static \u0275fac=function(o){return new(o||y)};static \u0275mod=Ue({type:y});static \u0275inj=He({providers:[Oe],imports:[pt,gt,Dt,Oe,kt,wt]})};function tl(y,l){if(y&1&&(re(0,"mat-label",6)(1,"span"),Ma(2),ue()()),y&2){let o=ze();L("show",o.placeholder),z(2),Da(o.placeholder)}}var rl={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Ha=class y{constructor(l){this.calendarService=l;this.displayToggle=!0}headerComponent=vt;data_cy;placeholder;displayToggle;appearance="outline";width;isFloatingLabel=!0;date;disabled=!1;readOnly=!1;minDateValidation;maxDateValidation;set hidelClearBtn(l){this.calendarService.setHeaderConfig({hideBtnClear:l,hideBtnToday:this.calendarService.calendarConfig.hideBtnToday})}dateChange=new ma;minDate=Oa.MinDate;change(l){let o=null;l&&(o=l.toDate(),o.setHours(0,0,0,0)),this.dateChange.emit(o),this.onChange(o)}onOpenDatepicker(){let l=document.getElementById("dropdown-filter");if(l){var o=new bootstrap.Dropdown(l);o&&(o._config.autoClose="inside")}}onCloseDatepicker(){let l=document.getElementById("dropdown-filter");if(l){var o=new bootstrap.Dropdown(l);o&&(o._config.autoClose="outside")}}ngOnDestroy(){this.calendarService.setHeaderConfig({hideBtnClear:!1,hideBtnToday:!1})}writeValue(l){l&&(this.date=l)}onChange=l=>{};registerOnChange(l){this.onChange=l}registerOnTouched(l){}setDisabledState(l){this.disabled=l}static \u0275fac=function(o){return new(o||y)(de(Te))};static \u0275cmp=mt({type:y,selectors:[["datepicker"]],inputs:{data_cy:"data_cy",placeholder:"placeholder",displayToggle:"displayToggle",appearance:"appearance",width:"width",isFloatingLabel:"isFloatingLabel",date:"date",disabled:"disabled",readOnly:"readOnly",minDateValidation:"minDateValidation",maxDateValidation:"maxDateValidation",hidelClearBtn:"hidelClearBtn"},outputs:{dateChange:"dateChange"},standalone:!1,features:[ka([{provide:Ye,useClass:Ea,deps:[yt]},{provide:ir,useValue:rl},{provide:ba,useExisting:ca(()=>y),multi:!0}])],decls:6,vars:17,consts:[["picker1",""],[1,"datepicker",3,"disabled","appearance"],[3,"show",4,"ngIf"],["matInput","",3,"dateChange","click","matDatepicker","min","max","placeholder","value","disabled","readonly"],["matSuffix","",3,"for"],[3,"opened","closed","calendarHeaderComponent"],[3,"show"]],template:function(o,u){if(o&1){let w=Ge();re(0,"mat-form-field",1),Ve(1,tl,3,2,"mat-label",2),re(2,"input",3),Se("dateChange",function(H){return oe(w),le(u.change(H.value))})("click",function(){oe(w);let H=sr(5);return le(H.open())}),ue(),je(3,"mat-datepicker-toggle",4),re(4,"mat-datepicker",5,0),Se("opened",function(){return oe(w),le(u.onOpenDatepicker())})("closed",function(){return oe(w),le(u.onCloseDatepicker())}),ue()()}if(o&2){let w=sr(5);nr("width",u.width||100,"%"),L("disabled",u.disabled)("appearance",u.appearance),z(),L("ngIf",u.isFloatingLabel&&u.placeholder),z(),ga("placeholder",u.placeholder||""),L("matDatepicker",w)("min",u.minDateValidation)("max",u.maxDateValidation)("value",u.date==u.minDate?null:u.date)("disabled",u.disabled)("readonly",u.readOnly),_a("data-cy",u.data_cy),z(),nr("display",u.displayToggle?"unset":"none"),L("for",w),z(),L("calendarHeaderComponent",u.headerComponent)}},dependencies:[_t,Mt,Ia,Ra,Na,Ca,xa,Fa],styles:[`.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline{background-color:#e9ecef!important;opacity:1!important}.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline input{color:#00000061!important}.datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:33px;padding-top:18px;padding-bottom:13px}.datepicker .mat-mdc-icon-button.mat-mdc-button-base{padding:0}.datepicker .mat-mdc-form-field-subscript-wrapper{display:none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{padding:0!important}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{top:28px!important;font-size:16px;color:#9da2a6}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:23px!important;font-size:.875rem;color:#ccc}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#fff}div.form-floating-outline>datepicker .datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:57px!important;padding-top:20px!important;padding-bottom:13px!important;font-size:.875rem!important}div.form-floating-outline>datepicker .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:26px!important;font-size:.875rem!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as l}from"./chunk-
|
|
1
|
+
import{f as l}from"./chunk-XU7DNLG3.js";import"./chunk-G2NZ3D7U.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-IJ6QEGE5.js";import"./chunk-JOXTERIM.js";import"./chunk-FVKF2ZOS.js";import"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import"./chunk-RVXZOIFQ.js";import"./chunk-Y7V4JJ46.js";import"./chunk-ELIDPKL7.js";import"./chunk-ZZGSAFGO.js";import"./chunk-JOEBVACW.js";import{Ib as o,Jb as m,Kb as c,Td as d,ec as p,jd as f,ka as n,kb as u,lb as i}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var a=class t{menuData={H:"Not Found"};constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=u({type:t,selectors:[["POS-not-found-page"]],standalone:!1,decls:12,vars:0,consts:[[1,"container-fluid","mt-12"],[1,"row"],[1,"col-1"],[1,"col-6","d-flex","align-items-center","justify-content-center","pe-0"],[1,"ms-12"],[1,"mb-0","fw-normal",2,"margin-top","20px","font-size","55px"],[1,"fs-4"],[1,"col-5","ps-0"],["src","//res.cloudinary.com/pos/image/upload/v1652836870/POS/Images/MicrosoftTeams-image.jpg","alt","",2,"width","50%"]],template:function(e,y){e&1&&(o(0,"content")(1,"div",0)(2,"div",1),c(3,"div",2),o(4,"div",3)(5,"div",4)(6,"h1",5),p(7," Page Not Found "),m(),o(8,"p",6),p(9,"The page you are trying to access cannot be found"),m()()(),o(10,"div",7),c(11,"img",8),m()()()())},encapsulation:2})};var M=[{path:"",component:a}],r=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[d.forChild(M),d]})};var N=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[f,r,l]})};export{N as NotFoundModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as P}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-GTLBCZKI.js";import{a as w}from"./chunk-XU7DNLG3.js";import{a as C}from"./chunk-MFCXEITE.js";import{a as A}from"./chunk-7WT2CL3Y.js";import{a as I}from"./chunk-3YKVLHZG.js";import{a as l}from"./chunk-2FWFPV5I.js";import{a as c}from"./chunk-ZZGSAFGO.js";import{fa as y,na as f,t as L,z as S}from"./chunk-UXRO4UFY.js";import{a as F}from"./chunk-7DCB7DB2.js";var g=class{enabledDragItem;constructor(){this.enabledDragItem=!1}drop(o,t){C(t.Data,o.previousIndex,o.currentIndex)}toggleEnabledDragItem(){}onSaveDragAndDrop(o,t){this.enabledDragItem=!this.enabledDragItem,this.enabledDragItem||t.postListID(o,t.data.Data)}onPutSaveDragAndDrop(o,t){this.enabledDragItem=!this.enabledDragItem,this.enabledDragItem||t.putListID(o,t.data.Data)}};var u=class{constructor(o){this.httpService=o}exportCSV(o,t,e,i){e.pageData.Filter.Export=!0,e.pageData.Filter.FormatType=0,i=i||"export.csv",this.httpService.post(`/api/${t}`,e.pageData.Filter).subscribe(r=>{o.convertToCSV(r,i),e.pageData.Filter.Export=!1})}convertToCSV(o,t=!1,e){let i=this.ExportDataFromUI2(t);o.convertToCSV(i,e)}ExportDataFromUI2(o=!1){let t=document.getElementById("tableGrid"),e=[];return c.IsNotEmpty(t)&&t.querySelectorAll("tr").forEach(r=>{let a=new Object,s=0;r.querySelectorAll("th, td").forEach(n=>{s++;let b=parseInt(n.getAttribute("colspan"));for(let h=1;h<b;h++)a["column"+s]="",s++;let m=n.innerText,v=m.toString().split("");if(o&&v[0]==="0"&&v.length>1){let h="'"+m.trim();a["column"+s]=h}else a["column"+s]=m.trim()}),e.push(a)}),e}};var d=class{listTotal;pageSize;show;constructor(){this.listTotal=0,this.pageSize=0,this.show=!1}changePaginationData(o){this.pageSize=o.pageData.Filter.RowCount,this.listTotal=o.data?.ListTotal??o.data?.Data?.total?.value,this.show=this.pageSize<=this.listTotal}changePage(o,t,e){t.Filter.PageNumber=o.pageIndex+1,e.getListData()}};var x=class extends A{constructor(t,e,i,r,a,s,p){super(t);this.httpService=e;this.dataAPI=i;this.pageAPI=r;this.toastrService=a;this.route=s;this.initOpenDialog=p;this.exportHandler=new u(e),r?(s&&(this.loaderPayload=F({ListIDs:this.reportFilterService?.initOutletFilter()},s.snapshot.queryParams)),this.preInitLoader(),S([this.menuData$,this.httpService.post("/api/"+this.pageAPI,this.loaderPayload)]).pipe(L(([n,b])=>b)).pipe(I()).subscribe(n=>{this.pageData=n,this.pageData.Filter||(this.pageData.Filter={},this.pageData.Filter.RowCount=20),this.pageData.Filter.PageNumber=1,this.pageData.Filter.ID=this.loaderPayload.ID,this.preInitList(),p?this.openDialogFilter.openDialog():this.getListData()})):(this.pageData.Filter.RowCount=20,this.pageData.Filter.PageNumber=1,this.preInitList(),S({menuData:this.menuData$,listData:this.getListData$()}).pipe(I()).subscribe())}openDialogFilter=f(w);reportFilterService=f(P);pageData={Filter:{},Options:{},Roles:{},Config:{}};data;pagination=new d;dragDrop=new g;exportHandler;comparation=0;loaderPayload={};preInitLoader(){}preInitList(){}getListData(t){this.preGetList(),this.dataAPI&&this.httpService.post("/api/"+this.dataAPI,this.pageData.Filter).subscribe(e=>{this.data=e,this.postInit(e),this.pagination.changePaginationData(this),t&&(this.pageData.HideStoreApiCount=!1)})}getListData$(t){return this.preGetList(),this.httpService.post("/api/"+this.dataAPI,this.pageData.Filter).pipe(y(e=>{this.data=e,this.postInit(e),this.pagination.changePaginationData(this),t&&(this.pageData.HideStoreApiCount=!1)}))}searchFromPageOne(){this.preSearchFromPageOne(),this.pageData.Filter.PageNumber=1,this.getListData("filterMode")}postInit(t){t.PageTitle!=null&&(this.menuData.H=t.PageTitle)}preGetList(){this.pageData.Filter.From==null&&(this.pageData.Filter.From=c.MinDate),this.pageData.Filter.To==null&&(this.pageData.Filter.To=c.MinDate)}preSearchFromPageOne(){}onPaginationChange(t){this.pagination.changePage(t,this.pageData,this)}onSelectAllData(t){this.data.Data=this.data.Data.map(e=>(e.selected=t,e))}getSelectedData(){let t=[];return this.data&&(t=this.data.Data.filter(e=>e.selected)),t}httpPostListID(t,e,i){if(e||(e="Are you sure you want to selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.postListID(t,r,i)}httpPutListID(t,e,i){if(e||(e="Are you sure you want to selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.putListID(t,r,i)}httpDeleteListID(t,e,i){if(e||(e="Are you sure you want to delete selected record/s?"),confirm(e)==!1)return;let r=this.getSelectedData();r.length>0&&this.DeleteListID(t,r,i)}onSaveDragAndDrop(t){this.dragDrop.onSaveDragAndDrop(t,this)}onPutSaveDragAndDrop(t){this.dragDrop.onPutSaveDragAndDrop(t,this)}postListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.post(`/api/${t}`,r,1e6,!0).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.getListData()},a=>{let s=a.status+" "+a.statusText;this.toastrService.error(a.error.Message!=""?a.error.Message:"An unknown error has occured!",s,{enableHtml:!0})})}putListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.put(`/api/${t}`,r).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.afterPutListSuccess(),this.getListData()})}afterPutListSuccess(){}DeleteListID(t,e,i){let r=e.map(a=>i?a[i]:a.ID);this.httpService.delete(`/api/${t}`,{body:r}).subscribe(a=>{this.toastrService.success(a.Message?a.Message:a,l.Success),this.getListData()})}postData(t,e){this.httpService.post("/API/"+t,e).subscribe(i=>{this.getListData(),this.toastrService.success(i.Message?i.Message:i,l.Success)})}compare(t,e,i){return(t<e?-1:1)*(i?1:-1)}exportCSV(t,e,i){this.exportHandler.exportCSV(t,e,this,i)}s2ab(t){for(var e=new ArrayBuffer(t.length),i=new Uint8Array(e),r=0;r!=t.length;++r)i[r]=t.charCodeAt(r)&255;return e}exportXlsx(t,e){this.pageData.Filter.FormatType=1,this.pageData.Filter.Export=!0,this.httpService.post(`/api/${t}`,this.pageData.Filter).subscribe(i=>{e=decodeURI(e);let r=window.URL.createObjectURL(new Blob([this.s2ab(atob(i))],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,"})),a=document.createElement("a");a.href=r,a.setAttribute("download",e),document.body.appendChild(a),a.click(),window.URL.revokeObjectURL(r),a.remove()})}convertToCSV(t,e=!1,i){let r=this.exportHandler.ExportDataFromUI2(e);t.convertToCSV(r,i)}OnCompare(t){let e=t?this.data[t]:this.data;if(e.length<1)return;let i=Object.assign({},this.pageData.Filter);i.From=new Date(new Date(this.pageData.Filter.From).getFullYear(),new Date(this.pageData.Filter.From).getMonth()-1,1),i.To=new Date(new Date(this.pageData.Filter.To).getFullYear(),new Date(this.pageData.Filter.To).getMonth(),0).toDateString(),this.httpService.post("/API/"+this.dataAPI,i).subscribe(r=>{let a=t?r[t]:r;this.comparation=0,e.forEach(s=>{s.PrevIndex="-",s.CurrentIndex="-",s.Increase="-";let p=a.filter(n=>n.EntityID==s.EntityID);if(s.CurrentIndex=s.Rank,p.length>0){let n=p[0];s.PrevIndex=n.Rank,n.SalesNet?s.Increase=(s.SalesNet-n.SalesNet)/n.SalesNet*100:n.Sales&&(s.Increase=(s.Sales-n.Sales)/n.Sales*100),s.IsPositive=s.Increase>0,s.IsNegative=s.Increase<0,this.comparation+=s.Increase}})})}};export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as $,e as ee}from"./chunk-
|
|
1
|
+
import{d as $,e as ee}from"./chunk-CKNQ2YZ5.js";import"./chunk-VHAM2DWK.js";import{a as z}from"./chunk-JPXXXD26.js";import{a as H,b as G,c as A}from"./chunk-QWYLRTIQ.js";import{a as oe,b as ne}from"./chunk-BBGWXLHJ.js";import{f as te}from"./chunk-7HOWFXKG.js";import{c as ie}from"./chunk-7O5TK73M.js";import{b as Q}from"./chunk-SZUQ6U7I.js";import{a as q}from"./chunk-U54UEN3C.js";import"./chunk-GTLBCZKI.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as Y,f as Z}from"./chunk-XU7DNLG3.js";import"./chunk-6NX4GWBD.js";import"./chunk-5JJSLRVS.js";import"./chunk-O6PVWRA5.js";import"./chunk-CWITQVZH.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-MUJ6277G.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import"./chunk-G2NZ3D7U.js";import{b as K}from"./chunk-7WT2CL3Y.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-IJ6QEGE5.js";import"./chunk-JOXTERIM.js";import{N as X,g as U}from"./chunk-FVKF2ZOS.js";import"./chunk-XYB3YDKL.js";import"./chunk-6ZN7JR6K.js";import"./chunk-GIKR6Y2K.js";import{g as J}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{F as W,h as B,o as R}from"./chunk-RVXZOIFQ.js";import"./chunk-Y7V4JJ46.js";import"./chunk-ELIDPKL7.js";import{d as k}from"./chunk-ZZGSAFGO.js";import"./chunk-JOEBVACW.js";import{$a as p,Ac as P,Bc as T,Eb as b,Fc as V,Gb as M,Hb as O,Ib as i,Jb as o,Kb as v,Ob as _,Qb as S,Rb as m,Yd as j,Zc as F,db as u,ec as l,fc as h,gc as w,jc as x,jd as N,kb as E,kc as C,lc as y,ob as I,qb as f,va as c,vb as d,wa as s,zc as D}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";function re(r,g){if(r&1){let e=_();i(0,"button",5),S("click",function(){c(e);let t=m();return s(t.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function le(r,g){if(r&1){let e=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),y("ngModelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Outlet,t)||(a.pageData.Filter.Outlet=t),s(t)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),y("selectedCategoryIDChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Category,t)||(a.pageData.Filter.Category=t),s(t)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),y("modelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Discontinued,t)||(a.pageData.Filter.Discontinued=t),s(t)}),o()}if(r&2){let e=m();p(2),d("accessType",2),x("ngModel",e.pageData.Filter.Outlet),p(3),x("selectedCategoryID",e.pageData.Filter.Category),d("showClear",!0),p(3),d("options",e.pageData==null||e.pageData.Options==null?null:e.pageData.Options.Discontinued),x("model",e.pageData.Filter.Discontinued)}}function pe(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",20),l(6),D(7,"quantityFraction"),o()()),r&2){let e=g.$implicit;p(2),h(e.EntityName),p(2),h(e.Name),p(2),w(" ",P(7,3,e.Inventory)," ")}}function me(r,g){if(r&1){let e=_();i(0,"div",10)(1,"div",11)(2,"table",12),S("matSortChange",function(t){c(e);let a=m();return s(a.onSortData(t))}),i(3,"thead",13)(4,"tr",14)(5,"th",15),l(6,"Outlet"),o(),i(7,"th",16),l(8,"Storage Location"),o(),i(9,"th",17),l(10," On Hand "),o()()(),i(11,"tbody"),M(12,pe,8,5,"tr",null,b),o(),i(14,"tfoot")(15,"tr",18),v(16,"td",19),i(17,"td",19),l(18,"Total :"),o(),i(19,"td",20),l(20),D(21,"sum"),D(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",21),S("jumpToPage",function(){c(e);let t=m();return s(t.getListData())})("previousPage",function(){c(e);let t=m();return s(t.getListData())})("nextPage",function(){c(e);let t=m();return s(t.getListData())}),o()()()}if(r&2){let e=m();p(12),O(e.data.Data),p(8),w(" ",P(22,6,T(21,3,e.data.Data,"Inventory"))," "),p(3),d("total",e.data.Data==null?null:e.data.Data.length)("pageData",e.pageData)}}var ae=class r extends q{constructor(e,n,t,a){super(e,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=t;this.roleService=a}datasource;postInit(e){this.datasource=JSON.parse(JSON.stringify(e.Data))}openExportModal(){this.dialog.open(Q,{data:{title:"Storage Location",exportTypes:[{ID:"Inventory/GetProductStorageLocation",Value:"Default",FileName:"Storage Location"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountProductStorageLocation",pagination:!0}})}onSortData(e){let n=this.data.Data?.slice();if(!e.active||e.direction===""){this.data.Data=this.datasource;return}let t=e.direction==="asc";this.data.Data=n.sort((a,L)=>this.compare(a[e.active],L[e.active],t))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(k))};static \u0275cmp=E({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","container-fluid mt-3",4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["placeholder","Choose an outlet","appendTo","body",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","Discontinued",3,"modelChange","options","model"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[1,"header"],["mat-sort-header","EntityName",2,"width","450px"],["mat-sort-header","Brand"],["mat-sort-header","Inventory","arrowPosition","before",1,"text-end",2,"padding-right","100px","width","190px"],[1,"table-footer","fw-bold"],[1,"empty-column"],[1,"text-end",2,"padding-right","100px"],["api","inventory/GetCountProductStorageLocation",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(n,t){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),s(t.searchFromPageOne())}),i(1,"actions")(2,"div",2),f(3,re,3,0,"button",3),o()(),i(4,"filters"),f(5,le,9,6,"ng-template",null,0,V),o(),i(7,"content"),f(8,me,24,8,"div",4),o()()}n&2&&(d("pageData",t.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),d("ngIf",t.roleService.global.Export),p(5),d("ngIf",t.data))},dependencies:[N,F,Z,Y,z,X,U,ee,$,te,ie,W,B,R,ne,oe,A,H,G],encapsulation:2})};export{ae as StorageLocationComponent};
|