mirror of
https://github.com/KarolChang/jm-expense-vue-ts.git
synced 2024-12-26 03:38:35 +00:00
2 lines
9.0 KiB
JavaScript
2 lines
9.0 KiB
JavaScript
import{Q as B}from"./vendor.961f4417.js";var Z={exports:{}};(function(_,k){(function(y,f){_.exports=f()})(B,function(){var y=1e3,f=6e4,m=36e5,p="millisecond",h="second",l="minute",Y="hour",S="day",g="week",D="month",W="quarter",x="year",b="date",V="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,tt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},U=function(r,n,t){var i=String(r);return!i||i.length>=n?r:""+Array(n+1-i.length).join(t)+r},et={s:U,z:function(r){var n=-r.utcOffset(),t=Math.abs(n),i=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+U(i,2,"0")+":"+U(e,2,"0")},m:function r(n,t){if(n.date()<t.date())return-r(t,n);var i=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(i,D),u=t-e<0,s=n.clone().add(i+(u?-1:1),D);return+(-(i+(t-e)/(u?e-s:s-e))||0)},a:function(r){return r<0?Math.ceil(r)||0:Math.floor(r)},p:function(r){return{M:D,y:x,w:g,d:S,D:b,h:Y,m:l,s:h,ms:p,Q:W}[r]||String(r||"").toLowerCase().replace(/s$/,"")},u:function(r){return r===void 0}},j="en",H={};H[j]=tt;var F=function(r){return r instanceof I},E=function(r,n,t){var i;if(!r)return j;if(typeof r=="string")H[r]&&(i=r),n&&(H[r]=n,i=r);else{var e=r.name;H[e]=r,i=e}return!t&&i&&(j=i),i||!t&&j},$=function(r,n){if(F(r))return r.clone();var t=typeof n=="object"?n:{};return t.date=r,t.args=arguments,new I(t)},o=et;o.l=E,o.i=F,o.w=function(r,n){return $(r,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var I=function(){function r(t){this.$L=E(t.locale,null,!0),this.parse(t)}var n=r.prototype;return n.parse=function(t){this.$d=function(i){var e=i.date,u=i.utc;if(e===null)return new Date(NaN);if(o.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var s=e.match(R);if(s){var a=s[2]-1||0,d=(s[7]||"0").substring(0,3);return u?new Date(Date.UTC(s[1],a,s[3]||1,s[4]||0,s[5]||0,s[6]||0,d)):new Date(s[1],a,s[3]||1,s[4]||0,s[5]||0,s[6]||0,d)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return o},n.isValid=function(){return this.$d.toString()!==V},n.isSame=function(t,i){var e=$(t);return this.startOf(i)<=e&&e<=this.endOf(i)},n.isAfter=function(t,i){return $(t)<this.startOf(i)},n.isBefore=function(t,i){return this.endOf(i)<$(t)},n.$g=function(t,i,e){return o.u(t)?this[i]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,i){var e=this,u=!!o.u(i)||i,s=o.p(t),a=function(A,v){var L=o.w(e.$u?Date.UTC(e.$y,v,A):new Date(e.$y,v,A),e);return u?L:L.endOf(S)},d=function(A,v){return o.w(e.toDate()[A].apply(e.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(v)),e)},c=this.$W,M=this.$M,O=this.$D,w="set"+(this.$u?"UTC":"");switch(s){case x:return u?a(1,0):a(31,11);case D:return u?a(1,M):a(0,M+1);case g:var C=this.$locale().weekStart||0,z=(c<C?c+7:c)-C;return a(u?O-z:O+(6-z),M);case S:case b:return d(w+"Hours",0);case Y:return d(w+"Minutes",1);case l:return d(w+"Seconds",2);case h:return d(w+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,i){var e,u=o.p(t),s="set"+(this.$u?"UTC":""),a=(e={},e[S]=s+"Date",e[b]=s+"Date",e[D]=s+"Month",e[x]=s+"FullYear",e[Y]=s+"Hours",e[l]=s+"Minutes",e[h]=s+"Seconds",e[p]=s+"Milliseconds",e)[u],d=u===S?this.$D+(i-this.$W):i;if(u===D||u===x){var c=this.clone().set(b,1);c.$d[a](d),c.init(),this.$d=c.set(b,Math.min(this.$D,c.daysInMonth())).$d}else a&&this.$d[a](d);return this.init(),this},n.set=function(t,i){return this.clone().$set(t,i)},n.get=function(t){return this[o.p(t)]()},n.add=function(t,i){var e,u=this;t=Number(t);var s=o.p(i),a=function(M){var O=$(u);return o.w(O.date(O.date()+Math.round(M*t)),u)};if(s===D)return this.set(D,this.$M+t);if(s===x)return this.set(x,this.$y+t);if(s===S)return a(1);if(s===g)return a(7);var d=(e={},e[l]=f,e[Y]=m,e[h]=y,e)[s]||1,c=this.$d.getTime()+t*d;return o.w(c,this)},n.subtract=function(t,i){return this.add(-1*t,i)},n.format=function(t){var i=this,e=this.$locale();if(!this.isValid())return e.invalidDate||V;var u=t||"YYYY-MM-DDTHH:mm:ssZ",s=o.z(this),a=this.$H,d=this.$m,c=this.$M,M=e.weekdays,O=e.months,w=function(v,L,J,N){return v&&(v[L]||v(i,u))||J[L].substr(0,N)},C=function(v){return o.s(a%12||12,v,"0")},z=e.meridiem||function(v,L,J){var N=v<12?"AM":"PM";return J?N.toLowerCase():N},A={YY:String(this.$y).slice(-2),YYYY:this.$y,M:c+1,MM:o.s(c+1,2,"0"),MMM:w(e.monthsShort,c,O,3),MMMM:w(O,c),D:this.$D,DD:o.s(this.$D,2,"0"),d:String(this.$W),dd:w(e.weekdaysMin,this.$W,M,2),ddd:w(e.weekdaysShort,this.$W,M,3),dddd:M[this.$W],H:String(a),HH:o.s(a,2,"0"),h:C(1),hh:C(2),a:z(a,d,!0),A:z(a,d,!1),m:String(d),mm:o.s(d,2,"0"),s:String(this.$s),ss:o.s(this.$s,2,"0"),SSS:o.s(this.$ms,3,"0"),Z:s};return u.replace(X,function(v,L){return L||A[v]||s.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,i,e){var u,s=o.p(i),a=$(t),d=(a.utcOffset()-this.utcOffset())*f,c=this-a,M=o.m(this,a);return M=(u={},u[x]=M/12,u[D]=M,u[W]=M/3,u[g]=(c-d)/6048e5,u[S]=(c-d)/864e5,u[Y]=c/m,u[l]=c/f,u[h]=c/y,u)[s]||c,e?M:o.a(M)},n.daysInMonth=function(){return this.endOf(D).$D},n.$locale=function(){return H[this.$L]},n.locale=function(t,i){if(!t)return this.$L;var e=this.clone(),u=E(t,i,!0);return u&&(e.$L=u),e},n.clone=function(){return o.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},r}(),Q=I.prototype;return $.prototype=Q,[["$ms",p],["$s",h],["$m",l],["$H",Y],["$W",S],["$M",D],["$y",x],["$D",b]].forEach(function(r){Q[r[1]]=function(n){return this.$g(n,r[0],r[1])}}),$.extend=function(r,n){return r.$i||(r(n,I,$),r.$i=!0),$},$.locale=E,$.isDayjs=F,$.unix=function(r){return $(1e3*r)},$.en=H[j],$.Ls=H,$.p={},$})})(Z);var T=Z.exports,q={exports:{}};(function(_,k){(function(y,f){_.exports=f()})(B,function(){return function(y,f,m){f.prototype.isBetween=function(p,h,l,Y){var S=m(p),g=m(h),D=(Y=Y||"()")[0]==="(",W=Y[1]===")";return(D?this.isAfter(S,l):!this.isBefore(S,l))&&(W?this.isBefore(g,l):!this.isAfter(g,l))||(D?this.isBefore(S,l):!this.isAfter(S,l))&&(W?this.isAfter(g,l):!this.isBefore(g,l))}}})})(q);var nt=q.exports,G={exports:{}};(function(_,k){(function(y,f){_.exports=f()})(B,function(){return function(y,f){f.prototype.isSameOrAfter=function(m,p){return this.isSame(m,p)||this.isAfter(m,p)}}})})(G);var rt=G.exports,P={exports:{}};(function(_,k){(function(y,f){_.exports=f()})(B,function(){return function(y,f){f.prototype.isSameOrBefore=function(m,p){return this.isSame(m,p)||this.isBefore(m,p)}}})})(P);var it=P.exports,K={exports:{}};(function(_,k){(function(y,f){_.exports=f()})(B,function(){return function(y,f,m){m.updateLocale=function(p,h){var l=m.Ls[p];if(l)return(h?Object.keys(h):[]).forEach(function(Y){l[Y]=h[Y]}),l}}})})(K);var st=K.exports,ut={exports:{}};(function(_,k){(function(y,f){_.exports=f(Z.exports)})(B,function(y){function f(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var m=f(y),p={name:"zh-tw",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(h){return h+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524D",s:"\u5E7E\u79D2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5C0F\u6642",hh:"%d \u5C0F\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500B\u6708",MM:"%d \u500B\u6708",y:"1 \u5E74",yy:"%d \u5E74"}};return m.default.locale(p,null,!0),p})})(ut);T.extend(nt);T.extend(rt);T.extend(it);T.extend(st);T.updateLocale("zh-tw",{weekdays:["(\u65E5)","(\u4E00)","(\u4E8C)","(\u4E09)","(\u56DB)","(\u4E94)","(\u516D)"]});const at=_=>T(_).format("YYYY-MM-DD"),ft=_=>T(_).locale("zh-tw").format("dddd");export{T as d,at as f,ft as g};
|