From f253f811dd880107b49b1ea41c87981ff1b6f0ee Mon Sep 17 00:00:00 2001 From: Tim Wood Date: Mon, 1 Oct 2012 10:29:58 -0700 Subject: [PATCH] Minifying for 1.7.1 release --- min/moment.min.js | 2 +- min/moment.min.pretty.js | 274 ++++++++++++++++++++++++--------------- 2 files changed, 170 insertions(+), 106 deletions(-) diff --git a/min/moment.min.js b/min/moment.min.js index 040c7b211..54a4c63b9 100644 --- a/min/moment.min.js +++ b/min/moment.min.js @@ -3,4 +3,4 @@ // author : Tim Wood // license : MIT // momentjs.com -(function(a){function F(a,b,c){this._d=a,this._isUTC=!!b,this._a=a._a||null,this._lang=c||!1}function G(a){var b=this._data={},c=a.years||a.y||0,d=a.months||a.M||0,e=a.weeks||a.w||0,f=a.days||a.d||0,g=a.hours||a.h||0,h=a.minutes||a.m||0,i=a.seconds||a.s||0,j=a.milliseconds||a.ms||0;this._milliseconds=j+i*1e3+h*6e4+g*36e5,this._days=f+e*7,this._months=d+c*12,b.milliseconds=j%1e3,i+=H(j/1e3),b.seconds=i%60,h+=H(i/60),b.minutes=h%60,g+=H(h/60),b.hours=g%24,f+=H(g/24),f+=e*7,b.days=f%30,d+=H(f/30),b.months=d%12,c+=H(d/12),b.years=c,this._lang=!1}function H(a){return a<0?Math.ceil(a):Math.floor(a)}function I(a,b){var c=a+"";while(c.length70?1900:2e3);break;case"YYYY":c[0]=~~Math.abs(b);break;case"a":case"A":d.isPm=(b+"").toLowerCase()==="pm";break;case"H":case"HH":case"h":case"hh":c[3]=~~b;break;case"m":case"mm":c[4]=~~b;break;case"s":case"ss":c[5]=~~b;break;case"S":case"SS":case"SSS":c[6]=~~(("0."+b)*1e3);break;case"Z":case"ZZ":d.isUTC=!0,e=(b+"").match(y),e&&e[1]&&(d.tzh=~~e[1]),e&&e[2]&&(d.tzm=~~e[2]),e&&e[0]==="+"&&(d.tzh=-d.tzh,d.tzm=-d.tzm)}b==null&&(c[8]=!1)}function W(a,b){var c=[0,0,1,0,0,0,0],d={tzh:0,tzm:0},e=b.match(k),f,g;for(f=0;f0,j[4]=c,Z.apply({},j)}function _(a,c){b.fn[a]=function(a){var b=this._isUTC?"UTC":"";return a!=null?(this._d["set"+b+c](a),this):this._d["get"+b+c]()}}function ab(a){b.duration.fn[a]=function(){return this._data[a]}}function bb(a,c){b.duration.fn["as"+a]=function(){return+this/c}}var b,c="1.7.0",d=Math.round,e,f={},g="en",h=typeof module!="undefined"&&module.exports,i="months|monthsShort|weekdays|weekdaysShort|weekdaysMin|longDateFormat|calendar|relativeTime|ordinal|meridiem".split("|"),j=/^\/?Date\((\-?\d+)/i,k=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|zz?|ZZ?)/g,l=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?)/g,m=/(^\[)|(\\)|\]$/g,n=/([0-9a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)/gi,o=/\d\d?/,p=/\d{1,3}/,q=/\d{3}/,r=/\d{1,4}/,s=/[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+/i,t=/Z|[\+\-]\d\d:?\d\d/i,u=/T/i,v=/^\s*\d{4}-\d\d-\d\d(T(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/,w="YYYY-MM-DDTHH:mm:ssZ",x=[["HH:mm:ss.S",/T\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/T\d\d:\d\d:\d\d/],["HH:mm",/T\d\d:\d\d/],["HH",/T\d\d/]],y=/([\+\-]|\d\d)/gi,z="Month|Date|Hours|Minutes|Seconds|Milliseconds".split("|"),A={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},B={},C={M:"(a=t.month()+1)",MMM:'v("monthsShort",t.month())',MMMM:'v("months",t.month())',D:"(a=t.date())",DDD:"(a=new Date(t.year(),t.month(),t.date()),b=new Date(t.year(),0,1),a=~~(((a-b)/864e5)+1.5))",d:"(a=t.day())",dd:'v("weekdaysMin",t.day())',ddd:'v("weekdaysShort",t.day())',dddd:'v("weekdays",t.day())',w:"(a=new Date(t.year(),t.month(),t.date()-t.day()+5),b=new Date(a.getFullYear(),0,4),a=~~((a-b)/864e5/7+1.5))",YY:"p(t.year()%100,2)",YYYY:"p(t.year(),4)",a:"m(t.hours(),t.minutes(),!0)",A:"m(t.hours(),t.minutes(),!1)",H:"t.hours()",h:"t.hours()%12||12",m:"t.minutes()",s:"t.seconds()",S:"~~(t.milliseconds()/100)",SS:"p(~~(t.milliseconds()/10),2)",SSS:"p(t.milliseconds(),3)",Z:'((a=-t.zone())<0?((a=-a),"-"):"+")+p(~~(a/60),2)+":"+p(~~a%60,2)',ZZ:'((a=-t.zone())<0?((a=-a),"-"):"+")+p(~~(10*a/6),4)'},D="DDD w M D d".split(" "),E="M D H h m s w".split(" ");while(D.length)e=D.pop(),C[e+"o"]=C[e]+"+o(a)";while(E.length)e=E.pop(),C[e+e]="p("+C[e]+",2)";C.DDDD="p("+C.DDD+",3)",b=function(c,d){if(c===null||c==="")return null;var e,f;return b.isMoment(c)?new F(new Date(+c._d),c._isUTC,c._lang):(d?K(d)?e=X(c,d):e=W(c,d):(f=j.exec(c),e=c===a?new Date:f?new Date(+f[1]):c instanceof Date?c:K(c)?M(c):typeof c=="string"?Y(c):new Date(c)),new F(e))},b.utc=function(a,c){return K(a)?new F(M(a,!0),!0):(typeof a=="string"&&!t.exec(a)&&(a+=" +0000",c&&(c+=" Z")),b(a,c).utc())},b.unix=function(a){return b(a*1e3)},b.duration=function(a,c){var d=b.isDuration(a),e=typeof a=="number",f=d?a._data:e?{}:a,g;return e&&(c?f[c]=a:f.milliseconds=a),g=new G(f),d&&(g._lang=a._lang),g},b.humanizeDuration=function(a,c,d){return b.duration(a,c===!0?null:c).humanize(c===!0?!0:d)},b.version=c,b.defaultFormat=w,b.lang=function(a,c){var d;if(!a)return g;(c||!f[a])&&N(a,c);if(f[a]){for(d=0;d11?c?"pm":"PM":c?"am":"AM"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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"},ordinal:function(a){var b=a%10;return~~(a%100/10)===1?"th":b===1?"st":b===2?"nd":b===3?"rd":"th"}}),b.fn=F.prototype={clone:function(){return b(this)},valueOf:function(){return+this._d},unix:function(){return Math.floor(+this._d/1e3)},toString:function(){return this._d.toString()},toDate:function(){return this._d},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds(),!!this._isUTC]},isValid:function(){return this._a?this._a[8]!=null?!!this._a[8]:!L(this._a,(this._a[7]?b.utc(this._a):b(this._a)).toArray()):!isNaN(this._d.getTime())},utc:function(){return this._isUTC=!0,this},local:function(){return this._isUTC=!1,this},format:function(a){return T(this,a?a:b.defaultFormat)},add:function(a,c){var d=c?b.duration(+c,a):b.duration(a);return J(this,d,1),this},subtract:function(a,c){var d=c?b.duration(+c,a):b.duration(a);return J(this,d,-1),this},diff:function(a,c,e){var f=this._isUTC?b(a).utc():b(a).local(),g=(this.zone()-f.zone())*6e4,h=this._d-f._d-g,i=this.year()-f.year(),j=this.month()-f.month(),k=this.date()-f.date(),l;return c==="months"?l=i*12+j+k/30:c==="years"?l=i+(j+k/30)/12:l=c==="seconds"?h/1e3:c==="minutes"?h/6e4:c==="hours"?h/36e5:c==="days"?h/864e5:c==="weeks"?h/6048e5:h,e?l:d(l)},from:function(a,c){return b.duration(this.diff(a)).lang(this._lang).humanize(!c)},fromNow:function(a){return this.from(b(),a)},calendar:function(){var a=this.diff(b().sod(),"days",!0),c=this.lang().calendar,d=c.sameElse,e=a<-6?d:a<-1?c.lastWeek:a<0?c.lastDay:a<1?c.sameDay:a<2?c.nextDay:a<7?c.nextWeek:d;return this.format(typeof e=="function"?e.apply(this):e)},isLeapYear:function(){var a=this.year();return a%4===0&&a%100!==0||a%400===0},isDST:function(){return this.zone()70?1900:2e3);break;case"YYYY":c[0]=~~Math.abs(b);break;case"a":case"A":d.isPm=(b+"").toLowerCase()==="pm";break;case"H":case"HH":case"h":case"hh":c[3]=~~b;break;case"m":case"mm":c[4]=~~b;break;case"s":case"ss":c[5]=~~b;break;case"S":case"SS":case"SSS":c[6]=~~(("0."+b)*1e3);break;case"Z":case"ZZ":d.isUTC=!0,e=(b+"").match(x),e&&e[1]&&(d.tzh=~~e[1]),e&&e[2]&&(d.tzm=~~e[2]),e&&e[0]==="+"&&(d.tzh=-d.tzh,d.tzm=-d.tzm)}b==null&&(c[8]=!1)}function X(a,b){var c=[0,0,1,0,0,0,0],d={tzh:0,tzm:0},e=b.match(k),f,g;for(f=0;f0,j[4]=c,$.apply({},j)}function ab(a,c){b.fn[a]=function(a){var b=this._isUTC?"UTC":"";return a!=null?(this._d["set"+b+c](a),this):this._d["get"+b+c]()}}function bb(a){b.duration.fn[a]=function(){return this._data[a]}}function cb(a,c){b.duration.fn["as"+a]=function(){return+this/c}}var b,c="1.7.1",d=Math.round,e,f={},g="en",h=typeof module!="undefined"&&module.exports,i="months|monthsShort|weekdays|weekdaysShort|weekdaysMin|longDateFormat|calendar|relativeTime|ordinal|meridiem".split("|"),j=/^\/?Date\((\-?\d+)/i,k=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|zz?|ZZ?|.)/g,l=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?)/g,m=/([0-9a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)/gi,n=/\d\d?/,o=/\d{1,3}/,p=/\d{3}/,q=/\d{1,4}/,r=/[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+/i,s=/Z|[\+\-]\d\d:?\d\d/i,t=/T/i,u=/^\s*\d{4}-\d\d-\d\d(T(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/,v="YYYY-MM-DDTHH:mm:ssZ",w=[["HH:mm:ss.S",/T\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/T\d\d:\d\d:\d\d/],["HH:mm",/T\d\d:\d\d/],["HH",/T\d\d/]],x=/([\+\-]|\d\d)/gi,y="Month|Date|Hours|Minutes|Seconds|Milliseconds".split("|"),z={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},A={},B="DDD w M D d".split(" "),C="M D H h m s w".split(" "),D={M:function(){return this.month()+1},MMM:function(a){return E("monthsShort",this.month(),this,a)},MMMM:function(a){return E("months",this.month(),this,a)},D:function(){return this.date()},DDD:function(){var a=new Date(this.year(),this.month(),this.date()),b=new Date(this.year(),0,1);return~~((a-b)/864e5+1.5)},d:function(){return this.day()},dd:function(a){return E("weekdaysMin",this.day(),this,a)},ddd:function(a){return E("weekdaysShort",this.day(),this,a)},dddd:function(a){return E("weekdays",this.day(),this,a)},w:function(){var a=new Date(this.year(),this.month(),this.date()-this.day()+5),b=new Date(a.getFullYear(),0,4);return~~((a-b)/864e5/7+1.5)},YY:function(){return K(this.year()%100,2)},YYYY:function(){return K(this.year(),4)},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return~~(this.milliseconds()/100)},SS:function(){return K(~~(this.milliseconds()/10),2)},SSS:function(){return K(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";return a<0&&(a=-a,b="-"),b+K(~~(a/60),2)+":"+K(~~a%60,2)},ZZ:function(){var a=-this.zone(),b="+";return a<0&&(a=-a,b="-"),b+K(~~(10*a/6),4)}};while(B.length)e=B.pop(),D[e+"o"]=G(D[e]);while(C.length)e=C.pop(),D[e+e]=F(D[e],2);D.DDDD=F(D.DDD,3),b=function(c,d){if(c===null||c==="")return null;var e,f;return b.isMoment(c)?new H(new Date(+c._d),c._isUTC,c._lang):(d?M(d)?e=Y(c,d):e=X(c,d):(f=j.exec(c),e=c===a?new Date:f?new Date(+f[1]):c instanceof Date?c:M(c)?O(c):typeof c=="string"?Z(c):new Date(c)),new H(e))},b.utc=function(a,c){return M(a)?new H(O(a,!0),!0):(typeof a=="string"&&!s.exec(a)&&(a+=" +0000",c&&(c+=" Z")),b(a,c).utc())},b.unix=function(a){return b(a*1e3)},b.duration=function(a,c){var d=b.isDuration(a),e=typeof a=="number",f=d?a._data:e?{}:a,g;return e&&(c?f[c]=a:f.milliseconds=a),g=new I(f),d&&(g._lang=a._lang),g},b.humanizeDuration=function(a,c,d){return b.duration(a,c===!0?null:c).humanize(c===!0?!0:d)},b.version=c,b.defaultFormat=v,b.lang=function(a,c){var d;if(!a)return g;(c||!f[a])&&P(a,c);if(f[a]){for(d=0;d11?c?"pm":"PM":c?"am":"AM"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",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"},ordinal:function(a){var b=a%10;return~~(a%100/10)===1?"th":b===1?"st":b===2?"nd":b===3?"rd":"th"}}),b.fn=H.prototype={clone:function(){return b(this)},valueOf:function(){return+this._d},unix:function(){return Math.floor(+this._d/1e3)},toString:function(){return this._d.toString()},toDate:function(){return this._d},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds(),!!this._isUTC]},isValid:function(){return this._a?this._a[8]!=null?!!this._a[8]:!N(this._a,(this._a[7]?b.utc(this._a):b(this._a)).toArray()):!isNaN(this._d.getTime())},utc:function(){return this._isUTC=!0,this},local:function(){return this._isUTC=!1,this},format:function(a){return U(this,a?a:b.defaultFormat)},add:function(a,c){var d=c?b.duration(+c,a):b.duration(a);return L(this,d,1),this},subtract:function(a,c){var d=c?b.duration(+c,a):b.duration(a);return L(this,d,-1),this},diff:function(a,c,e){var f=this._isUTC?b(a).utc():b(a).local(),g=(this.zone()-f.zone())*6e4,h=this._d-f._d-g,i=this.year()-f.year(),j=this.month()-f.month(),k=this.date()-f.date(),l;return c==="months"?l=i*12+j+k/30:c==="years"?l=i+(j+k/30)/12:l=c==="seconds"?h/1e3:c==="minutes"?h/6e4:c==="hours"?h/36e5:c==="days"?h/864e5:c==="weeks"?h/6048e5:h,e?l:d(l)},from:function(a,c){return b.duration(this.diff(a)).lang(this._lang).humanize(!c)},fromNow:function(a){return this.from(b(),a)},calendar:function(){var a=this.diff(b().sod(),"days",!0),c=this.lang().calendar,d=c.sameElse,e=a<-6?d:a<-1?c.lastWeek:a<0?c.lastDay:a<1?c.sameDay:a<2?c.nextDay:a<7?c.nextWeek:d;return this.format(typeof e=="function"?e.apply(this):e)},isLeapYear:function(){var a=this.year();return a%4===0&&a%100!==0||a%400===0},isDST:function(){return this.zone() 0, j[4] = c, Z.apply({}, j); + return j[2] = b, j[3] = a > 0, j[4] = c, $.apply({}, j); } - function _(a, c) { + function ab(a, c) { b.fn[a] = function(a) { var b = this._isUTC ? "UTC" : ""; return a != null ? (this._d["set" + b + c](a), this) : this._d["get" + b + c](); }; } - function ab(a) { + function bb(a) { b.duration.fn[a] = function() { return this._data[a]; }; } - function bb(a, c) { + function cb(a, c) { b.duration.fn["as" + a] = function() { return +this / c; }; } - var b, c = "1.7.0", d = Math.round, e, f = {}, g = "en", h = typeof module != "undefined" && module.exports, i = "months|monthsShort|weekdays|weekdaysShort|weekdaysMin|longDateFormat|calendar|relativeTime|ordinal|meridiem".split("|"), j = /^\/?Date\((\-?\d+)/i, k = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|zz?|ZZ?)/g, l = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?)/g, m = /(^\[)|(\\)|\]$/g, n = /([0-9a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)/gi, o = /\d\d?/, p = /\d{1,3}/, q = /\d{3}/, r = /\d{1,4}/, s = /[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+/i, t = /Z|[\+\-]\d\d:?\d\d/i, u = /T/i, v = /^\s*\d{4}-\d\d-\d\d(T(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/, w = "YYYY-MM-DDTHH:mm:ssZ", x = [ [ "HH:mm:ss.S", /T\d\d:\d\d:\d\d\.\d{1,3}/ ], [ "HH:mm:ss", /T\d\d:\d\d:\d\d/ ], [ "HH:mm", /T\d\d:\d\d/ ], [ "HH", /T\d\d/ ] ], y = /([\+\-]|\d\d)/gi, z = "Month|Date|Hours|Minutes|Seconds|Milliseconds".split("|"), A = { + var b, c = "1.7.1", d = Math.round, e, f = {}, g = "en", h = typeof module != "undefined" && module.exports, i = "months|monthsShort|weekdays|weekdaysShort|weekdaysMin|longDateFormat|calendar|relativeTime|ordinal|meridiem".split("|"), j = /^\/?Date\((\-?\d+)/i, k = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|SS?S?|zz?|ZZ?|.)/g, l = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?)/g, m = /([0-9a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)/gi, n = /\d\d?/, o = /\d{1,3}/, p = /\d{3}/, q = /\d{1,4}/, r = /[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+/i, s = /Z|[\+\-]\d\d:?\d\d/i, t = /T/i, u = /^\s*\d{4}-\d\d-\d\d(T(\d\d(:\d\d(:\d\d(\.\d\d?\d?)?)?)?)?([\+\-]\d\d:?\d\d)?)?/, v = "YYYY-MM-DDTHH:mm:ssZ", w = [ [ "HH:mm:ss.S", /T\d\d:\d\d:\d\d\.\d{1,3}/ ], [ "HH:mm:ss", /T\d\d:\d\d:\d\d/ ], [ "HH:mm", /T\d\d:\d\d/ ], [ "HH", /T\d\d/ ] ], x = /([\+\-]|\d\d)/gi, y = "Month|Date|Hours|Minutes|Seconds|Milliseconds".split("|"), z = { Milliseconds: 1, Seconds: 1e3, Minutes: 6e4, @@ -223,58 +237,108 @@ Days: 864e5, Months: 2592e6, Years: 31536e6 - }, B = {}, C = { - M: "(a=t.month()+1)", - MMM: 'v("monthsShort",t.month())', - MMMM: 'v("months",t.month())', - D: "(a=t.date())", - DDD: "(a=new Date(t.year(),t.month(),t.date()),b=new Date(t.year(),0,1),a=~~(((a-b)/864e5)+1.5))", - d: "(a=t.day())", - dd: 'v("weekdaysMin",t.day())', - ddd: 'v("weekdaysShort",t.day())', - dddd: 'v("weekdays",t.day())', - w: "(a=new Date(t.year(),t.month(),t.date()-t.day()+5),b=new Date(a.getFullYear(),0,4),a=~~((a-b)/864e5/7+1.5))", - YY: "p(t.year()%100,2)", - YYYY: "p(t.year(),4)", - a: "m(t.hours(),t.minutes(),!0)", - A: "m(t.hours(),t.minutes(),!1)", - H: "t.hours()", - h: "t.hours()%12||12", - m: "t.minutes()", - s: "t.seconds()", - S: "~~(t.milliseconds()/100)", - SS: "p(~~(t.milliseconds()/10),2)", - SSS: "p(t.milliseconds(),3)", - Z: '((a=-t.zone())<0?((a=-a),"-"):"+")+p(~~(a/60),2)+":"+p(~~a%60,2)', - ZZ: '((a=-t.zone())<0?((a=-a),"-"):"+")+p(~~(10*a/6),4)' - }, D = "DDD w M D d".split(" "), E = "M D H h m s w".split(" "); - while (D.length) e = D.pop(), C[e + "o"] = C[e] + "+o(a)"; - while (E.length) e = E.pop(), C[e + e] = "p(" + C[e] + ",2)"; - C.DDDD = "p(" + C.DDD + ",3)", b = function(c, d) { + }, A = {}, B = "DDD w M D d".split(" "), C = "M D H h m s w".split(" "), D = { + M: function() { + return this.month() + 1; + }, + MMM: function(a) { + return E("monthsShort", this.month(), this, a); + }, + MMMM: function(a) { + return E("months", this.month(), this, a); + }, + D: function() { + return this.date(); + }, + DDD: function() { + var a = new Date(this.year(), this.month(), this.date()), b = new Date(this.year(), 0, 1); + return ~~((a - b) / 864e5 + 1.5); + }, + d: function() { + return this.day(); + }, + dd: function(a) { + return E("weekdaysMin", this.day(), this, a); + }, + ddd: function(a) { + return E("weekdaysShort", this.day(), this, a); + }, + dddd: function(a) { + return E("weekdays", this.day(), this, a); + }, + w: function() { + var a = new Date(this.year(), this.month(), this.date() - this.day() + 5), b = new Date(a.getFullYear(), 0, 4); + return ~~((a - b) / 864e5 / 7 + 1.5); + }, + YY: function() { + return K(this.year() % 100, 2); + }, + YYYY: function() { + return K(this.year(), 4); + }, + a: function() { + return this.lang().meridiem(this.hours(), this.minutes(), !0); + }, + A: function() { + return this.lang().meridiem(this.hours(), this.minutes(), !1); + }, + H: function() { + return this.hours(); + }, + h: function() { + return this.hours() % 12 || 12; + }, + m: function() { + return this.minutes(); + }, + s: function() { + return this.seconds(); + }, + S: function() { + return ~~(this.milliseconds() / 100); + }, + SS: function() { + return K(~~(this.milliseconds() / 10), 2); + }, + SSS: function() { + return K(this.milliseconds(), 3); + }, + Z: function() { + var a = -this.zone(), b = "+"; + return a < 0 && (a = -a, b = "-"), b + K(~~(a / 60), 2) + ":" + K(~~a % 60, 2); + }, + ZZ: function() { + var a = -this.zone(), b = "+"; + return a < 0 && (a = -a, b = "-"), b + K(~~(10 * a / 6), 4); + } + }; + while (B.length) e = B.pop(), D[e + "o"] = G(D[e]); + while (C.length) e = C.pop(), D[e + e] = F(D[e], 2); + D.DDDD = F(D.DDD, 3), b = function(c, d) { if (c === null || c === "") return null; var e, f; - return b.isMoment(c) ? new F(new Date(+c._d), c._isUTC, c._lang) : (d ? K(d) ? e = X(c, d) : e = W(c, d) : (f = j.exec(c), e = c === a ? new Date : f ? new Date(+f[1]) : c instanceof Date ? c : K(c) ? M(c) : typeof c == "string" ? Y(c) : new Date(c)), new F(e)); + return b.isMoment(c) ? new H(new Date(+c._d), c._isUTC, c._lang) : (d ? M(d) ? e = Y(c, d) : e = X(c, d) : (f = j.exec(c), e = c === a ? new Date : f ? new Date(+f[1]) : c instanceof Date ? c : M(c) ? O(c) : typeof c == "string" ? Z(c) : new Date(c)), new H(e)); }, b.utc = function(a, c) { - return K(a) ? new F(M(a, !0), !0) : (typeof a == "string" && !t.exec(a) && (a += " +0000", c && (c += " Z")), b(a, c).utc()); + return M(a) ? new H(O(a, !0), !0) : (typeof a == "string" && !s.exec(a) && (a += " +0000", c && (c += " Z")), b(a, c).utc()); }, b.unix = function(a) { return b(a * 1e3); }, b.duration = function(a, c) { var d = b.isDuration(a), e = typeof a == "number", f = d ? a._data : e ? {} : a, g; - return e && (c ? f[c] = a : f.milliseconds = a), g = new G(f), d && (g._lang = a._lang), g; + return e && (c ? f[c] = a : f.milliseconds = a), g = new I(f), d && (g._lang = a._lang), g; }, b.humanizeDuration = function(a, c, d) { return b.duration(a, c === !0 ? null : c).humanize(c === !0 ? !0 : d); - }, b.version = c, b.defaultFormat = w, b.lang = function(a, c) { + }, b.version = c, b.defaultFormat = v, b.lang = function(a, c) { var d; if (!a) return g; - (c || !f[a]) && N(a, c); + (c || !f[a]) && P(a, c); if (f[a]) { for (d = 0; d < i.length; d++) b[i[d]] = f[a][i[d]]; b.monthsParse = f[a].monthsParse, g = a; } - }, b.langData = O, b.isMoment = function(a) { - return a instanceof F; + }, b.langData = Q, b.isMoment = function(a) { + return a instanceof H; }, b.isDuration = function(a) { - return a instanceof G; + return a instanceof I; }, b.lang("en", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), @@ -318,7 +382,7 @@ var b = a % 10; return ~~(a % 100 / 10) === 1 ? "th" : b === 1 ? "st" : b === 2 ? "nd" : b === 3 ? "rd" : "th"; } - }), b.fn = F.prototype = { + }), b.fn = H.prototype = { clone: function() { return b(this); }, @@ -339,7 +403,7 @@ return [ a.year(), a.month(), a.date(), a.hours(), a.minutes(), a.seconds(), a.milliseconds(), !!this._isUTC ]; }, isValid: function() { - return this._a ? this._a[8] != null ? !!this._a[8] : !L(this._a, (this._a[7] ? b.utc(this._a) : b(this._a)).toArray()) : !isNaN(this._d.getTime()); + return this._a ? this._a[8] != null ? !!this._a[8] : !N(this._a, (this._a[7] ? b.utc(this._a) : b(this._a)).toArray()) : !isNaN(this._d.getTime()); }, utc: function() { return this._isUTC = !0, this; @@ -348,15 +412,15 @@ return this._isUTC = !1, this; }, format: function(a) { - return T(this, a ? a : b.defaultFormat); + return U(this, a ? a : b.defaultFormat); }, add: function(a, c) { var d = c ? b.duration(+c, a) : b.duration(a); - return J(this, d, 1), this; + return L(this, d, 1), this; }, subtract: function(a, c) { var d = c ? b.duration(+c, a) : b.duration(a); - return J(this, d, -1), this; + return L(this, d, -1), this; }, diff: function(a, c, e) { var f = this._isUTC ? b(a).utc() : b(a).local(), g = (this.zone() - f.zone()) * 6e4, h = this._d - f._d - g, i = this.year() - f.year(), j = this.month() - f.month(), k = this.date() - f.date(), l; @@ -418,25 +482,25 @@ return b.utc([ this.year(), this.month() + 1, 0 ]).date(); }, lang: function(b) { - return b === a ? O(this) : (this._lang = b, this); + return b === a ? Q(this) : (this._lang = b, this); } }; - for (e = 0; e < z.length; e++) _(z[e].toLowerCase(), z[e]); - _("year", "FullYear"), b.duration.fn = G.prototype = { + for (e = 0; e < y.length; e++) ab(y[e].toLowerCase(), y[e]); + ab("year", "FullYear"), b.duration.fn = I.prototype = { weeks: function() { - return H(this.days() / 7); + return J(this.days() / 7); }, valueOf: function() { return this._milliseconds + this._days * 864e5 + this._months * 2592e6; }, humanize: function(a) { - var b = +this, c = this.lang().relativeTime, d = $(b, !a, this.lang()), e = b <= 0 ? c.past : c.future; + var b = +this, c = this.lang().relativeTime, d = _(b, !a, this.lang()), e = b <= 0 ? c.past : c.future; return a && (typeof e == "function" ? d = e(d) : d = e.replace(/%s/i, d)), d; }, lang: b.fn.lang }; - for (e in A) A.hasOwnProperty(e) && (bb(e, A[e]), ab(e.toLowerCase())); - bb("Weeks", 6048e5), h && (module.exports = b), typeof ender == "undefined" && (this.moment = b), typeof define == "function" && define.amd && define("moment", [], function() { + for (e in z) z.hasOwnProperty(e) && (cb(e, z[e]), bb(e.toLowerCase())); + cb("Weeks", 6048e5), h && (module.exports = b), typeof ender == "undefined" && (this.moment = b), typeof define == "function" && define.amd && define("moment", [], function() { return b; }); }).call(this); \ No newline at end of file -- 2.47.3