jm-expense-vue-ts/assets/dateFormat.26b8f760.js

2 lines
9.0 KiB
JavaScript
Raw Normal View History

2022-03-29 01:55:31 +00:00
import{Q as B}from"./vendor.495b01ec.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);va