2 lines
48 KiB
JavaScript
2 lines
48 KiB
JavaScript
|
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function b(){return a.apply(null,arguments)}function c(b){a=b}function d(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function e(a){return null!=a&&"[object Object]"===Object.prototype.toString.call(a)}function f(a){var b;for(b in a)return!1;return!0}function g(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function h(a,b){var d,c=[];for(d=0;d<a.length;++d)c.push(b(a[d],d));return c}function i(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function j(a,b){for(var c in b)i(b,c)&&(a[c]=b[c]);return i(b,"toString")&&(a.toString=b.toString),i(b,"valueOf")&&(a.valueOf=b.valueOf),a}function k(a,b,c,d){return Hc(a,b,c,d,!0).utc()}function l(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function m(a){return null==a._pf&&(a._pf=l()),a._pf}function o(a){if(null==a._isValid){var b=m(a),c=n.call(b.parsedDateParts,function(a){return null!=a}),d=!isNaN(a._d.getTime())&&b.overflow<0&&!b.empty&&!b.invalidMonth&&!b.invalidWeekday&&!b.nullInput&&!b.invalidFormat&&!b.userInvalidated&&(!b.meridiem||b.meridiem&&c);if(a._strict&&(d=d&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void 0===b.bigHour),null!=Object.isFrozen&&Object.isFrozen(a))return d;a._isValid=d}return a._isValid}function p(a){var b=k(NaN);return null!=a?j(m(b),a):m(b).userInvalidated=!0,b}function q(a){return void 0===a}function s(a,b){var c,d,e;if(q(b._isAMomentObject)||(a._isAMomentObject=b._isAMomentObject),q(b._i)||(a._i=b._i),q(b._f)||(a._f=b._f),q(b._l)||(a._l=b._l),q(b._strict)||(a._strict=b._strict),q(b._tzm)||(a._tzm=b._tzm),q(b._isUTC)||(a._isUTC=b._isUTC),q(b._offset)||(a._offset=b._offset),q(b._pf)||(a._pf=m(b)),q(b._locale)||(a._locale=b._locale),r.length>0)for(c in r)d=r[c],e=b[d],q(e)||(a[d]=e);return a}function u(a){s(this,a),this._d=new Date(null!=a._d?a._d.getTime():NaN),t===!1&&(t=!0,b.updateOffset(this),t=!1)}function v(a){return a instanceof u||null!=a&&null!=a._isAMomentObject}function w(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function x(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=w(b)),c}function y(a,b,c){var g,d=Math.min(a.length,b.length),e=Math.abs(a.length-b.length),f=0;for(g=0;g<d;g++)(c&&a[g]!==b[g]||!c&&x(a[g])!==x(b[g]))&&f++;return f+e}function z(a){b.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function A(a,c){var d=!0;return j(function(){if(null!=b.deprecationHandler&&b.deprecationHandler(null,a),d){for(var f,e=[],g=0;g<arguments.length;g++){if(f="","object"==typeof arguments[g]){f+="\n["+g+"] ";for(var h in arguments[0])f+=h+": "+arguments[0][h]+", ";f=f.slice(0,-2)}else f=arguments[g];e.push(f)}z(a+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),d=!1}return c.apply(this,arguments)},c)}function C(a,c){null!=b.deprecationHandler&&b.deprecationHandler(a,c),B[a]||(z(c),B[a]=!0)}function D(a){return a instanceof Function||"[object Function]"===Object.prototype.toString.call(a)}function E(a){var b,c;for(c in a)b=a[c],D(b)?this[c]=b:this["_"+c]=b;this._config=a,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function F(a,b){var d,c=j({},a);for(d in b)i(b,d)&&(e(a[d])&&e(b[d])?(c[d]={},j(c[d],a[d]),j(c[d],b[d])):null!=b[d]?c[d]=b[d]:delete c[d]);for(d in a)i(a,d)&&!i(b,d)&&e(a[d])&&(c[d]=j({},c[d]));return c}function G(a){null!=a&&this.set(a)}function J(a,b,c){var d=this._calendar[a]||this._calendar.sameElse;return D(d)?d.call(b,c):d}function L(a){var b=this._longDateFormat[a],c=this._longDateFormat[a.toUpperCase()];return b||!c?b:(this._longDateFormat[a]=c.replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a])}function N(){return this._invalidDate}function Q(a){return this._ordinal.r
|
||
|
}function Be(){var a=this._data;return this._milliseconds=Ae(this._milliseconds),this._days=Ae(this._days),this._months=Ae(this._months),a.milliseconds=Ae(a.milliseconds),a.seconds=Ae(a.seconds),a.minutes=Ae(a.minutes),a.hours=Ae(a.hours),a.months=Ae(a.months),a.years=Ae(a.years),this}function Ce(a,b,c,d){var e=id(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}function De(a,b){return Ce(this,a,b,1)}function Ee(a,b){return Ce(this,a,b,-1)}function Fe(a){return a<0?Math.floor(a):Math.ceil(a)}function Ge(){var e,f,g,h,i,a=this._milliseconds,b=this._days,c=this._months,d=this._data;return a>=0&&b>=0&&c>=0||a<=0&&b<=0&&c<=0||(a+=864e5*Fe(Ie(c)+b),b=0,c=0),d.milliseconds=a%1e3,e=w(a/1e3),d.seconds=e%60,f=w(e/60),d.minutes=f%60,g=w(f/60),d.hours=g%24,b+=w(g/24),i=w(He(b)),c+=i,b-=Fe(Ie(i)),h=w(c/12),c%=12,d.days=b,d.months=c,d.years=h,this}function He(a){return 4800*a/146097}function Ie(a){return 146097*a/4800}function Je(a){var b,c,d=this._milliseconds;if(a=W(a),"month"===a||"year"===a)return b=this._days+d/864e5,c=this._months+He(b),"month"===a?c:c/12;switch(b=this._days+Math.round(Ie(this._months)),a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return 24*b+d/36e5;case"minute":return 1440*b+d/6e4;case"second":return 86400*b+d/1e3;case"millisecond":return Math.floor(864e5*b)+d;default:throw new Error("Unknown unit "+a)}}function Ke(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12)}function Le(a){return function(){return this.as(a)}}function Ue(a){return a=W(a),this[a+"s"]()}function Ve(a){return function(){return this._data[a]}}function bf(){return w(this.days()/7)}function ef(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function ff(a,b,c){var d=id(a).abs(),e=cf(d.as("s")),f=cf(d.as("m")),g=cf(d.as("h")),h=cf(d.as("d")),i=cf(d.as("M")),j=cf(d.as("y")),k=e<df.s&&["s",e]||f<=1&&["m"]||f<df.m&&["mm",f]||g<=1&&["h"]||g<df.h&&["hh",g]||h<=1&&["d"]||h<df.d&&["dd",h]||i<=1&&["M"]||i<df.M&&["MM",i]||j<=1&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,ef.apply(null,k)}function gf(a){return void 0===a?cf:"function"==typeof a&&(cf=a,!0)}function hf(a,b){return void 0!==df[a]&&(void 0===b?df[a]:(df[a]=b,!0))}function jf(a){var b=this.localeData(),c=ff(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function lf(){var d,e,f,a=kf(this._milliseconds)/1e3,b=kf(this._days),c=kf(this._months);d=w(a/60),e=w(d/60),a%=60,d%=60,f=w(c/12),c%=12;var g=f,h=c,i=b,j=e,k=d,l=a,m=this.asSeconds();return m?(m<0?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}var a,n;n=Array.prototype.some?Array.prototype.some:function(a){for(var b=Object(this),c=b.length>>>0,d=0;d<c;d++)if(d in b&&a.call(this,b[d],d,b))return!0;return!1};var r=b.momentProperties=[],t=!1,B={};b.suppressDeprecationWarnings=!1,b.deprecationHandler=null;var H;H=Object.keys?Object.keys:function(a){var b,c=[];for(b in a)i(a,b)&&c.push(b);return c};var Xa,I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},K={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"},M="Invalid date",O="%d",P=/\d{1,2}/,R={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},U={},Y={},fa=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ga=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ha={},ia={},oa=/\d/,pa=/\d\d/,qa=/\d{3}/,ra=/\d{4}/,sa=/[+-]?\d{6}/,ta=/\d\d?/,ua=/\d\d\d\d?/,va=/\d\d\d\d\d\d?/,wa=/\d{1,3}/,xa=/\d{1,4}/,ya=/[+-]?\d{1,6}/,za=/\d+/,Aa=/[+-]?\d+/,Ba=/Z|[+-]\d\d:?\d\d/gi,Ca=/Z|[+-]\d\d(?::?\d\d)?/gi,Da=/[+-]?\d+(\.\d{1,3})?/,Ea=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\u
|